A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Z-Tests and T-Tests for Means

College Depth 100 in the knowledge graph I know this Set as goal
304topics build on this
484prerequisites beneath it
See this on the map →
Hypothesis Testing: Framework and LogicOne-Sample Z-Test for Means
z-test t-test

Core Idea

Z-test: Z=(X̄−μ₀)/(σ/√n) when σ known. T-test: T=(X̄−μ₀)/(s/√n) with n−1 df when σ unknown. Use t-test (more conservative) in practice. Both test H₀:μ=μ₀. T-distribution accounts for estimating σ from data.

Explainer

From the hypothesis testing framework, you know the core procedure: assume H₀ is true, compute a test statistic measuring how far the data falls from what H₀ predicts, then calculate the probability of observing a result that extreme by chance. The z-test and t-test are the two standard implementations of this framework when the question is about a population mean. They share the same logic — they differ only in how much you know about the population.

The z-test applies when the population standard deviation σ is known. The test statistic is Z = (X̄ − μ₀) / (σ/√n). The denominator σ/√n is the standard error — the standard deviation of the sampling distribution of X̄, which you derived from the Central Limit Theorem. Dividing the observed deviation X̄ − μ₀ by the standard error converts the raw difference into a dimensionless z-score: how many standard errors away from μ₀ your sample mean landed. Under H₀, this statistic follows a standard normal distribution, and you look up the tail probability from that distribution.

The t-test applies when σ is unknown — which is nearly always in practice. You estimate σ using the sample standard deviation s, giving T = (X̄ − μ₀) / (s/√n). The problem is that s itself varies from sample to sample, introducing additional uncertainty. This extra variability means the test statistic no longer follows a standard normal distribution; instead, it follows a t-distribution with n − 1 degrees of freedom. The t-distribution looks like a normal distribution but has heavier tails — it assigns more probability to extreme values, making it more conservative. As n grows large, s converges to σ, the t-distribution converges to the normal, and the t-test and z-test give identical results.

The degrees of freedom n − 1 reflect a subtle cost: once you've estimated the mean X̄ from your n data points, only n − 1 of the deviations (xᵢ − X̄) are free to vary independently. The last one is determined by the constraint that deviations sum to zero. Fewer degrees of freedom → more uncertainty → heavier tails → a higher threshold to reject H₀. This is why the t-test is described as more conservative: at small sample sizes, it demands stronger evidence before concluding the effect is real, appropriately accounting for the uncertainty in estimating σ from limited data.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueWeak Law of Large NumbersProbability Axioms and RulesConditional ProbabilityIndependence of EventsSampling DistributionsStandard Error of EstimatorsHypothesis Testing: Framework and LogicP-values and Statistical SignificanceEffect Size and Practical SignificanceHypothesis Testing: Framework and LogicZ-Tests and T-Tests for Means

Longest path: 101 steps · 484 total prerequisite topics

Prerequisites (1)

Leads To (1)