Functions > Statistics > Probability Distributions > Example: T-Test on Normal Means
  
Example: T-Test on Normal Means
Test the hypothesis that two normal populations have equal means.
1. Define data sets to compare.
Click to copy this expressionClick to copy this expression
2. Collect the sample statistics.
Number of samples for each data set
Click to copy this expressionClick to copy this expression
Click to copy this expression
Click to copy this expression
Sample means
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
Sample standard deviations
Click to copy this expression
Click to copy this expression
Click to copy this expression
Click to copy this expression
Degrees of freedom when combining the two means
Click to copy this expression
Click to copy this expression
Standard error of the difference in the data sets
Click to copy this expression
Click to copy this expression
3. Define the significance level.
Click to copy this expression
4. Calculate the test statistic.
Click to copy this expression
Click to copy this expression
5. State the null and the alternative hypothesis.
H0: m1 m2
H1: m1 > m2
6. Calculate the p-value and test the hypothesis. In this example, all of the Boolean expressions evaluate to 1 when the null hypothesis is true (you do not reject H0).
Click to copy this expression
Click to copy this expression
Click to copy this expression
There is a 0.946 probability that the test statistic is greater than the one observed, assuming that the null hypothesis is true. The comparison between the p-value and the significance level indicates there is no evidence that the alternative hypothesis is true.
7. Calculate the limit of the critical region and test the hypothesis.
Click to copy this expression
Click to copy this expression
Click to copy this expression
Accept the null hypothesis. There is no evidence that the m1 is greater than m2.
8. Plot the student distribution (blue), the boundary of the critical region (green), and the test statistics (red).
Click to copy this expression