Statistics

Hypothesis Testing: Step-by-Step Guide with Examples

Master hypothesis testing step by step. Learn to set up the null and alternative hypotheses, choose z-tests vs t-tests, interpret p-values, and avoid Type I and Type II errors.

Frequently asked questions

What does it mean to fail to reject the null hypothesis?

It means the sample did not give strong enough evidence against H₀. It does not prove H₀ is true. A court analogy helps: a not-guilty verdict says the evidence was insufficient, not that the person is innocent. Statisticians avoid saying they accept the null hypothesis.

What is a p-value in simple terms?

The p-value is the probability of getting a result at least as extreme as yours if the null hypothesis were true. A small p-value means the data would be surprising under H₀. If p ≤ α, you reject H₀. It is not the probability that H₀ is true.

When do you use a t-test instead of a z-test?

Use a t-test when the population standard deviation is unknown and you estimate it with the sample standard deviation s, especially for small samples. Use a z-test when σ is known, or when the sample is large. The t-test uses n − 1 degrees of freedom, which gives wider tails for small samples.

What is the difference between a Type I and a Type II error?

A Type I error rejects a true null hypothesis, a false positive, and its probability is α. A Type II error fails to reject a false null hypothesis, a false negative, with probability β. Lowering α makes Type I errors rarer but raises β. A larger sample size can reduce both.

What is the difference between a one-tailed and a two-tailed test?

A two-tailed test checks for a difference in either direction (H₁: μ ≠ μ₀), splitting α between both tails. A one-tailed test checks one direction only (H₁: μ > μ₀ or μ < μ₀). At α = 0.05 the z critical values are ±1.96 for two-tailed and 1.645 for one-tailed.

Try these solvers

Statistics12 min read

Normal Distribution & Z-Scores: How to Use the Bell Curve

Understand the normal distribution and z-scores with this complete guide. Learn the properties of the bell curve, how to calculate and interpret z-scores, use the z-table, and apply it all to real-world problems.

Statistics12 min read

How to Find Standard Deviation: Step-by-Step with Examples

Standard deviation measures how far data typically sits from the mean. Learn the five-step method, when to divide by N or n − 1, how to handle a frequency table, and see with nine tiny samples exactly why the sample formula uses n − 1.

Statistics9 min read

Mean, Median, Mode and Range: How to Find Them (With Examples)

Mean, median, mode, and range are the building blocks of statistics. Learn how to calculate each one, when to use which measure, and how outliers affect your results.

Stuck on your own problem?

Snap a photo in Solver AI for iPhone and iPad and see every step, so you can do the next one yourself.