You have a chance to win a large prize in a game show hosted by Monty. The prize is behind one of 3 closed doors, and the other two doors are losers, with a goat behind each.
You are asked to select (but not open) one of the doors.
Then Monty, opens one of the doors he knows is a losing door, selecting randomly if both remaining doors are losers.
Then asks you if you want to switch doors.
Which strategy is the best?
Switch doors.
Stick to original selection.
title: Not in exam!
You selected a door, let’s say door1.
Then Monty opened another door:
As 31+31=32>31=61+61, hence you have a better chance switching from door1 to the door Monty did not open.
p(M2∣W1)=21
If your selected door is the winning one, then Monty randomly opens one of the other two doors. We also know that p(M2∣W3)=1 because if door3 is the winning door and you selected the first one, then Monty must open the second. (as he never opens the winning door)
p(M2∣W1)=p(Wˉ1)p(M2∩Wˉ1)=32p(M2∩(W2∪W3))=32p((M2∩W2)∪(M2∩W3))=32p(M2∩W3)=32p(M2∣W3)⋅p(W3)=321⋅31=21
A probability distribution in the sample spaceS is a function $p$ assigning a number $p(s_i)$ to each possible outcome $s_i$ in $S$ (the probability of $s_i$), such that:
values are exhaustive (cover everything)
values are mutually exclusive (no overlap)
0≤p(si)≤1, for all i=1 to n
p(s1)+p(s2)+...+p(sn)=1
All probability values add up to 1.
A uniform distribution is where the probabilities are evenly distributed across the sample space. $$ p(s_i) = \frac{1}{n} \text{ for all } i = 1 \text{ to } n $$
title: ExampleGiven the uniform distribution on $S$.If a fair dice is rolled, then there are six possible equally likely outcomes: $1,2,3,4,5,6$.So $p(1) = p(2) = ... = p(6) = \frac{1}{6}$.
The probability of an eventE is the sum of the probabilities of the outcomes in $E$.
title: Example 1If two fair dice are rolled, what is the probability that the sum is $7$?By product rule, there are $6 \cdot 6 = 36$ possible outcomes, each of them equally likely with a probability of $\frac{1}{36}$.There are $6$ successful outcomes: $(1,6), (2,5), (3,4), (4,3), (5,2), (6,1)$.Hence probability is: $6 \cdot \frac{1}{36} = \boxed{\frac{1}{6}}$
title: Example 2Given that a dice is weighed in such a way that $3$ appaers twice as often as each of the other numbers but the others are equally likely. What is the probability we roll an odd number?We need to find $p(E)$ of the event $E = \{ 1, 3, 5 \}$.We know that:- $\sum^n_1 p(n) = 1$- $p(1) = p(2) = p(4) = p(5) = p(6)$- $p(3) = 2p(1)$Hence $p(1) = p(2) = p(4) = p(5) = p(6) = \frac{1}{7}$ and $p(3) = \frac{2}{7}$.So, $p(E) = p(1) + p(3) + p(5) = \frac{4}{7}$.
title: Example 3Take for example a lottery, where we can win if we correctly choose a set of $6$ numbers out of the first $59$ positive natural numbers.The total number of ways to choose $6$ numbers out of $59$ is found using [[Order does not matter, repetition not allowed|order does not matter, repetition not allowed]] combinations:$$ \begin{pmatrix} 59 \\ 6 \end{pmatrix} = \frac{59 \cdot 58 \cdot 57 \cdot 56 \cdot 55 \cdot 54} {1 \cdot 2 \cdot 3 \cdot 4 \cdot 5 \cdot 6} = 45, 057, 474$$Hence we find that:$$ p(W) = \frac{1}{45, 057, 474}$$
Let E be an event in a sample space S.
The probability of event Eˉ, or the complement ofE in S is the sum of the probabilities of the outcomes not in $E$: $$ \boxed{ p(\bar E) = 1 - p(E) } $$
title: ExampleWe flip a fair coin $10$ times, what is the probability that heads comes up at least once?Let $E$ be the event that heads comes up at least once of the $10$ flips.Let $\bar E$ be the event that each of the $10$ times, tails comes up.$$ \begin{aligned} p(E) &= 1 - p(\bar E) \\ &= 1 - \frac{1}{2^{10}} \\ &= 1 - \frac{1}{1024} \\ &= \frac{1023}{1024} \end{aligned}$$
The probability of the union of events is given by: $$ p(E_1 \cup E_2) = p(E_1) + p(E_2) - p(E_1 \cap E_2) $$
title: ExampleWhat is the probability that a number randomly selected from $X = \{ n \in \mathbb N^+ | n \le 100 \}$ is divisible by either $2$ or $5$ or both (by $10$)?- Let $E_1$ be the event that the selected number in $X$ is divisible by $2$.- Let $E_2$ be the event that the selected number in $X$ is divisible by $5$.- Then $E_1 \cup E_2$ is the event that it is divisible by both.We are given that $|X| = 100, |E_1| = 50, |E_2| = 20, |E_1 \cap E_2| = 10$.$$ \begin{aligned} p(E_1 \cup E_2) &= \frac{50}{100} + \frac{20}{100} - \frac{10}{100} \\ &= \frac{60}{100} \\ &= \frac{3}{5} \\ &= 0.6 \end{aligned}$$
title: Example 1Flip a coin $3$ times. We already know how to find the probabiltiy of event $E$ that at least $2$ heads come up in a row.$$ \begin{aligned} S \text{ contains } 2^3 &= 8 \text{ outcomes} \\ p(E) &= \frac{3}{8} \end{aligned}$$But what if the first flip comes up heads and we are asked about the probability of $E$ given $F$ has already occurred?Our sample space is now $HHT, HTH, HTT, HHH$.For an outcome in $E$ to occur, it must belong to $E \cap F$, so either $HHT$ or $HHH$.So we have $p(F) = \frac{4}{8} = \frac{1}{2}$ and $p(E \cap F) = \frac{2}{8} = \frac{1}{4}$.$$ \begin{aligned} p(E | F) &= \frac{\frac{1}{4}}{\frac{1}{2}} \\ &= \boxed{\frac{1}{2}} \end{aligned}$$
title: Example 2Throwing a pair of fair dice, what is the probability at least one dice is a $3$ given the sum of the two dice is $5$?- Let $A$ be the event that at least one dice is a $3$. ($11$ outcomes)- Let $B$ be the event that the sum of two dice is $5$. $B$ consists of the outcomes $(1,4), (2,3), (3,2), (4,1)$- The sample space consists of $6^2 = 36$ equally probable outcomes. $p(B) = \frac{4}{36} = \frac{1}{9}$- The event $A \cap B$ consists of two outcomes: $(2,3)$ and $(3,2)$. Hence $p(A \cap B) = \frac{2}{36} = \frac{1}{18}$$$ \begin{aligned} \therefore p(A|B) &= \frac{p(A \cap B)}{p(B)} \\ &= \frac{\frac{1}{18}}{\frac{1}{9}} \\ &= \frac{1}{2} \end{aligned}$$
Independence
Independence
Two events E and F are said to be independent if the occurrence of one of the events gives no information about the probability of the other event. $$ \boxed{p(E | F) = p(E)} \text{ or } \boxed{p(F | E) = p(F)} $$
Using conditional probability, we can obtain that E and F are independent events whenever p(E∩F)=$p(E) \cdot p(F)$.
title: Example 3We flip a fair coin $3$ times. What is the probability an odd number of tails appear given that the first flip comes up tails?- Let $X$ be the event that an odd number of tails appear.- Let $Y$ be the event that the first flip comes up tails.- The sample space consists of $2^3 = 8$ outcomes so: $p(Y) = \frac{4}{8} = \frac{1}{2}$- The event $X \cap Y$ consists of two outcomes: $THH$ and $TTT$. $p(X \cap Y) = \frac{2}{8} = \frac{1}{4}$$$ \begin{aligned} p(X | Y) &= \frac{p(X \cap Y)}{p(Y)} \\ &= \frac{\frac{1}{4}}{\frac{1}{2}} \\ &= \frac{1}{2} \end{aligned}$$We can also find the unconditional probability of $X$, giving $p(X) = \frac{4}{8} = \frac{1}{2}$.As $p(X | Y) = p(X)$, then the two events are **independent**.