I'm trying to get the same result from this excel table, indicating that there's a link between the wight and the result (after going to the gym)
The result on the excel shows the p-value as 1.28% (for 2 tails) and 0.64% for 1 tail.
Given
weight = np.array([70,71,76,84,72,78,79,80,74,75])
result = np.array([67,70,77,80,70,79,70,77,70,70])
and then I do:
stats.ttest_ind(B,A)
and I get
Ttest_indResult(statistic=4.413795011355454, pvalue=0.00015789925499823287)
What am I doing wrong?