Introduction to T-Tests
T-tests are fundamental statistical tools used to determine if there is a significant difference between means. In this guide, we'll work through computational problems for each type of t-test with step-by-step solutions.
We'll cover:
- One-Sample T-Test: Comparing a sample mean to a known population mean
- Independent Samples T-Test: Comparing means from two different groups
- Paired Samples T-Test: Comparing means from the same group at two different times
Each section includes three computational problems with detailed solutions and access to interactive calculators to verify your work.
One-Sample T-Test Computational Problems
The one-sample t-test determines whether a sample mean is statistically different from a known population mean.
Problem 1: Textbook Weight
Solution:
Step 1: State the hypotheses
H₁: μ ≠ 2.5 lbs (The mean weight differs from 2.5 lbs)
Step 2: Calculate the test statistic
t = (2.62 - 2.5) / (0.18/√15)
t = 0.12 / (0.18/3.873)
t = 0.12 / 0.0465 ≈ 2.58
Step 3: Determine the critical value
For α = 0.05 (two-tailed), t-critical = ±2.145
Step 4: Make a decision
Conclusion: There is sufficient evidence at the 0.05 significance level to conclude that the mean textbook weight differs from 2.5 lbs.
Problem 2: Battery Life
Solution:
Step 1: State the hypotheses
H₁: μ < 100 hours (one-tailed test)
Step 2: Calculate the test statistic
t = (98 - 100) / (5/√20)
t = -2 / (5/4.472)
t = -2 / 1.118 ≈ -1.79
Step 3: Determine the critical value
For α = 0.05 (one-tailed), t-critical = -1.729
Step 4: Make a decision
Conclusion: There is sufficient evidence to conclude that the battery life is less than 100 hours.
Problem 3: Student Height
Solution:
Step 1: State the hypotheses
H₁: μ ≠ 68 inches
Step 2: Calculate the test statistic
t = (69.2 - 68) / (2.8/√25)
t = 1.2 / (2.8/5)
t = 1.2 / 0.56 ≈ 2.14
Step 3: Determine the critical value
For α = 0.01 (two-tailed), t-critical = ±2.797
Step 4: Make a decision
Conclusion: There is insufficient evidence to conclude that the mean height differs from 68 inches at the 0.01 significance level.
One-Sample T-Test Calculator
Use our interactive calculator to verify your one-sample t-test calculations:
Independent Samples T-Test Computational Problems
The independent samples t-test compares means from two different groups to determine if they are statistically different.
Problem 1: Teaching Methods
Solution:
Step 1: State the hypotheses
H₁: μ₁ ≠ μ₂ (The means are different)
Step 2: Calculate the pooled standard deviation
sₚ² = [(29)(25) + (34)(36)] / (30+35-2)
sₚ² = [725 + 1224] / 63
sₚ² = 1949 / 63 ≈ 30.94
sₚ ≈ √30.94 ≈ 5.56
Step 3: Calculate the test statistic
t = (78 - 82) / [5.56√(1/30 + 1/35)]
t = -4 / [5.56√(0.0333 + 0.0286)]
t = -4 / [5.56√0.0619]
t = -4 / [5.56 × 0.2488] ≈ -4 / 1.383 ≈ -2.89
Step 4: Determine the critical value
For α = 0.05 (two-tailed), t-critical ≈ ±2.00
Step 5: Make a decision
Conclusion: There is a significant difference between the teaching methods at the 0.05 level.
Problem 2: Plant Growth
Solution:
Step 1: State the hypotheses
H₁: μₐ < μբ (Fertilizer B produces taller plants)
Step 2: Calculate the pooled standard deviation
sₚ² = [48.51 + 80.64] / 25
sₚ² = 129.15 / 25 = 5.166
sₚ ≈ √5.166 ≈ 2.273
Step 3: Calculate the test statistic
t = (22.3 - 24.8) / [2.273√(1/12 + 1/15)]
t = -2.5 / [2.273√(0.0833 + 0.0667)]
t = -2.5 / [2.273√0.15]
t = -2.5 / [2.273 × 0.3873] ≈ -2.5 / 0.880 ≈ -2.84
Step 4: Determine the critical value
For α = 0.05 (one-tailed), t-critical = -1.708
Step 5: Make a decision
Conclusion: Fertilizer B produces significantly taller plants at the 0.05 level.
Problem 3: Reaction Time
Solution:
Step 1: State the hypotheses
H₁: μ₉ < μₙ (Gamers have faster reaction times)
Step 2: Calculate the pooled standard deviation
sₚ² = [11875 + 21600] / 43
sₚ² = 33475 / 43 ≈ 778.49
sₚ ≈ √778.49 ≈ 27.90
Step 3: Calculate the test statistic
t = (280 - 310) / [27.90√(1/20 + 1/25)]
t = -30 / [27.90√(0.05 + 0.04)]
t = -30 / [27.90√0.09]
t = -30 / [27.90 × 0.3] ≈ -30 / 8.37 ≈ -3.59
Step 4: Determine the critical value
For α = 0.01 (one-tailed), t-critical ≈ -2.42
Step 5: Make a decision
Conclusion: Gamers have significantly faster reaction times at the 0.01 level.
Independent Samples T-Test Calculator
Use our interactive calculator to verify your independent samples t-test calculations:
Paired Samples T-Test Computational Problems
The paired samples t-test compares means from the same group at two different times or under two different conditions.
Problem 1: Weight Loss Program
| Participant | Before | After |
|---|---|---|
| 1 | 85 | 82 |
| 2 | 92 | 88 |
| 3 | 78 | 76 |
| 4 | 105 | 100 |
| 5 | 88 | 85 |
| 6 | 94 | 91 |
| 7 | 81 | 79 |
| 8 | 97 | 93 |
| 9 | 83 | 81 |
| 10 | 90 | 87 |
Solution:
Step 1: Calculate the differences
Step 2: Calculate mean and standard deviation of differences
Standard deviation (s_d) = 1.10
Step 3: State the hypotheses
H₁: μ_d < 0 (Weight loss occurred)
Step 4: Calculate the test statistic
t = -3.1 / (1.10/√10)
t = -3.1 / (1.10/3.162)
t = -3.1 / 0.348 ≈ -8.91
Step 5: Determine the critical value
For α = 0.05 (one-tailed), t-critical = -1.833
Step 6: Make a decision
Conclusion: The weight loss program is effective at the 0.05 significance level.
Problem 2: Drug Effectiveness
| Patient | Before | After |
|---|---|---|
| 1 | 145 | 138 |
| 2 | 132 | 127 |
| 3 | 158 | 150 |
| 4 | 142 | 136 |
| 5 | 128 | 125 |
| 6 | 135 | 130 |
| 7 | 150 | 142 |
| 8 | 140 | 135 |
Solution:
Step 1: Calculate the differences
Step 2: Calculate mean and standard deviation of differences
Standard deviation (s_d) = 1.73
Step 3: State the hypotheses
H₁: μ_d < 0 (Reduction occurred)
Step 4: Calculate the test statistic
t = -5.875 / (1.73/√8)
t = -5.875 / (1.73/2.828)
t = -5.875 / 0.612 ≈ -9.60
Step 5: Determine the critical value
For α = 0.01 (one-tailed), t-critical = -2.998
Step 6: Make a decision
Conclusion: The drug significantly reduces blood pressure at the 0.01 level.
Problem 3: Training Program
| Employee | Before | After |
|---|---|---|
| 1 | 42 | 45 |
| 2 | 38 | 40 |
| 3 | 45 | 47 |
| 4 | 51 | 53 |
| 5 | 35 | 38 |
| 6 | 48 | 50 |
| 7 | 39 | 42 |
| 8 | 44 | 46 |
Solution:
Step 1: Calculate the differences
Step 2: Calculate mean and standard deviation of differences
Standard deviation (s_d) = 0.52
Step 3: State the hypotheses
H₁: μ_d > 0 (Improvement occurred)
Step 4: Calculate the test statistic
t = 2.375 / (0.52/√8)
t = 2.375 / (0.52/2.828)
t = 2.375 / 0.184 ≈ 12.91
Step 5: Determine the critical value
For α = 0.05 (one-tailed), t-critical = 1.895
Step 6: Make a decision
Conclusion: The training program significantly improved productivity at the 0.05 level.
Paired Samples T-Test Calculator
Use our interactive calculator to verify your paired samples t-test calculations:
Alternative Tests to T-Tests
When the assumptions of t-tests are violated, consider these alternatives:
| Situation | Alternative Test | When to Use |
|---|---|---|
| Non-normal data |
Mann-Whitney U test (independent) Wilcoxon signed-rank test (paired) |
Ordinal data or severe violations of normality |
| Unequal variances | Welch's t-test | When group variances are significantly different |
| More than 2 groups | ANOVA | Comparing means across 3 or more groups |
| Categorical data | Chi-square test | When working with frequencies or proportions |
Conclusion
Through these computational problems, we've demonstrated how to apply each type of t-test in practical scenarios. Remember these key points:
- Always check assumptions before conducting a t-test
- Choose the correct test based on your research design
- Interpret results in the context of your specific problem
- Consider effect sizes alongside statistical significance
The interactive calculators provided can help verify your manual calculations and build intuition for how different values affect the test results.