Skip to content

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.

Inputs

No lesson works an example for this tool, so it opens on round starting values. The tool suggests no number: enter your own.

Precision: share of flagged firms that have the problem17.4%Bayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run
  • 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.

The same test at other prevalences, 1,000 hypothetical firms
True flagsFalse flagsTotal flaggedPrecision
1% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run8.0198.0206.03.9%
2% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run16.0196.0212.07.5%
5% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run40.0190.0230.017.4%
10% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run80.0180.0260.030.8%
20% prevalenceBayes arithmetic on the entered rates and a hypothetical population; no screen of real firms is run160.0160.0320.050.0%

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.