Skip to content
Calcapedia
Number of problems

In the print window, choose “Save as PDF” as the printer (or print it on paper). Seed 1 rebuilds this exact sheet.

Showing 10 problems, seed 1.

T-Test worksheet

Grade 12 to college

Solve each problem and show your work. Round answers to 2 decimal places where needed.

  1. Problem 1.
    • Test: Two-sample, pooled (equal variances)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 23, 25, 28, 30, 26, 27, 24, 29
    • Sample 2 (or 'after' values, in the same order): 20, 22, 25, 21, 24, 23, 19, 22
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Left-tailed (<)
    • Significance level (α): 0.05

    Find: p-value

  2. Problem 2.
    • Test: Paired (before and after, matched pairs)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 18, 22, 20, 28, 26, 35, 22, 26
    • Sample 2 (or 'after' values, in the same order): 16, 26, 30, 28, 20, 30, 21, 22
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Left-tailed (<)
    • Significance level (α): 0.05

    Find: p-value

  3. Problem 3.
    • Test: Two-sample, pooled (equal variances)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 23, 25, 28, 30, 26, 27, 24, 29
    • Sample 2 (or 'after' values, in the same order): 20, 20, 15, 20, 24, 35, 18, 24
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Right-tailed (>)
    • Significance level (α): 0.07

    Find: p-value

  4. Problem 4.
    • Test: One-sample (one mean against a value)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 22, 32, 22, 36, 20, 24, 28, 26
    • Hypothesized mean (μ₀): 22
    • Alternative hypothesis: Left-tailed (<)
    • Significance level (α): 0.04

    Find: p-value

  5. Problem 5.
    • Test: Paired (before and after, matched pairs)
    • Enter: Summary statistics (mean, SD, n)
    • Sample 1 mean (paired: mean of the differences): 22.5
    • Sample 1 standard deviation (paired: SD of the differences): 2.7
    • Sample 1 size (paired: number of pairs): 7
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Left-tailed (<)
    • Significance level (α): 0.05

    Find: p-value

  6. Problem 6.
    • Test: Paired (before and after, matched pairs)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 22, 22, 32, 30, 22, 24, 20, 21
    • Sample 2 (or 'after' values, in the same order): 26, 24, 28, 18, 20, 28, 18, 25
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Two-tailed (≠)
    • Significance level (α): 0.04

    Find: p-value

  7. Problem 7.
    • Test: Paired (before and after, matched pairs)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 23, 25, 28, 30, 26, 27, 24, 29
    • Sample 2 (or 'after' values, in the same order): 20, 24, 24, 20, 28, 16, 22, 22
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Right-tailed (>)
    • Significance level (α): 0.06

    Find: p-value

  8. Problem 8.
    • Test: Paired (before and after, matched pairs)
    • Enter: Summary statistics (mean, SD, n)
    • Sample 1 mean (paired: mean of the differences): 25
    • Sample 1 standard deviation (paired: SD of the differences): 2.5
    • Sample 1 size (paired: number of pairs): 10
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Two-tailed (≠)
    • Significance level (α): 0.05

    Find: p-value

  9. Problem 9.
    • Test: Two-sample, Welch (unequal variances)
    • Enter: Summary statistics (mean, SD, n)
    • Sample 1 mean (paired: mean of the differences): 18
    • Sample 1 standard deviation (paired: SD of the differences): 2.4
    • Sample 1 size (paired: number of pairs): 10
    • Sample 2 mean: 22
    • Sample 2 standard deviation: 3
    • Sample 2 size: 9
    • Hypothesized difference (usually 0): 0
    • Alternative hypothesis: Two-tailed (≠)
    • Significance level (α): 0.05

    Find: p-value

  10. Problem 10.
    • Test: One-sample (one mean against a value)
    • Enter: Raw data
    • Sample 1 (or 'before' values): 26, 22, 34, 24, 22, 22, 22, 20
    • Hypothesized mean (μ₀): 23
    • Alternative hypothesis: Left-tailed (<)
    • Significance level (α): 0.04

    Find: p-value

