4  Z, t, and F: The Distributions Behind Every Test

NoteWhat you’ll be able to do

By the end of this chapter you will be able to:

  1. Interpret a z-score as a distance from the mean in standard-deviation units.
  2. Explain when and why t replaces Z (σ estimated from the data, small samples).
  3. Describe what F is a ratio of, and why it can never be negative.
  4. Explain how Z, t, and F connect to one another.

Most inferential tests in this book — t-tests, ANOVA, regression, even χ² in disguise — boil down to computing a single number from your data, then asking, how unusual is that number if nothing real is going on?

To ask that question, you need a reference distribution: the probability distribution of the test statistic under the null hypothesis. Three families cover almost every test you will run:

A fourth, chi-square (\(\chi^2\)), shows up for categorical-frequency tests and is the conceptual ancestor of F. It gets its own chapter (Chapter 21).

This chapter is short on derivation and long on intuition. By the end, you should be able to look at a test statistic and know which distribution it lives in and what controls its shape.

4.1 The standard normal: Z

4.1.1 The shape

The standard normal distribution is the familiar bell curve: symmetric, centered at zero, with the famous 68-95-99.7 spread (≈68% of values within 1 SD, ≈95% within 2 SD, ≈99.7% within 3 SD).

A Z-score expresses any value in standard-deviation units away from a known population mean:

\[ Z = \frac{x - \mu}{\sigma} \]

If a class average on a national exam is \(\mu = 500\) with \(\sigma = 100\), a student who scored 650 is at \(Z = (650 - 500) / 100 = 1.5\) — one and a half standard deviations above average. About 6.7% of students would be expected to score at least that high.

4.1.2 When you’d actually run a Z-test

The Z-test is the textbook way to compare a sample mean to a known population value when you know the population’s standard deviation. In behavioral research it is rare to know \(\sigma\), so the Z-test gets replaced in practice by the t-test (next section). Use a Z-test only when all three of the following are true:

  1. The population standard deviation \(\sigma\) is known.
  2. Sample size is reasonably large (\(n \geq 30\)), or the data are known to be normal.
  3. Observations are independent.

If \(\sigma\) is unknown — which is almost always — switch to a t-test.

4.1.3 Two flavors

  • One-sample Z-test. Compare a single sample mean to a known population mean. (Class average vs. national average, when the national SD is known.)
  • Two-sample Z-test. Compare two independent sample means when both populations’ standard deviations are known.
NoteWhy Z shows up everywhere even when you’re not running a Z-test

The t and F distributions are both defined in terms of normally distributed quantities. The t statistic is essentially a Z statistic with an estimated standard error in the denominator. The F statistic is a ratio of (approximately) chi-square quantities, and chi-square is a sum of squared Zs. The normal distribution is the foundation; the others are corrections for the realities of working with finite samples.

4.2 The t distribution

4.2.1 What changes from Z

The t distribution looks like the normal — symmetric, bell-shaped, centered at zero — but with heavier tails. The heavier tails reflect the extra uncertainty you get when you estimate the population standard deviation from your sample instead of knowing it.

Two-panel plot. Left panel: standard normal curve overlaid with t distributions at df 2, 10, and 30, which are lower at the peak and higher in the tails. Right panel: zoom of the right tail from 2 to 5 showing the t curve with df 2 well above the normal curve.

The standard normal (solid black) and t distributions at df = 2, 10, and 30 (dashed). Left: the t curves sit slightly lower in the center and higher in the tails. Right: zooming in on the right tail shows what “heavier tails” actually means — at df = 2, values beyond 3 are far more probable than under the normal. As df grow, t becomes indistinguishable from Z.

4.2.2 Degrees of freedom

The shape of t depends on a single parameter: the degrees of freedom (df). For a one-sample t-test, \(\text{df} = n - 1\).

  • Small df → noticeably heavier tails than the normal.
  • Large df → almost indistinguishable from the normal.

By about \(n = 30\) (\(\text{df} = 29\)), the t distribution is close enough to the normal that the difference rarely matters in practice. This is one source of the “\(n > 30\)” rule of thumb. The other is how quickly sample means become normal when the raw data aren’t, and that depends on how non-normal the data are (Chapter 10).

4.2.3 When you use t

Whenever you want to compare a mean (or a difference of means, or a regression slope) to a hypothesized value but you do not know the population standard deviation. That covers almost every comparison-of-means situation you will encounter in real research.

4.2.4 The one-sample t statistic

\[ t = \frac{\bar{x} - \mu_0}{s / \sqrt{n}} \]

where \(\bar{x}\) is the sample mean, \(\mu_0\) is the hypothesized population mean under the null, \(s\) is the sample standard deviation, and \(n\) is the sample size. The denominator \(s / \sqrt{n}\) is the standard error of the mean — your best estimate of how much sample means vary from sample to sample.

The calculated t gets compared to a critical value from the t distribution with \(n - 1\) degrees of freedom. R does the lookup for you; the p-value in t.test() output is the result.

NoteInteractive: Watching t and F Change Shape

Open the module to slide df yourself and watch the t curve’s tails shrink toward the normal, or set df₁/df₂ independently for F and watch its skew relax. The simulator we use in Chapter 5 does the same kind of thing for sampling distributions of the mean.

