Type I and Type II Errors
The two ways any yes/no test can be wrong, a false alarm (type I) and a miss (type II), why you cannot make both small at once without more data, and how to reason about the trade-off in plain numbers.
Prerequisites: Hypothesis Testing
Any test that answers "is this real, or is it just noise?" can be wrong in exactly two ways. It can raise a false alarm, shouting "real!" when nothing is there. Or it can miss, staying quiet when something real is happening. Statisticians give these two mistakes deliberately dull names, type I and type II, but the ideas are simple, and keeping them straight is the single most tested piece of statistics in a quant interview.
Every test starts from a skeptical default, the null hypothesis : "there is no effect" (this coin is fair, this signal has no edge). The rival claim is the alternative : "there is an effect." You look at the data and either reject the null or don't. Cross that decision with what's actually true and you get four boxes, two right and two wrong.
| is true (no effect) | is true (real effect) | |
|---|---|---|
| Reject | Type I error — false alarm | correct — you caught it |
| Don't reject | correct — quiet rightly | Type II error — a miss |
The type I error rate is called (alpha): the chance of a false alarm when nothing is really there. The type II error rate is called (beta): the chance of missing a real effect. The flip side of a miss is the power of the test, , the chance you do catch a real effect. You choose up front, usually 5%, and then try to make as small as you can.
Why you can't shrink both at once
Look at the dashed cutoff. Move it right to shrink the red region, and the amber region swells, you're now so cautious you miss real effects. Move it left to catch more real effects and the false-alarm area balloons. With a fixed amount of data, tightening one error loosens the other. The only way to shrink both is to pull the two curves apart or make them skinnier, and the honest way to make them skinnier is to collect more data. Each curve's width is a sampling distribution, and its spread falls as you gather more observations.
With a fixed sample you cannot shrink both errors at once, sliding the cutoff trades (false alarms) against (misses). The only lever that shrinks both is more data, which narrows each curve at the rate.
Worked example: testing a coin with 100 flips
You suspect a coin is biased toward heads. : it's fair, . : it's loaded, . You flip it times and will call it biased if you see enough heads.
Under the number of heads is centered at with a standard deviation of . For a one-sided 5% test you reject when heads exceed . That threshold defines : a fair coin lands above 58 heads about 5% of the time, and each of those is a false alarm.
Now the miss rate. If the coin really is loaded (), heads are centered at with standard deviation . You fail to reject when heads come in below 58:
So even with a real 10-percentage-point bias, you'd miss it about a third of the time. The power is only . Bump the sample to and the same math gives , power . Four times the data crushes the miss rate. That lever, not cleverness, is what buys you a reliable test.
Common pitfalls
- Swapping the two. Type I is the false alarm (, "crying wolf"); type II is the miss (, "wolf slips by"). Mixing them up is an instant tell in an interview. A useful anchor: type I rejects a true null.
- Treating "didn't reject" as "no effect." A miss is common when data are short and effects are small, exactly the case in finance. Failing to reject usually means underpowered, not nothing there. See Hypothesis Testing.
- Forgetting power entirely. People obsess over and never ask about . A test with 5% false alarms but only 30% power will overlook most real signals; report power, not just significance.
- Running many tests. Each test at is a fresh chance at a false alarm. Screen 100 dead signals and you'll "discover" about 5 by luck alone. See p-values and Multiple Testing.
Don't read "failed to reject " as "no effect", with the short samples and small effects typical of finance you are usually just underpowered. And never swap the two: type I rejects a true null (crying wolf), type II misses a real effect.
The one-sentence version: is how often you fool yourself into seeing something that isn't there, is how often you overlook something that is, and the only free lunch that shrinks both is more data.
Related concepts
Practice in interviews
Further reading
- Casella & Berger, Statistical Inference (Ch. 8)
- Wasserman, All of Statistics (Ch. 10)