Doing the work · Base rate precision
When a test flags a firm, how likely is the problem to be real?
True and false flags, and the share of flags that are real, from a prevalence, a sensitivity and a specificity you enter, on hypothetical firms.
- True flags: firms flagged that have the problem · Bayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run40.0
- False flags: firms flagged that do not · Bayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run190.0
- Total flagged · Bayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run230.0
Arithmetic on the numbers entered, not a forecast.
| True flags | False flags | Total flagged | Precision | |
|---|---|---|---|---|
| 1% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run | 8.0 | 198.0 | 206.0 | 3.9% |
| 2% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run | 16.0 | 196.0 | 212.0 | 7.5% |
| 5% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run | 40.0 | 190.0 | 230.0 | 17.4% |
| 10% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run | 80.0 | 180.0 | 260.0 | 30.8% |
| 20% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run | 160.0 | 160.0 | 320.0 | 50.0% |
- True flags = N × p × sTrue flags = 1,000 × 5 ÷ 100 × 80 ÷ 100=40.0
- False flags = N × (1 − p) × (1 − c)False flags = 1,000 × (1 − 5 ÷ 100) × (1 − 80 ÷ 100)=190.0
- Precision = TP ÷ (TP + FP) × 100Precision = 40 ÷ (40 + 190) × 100=17.4%
Rounded for display; the result uses full precision.
Of 1,000 hypothetical firms with 5.0% prevalence, a test with 80% sensitivity and 80% specificity flags 40.0 true cases and 190.0 false ones, 230.0 flagged in total; precision is 17.4% (Bayes arithmetic on the entered rates). Pure arithmetic on hypothetical counts; no screen of real firms is run.
Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.
Used in these lessons
When it helps
Checking how many of a screen's flags are real when the problem it looks for is rare.
Reading the result
When a problem is rare, even a decent test flags more healthy firms than real cases, simply because there are so many more healthy firms to get wrong. Precision rises with prevalence, as the table shows. The counts are hypothetical: no screen of real firms is run.
Nothing you enter is saved or sent. Calculators earn no XP.