Probability & Statistics · Lecture 1 of 5

Probability theory

What can happen, and how should information change what we believe?

1 Describe2 Condition3 Learn

B A Ω
  1. 1Probability theoryWhat can happen, and how does information change it?
  2. 2Data, variables & momentsHow do measurements vary?
  3. 3StatisticsWhat can one sample tell us about a population?
  4. 4Time seriesWhat changes when observations depend on their past?
  5. 5Causal inferenceWhich comparison identifies an effect?

Developed from Ian Crawford’s lecture material. Notes, slides and PDF: fatih.ai/probabilityandstatistics

Opening question

A cyclist tests positive. How likely is it that the cyclist uses EPO?

A hypothetical cycling population and an imperfect test:

15%15\%of cyclists use EPO
90%90\%of users test positive
12%12\%of non-users also test positive

Your estimateVote now and keep your answer. Part 3 calculates it.

A≈90%\approx90\%
B≈57%\approx57\%
C≈15%\approx15\%

Why start here

Economists read signals backwards all the time: a test result, a credit score, a qualification. Today builds the rules that make that reading exact.

Lecture 1 · Probability theory2 / 25

Lecture 1 · The route

Describe uncertainty, condition on information, learn from evidence

Part 1

Describe: events and their probabilities

What exactly could happen, and how do we give events probabilities that are consistent with one another?

sample spaceeventaxiomsunion rule

Notes 1.1

Part 2

Condition: how information changes a probability

When we learn that one event has happened, how should the probability of another change?

conditional probabilityproduct ruletotal probability

Notes 1.2

Part 3

Learn: independence and Bayes’ rule

When does information leave a probability unchanged, and how should evidence change what we believe?

independenceBayes’ rulepriorposteriorbase rate

Notes 1.3

By the end of this lecture you can

  • Write the sample space and events for an experiment, and derive the complement and union rules from the axioms.
  • Calculate a conditional probability as a share within the information event, keeping track of which way it runs.
  • Combine group rates by total probability, and check whether two events are independent.
  • Update a prior with Bayes’ rule, and explain why a positive EPO test means about 57%57\%, not 90%90\%.
Lecture 1 · Probability theory3 / 25

Part 1 of 3

Describe: events and their probabilities

What exactly could happen, and how do we give events probabilities that are consistent with one another?

Key terms

sample spaceeventaxiomsunion rule

Notes 1.1 ↗

Why it matters

Every economic question about risk, from becoming unemployed to a loan default, starts by stating exactly which outcome is uncertain. The axioms keep the probabilities we attach consistent with one another, whatever the weights.

In this part

  1. 1.1.1–3Outcomes, events and set operations
  2. 1.1.4The axioms and the complement rule
  3. 1.1.5The union rule
  4. ▶Animation: where each term of the union rule comes from
Lecture 1 · Probability theory4 / 25

1.1.1–3Outcomes and events

Events are sets of outcomes, so “not”, “and”, “or” are set operations

Definition

Sample space and events

An outcome ω\omega is one possible result; the sample space Ω\Omega collects them all. An event A⊆ΩA\subseteq\Omega is the set of outcomes that make a statement true.

StatementEventOne die: BB even, CC prime
not BBBcB^c{1,3,5}\{1,3,5\}
BB and CCB∩CB\cap C{2}\{2\}
BB or CCB∪CB\cup C{2,3,4,5,6}\{2,3,4,5,6\}

“Or” is inclusive. Events are disjoint when A∩B=∅.A\cap B=\varnothing\text{.}

A picture of “and”, “or” and “not”

The six die outcomes placed inside the even and prime events
BB
CC
Ω\Omega
11
22
33
44
55
66
The left oval is the even event BB; the right oval is the prime event CC. Only 22 lies in both. The union contains every labelled outcome except 11. The complement of even contains 1,3,51,3,5. Oval areas do not encode probabilities: the labelled outcomes determine membership.

1.1.4The axioms

Three axioms fix how probabilities combine, not what they are

Definition

The axioms of probability

  1. P(A)≥0P(A)\ge0 for every event: no negative mass.
  2. P(Ω)=1:P(\Omega)=1\text{:} the total is fixed.
  3. Disjoint events add: P(⋃iAi)=∑iP(Ai)P\bigl(\bigcup_i A_i\bigr)=\sum_i P(A_i) for pairwise disjoint Ai.A_i\text{.}

