When to use a z-interval versus a t-interval for a mean, and the role of the t-distribution and degrees of freedom

Quick Overview

Asks when a confidence interval for a population mean should use the normal distribution and when it should use the t-distribution. Tests understanding of known versus estimated standard deviation, degrees of freedom, critical values at small sample sizes, and the assumptions behind both intervals.

When to use a z-interval versus a t-interval for a mean, and the role of the t-distribution and degrees of freedom

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

When would you use a z-interval versus a t-interval for estimating a population mean, and what is the role of the t-distribution and degrees of freedom? ```hint Count the unknowns Ask which quantities in the standardized sample mean you actually know. What changes in its distribution when $\sigma$ is replaced by the sample standard deviation $s$? ``` ```hint Compare the critical values Look up the 95% two-sided critical value of the t-distribution at a few sample sizes, small and large, and compare each with the normal value. ``` ### What a Strong Answer Covers - The condition that decides between the two intervals, and the formula for each - Why replacing $\sigma$ with $s$ leads to the t-distribution and its heavier tails - What the degrees of freedom are for one mean and how they change the critical value - How the two intervals compare as the sample size grows, ideally with numbers - The assumptions both intervals rely on and when those assumptions fail ### Follow-up Questions - Why are the degrees of freedom $n - 1$ and not $n$? - If you use 1.96 with the sample standard deviation and a sample of 5, roughly what coverage does the interval really have? - How are the degrees of freedom set for a two-sample interval when the two groups have unequal variances? - A sample of 12 order values is strongly right-skewed. Which interval would you report, if either?

Overview: Asks when a confidence interval for a population mean should use the normal distribution and when it should use the t-distribution. Tests understanding of known versus estimated standard deviation, degrees of freedom, critical values at small sample sizes, and the assumptions behind both intervals.

Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

When would you use a z-interval versus a t-interval for estimating a population mean, and what is the role of the t-distribution and degrees of freedom?

What a Strong Answer Covers Guidance

  • The condition that decides between the two intervals, and the formula for each
  • Why replacing σ\sigma with ss leads to the t-distribution and its heavier tails
  • What the degrees of freedom are for one mean and how they change the critical value
  • How the two intervals compare as the sample size grows, ideally with numbers
  • The assumptions both intervals rely on and when those assumptions fail

Follow-up Questions Guidance

  • Why are the degrees of freedom n−1n - 1 and not nn ?
  • If you use 1.96 with the sample standard deviation and a sample of 5, roughly what coverage does the interval really have?
  • How are the degrees of freedom set for a two-sample interval when the two groups have unequal variances?
  • A sample of 12 order values is strongly right-skewed. Which interval would you report, if either?