UNIHIVE

Study Hub UNIPORT BCJ 402

BCJ 402 · Data Analysis in Communication Research

Comparing groups: t tests and ANOVA

Independent and paired t tests, one-way ANOVA, their assumptions, and reading the results.

Our notes

2 min read

When to use

The outcome is interval or ratio (a knowledge score, hours of viewing, a trust scale) and you compare group means.

Independent-samples t test (two separate groups)

t = (x̄₁ − x̄₂) ÷ √[s_p² (1/n₁ + 1/n₂)], with pooled variance s_p² = [(n₁ − 1)s₁² + (n₂ − 1)s₂²]/(n₁ + n₂ − 2), df = n₁ + n₂ − 2.

Worked example

Daily hours online of 5 first-year and 5 final-year students:

  • First year: 4, 5, 6, 5, 5 → mean 5, variance 0.5.
  • Final year: 6, 7, 8, 7, 7 → mean 7, variance 0.5.

s_p² = (4 × 0.5 + 4 × 0.5)/8 = 0.5.
t = (7 − 5)/√[0.5 × (1/5 + 1/5)] = 2/√0.2 = 2/0.447 = 4.47, df = 8.
Critical t (two-tailed, 0.05, df 8) = 2.306. 4.47 > 2.306: reject H₀; final-year students spend significantly more time online in this (tiny, illustrative) sample.
(Checked by computer: t = 4.472.)

Paired-samples t test

The same people measured twice: knowledge of a vaccination campaign before and after a radio drama. Compute each person's difference and test whether the mean difference is zero (t = d̄ ÷ (s_d/√n), df = n − 1). Pairing removes differences between people and gives a more sensitive test.

One-way ANOVA (three or more groups)

Compares means of several groups at once, e.g. trust in news among users of TV, radio and online. It splits variation into between-groups and within-groups and computes F = MS_between ÷ MS_within. A significant F says at least one mean differs; post-hoc tests (Tukey) show which pairs differ.
Running many t tests instead raises the chance of a false alarm.

Assumptions

  • Independent observations.
  • Outcome roughly normal in each group (less critical with groups over about 30).
  • Similar variances: Levene's test in SPSS checks this; if violated, read the "equal variances not assumed" (Welch) line.

If the data are ordinal or badly skewed with small groups, use Mann-Whitney U (two groups) or Kruskal-Wallis (three or more) instead.

Effect size

Report the difference in means and Cohen's d = difference ÷ pooled SD (0.2 small, 0.5 medium, 0.8 large). Here d = 2/√0.5 = 2.83: very large, as expected from made-up data.

SPSS paths

  • Analyze → Compare Means → Independent-Samples T Test (choose the grouping variable and define groups).
  • Analyze → Compare Means → Paired-Samples T Test.
  • Analyze → Compare Means → One-Way ANOVA (Post Hoc → Tukey; Options → Descriptive, Homogeneity of variance).

Reporting

"Final-year students (M = 7.0, SD = 0.71) spent more hours online than first-year students (M = 5.0, SD = 0.71), t(8) = 4.47, p = 0.002."

Exams usually ask

  • Choose between independent t, paired t and ANOVA for a design.
  • Compute a simple t statistic and decide.
  • Explain why ANOVA is used instead of several t tests.

Common mistake

Using an independent t test on before-and-after scores from the same people. Use the paired test.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All BCJ 402 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.