Worked example a fair and a loaded die

Fair: P(even)=3×16=12.P(\text{even})=3\times\tfrac16=\tfrac12\text{.} Loaded, 0.10.1 on faces 1–5 and 0.50.5 on face 6: P(even)=0.1+0.1+0.5=0.7.P(\text{even})=0.1+0.1+0.5=0.7\text{.} Both satisfy the axioms.

Key formula Result (1)

Complement rule

P(Ac)=1−P(A)P(A^c)=1-P(A)

In words AA and AcA^c are disjoint and fill Ω,\Omega\text{,} so their probabilities add to 1.1\text{.}

Common mistake

Probability zero is not impossibility: one exact bulb lifetime can have probability 00 without being impossible.

1.1.5Adding probabilities

Adding two events counts their overlap twice

Key formula Result (2)

Union rule

P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)

In words add both, then remove the overlap counted twice.

Needs any two events; when they are disjoint the last term is zero.

Disjointness lets you add; overlap must be subtracted once.

Check

Fair die, BB even, CC prime. What is P(B∪C)P(B\cup C)?

Answer

36+36−16=56.\tfrac36+\tfrac36-\tfrac16=\tfrac56\text{.} The plain sum, 1,1\text{,} counts the face 22 twice.

Final frame: in a unit square, A and B are drawn to scale and their union is outlined. Beside them, P(A ∪ B) = P(A) + P(B) − P(A ∩ B), with 0.35 = 0.25 + 0.15 − 0.05 underneath.

Before it plays Play to see each term of P(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B) come from the picture. The areas are drawn to scale, so every probability is an area.

Part 2 of 3

Condition: how information changes a probability

When we learn that one event has happened, how should the probability of another change?

Key terms

conditional probabilityproduct ruletotal probability

Notes 1.2 ↗

So far a model (Ω,F,P)(\Omega,\mathcal F,P), three axioms, and the complement and union rules.

Why it matters

Economic information usually arrives as rates within groups: defect rates per production line, unemployment among graduates, default among borrowers with a given score. Answering the question asked needs the right reference group, and recombining groups needs their sizes as weights.

In this part

  1. 1.2.1Two children: information and the reference group
  2. 1.2.2Conditional probability: restrict, then rescale
  3. ▶Animation: why conditioning divides by the probability of the information
  4. 1.2.3Reversing the condition
  5. 1.2.4Total probability: a weighted average of group rates
  6. ▶Animation: total probability as a weighted average
Lecture 1 · Probability theory9 / 25

1.2.1Information changes the question

Learning something changes the group in which we calculate

Two children, each a boy or a girl with probability 12,\tfrac12\text{,} independently, older child first:

Ω={(b,b),(b,g),(g,b),(g,g)}\Omega=\{(b,b),(b,g),(g,b),(g,g)\}

Each family has probability 14.\tfrac14\text{.} Let AA be “two boys” and BB “at least one boy”.

Predict first

We learn that BB is true. Are two boys now more or less likely than 14\tfrac14?

Answer

More: (g,g)(g,g) is ruled out, so three equally likely families remain and P(A∣B)=13.P(A\mid B)=\tfrac13\text{.}

No family changes. What changes is the group in which we calculate the share.

1.2.2The definition

Conditional probability: restrict to B, then rescale B to one

Key formula Definition (3)

Conditional probability

P(A∣B)=P(A∩B)P(B)P(A\mid B)=\frac{P(A\cap B)}{P(B)}

In words the share of BB that also lies in A:A\text{:} conditional probability.

Needs P(B)>0.P(B)>0\text{.}

  1. Restrict to B:B\text{:} only A∩BA\cap B survives.
  2. Rescale by 1/P(B):1/P(B)\text{:} the new total is 1.1\text{.}

Key formula Identity (4)

Product rule

P(A∩B)=P(A∣B) P(B)P(A\cap B)=P(A\mid B)\,P(B)

In words the definition turned around: a share of a share.

Worked example

P(B)=0.6P(B)=0.6 and P(A∩B)=0.1,P(A\cap B)=0.1\text{,} so

