Charta is on Google Play: practise on the go. Get the app

Choose the right test for a hypothesis concerning a mean

CFA® Level I · Quantitative Methods · Estimation and Hypothesis Testing · QM.7.c

The idea

The choice follows from what is known and how large the sample is. With a known population variance and a normal population, a z-test applies. With an unknown variance - the usual case - a t-test applies, using the sample standard deviation and n - 1 degrees of freedom. For large samples the two converge, because the t distribution approaches the normal. Comparing the means of two independent samples uses a two-sample t-test; comparing paired observations, such as the same portfolios before and after a change, uses a paired test on the differences.

Formulas

Test statistic for a hypothesis about a mean

t = (x̄ − µ₀) ÷ (s ÷ √n)

x̄
the sample mean
µ₀
the mean the null hypothesis asserts
s
the sample standard deviation
n
the sample size

The t-distribution when the population standard deviation is unknown, which is almost always. The denominator is the standard error, so the statistic is the distance from the hypothesis measured in standard errors, with n − 1 degrees of freedom.

A practice question

From the question bank, with the reason each wrong option is wrong.

A sample of 20 observations is drawn from a normal population whose standard deviation is unknown. Which test applies to its mean?

  1. A z-testWhy not: That requires the population standard deviation to be known. Here it is estimated from 20 observations, and the t distribution's fatter tails price in that extra uncertainty.
  2. A t-test - correct
  3. A chi-square testWhy not: That is for inference about a variance, not a mean.

To test an average you use: Test statistic = (Sample mean - Hypothesised mean) / (Sample standard deviation / square root of n). Here the population standard deviation is unknown, so you have to estimate it from only 20 observations. That adds uncertainty, which the t distribution handles with its fatter tails (degrees of freedom = 20 - 1 = 19). A z-test needs a known population standard deviation, and chi-square is for variances.

A harder one

Why do t-tests and z-tests give nearly identical results for large samples?

  1. Because large samples are always normally distributedWhy not: The data keep the population's shape however many observations are drawn. This is about the distribution of the test statistic, not the data.
  2. Because the sample standard deviation equals the population value at large nWhy not: It approaches it but never equals it, and the convergence of the two tests does not require equality - only that the remaining uncertainty stops mattering.
  3. Because the t distribution converges on the normal as degrees of freedom rise - correct

The t-test and z-test use the same formula: Test statistic = (Sample mean - Hypothesised mean) / (Standard deviation / square root of n). They differ only in the curve used to judge it. The t curve has fatter tails because the standard deviation is estimated. With a large sample the estimate is very reliable, degrees of freedom (n - 1) are large, and the t curve becomes almost the same as the normal curve. So both tests give nearly the same answer.

The hardest tier

Why does using a two-sample test on paired data waste information?

  1. Because it uses fewer degrees of freedom than the paired testWhy not: It generally uses more, since it treats the observations as 2n independent values rather than n differences. More degrees of freedom here buy nothing.
  2. Because it needs a larger sample than the paired testWhy not: It requires no more data than is already in hand. The cost is power on the data you have, not an additional data requirement.
  3. Because differencing would remove variation between subjects - correct

When data are paired, each subject acts as its own comparison. Taking differences removes the natural gap between subjects, such as one portfolio being riskier than another, and leaves just the change. Formula: paired t = mean of differences / (standard deviation of differences / square root of n). A two-sample test leaves that gap in the standard error, so the test statistic is smaller and the test is less powerful. When before and after values are strongly related, paired differences are much less variable. The two-sample test does not need more data.

In the app: 12 practice questions on this outcome, a narrated walkthrough with diagrams, spaced review that brings it back before you forget it.

Take the free diagnostic →

More in Estimation and Hypothesis Testing