I've never learnt elementary probability theory "correctly". This is me attempting to fix it.
§ Defn: Sample space
set of all possible outcomes / things that could happen.
§ Defn: Outcome / Sample point / atomic event
An outcome consists of all the information about the experiment after it has been performed including the values of all random choices.
§ NOTE: Keeping straight event v/s outcome
It's easy to get confused between 'event' and 'outcome' (linguistically). I personally remember that one of them is the element of the sample space and another the subsets, but I can't remember which is which. Here's how I recall which is which:
every experiment has an outcome . We write an outcome section when we write a lab manual/lab record for a given experiment.
Now, we when perform an expriment, or something random happens, sometimes, the result (ie, the outcome) can be eventful ; it's not linguistically right to say that some events can be outcomeful .
So, an event is a predicate over the set of outcomes; event: outcome -> bool.
This is the same as being a subset of outcomes (the event is identified
with the set of outcomes it considers eventful), so we have event ~= 2^outcomes.
§ Example: Monty hall
An outcome of the monty hall game when the the contestant switches consists of:
- the box with the prize.
- the box chosen by the contestant.
- the box that was revealed.
Once we know the three things, we know everything that happened.
For example, the sample point :
- the prize is in box 2
- the player first picks box 1
- the assistant, Carol, reveals box 3.
- The contestant wins, because we're assuming the player switches. Hnce, they will switch from their initial choice of (1) to (2).
Note that not all 3-tuples correspond to sample points. For example,
- is not a sample point, because we can't reveal the box with the prize.
- is not a sample point, because we can't reveal the box the player chose.
- is OK. The player chooses the correct box, carol reveals some box, and then the player switches.
§ Constructing the sample space: tree method
We build a decision tree.
§ where is the prize?
(prize 1)(prize 2)(prize 3)§ player's choice
(prize 1 (choice 1) (choice 2) (choice 3))(prize 2 (choice 1) (choice 2) (choice 3))(prize 3 (choice 1) (choice 2) (choice 3))§ Which box is revealed
(prize 1 (choice 1 (reveal 2) (reveal 3)) (choice 2 (reveal 3)) (choice 3) (reveal 2))(prize 2 (choice 1 (reveal 3) (choice 2 (reveal 1) (reveal 3)) (choice 3) (reveal 1))(prize 3 (choice 1 (reveal 2)) (choice 2 (reveal 1)) (choice 3) (reveal 1) (reveal 2))§ Win/Loss
(prize 1 (choice 1loss (reveal 2)loss (reveal 3)) (choice 2win (reveal 3)) (choice 3)win (reveal 2))(prize 2 (choice 1win (reveal 3) (choice 2loss (reveal 1)loss (reveal 3)) (choice 3)win (reveal 1))(prize 3 (choice 1win (reveal 2)) (choice 2win (reveal 1)) (choice 3)loss (reveal 1)loss (reveal 2))This seems like it's 50/50! But what we're missing is the likelihood of an outcome.
§ Defn: Probability space
A probability space consists of a sample space (space of al outcomes) and a probability function that maps the sample space to the real numbers, such that:
- For every outcome, the probability is between zero and one.
- The sum of all the probabilities is one.
Interpretation : For every outcome, the is the probability of that outcome happening in an experiment.
§ Assumptions for monty hall
- Carol put the prize uniformly randomly. Probability 1/3.
- No matter where the prize is, the player picks each box with probability 1/3.
- No matter where the prize is, the box that carol reveals will be picked uniformly randomly. Probability 1/2.
§ Assigning probabilities to each edge
(prize 1 [1/3] (choice 1 [1/3]l (reveal 2) [1/2]l (reveal 3)) [1/2] (choice 2 [1/3]w (reveal 3)) [1] (choice 3) [1/3]w (reveal 2)) [1](prize 2 [1/3] (choice 1w (reveal 3) (choice 2l (reveal 1)l (reveal 3)) (choice 3)w (reveal 1))(prize 3 [1/3] (choice 1w (reveal 2)) (choice 2w (reveal 1)) (choice 3)l (reveal 1)l (reveal 2))§ Assigning probabilities to each outcome
- Probability for a sample point is the product of probabilities leading to the outcome
(prize 1 [1/3] (choice 1 [1/3]l (reveal 2) [1/2]: 1/18l (reveal 3)) [1/2]: 1/18 (choice 2 [1/3]w (reveal 3)) [1]: 1/9 (choice 3) [1/3]w (reveal 2)) [1]: 1/9...So the probability of winning is going to be .
§ Defn: Event
An event is a subset of the sample space.
- For example, is the event that the person loses in Monty Hall.
§ Probability of an event
The probability that an event occurs is the sum of the probabilities of the sample points of the event: .
§ What about staying?
I win rds of the time when I switch . If I don't switch, I must have lost. So if I choose to stay, then I lose rds of the time. We're using that
- .
§ Gambing game
- Dice : .
\ 2 / \ /6 \/ 7 ||it's the same on the reverse side. It's a fair dice. So the probability of getting is a third. Similarly for .
- Dice : .
- Dice : .
- We both dice. The higher dice wins. Loser pays the winner a dollar.
§ Analysis: Dice A v/s Dice C
- Dice followed by dice :
(2 (3 4 8))(6 (3 4 8))(7 (3 4 8))- Assign winning
(2 (3 C 4 C 8)) C(6 (3 A 4 A 8)) C(7 (3 A 4 A 8)) CEach of the outcomes has a probability , so dice wins.
§ Lecture 19: Conditional probability
P(A|B) where both A and B are events, read as probability of A
given B.
We know happens so we normalize by . We then intersect with because we want both and to have happened, so we consider all outcomes that both and consider eventful, and then reweigh the probability such that our definition of "all possible outcomes" is simply "outcomes in ".
- A quick calculation shows us that .
§ Product Rule
follows from the definition by rearranging.
§ General Product Rule
§ Example 1:
In a best two out of three series, the probability of winning the first game is . The probability of winning a game immediately after a victory is . Probability of winning after a loss is . What is the probability of winning given that we win in the first game?
Tree method:
(W1 (W2) (L2 (W3 L3)))(L1 (W2) (L2 (W3 L3)))(L1)The product rule sneakily uses conditional probability! . Etc, solve the problem.
§ Definition: Independence
events , are independent if or .
§ Disjointness and independence
Disjoint events are never independent, because while need not be zero.
§ What do indepdent events look like?
We know that we need . We know that is how much of is within . So we will have if the space that occupies in the sample space is the same proprtion of that occupies . Euphimistically, .
§ Independence and intersection
If is independent of then .
§ Are these two independent?
- A = event coins match
- B = event that the first coin is heads.
Intuitively it seems that these should be dependent because knowing something about the first coin should tells us if the coins match. is the probability that (second coin is heads) which is . .
But our intuition tells us that these should be different!
§ Be suspect! Try general coins
Let prob. of heads is and tails is for both coins.
, while .
§ Mutual independence
Events are mutually independent if any knowledge about any of the rest of the events tells us anything about the th event.
§ Random variables
A random variable is a function from the sample space to . We can create equivalence classes of the fibers of . Each of this is an event, since it's a subset of the sample space. Thus, =
§ Independence of random variables
Slogan: No value of can influence any value of .