P(A∣B)=0.10.6=16,P(Ac∣B)=56.P(A\mid B)=\frac{0.1}{0.6}=\frac16,\qquad P(A^c\mid B)=\frac56.
Final frame: the unit square with B as the bottom band, of probability 0.6, and A as the left part of each band; the overlap has probability 0.1. Beside it, P(A | B) = P(A ∩ B)/P(B) = 0.1/0.6 = 1/6, and the product rule P(A ∩ B) = P(A | B)P(B) = 1/6 × 0.6 = 0.1.

Before it plays Before playing, predict: when BB is stretched to fill the whole square, what share of it will the overlap fill?

1.2.3Direction matters

Reversing the condition changes the denominator

100 hypothetical cases
BBBcB^cTotal
AA101010102020
AcA^c505030308080
Total60604040100100

Within column B:B\text{:} P(A∣B)=10/60=16P(A\mid B)=10/60=\tfrac16
Within row A:A\text{:} P(B∣A)=10/20=12P(B\mid A)=10/20=\tfrac12

Common mistake

Treating P(A∣B)P(A\mid B) and P(B∣A)P(B\mid A) as the same number. They share a numerator, P(A∩B),P(A\cap B)\text{,} but divide by different groups.

Reading claims

“Most students are Democrats” does not say that most Democrats are students. Read the condition first: it names the group you divide by.

1.2.4Recovering the whole

Total probability weights each group’s rate by the group’s size

Key formula Result (5)

Law of total probability

P(A)=∑iP(A∣Bi) P(Bi)P(A)=\sum_i P(A\mid B_i)\,P(B_i)

In words each group’s rate times its share, added over the groups.

Needs groups BiB_i that cover Ω\Omega without overlap (a partition), each P(Bi)>0.P(B_i)>0\text{.}

Worked example the 100 cases

P(A)=16(0.6)+14(0.4)=0.1+0.1=0.2P(A)=\tfrac16(0.6)+\tfrac14(0.4)=0.1+0.1=0.2

Check

Line 1 makes 40%40\% of items with defect rate 0.05;0.05\text{;} line 2 makes 60%60\% with rate 0.10.0.10\text{.} What share of all items is defective?

Answer

0.05(0.4)+0.10(0.6)=0.02+0.06=0.08.0.05(0.4)+0.10(0.6)=0.02+0.06=0.08\text{.} The plain average, 0.075,0.075\text{,} would treat the lines as equal in size.

Final frame: the unit square split into B (0.6) and B complement (0.4). Inside each group, A takes a width equal to its rate, 1/6 and 1/4, so each piece has area 0.1. Beside it, P(A) = 1/6 × 0.6 + 1/4 × 0.4 = 0.1 + 0.1 = 0.2; averaging the rates would give about 0.208.

Before it plays Before playing, predict: is P(A)P(A) the plain average of the two group rates, 1/61/6 and 1/41/4?

Part 3 of 3

Learn: independence and Bayes’ rule

When does information leave a probability unchanged, and how should evidence change what we believe?

Key terms

independenceBayes’ rulepriorposteriorbase rate

Notes 1.3 ↗

So far conditioning restricts to the information event and rescales it; total probability weights group rates by group sizes.

Why it matters

Decisions rest on imperfect signals read backwards: a positive drug test, a credit score, rare evidence in court. Bayes’ rule makes the reversal exact, and independence says when information is irrelevant and when probabilities may be multiplied.

In this part

  1. 1.3.1Independence: an unchanged share
  2. ▶Animation: independence as an unchanged share
  3. 1.3.2Bayes’ rule: one joint probability, two directions
  4. 1.3.3The EPO test, step by step
  5. ▶Animation: every number in the posterior
  6. 1.3.4–5Base rates and the Sally Clark case
Lecture 1 · Probability theory16 / 25

1.3.1Independence

Independent events: learning B leaves the probability of A unchanged

Key formula Definition (6)

Independence

P(A∩B)=P(A) P(B)P(A\cap B)=P(A)\,P(B)

In words equivalently P(A∣B)=P(A):P(A\mid B)=P(A)\text{:} the share of AA inside BB equals its share overall.

Needs the equivalent form needs P(B)>0.P(B)>0\text{.}

Independence is a fact about overlap, checked by comparing probabilities.

Worked example

P(A)=0.30P(A)=0.30 and P(B)=0.40.P(B)=0.40\text{.} Independence needs P(A∩B)=0.30×0.40=0.12,P(A\cap B)=0.30\times0.40=0.12\text{,} and then

