Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Import the packages
- import numpy as np
- from scipy import stats
- #Sample Size
- N = 5
- #Gaussian distributed data with mean = 2 and var = 1
- a = []
- #Gaussian distributed data with with mean = 0 and var = 1
- b = [1,2,3,4,5]
- ## Cross Checking with the internal scipy function
- t2, p2 = stats.ttest_ind(a,b)
- print("t = " + str(t2))
- print("p = " + str(p2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement