Weeks
Statistics 1Week 7 · Probability: Sample Spaces, Events and the Addition Rule
Week 7 Notes

Statistics for
Data Science 1

Probability: random experiments, sample spaces and events, Venn diagrams, the axioms and properties of probability, the addition rule, and equally likely outcomes.

6 chapters~18 min read
Sample spaceEventsAxiomsAddition ruleEqually likely

Chapters

  1. 01Random Experiments and Sample SpaceLecture 6.1
  2. 02EventsLecture 6.2
  3. 03Venn Diagrams and Playing CardsLecture 6.3
  4. 04Properties of ProbabilityLecture 6.4
  5. 05Equally Likely Outcomes and ApplicationsLectures 6.5 and 6.6
  6. 06Week 7 Summary SheetAll lectures

Based on lectures by Usha Mohan, IIT Madras

01
Lecture 6.1

Random Experiments and Sample Space

Why probability, random experiments, and the sample space of all basic outcomes.

1.1Why probability?

We often hear claims like "there is a 30% chance of rain tomorrow", "India has a 50% chance of winning the toss", or "party ABC will probably win". To draw valid conclusions about a population from a sample, we need to know how likely certain events are. The likelihood, or chance, that an event will occur is the subject of probability.

1.2Random experiment

Definitions

An experiment is any process that produces an observation or outcome. A random experiment is an experiment whose outcome is not predictable with certainty. Although the outcome is not known in advance, we suppose the set of all possible outcomes is known.

1.3Sample space

Definition: sample space

The sample space, written Ω\Omega or SS, is the collection of all basic outcomes. Basic outcomes must be mutually exclusive (only one basic outcome can occur) and exhaustive (one basic outcome must occur).

In simple words

List everything that could happen (the sample space). Exactly one item from the list will happen. Probability then measures how likely each part of the list is.

1.4Examples of random experiments

ExperimentOutcomesSample space
Guess a four-option MCQ answerA, B, C, DS = {A, B, C, D}
Order of finish in a race of six students A–Fall permutations of A, B, C, D, E, FS = {ABCDEF, ABCDFE, …, EFDBAC}
Toss two coinsHH, HT, TH, TTS = {HH, HT, TH, TT}
Lifetime (hours) of a bulb0, 1 hour, 2 hours, ...S = {x : 0 ≤ x < ∞}
Throw a dart on a unit squareany point in the squareS = {(x, y) : 0 ≤ x ≤ 1, 0 ≤ y ≤ 1}
Finite or not? The first three sample spaces are finite lists (the race has 6! = 720 orders, by Week 6). The bulb lifetime and dart positions have infinitely many outcomes, so they are written as sets with a condition.

Example 1: sample space of two coins

Write the sample space of tossing two coins and count its outcomes.

  1. Each coin shows H or T; write the first coin, then the second.
  2. S={HH,HT,TH,TT}S = \{HH, HT, TH, TT\}.
  3. There are 2 × 2 = 4 basic outcomes (the multiplication rule of Week 5).
  4. Answer: 4 outcomes.
first coinsecond coinoutcomeHHHHTHTTHTHTTTS = 4
Figure 1. Tree for two coins: every path is one basic outcome

1.5Going deeper

  1. HT and TH are different outcomes. The first coin and the second coin are different objects, so "head then tail" and "tail then head" are two basic outcomes.
  2. The level of detail is a choice (extra remark). For "number of heads" you could also write S={0,1,2}S = \{0, 1, 2\}. That is a valid sample space, but its outcomes are not equally likely: 1 head happens two ways (HT, TH), 0 and 2 heads one way each. Chapter 5 needs equally likely outcomes, so the detailed S is the safer choice.
  3. Mutually exclusive and exhaustive together mean that exactly one basic outcome happens every time the experiment is run.
Exam tips
  • Use a tree or the multiplication rule to count outcomes.
  • Check: is every possible result listed exactly once?
Common mistakes
  • Writing HT and TH as one outcome.
  • Listing outcomes that can happen together (not mutually exclusive).
Next · Lecture 6.2Events
02
Lecture 6.2

Events

