๐Ÿ“Štests

Z-Test vs T-Test

Z-Test vs T-Test

Two fundamental hypothesis tests for comparing means. The z-test assumes a known population standard deviation and large samples, while the t-test is designed for small samples or when the population standard deviation is unknown.

Comparison Table

FeatureZ-TestT-Test
Population SDKnownUnknown (estimated from sample)
Sample SizeLarge (n > 30 typical)Any size (especially n < 30)
Distribution UsedStandard normal (Z)t-distribution (heavier tails)
Degrees of FreedomNot applicablen - 1 (one-sample)
Critical ValuesFixed (e.g., 1.96 for 95%)Vary with degrees of freedom

Key Differences

  • โ†’The z-test requires a known population standard deviation; the t-test estimates it from the sample.
  • โ†’The t-distribution has heavier tails than the normal distribution, reflecting greater uncertainty with small samples.
  • โ†’As sample size grows, the t-distribution converges to the standard normal distribution, making results nearly identical.
  • โ†’The t-test introduces degrees of freedom, which control the shape of the distribution and the width of confidence intervals.

When to Use Z-Test

  • โœ“You know the population standard deviation from prior research or census data.
  • โœ“Your sample size is large (typically n > 30) and you can rely on the Central Limit Theorem.
  • โœ“You are testing proportions (the z-test for proportions is standard practice).

When to Use T-Test

  • โœ“The population standard deviation is unknown and must be estimated from the sample.
  • โœ“Your sample size is small (n < 30) and the population is approximately normal.
  • โœ“You are comparing means of two small independent or paired groups.

Common Confusions

  • !Assuming a large sample automatically means you must use a z-test (a t-test is still valid and often preferred when sigma is unknown).
  • !Believing the t-test only works for small samples (it works for any sample size).
  • !Forgetting that the z-test for proportions is a different application than the z-test for means.

Get AI Explanations

Ask any question about these concepts and get instant answers.

Download StatsIQ

FAQs

Common questions about this comparison

As degrees of freedom increase (roughly above 30), the t-distribution closely approximates the standard normal distribution. In practice, with very large samples the two tests yield nearly identical results.

In most practical situations, yes. The t-test makes fewer assumptions because it does not require a known population standard deviation. With large samples the results will match a z-test closely, so defaulting to the t-test is a common and defensible strategy.

More Comparisons