scipy.stats.ttest_ind() is used to compare the means of two independent groups.scipy.stats.ttest_rel() to compare two related samples, like measurements before and after a treatment on the same subjects.ttest_ind compares means of two independent groups. ttest_rel is for paired samples, ttest_1samp compares one sample to a known value, and ANOVA is a different test.
A p-value below 0.05 suggests the difference between groups is statistically significant, meaning it is unlikely due to chance.
ttest_rel is for paired samples, like before-and-after measurements on the same subjects.
T-tests require numerical data, not categorical data.
scipy.stats.ttest_1samp() do?ttest_1samp tests if the average of one sample is different from a specific number.