Events as subsets of S: union, intersection, null, complement and subset.

Definition: event

An event E is a collection of basic outcomes, that is, a subset of the sample space. The event has occurred if the outcome of the experiment is in the subset.

ExperimentEventAs a set
Guess a four-option MCQanswer is AE = {A}
Race of six studentsA finishes firstE = {ABCDEF, ABCDFE, …, AFEDBC} (5! = 120 orders)
Toss two coinshead on the first tossE = {HH, HT}
Bulb lifetimelifetime is at most 4 hoursE = {x : 0 ≤ x ≤ 4}

2.1Union of events

Definition: union

For events E and F, the union E∪FE \cup F consists of all outcomes that are in E or in F or in both. E∪FE \cup F occurs if either E or F occurs.

ExperimentEFE∪FE \cup F
Guess an MCQanswer is A: {A}answer is B: {B}A or B: {A, B}
Toss two coinshead first: {HH, HT}head second: {HH, TH}head first or second: {HH, HT, TH}
Note on the source. For the race the lecture also takes E1E_1 = "A finishes first" and E2E_2 = "B comes second", and writes E1∪E2E_1 \cup E_2 as the outcomes in either list.

2.2Intersection of events

Definition: intersection

The intersection E∩FE \cap F consists of all outcomes that are in E and in F. E∩FE \cap F occurs if both E and F occur.

ExperimentEFE∩FE \cap F
Toss two coinshead first: {HH, HT}head second: {HH, TH}head on both: {HH}
Race of sixA finishes firstB comes secondA first and B second

2.3Null event and disjoint events

Definitions

The event with no outcomes is the null event, written Φ\Phi. If E∩F=ΦE \cap F = \Phi, then E and F cannot occur together; we say they are disjoint or mutually exclusive.

Example. MCQ: E1={A}E_1 = \{A\}, E2={B}E_2 = \{B\}. "A and B" is E1∩E2=ΦE_1 \cap E_2 = \Phi. If my guess is A, it cannot be B, so E1E_1 and E2E_2 are mutually exclusive.

2.4Complement of an event

Definition: complement

The complement EcE^c consists of all outcomes in S that are not in E. EcE^c occurs if and only if E does not occur. Also Sc=ΦS^c = \Phi.

ExperimentEEcE^c
Toss a coin once, S = {H, T}E1={H}E_1 = \{H\} (head)E2={T}E_2 = \{T\} (tail), so E2=E1cE_2 = E_1^c
Toss two coinshead on first: {HH, HT}tail on first: {TH, TT}

2.5Subset of an event

Definition: subset

If all outcomes of E are also in F, then E is contained in F, or E is a subset of F, written E⊂FE \subset F.

Example. Two coins. F = head on the first toss = {HH, HT}; E = head on both tosses = {HH}. Then E⊂FE \subset F: whenever E occurs, F occurs.

2.6Symbols at a glance

SymbolReads asMeans
E∪FE \cup FE union FE or F (or both) occurs
E∩FE \cap FE intersection Fboth E and F occur
EcE^ccomplement of EE does not occur
Φ\Phinull eventno outcomes; cannot happen
E∩F=ΦE \cap F = \PhidisjointE and F cannot occur together
E⊂FE \subset FE subset of Fwhenever E occurs, F occurs

Example 2: events with two coins

Toss two coins. Let E = head on the first toss, F = head on the second toss. Find E∪FE \cup F, E∩FE \cap F and EcE^c.

  1. E={HH,HT}E = \{HH, HT\}, F={HH,TH}F = \{HH, TH\}.
  2. E∪F={HH,HT,TH}E \cup F = \{HH, HT, TH\}.
  3. E∩F={HH}E \cap F = \{HH\}.
  4. Ec={TH,TT}E^c = \{TH, TT\}.
  5. Answer: E ∪ F = {HH, HT, TH}; E ∩ F = {HH}; Eᶜ = {TH, TT}.

