When would you use a Z-test versus a T-test, and what does each assume about variance and sample size?

Quick Overview

Asks when to choose a Z-test or a T-test for comparing means and what each test assumes. It tests whether you understand the role of known versus estimated variance, degrees of freedom, sample size and the normality assumption in hypothesis testing.

When would you use a Z-test versus a T-test, and what does each assume about variance and sample size?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

When would you use a Z-test versus a T-test? What are the key assumptions for each, particularly regarding population variance and sample size? ```hint The denominator Write down both test statistics and look at what sits in the denominator and where its value comes from. ``` ### What a Strong Answer Covers - The deciding factor: a known population variance versus a variance estimated from the sample - The test statistics and their reference distributions, including the degrees of freedom - The assumptions behind each test (independence, normality of the data or of the sampling distribution) and how sample size changes them - What happens as n grows, and why the n > 30 rule of thumb is only a guideline - Common practical variants such as proportion tests, Welch's test and paired tests ### Follow-up Questions - In an A/B test on conversion rate, why is a z-test standard even though the population variance is never known in advance? - When would you use Welch's t-test over the pooled two-sample t-test? - Your sample of 12 observations is strongly skewed. What would you do in place of a t-test? - How does a paired t-test differ from a two-sample t-test, and when does it give more power?

Overview: Asks when to choose a Z-test or a T-test for comparing means and what each test assumes. It tests whether you understand the role of known versus estimated variance, degrees of freedom, sample size and the normality assumption in hypothesis testing.

General logo
General
Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

When would you use a Z-test versus a T-test? What are the key assumptions for each, particularly regarding population variance and sample size?

What a Strong Answer Covers Guidance

  • The deciding factor: a known population variance versus a variance estimated from the sample
  • The test statistics and their reference distributions, including the degrees of freedom
  • The assumptions behind each test (independence, normality of the data or of the sampling distribution) and how sample size changes them
  • What happens as n grows, and why the n > 30 rule of thumb is only a guideline
  • Common practical variants such as proportion tests, Welch's test and paired tests

Follow-up Questions Guidance

  • In an A/B test on conversion rate, why is a z-test standard even though the population variance is never known in advance?
  • When would you use Welch's t-test over the pooled two-sample t-test?
  • Your sample of 12 observations is strongly skewed. What would you do in place of a t-test?
  • How does a paired t-test differ from a two-sample t-test, and when does it give more power?