P(A∣B)=0.120.40=0.30=P(A).P(A\mid B)=\frac{0.12}{0.40}=0.30=P(A).

Common mistake

Disjoint is not independent. If A∩B=∅A\cap B=\varnothing and both have positive probability, learning BB rules AA out: P(A∣B)=0≠P(A)P(A\mid B)=0\ne P(A).

Final frame: B as the bottom band (0.4) and A taking 0.3 of the width both inside and above B, so their overlap is 0.12. Beside it, P(A | B) = 0.12/0.4 = 0.3, the cases of more overlap (P(A | B) = 0.5) and none (P(A | B) = 0), and the boxed result P(A ∩ B) = P(A)P(B) = 0.3 × 0.4 = 0.12.

Before it plays Before playing, predict: if AA and BB did not overlap at all, would they be independent?

1.3.2Reversing a condition

Bayes’ rule rebuilds the reverse condition from the known one

Key formula Result (7)

Bayes’ rule

P(H∣E)=P(E∣H) P(H)P(E)P(H\mid E)=\frac{P(E\mid H)\,P(H)}{P(E)}

In words write P(H∩E)P(H\cap E) both ways with (4), equate, divide by P(E).P(E)\text{.}

Needs P(E)>0;P(E)>0\text{;} the denominator comes from (5).

Definition

Prior, likelihood, posterior

Prior P(H):P(H)\text{:} before the evidence.
Likelihood P(E∣H):P(E\mid H)\text{:} how readily HH produces E.E\text{.}
Posterior P(H∣E):P(H\mid E)\text{:} after the evidence.

Evidence favours HH only if it is more likely under HH than under the alternatives.

1.3.3Worked example

A positive test: count both routes to a positive result

D:D\text{:} uses EPO, P(D)=0.15.P(D)=0.15\text{.} +:+\text{:} positive test, with P(+∣D)=0.90P(+\mid D)=0.90 and P(+∣Dc)=0.12.P(+\mid D^c)=0.12\text{.}

Worked example

  1. Users who test positive: 0.90×0.15=0.1350.90\times0.15=0.135
  2. Non-users who test positive: 0.12×0.85=0.1020.12\times0.85=0.102
  3. All positives, by (5): 0.135+0.102=0.2370.135+0.102=0.237
  4. By (7): P(D∣+)=0.135/0.237≈0.57P(D\mid +)=0.135/0.237\approx0.57
In 1,000 hypothetical cyclists
++−-Total
Users1351351515150150
Non-users102102748748850850
Total2372377637631,0001{,}000

Row of users: 135/150=0.90.135/150=0.90\text{.}
Column of positives: 135/237≈0.57.135/237\approx0.57\text{.}

0.900.90 starts with users; 0.570.57 starts with positive tests.

Final frame: the 237 positive tests from a hypothetical group of 1,000 cyclists gathered into one bar, 135 from EPO users and 102 from non-users. Beside it, P(D | +) = 135/(135 + 102) ≈ 0.57, which is not the same as P(+ | D) = 135/150 = 0.90.

Before it plays Before playing, guess roughly what share of positive tests come from EPO users. The animation then traces every count in a hypothetical group of 1,0001{,}000 cyclists.

1.3.4–5Evidence and assumptions

Rare evidence is not a small posterior: base rates and assumptions decide

Definition

Base rate

The prior share of a condition in the population. With only 1%1\% users, the same test gives 0.01(0.90)0.01(0.90)+0.99(0.12)≈7%.\dfrac{0.01(0.90)}{0.01(0.90)+0.99(0.12)}\approx7\%\text{.}

Worked example the Sally Clark case

An argument squared a single-death frequency of sudden infant death: (1/8,500)2=1/72,250,000.(1/8{,}500)^2=1/72{,}250{,}000\text{.}

Two separate errors

  1. Unsupported independence. Squaring needs P(S2∣S1)=P(S2)P(S_2\mid S_1)=P(S_2); a shared family risk makes it larger.
  2. The prosecutor’s fallacy. A small P(E∣H)P(E\mid H) is not a small P(H∣E):P(H\mid E)\text{:} rival explanations must be compared, with their priors.

Why economists care

The same logic governs screening, fraud detection and credit scoring: a signal’s meaning depends on how common each type is.

