Guest User

Untitled

a guest
Jan 18th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. from scipy.stats import pearsonr
  2. import matplotlib.pyplot as plt
  3.  
  4. #Create two random variable
  5. X = [1,2,3,4,5,6,7,8,9,10,11,12,13]
  6. Y = [7,8,8,11,10,11,12,15,20,14,16,15,19]
  7.  
  8. #plot the variables to show linearity
  9. plt.scatter(X,Y)
  10. plt.show()
Add Comment
Please, Sign In to add comment