BUS 110 · Business Math and Statistics for Accountants
Testing a Claim With Data
Set up null and alternative hypotheses, compute a test statistic and p-value, weigh two kinds of error and avoid reading too much into results.
Key takeaways
- A test starts by assuming the claim is true and asks how surprising the data would then be.
- The p-value is the chance of results at least this extreme if the null hypothesis holds.
- Rejecting a claim at a 5% level means accepting a 5% risk of a false alarm when the claim is true.
- Failing to reject is not proof that the claim is true.
- A statistically significant difference can be too small to matter in dollars.
A software salesperson tells Jamal that with her product, his team will process a supplier invoice in 12 minutes on average. Jamal runs the payables desk at a garden supply company. He tries the product on 64 invoices. The average comes out to 12.9 minutes.
Is the claim false? Nine tenths of a minute is not much. Any 64 invoices would give an average a bit above or below the long-run figure just by luck. So the real question is sharper: is 12.9 further from 12 than luck would easily explain?
Hypothesis testing is a disciplined way to answer that. It does for claims what a scale does for a bag of flour: it replaces "seems off to me" with a measurement.
Two competing statements
The null hypothesis, written H₀, is the starting assumption, usually "nothing unusual here" or "the claim is correct." The alternative hypothesis, H₁, is what you would conclude if the evidence against H₀ were strong.
For Jamal:
- H₀: the true mean processing time is 12 minutes.
- H₁: the true mean is not 12 minutes.
The setup resembles a courtroom in one way. The starting presumption stays unless the evidence is strong enough to overturn it.
Decide on these statements, and on how strong "strong enough" is, before looking at the results. The cutoff is the significance level, written α (alpha). A common choice is 0.05.
Worked example: Jamal's 64 invoices
The sample of 64 invoices has a mean of 12.9 minutes and a standard deviation of 3.2 minutes. The standard error, from sampling and confidence intervals, is
SE = 3.2 ÷ √64 = 3.2 ÷ 8 = 0.4 minutes
Now ask how many standard errors separate the result from the claim. This is the test statistic.
z = (sample mean − claimed mean) ÷ SE
= (12.9 − 12) ÷ 0.4
= 2.25 If the claim were true, the sample means would form a bell centered at 12. A result 2.25 standard errors away is unusual. How unusual? From the normal distribution, the share below z = 2.25 is about 0.9878. So about 0.0122 lies above it.
Our alternative says "not equal," so a result just as far below 12 would also count against the claim. Add both tails.
p-value ≈ 2 × 0.0122 = 0.024
The two shaded tails, beyond 2.25 standard errors on either side, together hold about 2.4% of sample means.
Since 0.024 is below 0.05, Jamal rejects H₀. The data are hard to square with a true mean of 12 minutes. Had he chosen α = 0.01 beforehand, 0.024 would not clear the bar, and he would not reject.
What the p-value says, and what it does not
The p-value is the probability of getting a result at least as extreme as yours, assuming the null hypothesis is true.
It is not the probability that the claim is true. It is not the probability that your result "happened by chance." And 1 − p is not the probability that the alternative is correct. This is the same swap of conditions that causes the base rate trap in probability basics.
A confidence interval tells the same story with more detail. Jamal's 95% interval is 12.9 ± 1.96 × 0.4, or about 12.12 to 13.68 minutes. The claimed 12 lies just outside, which agrees with rejecting at 0.05. The interval also shows the likely size of the gap: somewhere between a few seconds and under two minutes.
One tail or two?
If Jamal only cared whether the product is slower than claimed, he could set H₁: mean greater than 12. Only the upper tail then counts, and the p-value is about 0.012.
That is a legitimate choice if it is made in advance and a faster result truly would lead to the same action as 12. Switching to one tail after seeing the data, to squeeze under 0.05, is cheating.
Two ways to be wrong
Any decision from a sample can miss.
| H₀ is actually true | H₀ is actually false | |
|---|---|---|
| Reject H₀ | Type I error (false alarm) | Correct |
| Do not reject H₀ | Correct | Type II error (miss) |
A Type I error rejects a true claim. Its chance, when H₀ is true, is α. A Type II error fails to catch a false claim. Its chance is often written β (beta). The ability to detect a real difference, 1 − β, is called power.
For a given sample, lowering α raises β. Fewer false alarms means more misses. A larger sample is the main way to reduce both. Which error is worse depends on stakes. Rejecting a good vendor may cost a little. Missing a serious misstatement in financial records may cost a great deal.
A test about a rate
A vendor claims its scanning service has an error rate of 4%. Jamal samples 400 scanned documents at random and finds 26 errors, a rate of 6.5%. He cares only whether the rate is worse than claimed.
H0: rate = 0.04 H1: rate > 0.04
SE (using the claimed rate) = √(0.04 × 0.96 ÷ 400) ≈ 0.0098
z = (0.065 − 0.04) ÷ 0.0098 ≈ 2.55
one-tail p ≈ 0.005 The p-value is well below 0.05. The evidence strongly suggests an error rate above 4%.
Comparing two groups
Often there is no claimed number at all, only two things to compare. Jamal's team splits incoming invoices at random: half go through the old process and half through the new software. Random splitting matters. If the new tool got all the simple invoices, it would look brilliant for the wrong reason.
Suppose 100 invoices go each way (a fresh, invented trial). The old process averages 14.0 minutes with a standard deviation of 3. The new one averages 13.0 minutes with a standard deviation of 4.
H₀ says the true means are equal. For two independent samples, the variances of the two means add.
SE of difference = √(3² ÷ 100 + 4² ÷ 100)
= √(0.09 + 0.16) = √0.25 = 0.5
z = (14.0 − 13.0) ÷ 0.5 = 2.0
two-sided p ≈ 0.046 At α = 0.05, the team rejects the idea of no difference. The estimated saving is one minute per invoice, with a 95% interval of about 1.0 ± 0.98, or 0.02 to 1.98 minutes. That interval is wide. The saving might be nearly nothing or nearly two minutes. "Significant" and "precisely known" are different things.
With small samples, analysts use a t-test, which follows the same logic but allows for extra uncertainty in the standard deviation. Software handles the arithmetic. Your job is to ask a sensible question and feed it fair data.
Significant is not the same as important
Statistically significant only means "hard to explain by sampling luck." With a huge sample, a trivial gap can be significant. If Jamal timed 100,000 invoices and found a mean of 12.05 minutes, the difference might pass the test while amounting to 3 seconds per invoice.
So ask two questions. Is the difference real? Is it big enough to change what we do? Translate it into dollars. At 0.9 extra minutes on 20,000 invoices a year, that is 18,000 minutes, or 300 hours. At a made-up wage cost of $30 an hour, it is $9,000 a year. That number belongs in the conversation with the vendor.
The common mistake: fishing until something bites
Suppose someone tests 20 unrelated claims that are all true, each at α = 0.05. The chance of at least one false alarm is
1 − 0.95²⁰ ≈ 0.64
Run enough tests and something will look significant. Trying many cuts of the data and reporting only the winner is often called p-hacking. Guard against it by writing the question down first, reporting every test you ran and confirming surprising findings with fresh data.
A second mistake is saying "we proved the claim" after failing to reject. A sample of five invoices would rarely reject anything. The honest wording is "we did not find enough evidence against it."
Finally, a test cannot repair bad sampling. If the 64 invoices were the easiest ones, the p-value is decoration. In auditing, results like these feed into judgment alongside other evidence, as in analytical procedures.
Back at the payables desk
So what should Jamal tell his manager? Something like this: "The vendor claimed 12 minutes. We timed 64 randomly chosen invoices and averaged 12.9. If the claim were true, a gap this large in either direction would show up only about 2% of the time. Our 95% interval runs from about 12.1 to 13.7 minutes."
Then he should add the business side. The product may still be a big improvement over what the team does today, even though it misses the sales pitch. The test answered one question, whether 12 minutes is believable. Whether to buy depends on the current processing time, the price and the hassle of switching. Jamal can also ask the vendor whether his invoices differ from the ones behind the claim, perhaps because many arrive as crumpled paper.
Words to know
Null hypothesis the starting assumption that a test tries to find evidence against.
Alternative hypothesis the statement accepted if the null is rejected.
Significance level the false-alarm risk chosen before testing, often 0.05.
p-value the chance of results at least as extreme as those seen, if the null is true.
Type I error rejecting a null hypothesis that is true.
Type II error failing to reject a null hypothesis that is false.
Power the chance a test detects a real difference of a given size.
Check yourself
- A claim says mean weight is 20 pounds. State H₀ and a two-sided H₁.
- A sample of 100 has a mean of 20.6 and a standard deviation of 3. Find the standard error and test statistic against 20.
- For the test in question 2, the two-sided p-value is about 0.046. What do you decide at α = 0.05 and at α = 0.01?
- Which type of error is rejecting a vendor whose claim was actually true?
- Why does "not rejected" fail to prove a claim?
- Why should a manager look at dollar impact even when a result is statistically significant?
Show the answers
- H₀: mean = 20 pounds; H₁: mean ≠ 20 pounds.
- SE = 3 ÷ √100 = 0.3, and z = (20.6 − 20) ÷ 0.3 = 2.0.
- Reject at 0.05 because 0.046 is below it, and do not reject at 0.01 because 0.046 is above it.
- A Type I error, a false alarm.
- The sample may be too small or noisy to detect a real difference, so absence of strong evidence is not evidence of truth.
- Large samples can flag tiny gaps that make no practical difference, so size in dollars decides whether action is worthwhile.