4.3 The F distribution

4.3.1 What it represents

The F distribution is the distribution of the ratio of two variance-like quantities. It has two parameters — a numerator df and a denominator df — and the result is always positive (variances can’t be negative) and right-skewed (heavily skewed for small df, less so as df grow).

If your null hypothesis is “two variances are equal,” the ratio of their estimates should be near 1. If your null hypothesis is “all group means are equal” (ANOVA), the ratio of between-group variability to within-group variability should be near 1. F tells you how extreme a given ratio is.

4.3.2 Key characteristics

  • Defined only for \(F \geq 0\).
  • Positively (right) skewed; skewness decreases as both df increase.
  • Controlled by two parameters: numerator degrees of freedom (\(\text{df}_1\)) and denominator degrees of freedom (\(\text{df}_2\)).

Overlaid density curves for F(2,10), F(5,20), and F(10,50), all starting at zero on the x-axis, all right-skewed, with the skew visibly decreasing as both degrees-of-freedom parameters increase.

Three F distributions at different degrees of freedom. All three are confined to non-negative values and right-skewed, but the skew shrinks as both df grow — F(10, 50) is noticeably more compact and symmetric than F(2, 10).

4.3.3 Where F shows up

  • ANOVA. The F statistic in any ANOVA is the ratio of between-group variance to within-group variance. Numerator df is (number of groups − 1); denominator df is (total \(n\) − number of groups). See Part IV chapters 17–19.
  • Regression. Every multiple regression model has an overall F-test that asks whether the model as a whole explains more variance than a null model. See Chapter 24.
  • Comparing variances directly. The F-test for the ratio of two variances exists but is rarely used outside textbooks; it is sensitive to non-normality.

4.3.4 Why the numerator and denominator df both matter

Because F is a ratio, both pieces shape the distribution.

  • Larger numerator df → less skew and a tighter spread around 1.
  • Larger denominator df → the denominator stabilizes; F concentrates more tightly around 1.

A small selection of critical values (from a standard F-table, \(\alpha = 0.05\)):

\(\text{df}_1 \backslash \text{df}_2\) 1 5 10 20
1 161.45 6.61 4.96 4.35
5 230.16 5.05 3.33 2.71
10 241.88 4.74 2.98 2.35
20 248.01 4.56 2.77 2.12

The critical value drops quickly as denominator df grow — a bigger sample makes it easier to detect a fixed ratio. Note that the F distribution is not symmetric in its degrees of freedom: \(F(\text{df}_1, \text{df}_2) \neq F(\text{df}_2, \text{df}_1)\), so the row and the column are not interchangeable (compare the first row with the first column above). When in doubt, let R do the lookup.

In R, qf(1 - alpha, df1, df2) returns the critical value for any combination; pf(F, df1, df2, lower.tail = FALSE) gives the p-value for an observed \(F\).

4.4 How the three connect

If you remember nothing else from this chapter, remember this:

  • A standardized score with a known population variance follows the standard normal distribution.
  • The same standardized score with an estimated variance follows the t distribution.
  • The ratio of two variance-like quantities follows the F distribution.
  • A sum of squared standardized scores follows the chi-square distribution (the parent of F).

Every test in this book lives somewhere in that family. Once you know which family the test statistic belongs to, the rest — degrees of freedom, critical values, p-values — is bookkeeping.

TipQuick reference
Test statistic Distribution df Where it appears
\(Z = (\bar{x} - \mu) / (\sigma / \sqrt{n})\) Standard normal — One- and two-sample Z-tests
\(t = (\bar{x} - \mu_0) / (s / \sqrt{n})\) t \(n - 1\) (one-sample) All t-tests, regression slopes
\(F = \text{var}_\text{between} / \text{var}_\text{within}\) F \(\text{df}_1, \text{df}_2\) ANOVA, regression overall test
\(\chi^2 = \sum (\text{observed} - \text{expected})^2 / \text{expected}\) Chi-square categories − 1 (goodness of fit); (rows − 1)(cols − 1) (independence) Goodness of fit, independence

TipChapter Summary

Core idea: Every parametric test uses a known probability distribution — normal, t, F, or χ² — as a reference standard to determine how unusual an observed result is. The test statistic is always a ratio of some kind: signal divided by noise.

You should understand:

  • Why the t-distribution has heavier tails than the normal distribution, and what happens to those tails as sample size increases
  • Why degrees of freedom matter: they determine the shape of the t and F distributions
  • How the F-distribution relates to ANOVA (ratio of between-group to within-group variance)
  • That χ², t, and F are all related — members of the same family

You should be able to do in R:

  • Find a critical value: qt(0.975, df = 20), qf(0.95, df1 = 2, df2 = 27)
  • Find a p-value from a test statistic: pt(t_value, df, lower.tail = FALSE)

Plain-language check: Why does a t-test with df = 5 require a larger test statistic to reach significance than one with df = 50?

The one mistake to avoid: Looking up critical values in a table when R can give you the exact value. Use qt(), qf(), qchisq() — and understand what you’re asking for.

Practice: You run a t-test and get t(12) = 2.18. Is this significant at α = .05, two-tailed? (Use R: pt(2.18, df = 12, lower.tail = FALSE) * 2)

Key terms from this chapter are defined in the Glossary.