Skip to content

The t test for a mean

Carry out a one-sample t test that a store's mean transaction differs from $50, two-tailed and one-tailed, with the test statistic, p-value and conclusion in context, and read the matching Excel output.

It opens on

A store claims its mean transaction is $50, but 10 recent transactions average $54.80. Is that strong evidence the mean differs from $50, or likely just chance variation?

Why it matters

Managers rarely know σ, and with a small sample the t test is the standard way to judge whether a claimed average, such as a typical sale, still holds.

Good to know first

  • hypotheses and p-value

Step by step

  1. The two-tailed t test

    Compute t and the two-tailed p-value for the $50 claim and decide at α = 0.05.

    The test statistic is t = (x̄ − μ₀) / (s / √n) = (54.80 − 50) / 1.576 = 3.05, with n − 1 = 9 degrees of freedom.

    t = 4.80 / 1.576 = 3.05

    A common mix-up

    The sample mean $54.80 is more than $50, so the test must reject.

    In fact: With few observations, a gap can be chance; the t test asks whether the gap is large compared with the standard error.

  2. The critical value and Excel output

    Use the critical t and read an Excel-style output table, and connect the test to a 95% confidence interval.

    A common mix-up

    The p-value of 0.0139 means a 1.39% chance that the store's claim is true.

    In fact: It is the chance of a sample this extreme if the claim is true, not the chance the claim is true.

  3. One-tailed tests and the conclusion in context

    Run the one-tailed test Hₐ: μ > 50, compare it with the two-tailed result, and write the conclusion in context.

    The t statistic is the same, 3.0453. The p-value counts only the upper tail, P(T ≥ 3.0453) = 0.0069, half of 0.0139.

    p-value = 0.0069

    A common mix-up

    Use a one-tailed test whenever the sample mean is on one side, because the p-value is smaller.

    In fact: The direction of Hₐ must come from the question before the data, or the false alarm rate is doubled.

Try it

A sample of 16 has mean 24 and s = 6. Test H₀: μ = 21 and find t.Answer

SE = 1.5 and t = 2.0 with 15 degrees of freedom

Hint: t = (x̄ − μ₀) / (s / √n)

An Excel table shows t Stat 1.20, P(T<=t) two-tail 0.26, t Critical two-tail 2.14. State the conclusion at α = 0.05.Answer

Fail to reject H₀, since 0.26 is above 0.05; there is not enough evidence that the mean differs from the claim

Hint: Compare p with α

A one-tailed test of Hₐ: μ > 40 gives p = 0.03 at α = 0.05. Write the conclusion in context for a delivery time.Answer

Reject H₀; there is convincing evidence at the 5% level that the mean delivery time is above 40 hours

Hint: Say what it means for deliveries

Another 10 transactions give t = 1.50 with 9 degrees of freedom and p = 0.168. Do we reject at α = 0.05?Answer

No, since 0.168 is above 0.05

A different claim says the mean is $52. Is 52 inside the interval, and would the two-tailed test reject it at α = 0.05?Answer

Yes, 52 is inside, so the test does not reject

The t test for a mean

30 minutes every month. No card.