Skip to content

Fundamentals of hypothesis testing

Test a supplier's claim about a mean by stating the null and alternative hypotheses, computing the test statistic and p-value, comparing with the significance level, and say what Type I and Type II errors cost.

It opens on

A supplier claims 3.0 days. Our 36 deliveries average 3.3, with σ = 0.9. If the claim were true, is a mean this high about 20% likely, 2% likely or 50% likely?

Why it matters

Managers constantly decide whether a sample contradicts a claim, such as a supplier's delivery promise, and need a rule that says when the evidence is strong enough and what a wrong call costs.

Good to know first

  • standard error of the mean

Step by step

  1. The test step by step

    State H₀ and Hₐ, compute z and the p-value for the delivery claim, and decide at α = 0.05.

    P(Z > 2.0) = 1 − 0.9772 = 0.0228, about 2.3%, which answers the opening question.

    p-value = 0.0228

    A common mix-up

    The p-value is the probability that H₀ is true.

    In fact: It assumes H₀ is true and tells how surprising the sample would be, so 0.0228 is not the chance the claim is right.

  2. Two errors and their costs

    Name Type I and Type II errors for the supplier test, say what each costs and compute the Type II chance for one case.

    Suppose the true mean is really 3.4. The sample mean then has mean 3.4 and the same SE 0.15. We fail to reject when it falls below 3.247, with z = (3.247 − 3.4) / 0.15 = −1.02 and β = 0.1534.

    β = P(x̄ < 3.247 | μ = 3.4) = 0.1534

    A common mix-up

    Failing to reject H₀ shows the supplier's claim is true.

    In fact: It only means the sample did not give enough evidence against it, and a Type II error may be hiding.

  3. Significance level and critical value

    Use the critical value method and show how the decision depends on α, with a two-sided p-value.

    For α = 0.05 the critical value is 1.645. Our z = 2.0 is beyond it, so we reject, which agrees with p = 0.0228 being below 0.05.

    2.0 > 1.645, reject

    A common mix-up

    A p-value just above 0.05 shows H₀ is true.

    In fact: It shows only that the evidence is not strong enough at that level, and a larger sample might reject.

Try it

A supplier claims a mean of 50 mm with σ = 6, and 36 parts average 52 mm. Test Hₐ: μ > 50 and find z and the p-value.Answer

SE = 1, z = 2.0, p = 0.0228

Hint: z = (x̄ − μ₀) / SE

A bank tests whether a customer's transaction is fraud, with H₀: not fraud. Describe a Type I error and a Type II error and say which is costlier.Answer

Type I flags an honest customer as fraud, Type II lets fraud pass, and Type II is usually costlier

Hint: The truth first, then the decision

Test Hₐ: μ > 100 with z = 1.80 at α = 0.05, given P(Z > 1.80) = 0.0359. Decide.Answer

0.0359 is below 0.05, so reject H₀

Hint: Compare p with α

Another sample of 36 has a mean of 3.15. What is z, and would we reject at α = 0.05?Answer

z = 0.15 / 0.15 = 1.0, p = 0.1587, which is above 0.05, so we do not reject

Harbor and Pine drops a supplier whose deliveries really do average 3.0 days. Which error was made, and what did it cost?Answer

a Type I error, which cost a good supplier and the switching expense

Fundamentals of hypothesis testing

30 minutes every month. No card.