2.7Going deeper

  1. "Neither" is a complement (extra remark). "Neither E nor F" is (E∪F)c(E \cup F)^c, which equals Ec∩FcE^c \cap F^c (De Morgan's law). With two coins: (E∪F)c={TT}(E \cup F)^c = \{TT\}, and Ec∩Fc={TH,TT}∩{HT,TT}={TT}E^c \cap F^c = \{TH, TT\} \cap \{HT, TT\} = \{TT\}. Chapter 5 uses this for "buys neither".
  2. Mutually exclusive is not the same as complementary. {A} and {B} in the MCQ are disjoint, but together they do not cover S; E and EcE^c are disjoint and cover S.
  3. Union and intersection with the null event. E∪Φ=EE \cup \Phi = E and E∩Φ=ΦE \cap \Phi = \Phi; with S, E∪S=SE \cup S = S and E∩S=EE \cap S = E.
Exam tips
  • Write every event as a set of outcomes before combining.
  • Translate words: or → ∪, and → ∩, not → complement.
Common mistakes
  • Listing an outcome twice in a union.
  • Calling two events disjoint when they share one outcome.
Next · Lecture 6.3Venn Diagrams and Playing Cards
03
Lecture 6.3

Venn Diagrams and Playing Cards

Seeing events as regions, and counting unions and intersections in a deck of cards.

In simple words

A Venn diagram draws the sample space S as a big rectangle and each event as a circle inside it. It shows how events relate: overlapping, separate, or one inside the other.

SEFE ∪ FSEFE ∩ FSEFdisjointSEFE ⊂ FSEScomplement of E
Figure 2. Events as regions of the sample space

The big rectangle is S and each circle is an event. Shaded areas show the union (everything in E or F), the intersection (the overlap), disjoint events (circles that do not touch), a subset (E fully inside F) and the complement of E (everything in S outside E).

3.1Application: playing cards

A deck has 52 cards. Selecting one card at random, the sample space is S = {all 52 cards}. Define:

EventMeaningOutcomes
Ethe card is the king of hearts1 card
Fthe card is a king4 cards (one per suit)
Gthe card is a heart13 cards
Hthe card is an ace4 cards
Ithe card is a queen4 cards

Example 3: union and intersection with cards

F = king, G = heart. Describe F∪GF \cup G and F∩GF \cap G.

  1. F∪GF \cup G: the card is a king or a heart: the 4 kings plus the 13 hearts. The king of hearts is counted once, so there are 4 + 13 − 1 = 16 outcomes.
  2. F∩GF \cap G: the card is a king and a heart: only the king of hearts, which is the same as event E.
  3. Answer: F ∪ G has 16 cards; F ∩ G = E = {king of hearts}.
♥A2345678910JQK♦A2345678910JQK♣A2345678910JQK♠A2345678910JQKking or heart: 4 + 13 − 1 = 16 cards; the overlap is the king of hearts
Figure 3. The 16 cards of F ∪ G; the shared card is F ∩ G

Example 4: mutually exclusive?

H = ace, I = queen. (a) Are G (heart) and H (ace) mutually exclusive? (b) Are F (king) and I (queen) mutually exclusive?

  1. (a) No. They share the outcome "ace of hearts", so both occur if that card is selected.
  2. (b) Yes. If we select a king we cannot select a queen, so F∩I=ΦF \cap I = \Phi.
  3. Answer: (a) not mutually exclusive (b) mutually exclusive.
Note on the source. The slides list the outcomes of F∪GF \cup G and F∩GF \cap G as card images; the counts here come from the definitions and were checked by listing the 52 cards.

3.2Going deeper

  1. The "− 1" is Week 5's warning. Adding two groups that overlap counts the overlap twice; the same correction becomes the addition rule of probability in Chapter 4.
  2. One shared outcome is enough. G and H share just the ace of hearts, and that single card makes them not mutually exclusive.
Exam tips
  • Draw the Venn diagram before counting a union.
  • For cards, write the overlap explicitly (king of hearts, red queens).
Common mistakes
  • Adding 4 + 13 = 17 for king or heart.
  • Assuming two events with different names are disjoint.
Next · Lecture 6.4Properties of Probability
04
Lecture 6.4

Properties of Probability

Three interpretations, the three axioms, the complement rule and the addition rule.

4.1Three interpretations of probability

TypeIdea
Classical (a priori, theoretical)If S has n equally likely outcomes and event E consists of exactly m of them, then P(E)=m/nP(E) = m/n.
Relative frequency (a posteriori, empirical)The proportion of times the event occurs in a very long series of independent repetitions: if E occurs n(E)n(E) times in n repetitions, P(E)=lim⁡n→∞n(E)/nP(E) = \lim_{n \to \infty} n(E)/n.
SubjectiveA "best guess" by a person of the chance the event will happen; it measures an individual's degree of belief.
0.40.50.60.7101001,00010,000proportion of headsnumber of tosses (log scale)simulated fair coin, seed 7
Figure 4. Relative frequency: the proportion of heads in a simulated fair coin settles near 0.5
About the simulation (extra remark). The figure is a computer simulation of a fair coin (random seed 7), not lecture data. After 10 tosses the proportion was 0.7; after 10,000 it was 0.503. The relative frequency wanders early on and settles near the classical value 1/2.

4.2The probability axioms

In simple words

Probability is a number from 0 to 1. The whole sample space has probability 1. For events that cannot overlap, probabilities just add.

  1. For any event E: 0≤P(E)≤10 \le P(E) \le 1.
  2. The probability of the sample space is 1: P(S)=1P(S) = 1.
  3. For mutually exclusive (disjoint) events E1,E2,…E_1, E_2, \ldots: P(E1∪E2∪⋯ )=P(E1)+P(E2)+⋯P(E_1 \cup E_2 \cup \cdots) = P(E_1) + P(E_2) + \cdots

In particular, if E1E_1 and E2E_2 are disjoint, then

P(E1∪E2)=P(E1)+P(E2)P(E_1 \cup E_2) = P(E_1) + P(E_2)

4.3General properties

Complement rule

P(Ec)=1−P(E)P(E^c) = 1 - P(E). Why: E and EcE^c are disjoint and E∪Ec=SE \cup E^c = S. By axiom 3, P(E∪Ec)=P(E)+P(Ec)P(E \cup E^c) = P(E) + P(E^c); by axiom 2 this equals P(S)=1P(S) = 1.

Null event

P(Φ)=0P(\Phi) = 0. Why: Sc=ΦS^c = \Phi, so P(Φ)=1−P(S)=1−1=0P(\Phi) = 1 - P(S) = 1 - 1 = 0.

4.4Addition rule of probability

For events that are not necessarily disjoint:

P(E1∪E2)=P(E1)+P(E2)−P(E1∩E2)P(E_1 \cup E_2) = P(E_1) + P(E_2) - P(E_1 \cap E_2)
SIIIIIIE1E2P(E1) + P(E2) counts region II twicesubtract P(E1 ∩ E2) onceE1 = I ∪ II, E2 = II ∪ IIIE1 ∩ E2 = II
Figure 5. Why the overlap is subtracted

Split the union into three regions I, II, III. E1=I∪IIE_1 = I \cup II, E2=II∪IIIE_2 = II \cup III, E1∩E2=IIE_1 \cap E_2 = II and E1∪E2=I∪II∪IIIE_1 \cup E_2 = I \cup II \cup III. Adding P(E1)+P(E2)P(E_1) + P(E_2) counts region II twice, so we subtract P(E1∩E2)P(E_1 \cap E_2) once.

Special case. If E1E_1 and E2E_2 are disjoint, then E1∩E2=ΦE_1 \cap E_2 = \Phi and P(Φ)=0P(\Phi) = 0, so the rule reduces to axiom 3.

4.5Going deeper

  1. A subset has a smaller probability (extra remark). If E⊂FE \subset F then P(E)≤P(F)P(E) \le P(F): F is E plus a disjoint extra part with probability at least 0.
  2. A quick sanity check. P(E∩F)P(E \cap F) can never be bigger than P(E)P(E) or P(F)P(F), and P(E∪F)P(E \cup F) can never be smaller than either of them.
  3. Rearranging the rule. Any three of P(E)P(E), P(F)P(F), P(E∪F)P(E \cup F), P(E∩F)P(E \cap F) give the fourth; Example 8 uses this to find "A in both".
Exam tips
  • Check every answer lies between 0 and 1.
  • For "or", always ask whether the events overlap.
Common mistakes
  • Adding probabilities of overlapping events without subtracting the overlap.
  • Writing P(Ec)=P(E)−1P(E^c) = P(E) - 1.
Next · Lectures 6.5 and 6.6Equally Likely Outcomes and Applications
05
Lectures 6.5 and 6.6

Equally Likely Outcomes and Applications

Counting favourable outcomes, and the addition and complement rules at work.

5.1Equally likely outcomes

In simple words

If every outcome is equally likely (a fair die, a well-shuffled deck), the probability of an event is just how many outcomes are in it, out of all outcomes.

Formula

If S has N outcomes and P({1})=P({2})=⋯=P({N})P(\{1\}) = P(\{2\}) = \cdots = P(\{N\}), then for any event A

P(A)=number of outcomes in ANP(A) = \frac{\text{number of outcomes in } A}{N}

Example 5: rolling a fair die

Roll a fair die: S = {1, 2, 3, 4, 5, 6}. Let A = outcome is odd, B = outcome is greater than 4, C = outcome is odd or greater than 4. Find P(A), P(B), P(C).

  1. Each outcome has probability 1/6.
  2. A = {1, 3, 5}: P(A) = 1/6 + 1/6 + 1/6 = 1/2.
  3. B = {5, 6}: P(B) = 2/6 = 1/3.
  4. A∩B={5}A \cap B = \{5\}: P(A∩B)=1/6P(A \cap B) = 1/6.
  5. P(C)=P(A∪B)=36+26−16=46=23P(C) = P(A \cup B) = \dfrac{3}{6} + \dfrac{2}{6} - \dfrac{1}{6} = \dfrac{4}{6} = \dfrac{2}{3}
  6. Answer: P(A) = 1/2, P(B) = 1/3, P(C) = 2/3.
123456A: oddB: greater than 4A ∩ BA ∪ B = {1, 3, 5, 6}: 4 of 6 = 2/3
Figure 6. A = odd, B = greater than 4; 5 is in both

Example 6: red or a queen

A card is drawn from a standard deck of 52. What is the probability that it is red or a queen?

  1. R = red card: P(R) = 26/52 = 1/2.
  2. Q = queen: P(Q) = 4/52 = 1/13.
  3. R∩QR \cap Q = red queen (2 cards): P(R∩Q)=2/52P(R \cap Q) = 2/52.
  4. P(R∪Q)=2652+452−252=2852=713P(R \cup Q) = \dfrac{26}{52} + \dfrac{4}{52} - \dfrac{2}{52} = \dfrac{28}{52} = \dfrac{7}{13}
  5. Answer: 7/13.
♥A2345678910JQK♦A2345678910JQK♣A2345678910JQK♠A2345678910JQKred or queen: 26 + 4 − 2 = 28 cards, P = 28/52 = 7/13
Figure 7. The 28 cards that are red or a queen; the two red queens are the overlap
Note on the source. The slide prints P(R∩Q)P(R \cap Q) as "56"; the correct value is 2/52, which the final line (28/52) uses.

5.2Applications of the addition rule

Example 7: shopping for shirts and pants

A customer buys a shirt with probability 0.3, a pant with probability 0.2, and both with probability 0.1. What proportion of customers buy neither?

  1. Let S = buys a shirt, P = buys a pant. "Neither" is the complement of "shirt or pant", that is (S∪P)c(S \cup P)^c.
  2. P(S∪P)=0.3+0.2−0.1=0.4P(S \cup P) = 0.3 + 0.2 - 0.1 = 0.4.
  3. P((S∪P)c)=1−0.4=0.6P((S \cup P)^c) = 1 - 0.4 = 0.6.
  4. Answer: 0.6.
S0.20.10.1shirtpant0.6P(S ∪ P) = 0.3 + 0.2 − 0.1 = 0.4neither = 1 − 0.4 = 0.6
Figure 8. Shirt only 0.2, both 0.1, pant only 0.1, neither 0.6

Example 8: subject grades

A student has a 40% chance of an A in statistics, 60% in mathematics, and 86% of an A in either statistics or mathematics. Find the probability that she (1) gets no A in either, (2) gets an A in both.

  1. Let S = A in statistics, M = A in mathematics. P(S) = 0.40, P(M) = 0.60, P(S∪M)=0.86P(S \cup M) = 0.86.
  2. (1) No A in either is (S∪M)c(S \cup M)^c: 1 − 0.86 = 0.14.
  3. (2) An A in both is S∩MS \cap M. Rearranging the addition rule: P(S∩M)=0.40+0.60−0.86=0.14P(S \cap M) = 0.40 + 0.60 - 0.86 = 0.14.
  4. Answer: (1) 0.14 (2) 0.14.
S0.260.140.46A in statsA in maths0.14both = 0.40 + 0.60 − 0.86 = 0.14neither = 1 − 0.86 = 0.140.26 + 0.14 + 0.46 + 0.14 = 1
Figure 9. Statistics only 0.26, both 0.14, mathematics only 0.46, neither 0.14
Trick

For "neither" or "not even one", first find P(union), then subtract from 1. For "both", rearrange the addition rule: P(E∩F)=P(E)+P(F)−P(E∪F)P(E \cap F) = P(E) + P(F) - P(E \cup F).

5.3Going deeper

  1. The two 0.14s are a coincidence (extra remark). "Both" and "neither" are different events; here both happen to be 0.14 because P(S) + P(M) = 1 exactly. Change P(M) to 0.50 and "both" becomes 0.04 while "neither" stays 0.14.
  2. Check the regions add to 1. In Figure 9: 0.26 + 0.14 + 0.46 + 0.14 = 1. If they do not, a number is wrong.
  3. Equally likely needs a reason (extra remark). The formula only works when the outcomes really are equally likely. The sum of two dice is not: 7 happens in 6 of the 36 equally likely pairs (probability 1/6), but 2 only in 1 (probability 1/36).
  4. Counting from Weeks 5 and 6. For larger problems the "number of outcomes in A" and N come from the multiplication rule, permutations and combinations.
Exam tips
  • "Neither", "at least one", "not": use the complement.
  • Draw a Venn diagram with all four regions for two events.
Common mistakes
  • Forgetting to subtract the overlap (red queens counted twice).
  • Using the equally likely formula when outcomes are not equally likely.
Next · All lecturesWeek 7 Summary Sheet
06
All lectures

Week 7 Summary Sheet

Everything in Week 7 on one sheet.

Lectures 6.1 to 6.6 on one sheet, for a last-minute revision.

Definitions and formulas

IdeaMeaning / formula
Random experimentoutcome not predictable with certainty
Sample space Sall basic outcomes; mutually exclusive and exhaustive
Eventa subset of S
E∪FE \cup F, E∩FE \cap F, EcE^cE or F; E and F; not E
Disjoint (mutually exclusive)E∩F=ΦE \cap F = \Phi
Axioms0≤P(E)≤10 \le P(E) \le 1; P(S)=1P(S) = 1; disjoint events: probabilities add
ComplementP(Ec)=1−P(E)P(E^c) = 1 - P(E); P(Φ)=0P(\Phi) = 0
Addition ruleP(E∪F)=P(E)+P(F)−P(E∩F)P(E \cup F) = P(E) + P(F) - P(E \cap F)
Equally likelyP(A)=(outcomes in A)/NP(A) = (\text{outcomes in } A)/N
Interpretationsclassical (m/n), relative frequency (limit of n(E)/n), subjective (degree of belief)

Formula sheet at a glance

Axioms
Range0≤P(E)≤10 \le P(E) \le 1
Sample spaceP(S)=1P(S) = 1
Disjoint eventsP(E1∪E2)=P(E1)+P(E2)P(E_1 \cup E_2) = P(E_1) + P(E_2)
Consequences
ComplementP(Ec)=1−P(E)P(E^c) = 1 - P(E)
Null eventP(Φ)=0P(\Phi) = 0
Addition rule
Any two eventsP(E∪F)=P(E)+P(F)−P(E∩F)P(E \cup F) = P(E) + P(F) - P(E \cap F)
RearrangedP(E∩F)=P(E)+P(F)−P(E∪F)P(E \cap F) = P(E) + P(F) - P(E \cup F)
Equally likely
CountingP(A)=outcomes in ANP(A) = \frac{\text{outcomes in } A}{N}

Formulas

Complement rule
Not EP(Ec)=1−P(E)P(E^c) = 1 - P(E)

Use whenThe question says "not", "neither" or "at least one".

  1. Describe the opposite event.
  2. Find its probability (often easier).
  3. Subtract from 1.
ExampleShirt/pant: neither.
1−P(S∪P)=1−0.4=0.61 - P(S \cup P) = 1 - 0.4 = 0.6
Addition rule
E or FP(E∪F)=P(E)+P(F)−P(E∩F)P(E \cup F) = P(E) + P(F) - P(E \cap F)

Use whenThe question says "or" and the events may overlap.

  1. Find P(E) and P(F).
  2. Find the overlap P(E ∩ F).
  3. Add, then subtract the overlap once.
ExampleRed or queen.
2652+452−252=713\frac{26}{52} + \frac{4}{52} - \frac{2}{52} = \frac{7}{13}
Both from the rule
E and FP(E∩F)=P(E)+P(F)−P(E∪F)P(E \cap F) = P(E) + P(F) - P(E \cup F)

Use whenYou know P(E), P(F) and P(E or F) and need "both".

  1. Write the addition rule.
  2. Move P(E ∩ F) to one side.
  3. Substitute and check the answer is between 0 and 1.
ExampleGrades: A in both.
0.40+0.60−0.86=0.140.40 + 0.60 - 0.86 = 0.14
Equally likely outcomes
Favourable over totalP(A)=outcomes in ANP(A) = \frac{\text{outcomes in } A}{N}

Use whenEvery outcome has the same chance: fair die, fair coin, shuffled deck.

  1. List or count S.
  2. Count the outcomes in A (Weeks 5 and 6 if needed).
  3. Divide.
ExampleFair die: odd or greater than 4.
∣{1,3,5,6}∣6=46=23\frac{|\{1, 3, 5, 6\}|}{6} = \frac{4}{6} = \frac{2}{3}

Values worked in the lectures

QuestionAnswer
Two coins: number of outcomes4
Fair die: P(odd), P(> 4), P(odd or > 4)1/2, 1/3, 2/3
Card: P(red or queen)7/13
King or heart: number of cards16
Shirt/pant: P(neither)0.6
Grades: P(no A), P(A in both)0.14, 0.14

How to decide

  1. "or" → union: add and subtract the overlap.
  2. "and" → intersection.
  3. "not", "neither", "at least one" → use the complement: 1 − P(...).
  4. Equally likely outcomes → count favourable over total, using Week 5 and 6 counting if needed.
Source notes
  • The lectures are numbered 6.1 to 6.6; these are the Week 7 notes.
  • The learning objectives on the slides also list tree diagrams, conditional probability and independence; these are not covered in these six lectures.
  • The red-or-queen slide prints P(R∩Q)P(R \cap Q) = "56"; it should be 2/52 (the result 7/13 is right).
  • The source's extra practice questions are not reproduced, as the Statistics 1 notes carry worked examples only.
Revision overview
Sample spaceAll basic outcomes
Mutually exclusive, exhaustive
Two coins: 4
EventsSubsets of S
∪ or, ∩ and, c not
Disjoint: E ∩ F = Φ
Venn and cardsRectangle S, circles
King or heart: 16
King, queen: disjoint
ProbabilityStatistics for Data Science 1
Axioms0 ≤ P(E) ≤ 1, P(S) = 1
Disjoint: add
P(Ec) = 1 − P(E)
Addition ruleP(E) + P(F) − P(E ∩ F)
Red or queen: 7/13
ApplicationsEqually likely: count
Neither: 1 − union
Shirt/pant 0.6, grades 0.14
Revision: the whole of Week 7 on one map
Back to top