SC2 - Type II errors and power
A test designed to avoid false alarms can also miss a real change. You will fix a decision rule using the null model, calculate its chance of missing a specified alternative, and find its power. The same event-based method works for Poisson, binomial and normal tests.
Fixing the rejection region
A 5% test looks for an increase from 6 faults per day. If the true mean becomes 10, how often will the test detect the increase? Before calculating that probability, fix what the test counts as a detection.
A Type II error occurs when the test does not reject although a value in the alternative is true. Its probability depends on the particular true alternative value. “The mean has increased” covers many possible means; a mean of 6.1 is usually harder to detect than a mean of 20. You cannot attach one Type II probability to every value in a composite alternative.
There are two separate stages. First design a critical region using the distribution under and the chosen significance level. Then keep that region fixed and change the distribution to the specified alternative when measuring its performance. A supplied rejection rule is already fixed: use it as given.
Worked example 1: designing the 5% rule
Question. For a Poisson count , test against at the 5% level. Find the upper-tail critical region and the non-rejection outcomes.
Plan. Use mean 6 to compare neighbouring upper tails.
Answer. Reject for ; do not reject for .
Check. Those two sets partition all non-negative integers, including the boundary 10 on the non-rejection side. The actual significance is about 4.26%.
Change only the nominal level. This produces a different designed test, rather than changing the rule merely because a different true mean is being considered.
Worked example 2: designing a more permissive rule
Question. Keep and , but use the 10% level. Find the critical region and the non-rejection outcomes.
Plan. Find the first upper tail at most 0.10 under the same null model.
Answer. Reject for ; do not reject for .
Check. The new rule includes every old rejection outcome and also 10. It can detect more increases, but under the null it also makes more false rejections.
A decision rule balances these risks. With the sample design and models fixed, enlarging a critical region increases or preserves both its Type I probability under and its detection probability under any given alternative. This follows directly because the old rejection set is contained in the new one.
Watch out
Find a critical boundary under . Do not recompute that boundary using the alternative mean when calculating Type II error: that would evaluate a different test.
Identify a new fixed rule before measuring its performance.
Type II probability under an alternative
Return to the 5% fault test, whose fixed rejection region is . If the true mean is 10, a Type II error means observing one of under . The set comes from the null-designed rule; its probability comes from the alternative model.
Type II error probability
For a fixed critical region and a specified true parameter in the alternative,
Sum or integrate over all non-rejection outcomes under that specified alternative. This definition is not separately printed in the formula booklet.
For an integer count, rejection at means non-rejection at . Rejection at means non-rejection at . Rejection at or , where , means non-rejection at . Do not discard zero when it is an allowed non-rejection outcome.
Worked example 3: missing a rise to ten
Question. A test of against an increase rejects when . Find its Type II error probability when the true mean is 10.
Plan. Keep non-rejection , but evaluate it using mean 10.
Answer. About , so this test misses that particular increase about 58.3% of the time.
Check. The complementary upper tail under the same alternative is . The two probabilities sum to 1. A false-negative probability can be much larger than the test's 5% significance level.
Keep the rejection region fixed and change only the specified true mean. This isolates how the size of the increase affects detection.
Worked example 4: missing a larger rise
Question. For the same rule , find the Type II error probability when the true mean is 12.
Plan. Evaluate the same non-rejection set under .
Answer. About , a smaller miss probability than at mean 10.
Check. Its complement is . A larger mean places more probability beyond this fixed upper boundary.
The same logic works for a decrease. If a test rejects for , then under a specified true Poisson mean 2 its Type II probability is , not the lower tail. For a two-sided rule rejecting at or , non-rejection is ; use under the specified alternative. Both endpoints follow from the original rule.
Watch out
Type II probability uses the alternative parameter and the non-rejection set. The null parameter gives Type I risk instead; the rejection set under the alternative gives detection rather than a miss.
Change both the context and the numerical values in your own calculation.
Power for Poisson, binomial and normal tests
A test's power at a specified alternative is its probability of detecting that alternative by rejecting . Rejection and non-rejection are complementary, so the two performance measures fit together exactly.
Power
For a fixed critical region , at a specified true alternative ,
Power lies between 0 and 1 and depends on the alternative, observation design and rule. This definition is not separately printed in the formula booklet.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account