Answer key: T-Test worksheet

  1. 1. p-value: 0.999373

    1. Find each sample's mean, spread (standard deviation, dividing by n − 1) and size

      x̄₁ = 26.5, s₁ = 2.4495, n₁ = 8; x̄₂ = 22, s₂ = 2, n₂ = 8
    2. Combine the two variances (spread squared) into one, giving the bigger sample more weight

      sₚ2=7×2.449492+7×2214=5
    3. Find the standard error of the difference, the usual amount it wobbles by chance

      SE=5×(18+18)=1.118034
    4. Find the degrees of freedom: both sample sizes added, minus 2 (n₁ + n₂ − 2)

      df=14
    5. Find t: how many standard errors your result is from the value you are testing against

      t=4.5−01.118034=4.024922
    6. Find the p-value, the chance of a result this far out: the area below t on the t curve with 14 df

      p=P(T < t) = 0.9993733461
    7. The p-value is above α, so the result is not statistically significant

      Not significant: fail to reject H₀ (p > 0.05)
  2. 2. p-value: 0.601515

    1. Subtract each 'after' value from its 'before' value. The test then checks these differences as one sample

      d = 2, -4, -10, 0, 6, 5, 1, 4
    2. Find the differences' mean, spread (standard deviation, dividing by n − 1) and size n

      d̄ = 0.5, s = 5.2915, n = 8
    3. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=5.2915038=1.870829
    4. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=7
    5. Find t: how many standard errors your result is from the value you are testing against

      t=0.5−01.870829=0.267261
    6. Find the p-value, the chance of a result this far out: the area below t on the t curve with 7 df

      p=P(T < t) = 0.6015145036
    7. The p-value is above α, so the result is not statistically significant

      Not significant: fail to reject H₀ (p > 0.05)
  3. 3. p-value: 0.035276

    1. Find each sample's mean, spread (standard deviation, dividing by n − 1) and size

      x̄₁ = 26.5, s₁ = 2.4495, n₁ = 8; x̄₂ = 22, s₂ = 6.0238, n₂ = 8
    2. Combine the two variances (spread squared) into one, giving the bigger sample more weight

      sₚ2=7×2.449492+7×6.023762214=21.142857
    3. Find the standard error of the difference, the usual amount it wobbles by chance

      SE=21.142857×(18+18)=2.299068
    4. Find the degrees of freedom: both sample sizes added, minus 2 (n₁ + n₂ − 2)

      df=14
    5. Find t: how many standard errors your result is from the value you are testing against

      t=4.5−02.299068=1.957315
    6. Find the p-value, the chance of a result this far out: the area above t on the t curve with 14 df

      p=P(T > t) = 0.0352762603
    7. The p-value is at or below α, so the result is statistically significant

      Significant: reject H₀ (p ≤ 0.07)
  4. 4. p-value: 0.967512

    1. Find the sample's mean, spread (standard deviation, dividing by n − 1) and size n

      x̄ = 26.25, s = 5.4968, n = 8
    2. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=5.4967528=1.943395
    3. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=7
    4. Find t: how many standard errors your result is from the value you are testing against

      t=26.25−221.943395=2.186894
    5. Find the p-value, the chance of a result this far out: the area below t on the t curve with 7 df

      p=P(T < t) = 0.967511994
    6. The p-value is above α, so the result is not statistically significant

      Not significant: fail to reject H₀ (p > 0.04)
  5. 5. p-value: 1

    1. Find the differences' mean, spread (standard deviation, dividing by n − 1) and size n

      d̄ = 22.5, s = 2.7, n = 7
    2. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=2.77=1.020504
    3. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=6
    4. Find t: how many standard errors your result is from the value you are testing against

      t=22.5−01.020504=22.047928
    5. Find the p-value, the chance of a result this far out: the area below t on the t curve with 6 df

      p=P(T < t) = 0.9999997155
    6. The p-value is above α, so the result is not statistically significant

      Not significant: fail to reject H₀ (p > 0.05)
  6. 6. p-value: 0.713564

    1. Subtract each 'after' value from its 'before' value. The test then checks these differences as one sample

      d = -4, -2, 4, 12, 2, -4, 2, -4
    2. Find the differences' mean, spread (standard deviation, dividing by n − 1) and size n

      d̄ = 0.75, s = 5.5485, n = 8
    3. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=5.5484888=1.961687
    4. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=7
    5. Find t: how many standard errors your result is from the value you are testing against

      t=0.75−01.961687=0.382324
    6. Find the p-value, the chance of a result this far out in either direction: double the area beyond |t| on the t curve with 7 df

      p=2×0.3567820004=0.7135640009
    7. The p-value is above α, so the result is not statistically significant

      Not significant: fail to reject H₀ (p > 0.04)
  7. 7. p-value: 0.012777

    1. Subtract each 'after' value from its 'before' value. The test then checks these differences as one sample

      d = 3, 1, 4, 10, -2, 11, 2, 7
    2. Find the differences' mean, spread (standard deviation, dividing by n − 1) and size n

      d̄ = 4.5, s = 4.504, n = 8
    3. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=4.5039678=1.592393
    4. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=7
    5. Find t: how many standard errors your result is from the value you are testing against

      t=4.5−01.592393=2.825936
    6. Find the p-value, the chance of a result this far out: the area above t on the t curve with 7 df

      p=P(T > t) = 0.012777348
    7. The p-value is at or below α, so the result is statistically significant

      Significant: reject H₀ (p ≤ 0.06)
  8. 8. p-value: 1.552213e-10

    1. Find the differences' mean, spread (standard deviation, dividing by n − 1) and size n

      d̄ = 25, s = 2.5, n = 10
    2. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=2.510=0.790569
    3. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=9
    4. Find t: how many standard errors your result is from the value you are testing against

      t=25−00.790569=31.622777
    5. Find the p-value, the chance of a result this far out in either direction: double the area beyond |t| on the t curve with 9 df

      p=2×7.7610669491e-11=0.0000000002
    6. The p-value is at or below α, so the result is statistically significant

      Significant: reject H₀ (p ≤ 0.05)
  9. 9. p-value: 0.005991

    1. Find each sample's mean, spread (standard deviation, dividing by n − 1) and size

      x̄₁ = 18, s₁ = 2.4, n₁ = 10; x̄₂ = 22, s₂ = 3, n₂ = 9
    2. Find the standard error of the difference, using each sample's own spread

      SE=2.4210+329=1.255388
    3. Find the degrees of freedom with the Welch–Satterthwaite formula. It is usually not a whole number

      df=(0.576+1)20.57629+128=15.344833
    4. Find t: how many standard errors your result is from the value you are testing against

      t=−4−01.255388=−3.186265
    5. Find the p-value, the chance of a result this far out in either direction: double the area beyond |t| on the t curve with 15.3448 df

      p=2×0.0029955943=0.0059911887
    6. The p-value is at or below α, so the result is statistically significant

      Significant: reject H₀ (p ≤ 0.05)
  10. 10. p-value: 0.729245

    1. Find the sample's mean, spread (standard deviation, dividing by n − 1) and size n

      x̄ = 24, s = 4.4078, n = 8
    2. Find the standard error, the usual amount a mean wobbles by chance: the standard deviation s divided by the square root of n

      SE=4.4077858=1.558387
    3. Find the degrees of freedom: the number of values minus 1 (n − 1)

      df=7
    4. Find t: how many standard errors your result is from the value you are testing against

      t=24−231.558387=0.641689
    5. Find the p-value, the chance of a result this far out: the area below t on the t curve with 7 df

      p=P(T < t) = 0.7292453623
    6. The p-value is above α, so the result is not statistically significant

      Not significant: fail to reject H₀ (p > 0.04)