Hypothesis Testing: Z-Test
Problem
A company claims mean battery life is 500 hours. A sample of 36 gives mean 490, σ = 30. Test at α = 0.05.
Explanation
Setting up the hypothesis test
Step 1 — State hypotheses:
(battery life is as claimed)
(battery life differs from claim)
Step 2 — Significance level: (two-tailed).
Computing the test statistic
Step 3 — Calculate :
Making the decision
Step 4 — Find critical values. For two-tailed at : .
Step 5 — Compare: . The test statistic falls in the rejection region.
Step 6 — p-value: .
Interpretation
At the 5% significance level, the sample mean of 490 is significantly different from the claimed 500. The company's claim is not supported by this data.
Try it in the visualization
The normal curve shows the rejection regions (red shaded tails). The test statistic is marked. If it falls in the red zone → reject .
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.