Review · How the ideas connect

One model, three moves: add, condition, reverse

Part 1 · Describe

Part 2 · Condition

Part 3 · Learn

assign weightsderive
Outcomes Ω,\Omega\text{,} events A⊆ΩA\subseteq\Omega
Axioms of probability
Complement and union rules (1) (2)
rescale to 1restrict to Bturn aroundadd over groups
Information: BB occurred
Conditional probability (3)
Product rule (4)
Total probability (5)
no changeboth directionsdenominatorupdate
Independence (6): P(A∣B)=P(A)P(A\mid B)=P(A)
Bayes’ rule (7)
Prior →\to posterior: the EPO test
Lecture 1 · Probability theory23 / 25

Review · Summary sheet

What to take away: the terms and the seven formulas

Key terms

1 Describe

outcome ω:\omega\text{:} one possible result.

sample space Ω:\Omega\text{:} the set of all outcomes the model considers.

event A⊆Ω:A\subseteq\Omega\text{:} the outcomes that make a statement true.

disjoint A∩B=∅:A\cap B=\varnothing\text{:} no outcome in both.

The axioms of probability nonnegativity, P(Ω)=1,P(\Omega)=1\text{,} and disjoint events add.

2 Condition

conditional probability P(A∣B):P(A\mid B)\text{:} the probability of AA within the information event B.B\text{.}

partition disjoint groups BiB_i that together cover Ω.\Omega\text{.}

3 Learn

Independence P(A∩B)=P(A)P(B):P(A\cap B)=P(A)P(B)\text{:} learning one event leaves the other’s probability unchanged.

Prior P(H):P(H)\text{:} belief in a hypothesis before the evidence.

Likelihood P(E∣H):P(E\mid H)\text{:} how readily HH produces the evidence.

Posterior P(H∣E):P(H\mid E)\text{:} belief after the evidence.

Base rate the prior share of a condition in the population tested.

Key formulas

1 Describe

(1)Complement rule ResultP(Ac)=1−P(A)P(A^c)=1-P(A)
(2)Union rule ResultP(A∪B)=P(A)+P(B)−P(A∩B)P(A\cup B)=P(A)+P(B)-P(A\cap B)any two events

2 Condition

(3)Conditional probability DefinitionP(A∣B)=P(A∩B)/P(B)P(A\mid B)=P(A\cap B)/P(B)P(B)>0.P(B)>0\text{.}
(4)Product rule IdentityP(A∩B)=P(A∣B) P(B)P(A\cap B)=P(A\mid B)\,P(B)
(5)Law of total probability ResultP(A)=∑iP(A∣Bi) P(Bi)P(A)=\sum_i P(A\mid B_i)\,P(B_i)a partition B1,B2,…B_1,B_2,\dots with each P(Bi)>0P(B_i)>0

3 Learn

(6)Independence DefinitionP(A∩B)=P(A) P(B)P(A\cap B)=P(A)\,P(B)the definition; equivalently P(A∣B)=P(A)P(A\mid B)=P(A) if P(B)>0P(B)>0
(7)Bayes’ rule ResultP(H∣E)=P(E∣H) P(H)/P(E)P(H\mid E)=P(E\mid H)\,P(H)/P(E)P(E)>0,P(E)>0\text{,} with P(E)P(E) from (5)
Lecture 1 · Probability theory24 / 25

Review · Back to the opening question

The cyclist: about 57%, not 90%

Result the opening question

0.900.90 is P(+∣D):P(+\mid D)\text{:} it starts with users. We wanted the reverse, which starts with positive tests:

P(D∣+)=0.1350.237=4579≈0.57P(D\mid +)=\frac{0.135}{0.237}=\frac{45}{79}\approx0.57

The test moved the probability from 15%15\% to about 57%:57\%\text{:} strong evidence, far from certainty.

Remember

  1. Name the outcomes and the event before calculating.
  2. Every conditional names a group: divide by its size.
  3. Disjointness lets you add; independence lets you multiply.

Before next time

  • Read notes 1.1–1.3 and the formula reference.
  • Exercises 1.1.6, 1.2.5 and 1.3.6, with worked solutions.
  • Watch the four animations not shown today.

Next · Lecture 2

Data, variables & moments. From events to measurements: random variables, distributions, expectation and variance.

Lecture 1 · Probability theory25 / 25