03 Probability1m
03 Probability1m
03 Probability1m
9.07 2/10/2004 Reminder: HW 1 due on Friday. HW2 is now on the web. Its due Friday of next week. Readings in Probability now on the web. Reminder: Office hours today, 3-4 pm
Basic definitions
Random experiment = observing the outcome of a chance event. Elementary outcome = any possible result of the random experiment = Oi Sample space = the set of all elementary outcomes.
Why, then, did it seem like he lost more often with the second gamble? He asked his friend Pascal, and Pascal & Fermat worked out the theory of probability.
Properties of probabilities
P(Oi) 0
Negative probabilities are meaningless
Events
An event is a set of elementary outcomes. The probability of an event is the sum of the probabilities of the elementary outcomes. E.G. tossing a pair of dice:
3. Classical probability theory: probability based on an assumption that the game is fair.
E.G. heads and tails equally likely. Similarly, might otherwise have a theoretical model for the probabilities.
Combining events
E AND F: both event E and event F occur E OR F: either event E occurs, or event F does, or both NOT E: event E does not occur
C OR D: W=1 OR B=1
De Mere revisited
Wanted to know what is the probability of getting at least one 6 in 4 tosses of a die. P(1st=6 or 2nd=6 or 3rd=6 or 4th=6) P(1st=6) = P(2nd=6) = P(3rd=6)=P(4th=6) = 1/6 Are these events mutually exclusive?
No, you could get a 6 on both the 1st & 2nd tosses, for example. So De Mere was incorrect. P 4(1/6)
2 tosses of a die
3 tosses of a die
3 tosses of a die
3rd=1
3rd=2
3rd=3
3rd=1
3rd=2
3rd=3
3rd=4
3rd=5
3rd=6
3rd=4
3rd=5
3rd=6
3 tosses of a die
3 tosses of a die
3rd=1
3rd=2
3rd=3
3rd=1
3rd=2
3rd=3
3rd=4
3rd=5
3rd=6
3rd=4
3rd=5
3rd=6
3 tosses of a die
P(at least one 6 in 3 tosses) = P(6 in 1st) + P(6 in 2nd) + P(6 in 3rd) P(6 in 1st & 2nd) P(6 in 1st & 3rd) P(6 in 2nd & 3rd) + P(6 in 1st & 2nd & 3rd) = 1/6+1/6+1/6-1/36-1/36-1/36+1/216 = 91/216 Phew... It only gets worse from here. De Mere probably doesnt want to calculate P(at least one 6 in 4 tosses) this way. Luckily there are other ways to go about this.
C = 6 in 3rd
Venn diagrams, II
Just as with sample space diagrams, lack of overlap means two events are mutually exclusive. Consider the event A, but not A and B) = A-AB. Are the events B, and AAB mutually exclusive? Yes.
Conditional probability
The probability that event A will occur, given that event C has already occurred. P(A|C) P(dice sum to 3) = P({1,2},{2,1}) = 2/36. Suppose we have already tossed the black die, and got a 2. Given that this has already occurred, what is the probability that the dice will sum to 3?
10
Another formula
P(A|C) = P(A and C)/P(C) E.G. P(sum to 3|B=2) = P(B=2 & sum to 3)/P(B=2)
11
Some notes
P(E|E) = P(E and E)/P(E) = P(E)/P(E) = 1
Once an event occurs, its certain.
P(W=1|B=1)
Swapping E & F -> P(F|E) = P(E and F)/P(E) -> P(F|E) P(E) = P(E and F) = P(E|F) P(F) -> P(E) P(F|E) = P(F) P(E|F) Another example: what is P(W=1 | B=1)?
Independent events
Two events E and F are independent if the occurrence of one has no effect on the probability of the other. E.G. the roll of one die has no effect on the roll of another (unless theyre glued together or something). If E and F are independent, this is equivalent to saying that P(E|F) = P(E), and P(F|E) = P(F) Special multiplication rule for independent events: P(E and F) = P(E) P(F)
12
Probability rules
Addition rule:
P(E or F) = P(E) + P(F) P(E and F) P(E or F) = P(E) + P(F) P(E and F) = P(E|F) P(F) = P(F|E) P(E) P(E and F) = P(E) P(F) P(not E) = 1 P(E)
Addition rule for E & F mutually exclusive: Multiplication rule: Multiplication rule, independent E & F: Inverse rule:
What is the probability of getting at least one pair of 6s on 24 rolls of a pair of dice?
Again, solve the problem in reverse. P(not E) = P(no pair of 6s on any of 24 rolls) P(pair of 6s on a single roll) = 1/36. P(no pair of 6s on a single roll) = 35/36. P(not E) = (35/36)24 = 0.509 P(E) = 1 P(not E) = 1 0.509 = 0.491 De Mere was right this event is less likely to occur than rolling at least one 6 in 4 throws. (Its a pretty small difference he must have gambled a lot and paid close attention to the results!)
13
P(loaded dice sum to 3)=? P({1,2,3,4,5,6}) = {.15, .10, .25, .15, .15, .20}
A useful visualization
Box diagrams:
In 2nd throw
In
3rd
throw
To get total number of possible outcomes, multiply the numbers in the 3 boxes.
14
Another fairly easy and reliable way to solve problems like this
Probability of event made up of equally probable elementary outcomes = (# of outcomes that are part of the event)/(total number of outcomes) E.G. P(at least one 6 in 3 throws) How many total outcomes?
6*6*6 = 216
5 possibilities each we already counted the outcomes where these are 6s.
P(E) = 91/216.
15
16