Advertisement
elena1234

Q-Q plot (check for normality)

Jun 22nd, 2022 (edited)
784
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. import scipy.stats as stats
  2. import pylab
  3.  
  4. stats.probplot(group1,dist='norm',plot=pylab);
  5.  
  6.  
  7.  
  8. # combine the 2 lists to get overall salary distribution
  9. marketingLst.extend(financeLst)
  10. salFrame = pd.DataFrame(marketingLst,columns=['salary'])
  11.  
  12. # check normality
  13. fig, ax = plt.subplots(figsize=(4,4))
  14. qqplot(salFrame['salary'], fit=True, line='s',ax=ax)
  15. plt.show(
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement