A model's latency has a known standard deviation of 12 ms. On n=36 requests the mean latency is 54 ms. Test H0:μ=50 against H1:μ≠50 with a z-test at the 5% level. What is the p-value, and what is your conclusion?

Probability and statistics, Hypothesis testing
Level L2 Elementary. Length Medium. Nature Mat Mathematical.

What's being asked

Whether you can compute a z statistic, a two-sided p-value and a decision.

Key idea

When σ is known, z=xˉ−μ0σ/n follows N(0,1) under H0. The two-sided p-value is 2 (1−Φ(∣z∣)).

Steps

  1. State the hypotheses: H0:μ=50, H1:μ≠50. The test is two-sided because H1 allows both directions.
  2. Compute the standard error: σ/n=12/36=12/6=2 ms.
  3. Compute the statistic: z=(54−50)/2=2.
  4. Find the p-value: 2 (1−Φ(2))=2×0.02275=0.0455.
  5. Decide. At 5% the critical value is 1.96. Since 2>1.96 (or 0.0455<0.05), reject H0.
  6. Note the 1% level: the critical value is 2.576, and 2<2.576, so we would not reject at 1%.

Common mistakes

How long your answer should be

Half a page, about 3 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: If X∼N(2,9) and Y=3X−1, what is the distribution of Y, and what is P(Y>14), given Φ(1)≈0.8413?
Next in Probability and statistics: A non-negative random variable X (say, the response time of a server) has mean 50 and variance 25. Using Markov's and Chebyshev's inequalities, what bounds do you get for P(X≥80) and for P(∣X−50∣≥15), and why is one bound much tighter?