T-Test
Testing whether a mean differs from a reference value or whether two group means differ, using the t-distribution when sample sizes are small.
The p-value is the tail area at least as extreme as the observed t-statistic, assuming H0 is true.
The t-test is a statistical test used to compare means when the population variance is unknown and the sample is small.
It uses the t-statistic:
where is the sample mean, is the hypothesized mean, is the sample standard deviation, and is the sample size.
The t-statistic follows a t-distribution with degrees of freedom under .
A factory claims machines produce bolts with diameter 10 mm. You measure 9 bolts and get mm, mm.
With 8 degrees of freedom, the two-tailed p-value . At , just fail to reject .
A diet claims to reduce weight by 5 kg. You weigh 16 people before and after. The mean reduction is 4.2 kg with kg. Test vs at . ()
Solution
Since , fail to reject . Insufficient evidence the diet falls short.