🧠 MindStat

⚠️ Example not found

This example does not exist or may have been moved.

Browse all examples
⚖️
t-test

One-Sample t-test — Class Average vs. National Norm

Test whether a class mean (M=79.5, n=10) differs significantly from the national average of 75. Full formula, Cohen's d, and APA-7 write-up.

📊 t(9) = 1.70, p = .124, d = 0.54
Step-by-step solution

⚖️ 2 · t-Tests

2a · One-Sample t-test: Is the class average = 75?
t-test
Research Question: The national average exam score is 75. Does a sample of 10 students differ from this standard?
Formula
t = x ¯ μ 0 s / n , d f = n 1
  1. 1
    State hypotheses: H₀: μ = 75 vs H₁: μ ≠ 75 (two-tailed)
  2. 2
    t = 79.5 75 8.37 / 10 = 4.5 2.646 = 1.700 , d f = 9
  3. 3
    Critical value at α=.05, df=9: t* = ±2.262. Since |1.700| < 2.262 → Fail to reject H₀.
  4. 4
    Cohen's d (effect size):
    d = x ¯ μ 0 s = 79.5 75 8.37 = 0.538 ( medium )
1.700
t
9
df
.124
p
0.538
Cohen's d
Fail to Reject H₀ — The class mean (M=79.5) does not differ significantly from 75, t(9)=1.70, p=.124.
APA-7
A one-sample t-test indicated that the class mean (M = 79.50, SD = 8.37) did not significantly differ from the national standard of 75, t(9) = 1.70, p = .124, d = 0.54, 95% CI [−1.48, 10.48].
2b · Independent-Samples t-test (Welch): Drug A vs Drug B
t-test
Research Question: Does Drug A reduce pain scores more than Drug B? (Higher score = more pain)
GroupnMeanSD
Drug A124.21.3
Drug B105.81.9
Welch t-statistic
t W = x ¯ 1 x ¯ 2 s 1 2 n 1 + s 2 2 n 2
  1. 1
    S E = 1.3 2 12 + 1.9 2 10 = 1.69 12 + 3.61 10 = 0.1408 + 0.361 = 0.5018 = 0.7084
  2. 2
    t W = 4.2 5.8 0.7084 = 1.6 0.7084 = 2.258
  3. 3
    Welch-Satterthwaite df:
    d f = ( s 1 2 / n 1 + s 2 2 / n 2 ) 2 ( s 1 2 / n 1 ) 2 n 1 1 + ( s 2 2 / n 2 ) 2 n 2 1 = ( 0.5018 ) 2 ( 0.1408 ) 2 11 + ( 0.361 ) 2 9 15.7 15
  4. 4
    Cohen's d:
    d = | x ¯ 1 x ¯ 2 | s p , s p = ( n 1 1 ) s 1 2 + ( n 2 1 ) s 2 2 n 1 + n 2 2 = 11 ( 1.69 ) + 9 ( 3.61 ) 20 = 1.554 = 1.567
    d = 1.6 1.567 = 1.021 ( large )
−2.258
t(Welch)
15
df
.039
p
1.021
Cohen's d
🔴 Reject H₀ — Drug A produces significantly lower pain scores than Drug B, t(15)=−2.26, p=.039.
APA-7
An independent-samples Welch t-test revealed that Drug A (M = 4.20, SD = 1.30) produced significantly lower pain scores than Drug B (M = 5.80, SD = 1.90), t(15.00) = −2.26, p = .039, d = 1.02, 95% CI [−3.11, −0.09].
2c · Paired-Samples t-test: Before vs After Training
t-test
Research Question: Did a training program improve performance scores for the same 8 employees?
iBeforeAfterDiff (d)d − d̄(d − d̄)²
16072122.757.56
25568133.7514.06
370755-4.2518.06
465749-0.250.06
55871133.7514.06
672808-1.251.56
763707-2.255.06
86882144.7522.56
Σ81083.00
t = d ¯ s d / n , d ¯ = 81 8 = 10.125 , s d = 83.00 7 = 11.857 = 3.443
t = 10.125 3.443 / 8 = 10.125 1.217 = 8.320 , d f = n 1 = 7
Cohen's d (paired)
d = d ¯ s d = 10.125 3.443 = 2.941 ( very large )
8.320
t
7
df
<.001
p
2.941
Cohen's d
10.125
Mean Diff.
🔴 Reject H₀ — Training significantly improved performance, t(7) = 8.32, p < .001, d = 2.94.
APA-7
A paired-samples t-test indicated a statistically significant improvement in performance following training (M_diff = 10.13, SD_diff = 3.44), t(7) = 8.32, p < .001, d = 2.94, 95% CI [7.25, 13.00].