A model's latency has a known standard deviation of ms. On requests the mean latency is ms. Test against 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, follows under . The two-sided p-value is .
Steps
- State the hypotheses: , . The test is two-sided because allows both directions.
- Compute the standard error: ms.
- Compute the statistic: .
- Find the p-value: .
- Decide. At 5% the critical value is . Since (or ), reject .
- Note the 1% level: the critical value is , and , so we would not reject at 1%.
Common mistakes
- Using a one-sided p-value (0.0228) for a two-sided hypothesis.
- Using or instead of as the standard error.
- Using the z-test when is estimated from a small sample. That needs the t-test.
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 and , what is the distribution of , and what is , given ?
Next in Probability and statistics: A non-negative random variable (say, the response time of a server) has mean and variance . Using Markov's and Chebyshev's inequalities, what bounds do you get for and for , and why is one bound much tighter?