import numpy as np
from scipy import stats
a=np.random.normal(25.0, 5.0, 1000000) #mean, std deviation, number of data
finding out tvalue and pvalue
b=np.random.normal(26.0, 5.0, 1000000) #mean, std variation and number of data
stats.ttest_ind(a,b)
#if tstatisctics value is high, that means, between two datasets, there is no connection in real life.
#negative or positive value of tvalue does not really matter.
#ques is how fat away the value is from the zero!
#higher Pvalue means, there is a difference between two groups. which means the null hypothesis is wrong.
#Ttest_indResult(statistic=-141.0857113733187, pvalue=0.0),
#tvalue=
#pvalue=
No comments:
Post a Comment