Zum Inhalt springen

Lektion 14 · Uncertainty and Sampling

Probability and Risk

Read probabilities and risks: absolute versus relative risk, natural frequencies, base rates and test results, and why rare events still happen.

Most decisions involve things that may or may not happen: rain, a delayed flight, a product failure, a health outcome. Probability is a way of describing how likely something is, from 0 (impossible) to 1 (certain), often written as a percentage. This lesson focuses on reading risks in ways that people can understand.

What a probability means

Roughly speaking, a "30% chance of rain" means that in many situations like this one, it rains about 3 times in 10. It does not mean rain for 30% of the day. The exact definition of a forecast varies between weather services, so check yours. For a good forecaster, the days given "30%" should turn out rainy about 30% of the time. This property is called calibration.

A single outcome cannot prove a probability wrong. If something had a 10% chance and happened, that is not evidence the estimate was bad: events with 10% chances happen often.

Natural frequencies

People reason better with counts than with decimals. Instead of "a probability of 0.002", say "2 out of every 1,000 people". Use the same base for all numbers you compare, such as "out of 1,000".

Absolute and relative risk

Suppose a risk is 2 in 1,000 and a change raises it to 3 in 1,000.

2 to 3 in 1,000

Absolute change 1 more per 1,000
Relative change 50% higher

Both are true. Report both.

1 / 2
  • Absolute risk is the actual chance: 0.2% before, 0.3% after, a difference of 0.1 percentage points.
  • Relative risk compares them: 0.3 / 0.2 = 1.5, or "50% higher".

"50% higher risk" can sound frightening even when the absolute increase is tiny. The reverse is also true: a small relative increase of a very common risk can affect many people.

Python Absolute and relative risk

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The first case is +50% but only 1 extra per 1,000. The second is +10% yet 20 extra per 1,000.

Base rates and test results

A base rate is how common something is before you look at new evidence. Ignoring it leads to big errors. Imagine a screening test for a rare problem. These numbers are invented for teaching:

  • 1 in 100 items is faulty;
  • the test flags 90% of faulty items;
  • it also wrongly flags 5% of good items.

An item is flagged. How likely is it to be faulty? Many people guess about 90%. Count out of 10,000 items instead.

Flagged Not flagged Total
Faulty 90 10 100
Good 495 9,405 9,900
Total 585 9,415 10,000

Of 585 flagged items, only 90 are faulty: about 15%. Most flags are false alarms because good items are so much more numerous. The test is still useful: it narrows the search from 1 in 100 to about 15 in 100.

Python Change the base rate

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

As the problem becomes more common, a flag becomes much more believable, with the same test.

Independence and streaks

Two events are independent if one does not change the chance of the other. For a fair coin, five heads in a row do not make tails "due". The next flip is still 50%. Believing otherwise is the gambler's fallacy.

Many real events are not independent. If one machine fails because of a power surge, others may fail too. Multiplying probabilities as if events were independent can badly underestimate the chance that many things go wrong together.

Rare events happen

If something has a 1 in 1,000 daily chance for each person, then among 100,000 people you would expect about 100 cases a day. An event that is surprising for you may be routine somewhere. Coincidences are expected when there are many opportunities.

Expected value

The expected value is the long-run average of outcomes, weighted by their probabilities. A repair that costs 500 with a 4% chance has an expected cost of 20 per item. It helps with budgets, but it is not what happens to any single case, and it ignores how much a severe outcome might hurt you.

Present a risk well

When you need to explain a risk to others, a short structure helps:

  • State the base: "out of 1,000 people like you".
  • Give both situations: "about 2 now, about 3 with the change".
  • Give the difference: "1 more in 1,000".
  • Say the time period: a risk over one year differs a lot from a risk over a lifetime.
  • Name the uncertainty: "this estimate comes from a small study".

Also mention the other side of the choice. A change might raise one risk while lowering another, and readers need both to decide. A simple grid of 1,000 dots, with the affected ones colored and labeled, can show the scale better than a percentage. For health or financial risks, point people to a qualified professional who knows their situation.

Practice

Test yourself. A risk falls from 8 in 100 to 6 in 100. What are the absolute and relative changes? In a group of 1,000 people, 10 have a condition. A test finds 9 of them and wrongly flags 99 of the 990 others. What share of flagged people have it?

Answers: the absolute change is 2 fewer per 100, or 2 percentage points, and the relative change is a 25% reduction. In the test case, 9 + 99 = 108 people are flagged and only 9 have the condition, about 8%. Counting people makes this much easier than juggling percentages. It also shows why a flagged result usually needs a second, independent check before anyone acts on it.

Common mistakes: quoting a relative risk without the absolute risk; ignoring the base rate; believing that past coin flips change the next one; and multiplying probabilities of events that are linked.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. A risk rises from 1 in 10,000 to 2 in 10,000. Which is true?

    The relative change is 100%, but the absolute change is very small.
  2. 2. Why can most positive test results be false alarms when a condition is rare?

    The base rate determines how many true and false flags you get.
  3. 3. A fair coin lands heads six times in a row. What is the chance of heads next?

    Flips are independent, so earlier results do not change the next one.

Summary

  • A probability describes how often events happen in similar situations.
  • Natural frequencies with a shared base are easier to understand.
  • Report absolute and relative risk together.
  • The base rate strongly affects what a positive signal means.
  • Do not assume streaks are "due" or that linked events are independent.

Next: Sampling

Dein Fortschritt wird in diesem Browser gespeichert. Kein Konto nötig.