Basics of Probability
A classifier that says "70% chance this flat rents within a week" is speaking the language of probability. Before trusting such a number, you need to know what it means and how probabilities combine. This month the agency listed 20 flats and recorded two facts about each:
| Rented within a week | Took longer | Total | |
|---|---|---|---|
| Near the metro | 6 | 2 | 8 |
| Far from the metro | 6 | 6 | 12 |
| Total | 12 | 8 | 20 |
The rule
Count favourable over total; add for OR, subtract overlap; multiply for AND.
When every flat is equally likely to be picked, a probability is a count divided by a count.
- Single event: .
- Complement: .
- AND: , the one cell where both hold.
- OR: . The overlap is subtracted because the 6 near-and-fast flats were counted in both terms. Counting directly: 8 near plus the 6 far-and-fast flats makes 14 out of 20.
- Conditional: means "among near flats only". That is .
- Multiplication rule: . Check: .
Two events are independent when knowing one does not change the other: . Here but , so metro distance tells you something. That is exactly what makes it a useful feature. Only for independent events can you multiply the plain probabilities: two unrelated flats from different months, each with a 0.6 chance, both rent fast with probability .