One-Sample t-Test Algorithm

From GM-RKB
Jump to navigation Jump to search

A One-Sample t-Test Algorithm is a statistical hypothesis testing algorithm that can be implemented by a one-sample t-test system (to solve a one-sample t-test task).



References

2017a

Calculates the T-test for the mean of ONE group of scores.
This is a two-sided test for the null hypothesis that the expected value (mean) of a sample of independent observations a is equal to the given population mean, popmean.

2017b

>>>
>>> stats.ttest_1samp(data['VIQ'], 0) 
(...30.088099970..., 1.32891964...e-28)

With a p-value of 10^-28 we can claim that the population mean for the IQ (VIQ measure) is not 0.

2015

stats.ttest_1samp(a= minnesota_ages, popmean= population_ages.mean())
# (Sample data, Pop mean)