Download presentation
Presentation is loading. Please wait.
Published byHilary Fisher Modified over 8 years ago
1
1 Expected Value CSCE 115 Revised Nov. 29, 2004
2
2 Probability u Probability is determination of the chances of picking a particular sample from a known sample. u Notation: if A is some event, the probability of A is P(A)
3
3 Probability u Probability of success (when the events are equally likely) is Number of successful outcomes Number of possible outcomes u Example: If 1 student is picked at random from a class of 7 woman and 13 men, what is the probability that the student is a woman? u P(woman) = 7/(13+7) = 7/20
4
4 Probability u Non-example: If you roll two dice and add the spots the possible outcomes are 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. What is the probability of rolling a 2? u Is the following correct? There is 1 success (getting a two) out of 11 possibilities (2, 3, …, 12) so the probability is 1/11 u Why?
5
5 Independent events u Two events are independent if the way the first event happens does not affect the way the second event happens.
6
6 Example: Independent events u Put 3 red balls and 2 green balls in a bag. Event 1: select a ball at random from the bag and determine its color. Put the ball back. Event 2: Select a second ball at random. Events 1 and 2 are ____________ u Event 3: select a ball at random and set it aside. Event 4: select a second ball at random. Events 3 and 4 are ____ _____________
7
7 First fundamental rule: u The probability that something does not happens is 1 - the probability it happens u P(not A) = 1 - P(A) u Example: The probability of picking a man from the class of 7 women and 13 men is u 1 - (7/20) = 20/20 - (7/20) = 13/20
8
8 Second fundamental rule u If two events are independent, the probability that both A and B happen is P(A and B) = P(A) * P(B) u Example: We randomly select a ball from a bag with 3 red and 2 green balls. We put it back and draw again. The probability that both balls are red is u P(red, red) = (3/5) * (3/5) = 9/25
9
9 Example: Role 2 dice u Suppose that we have a red die and a blue die. We roll and sum. What are the possible outcomes? u RB RB RB RB RB RB 1,1 1,2 1,3 1,4 1,5 1,6 2,2 2,2 2,3 2,4 2,5 2,6 3,1 3,2 3,3 3,4 3,5 3,6 4,1 4,2 4.3 4,4 4,5 4,6 5,1 5,2 5,3 5,4 5,5 5,6 6,1 6,2 6,3 6,4 6,5 6,6
10
10 Example: Role 2 dice u P(2) = 1/36P(8) = 5/36 u P(3) = 2/36 = 1/18P(9) = 4/36 = 1/9 u P(4) = 3/36 = 1/12P(10) = 3/36 = 1/12 u P(5) = 4/36 = 1/9P(11) = 2/36 = 1/18 u P(6) = 5/36 P(12) = 1/36 u P(7) = 6/36 = 1/6
11
11 Probability of rolling 2 dice
12
12 A children's game with spinner The spinner is used to determine how far you move. What is the probability of each move? P(2) = 1/10 P(3) = 4/10 P(5) = 1/10 P(6) = 2/10 P(7) = 1/10 P(8)= 1/10 How far, on the average, do you expect to move each time you spin?
13
13 A children's game with spinner u Just averaging the possible the possible outcomes (2 + 3 + 5 + 6 + 7 + 8) = 31 = 5.1667 6 6 is _____ correct because the various values are not equally likely. u A correct way is (2 + 3 + 3 + 3 + 3 + 5 + 6 + 6 + 7 + 8) = 46 10 10 = 4.6
14
14 A children's game with spinner u (2 + 3 + 3 + 3 + 3 + 5 + 6 + 6 + 7 + 8) 10 u = (2 +3*4 + 5 + 6*2 + 7 + 8) 10 u = 2 * 1 + 3 * 4 + 5 * 1 + 6 * 2 + 7 * 1 + 8 * 1 10 10 10 10 10 10 u = 2*P(2) + 3*P(3) + 5*P(5) + 6*P(6) + 7*P(7) + 8 * P(8)
15
15 Expected value u Suppose that a certain experiment X could result in the values of {a, b, c, …, k} and the probabilities of these outcomes are P(a), P(b), P(c), …, P(k). The expected value is E(X) = a * P(a) + b * P(b) + c * P(c) + … + k * P(k)
16
16 Example: Expected value u Recall the kid's spinner game u P(2) = 1/10 P(3) = 4/10 P(5) = 1/10 P(6) = 2/10 P(7) = 1/10 P(8)= 1/10 u E(spin) = 2 *.1 + 3 *.4 + 5 *.1 + 6 *.2 + 7 *.1 + 8 *.1 u = 4.6
17
17 Example: Expected value u Experiment: You flip a coin and get 1 point of a head and 0 points for tail u P(head) =.5, P(tail) =.5 u E(flip) = 1 *.5 + 0 *.5 =.5
18
18 Example: Expected value u Experiment: You roll one die. u P*(1) = 1/6, P(2) = 1/6, … P(6) = 1/6 u E(roll) = 1*(1/6) + 2*(1/6) + 3*(1/6) + 4*(1/6) + 5*(1/6) +6 *(1/6) u = 1/6 + 2/6 + 3/6 + 4/6 + 5/6 + 6/6 = 21/6 = 3.5
19
19 Example: Expected value u Experiment: You roll two dice u P(2) = 1/36 P(6) = 5/36 P(9) = 4/36 P(3) = 2/36 P(7) = 6/36 P(10) = 3/36 P(4) = 3/36 P(8) = 5/36 P(11) = 2/36 P(5) = 4/36 P(12) = 1/36 u E(two dice) = 2*(1/36) + 3*(2/36) + 4*(3/36) + 5*(4/36) 6*(5/36) + 7*(6/36) + 8*(5/36) + 9*(4/36) 10*(3/36) + 11*(2/36) + 12*(1/36) u = 252/36 = 7
20
20 Example: Expected value u John proposes that the charity bazaar sell tickets for $2. The player rolls 2 dice. The play wins $12 if the roll is a 2 or a 8. On the average, how much will the charity win each time a player rolls the dice?
21
21 Example: Charity bazaar u Solution 1: u Outcomes are P(2) = 1/36, Prize(2) = $12 P(8) = 5/36, Prize(8) = $12 P(other) = 30/36, Prize(other) = $0 E(Prize) = $12*(1/36) + $12*(5/36) + $0*(30/36) = $72/36 = $2 u Cost of ticket - Expected value of prize = $2 - $2 = 0 u The charity does not expect to win any money with this game.
22
22 Example: Charity bazaar u Solution 2: u Outcomes are charity wins $2 or loses $10 u P($2) = 30/36 = 5/6 P(-$10) = 1/36 + 5/36 = 6/36 = 1/6 u E(winnings) = $2 * (5/6) + (-$10) * (1/6) $10/6 + (-$10/6) = 0
23
23 Fair Game u A fair game is a game where the expected value of winning is 0 u Fair games are highly desirable when play with your friends u Fair games are not desirable for organizations trying to earn money by offering games of chance. u Casinos would go out of business if they had fair games.
24
24 Example: Charity bazaar u John proposes that the charity bazaar sell tickets for $2. The player rolls 2 dice. The player wins $12 if the roll is a 2 or a 11. On the average, how much will the charity win each time a player rolls the dice? u P(-$10) = 1/36 + 2/36 = 3/36 = 1/12 P($2) = 1- 1/12 = 11/12 u E(winnings) = (-$10) * (1/12) + ($2)*(11/12) = (-$10 + $22)/12 = $12/12 = $1 u The game is ___ fair. This is desirable for _____.
25
25 Odds u Unfortunately popular slang uses “odds” in at least 3 different ways. u It may indicate the payoff if you win a bet u It may be a synonym for probability –This is used by the Washington State Lottery –It is used in many popular articles about odds u It may indicate the ratio of the probability of winning to the probability of losing –This is the definition we will use –This the definition is the one normally sees in math and statistics books
26
26 Odds of Winning u Suppose the probability of winning is p and probability of losing is q = 1 - p. Then the odds of winning are p:q. u We treat p:q as a fraction and normally multiply and divide both parts to clear of fractions and to remove common factors. u The odds of losing are q:p.
27
27 Example: Odds u In the revised charity bazaar game, the probability of a player winning is 1/12. u The probability of losing is ____ u The odds of winning are 1/12:11/12 or ____ u The odds of losing are ______
28
28 Example: Odds u You roll two dice and win if you roll a 9. u The probability of winning is 4/36 u The probability of losing is ____ u The odds of winning are 4/36:32/36 = 4:32 = ___ : ___
29
29 Example: Odds u The odds of winning a game are 5:31. What is the probability of winning and losing? u Suppose that you played 5+31 = 36 times. You would expected to win 5 times and lose 31 times. u The probability of winning is 5/36. The probability of losing is 31/36. u Algebraically, suppose p:q = p:(1-p) = a:b Treat ":" like it was a "/" bp = a(1-p) ==> bp = a - ap ==> ap +bp = a ==> (a+b)p = a ==> p = a/(a+b)
30
30 Example: Odds u The odds of winning first prize in a raffle are 1:1999. What is the probability of winning? u Suppose that 1+1999 = 2000 tickets are sold. We would expect to win 1 time out of 2000 u The probability of winning is 1/2000.
31
31 Example: Raffle u The prize list for a raffle is u Prize Number Value Odds New car (Kia) 1 $10,000 1:9999 TV set 10 $300 1:999 Meal for two 20 $50 1:499 u Determine: –Expected value of a ticket –Number of tickets sold –If all of tickets costing $2.50 each are sold and if there is an addition cost of $2000 for printing and advertising, write a budget for the sponsors
32
32
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.