Suppose we want to compare the average height of gnomes and dwarves. We will use an independent samples t-test to determine if there is a significant difference between the two groups. Here is how we set up the hypothesis test and perform the analysis.
Step 1: State the Hypotheses
The null hypothesis and the alternative hypothesis
can be stated as follows:
where is the mean height of gnomes and
is the mean height of dwarves.
Step 2: Collect Data
Suppose we have the following sample data for the heights (in cm) of gnomes and dwarves:

Step 3: Calculate the Test Statistic
First, we calculate the sample means and sample standard deviations:
Next, we calculate the pooled standard deviation :
The test statistic is then calculated as:
Step 4: Determine the Degrees of Freedom
The degrees of freedom for the independent samples t-test is:
Step 5: Compare the Test Statistic to the Critical Value
Using a t-table or calculator, find the critical t-value for a two-tailed test with and
. The critical t-value is approximately
.
Since is less than
, we reject the null hypothesis.
Conclusion
At the significance level, we have enough evidence to conclude that there is a significant difference in average height between gnomes and dwarves. Therefore, we reject the null hypothesis that there is no difference in average height between the two groups.
Discover more from Science Comics
Subscribe to get the latest posts sent to your email.