Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. ## Import the packages
  2. import numpy as np
  3. from scipy import stats
  4.  
  5. #Sample Size
  6. N = 5
  7. #Gaussian distributed data with mean = 2 and var = 1
  8. a = []
  9. #Gaussian distributed data with with mean = 0 and var = 1
  10. b = [1,2,3,4,5]
  11.  
  12. ## Cross Checking with the internal scipy function
  13. t2, p2 = stats.ttest_ind(a,b)
  14. print("t = " + str(t2))
  15. print("p = " + str(p2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement