Title: Cookbooks
1(No Transcript)
2Cookbooks!
3Patrick's Casino
4http//www.mendelsohn1.com81/java_example_1.html
5(No Transcript)
6What is the probability of picking an ace?
7 Probability
8What is the probability of picking an ace? 4 / 52
.077 or 7.7 chances in 100
9Every card has the same probability of being
picked
10What is the probability of getting a 10, J, Q, or
K?
11(.077) (.077) (.077) (.077) .308 16 / 52
.308
12What is the probability of getting a 2 and then
after replacing the card getting a 3 ?
13(.077) (.077) .0059
14What is the probability that the two cards you
draw will be a black jack?
1510 Card (.077) (.077) (.077) (.077)
.308 Ace after one card is removed 4/51
.078 (.308)(.078) .024
16Practice
- What is the probability of rolling a 1 using a
six sided dice? - What is the probability of rolling either a 1
or a 2 with a six sided dice? - What is the probability of rolling two 1s
using two six sided dice?
17Practice
- What is the probability of rolling a 1 using a
six sided dice? - 1 / 6 .166
- What is the probability of rolling either a 1
or a 2 with a six sided dice? - What is the probability of rolling two 1s
using two six sided dice?
18Practice
- What is the probability of rolling a 1 using a
six sided dice? - 1 / 6 .166
- What is the probability of rolling either a 1
or a 2 with a six sided dice? - (.166) (.166) .332
- What is the probability of rolling two 1s
using two six sided dice?
19Practice
- What is the probability of rolling a 1 using a
six sided dice? - 1 / 6 .166
- What is the probability of rolling either a 1
or a 2 with a six sided dice? - (.166) (.166) .332
- What is the probability of rolling two 1s
using two six sided dice? - (.166)(.166) .028
20Cards
- What is the probability of drawing an ace?
- What is the probability of drawing another ace?
- What is the probability the next four cards you
draw will each be an ace? - What is the probability that an ace will be in
the first four cards dealt?
21Cards
- What is the probability of drawing an ace?
- 4/52 .0769
- What is the probability of drawing another ace?
- 4/52 .0769 3/51 .0588 .0769.0588 .0045
- What is the probability the next four cards you
draw will each be an ace? - .0769.0588.04.02 .000003
- What is the probability that an ace will be in
the first four cards dealt? - .0769.078.08.082 .3169
22Probability
1.00
.00
Event must occur
Event will not occur
23Probability
- In this chapter we deal with discreet variables
- i.e., a variable that has a limited number of
values - Previously we discussed the probability of
continuous variables (Z scores) - It does not make sense to seek the probability of
a single score for a continuous variable - Seek the probability of a range of scores
24Key Terms
- Independent event
- When the occurrence of one event has no effect on
the occurrence of another event - e.g., voting behavior, IQ, etc.
- Mutually exclusive
- When the occurrence of one even precludes the
occurrence of another event - e.g., your year in the program
25Key Terms
- Joint probability
- The probability of the co-occurrence of two or
more events - The probability of rolling a one and a six
- p (1, 6)
- p (Blond, Blue)
26Key Terms
- Conditional probabilities
- The probability that one event will occur given
that some other vent has occurred - e.g., what is the probability a person will get
into a PhD program given that they attended
Villanova - p(Phd l Villa)
- e.g., what is the probability that a person will
be a millionaire given that they attended college - p( l college)
27Example
28What is the simple probability that a person will
own a video game?
29What is the simple probability that a person will
own a video game? 35 / 100 .35
30What is the conditional probability of a person
owning a video game given that he or she has
children? p (video l child)
31What is the conditional probability of a person
owning a video game given that he or she has
children?25 / 55 .45
32What is the joint probability that a person will
own a video game and have children? p(video,
child)
33What is the joint probability that a person will
own a video game and have children? 25 / 100 .25
3425 / 100 .25.35 .55 .19
35The multiplication rule assumes that the two
events are independent of each other it does
not work when there is a relationship!
36Practice
37p (republican) p(female)p (republican,
male) p(female, republican)p (republican l
male) p(male l republican)
38p (republican) 70 / 162 .43p (republican,
male) 52 / 162 .32p (republican l male) 52
/ 79 .66
39p(female) 83 / 162 .51p(female, republican)
18 / 162 .11p(male l republican) 52 / 70
.74
40Foot Race
- Three different people enter a foot race
- A, B, C
- How many different combinations are there for
these people to finish?
41Foot Race
- A, B, C
- A, C, B
- B, A, C
- B, C, A
- C, B, A
- C, A, B
- 6 different permutations of these three names
taken three at a time
42Foot Race
- Six different people enter a foot race
- A, B, C, D, E, F
- How many different permutations are there for
these people to finish?
43Permutation
-
- Ingredients
- N total number of events
- r number of events selected
44Permutation
-
- Ingredients
- N total number of events
- r number of events selected
- A, B, C, D, E, F Note 0! 1
45Foot Race
- Six different people enter a foot race
- A, B, C, D, E, F
- How many different permutations are there for
these people to finish in the top three? - A, B, C A, C, D A, D, E B, C, A
46Permutation
-
- Ingredients
- N total number of events
- r number of events selected
47Permutation
-
- Ingredients
- N total number of events
- r number of events selected
48Foot Race
- Six different people enter a foot race
- If a person only needs to finish in the top three
to qualify for the next race (i.e., we dont care
about the order) how many different outcomes are
there?
49Combinations
-
- Ingredients
- N total number of events
- r number of events selected
50Combinations
-
- Ingredients
- N total number of events
- r number of events selected
51Note
- Use Permutation when ORDER matters
- Use Combination when ORDER does not matter
52Practice
- There are three different prizes
- 1st 1,00
- 2nd 500
- 3rd 100
- There are eight finalist in a drawing who are
going to be awarded these prizes. - A person can only win one prize
- How many different ways are there to award these
prizes?
53Practice
-
- 336 ways of awarding the three different prizes
54Practice
- There are three prizes (each is worth 200)
- There are eight finalist in a drawing who are
going to be awarded these prizes. - A person can only win one prize
- How many different ways are there to award these
prizes?
55Combinations
-
- 56 different ways to award these prizes
56Practice
- A shirt comes in four sizes and six colors. One
also has the choice of a dragon, alligator, or no
emblem on the pocket. How many different kinds
of shirts can you order?
57Practice
- A shirt comes in four sizes and six colors. One
also has the choice of a dragon, alligator, or no
emblem on the pocket. How many different kinds
of shirts can you order? - 463 72
- Dont make it hard on yourself!
58Practice
- In the recent California Governor race there were
135 candidates. The state created ballots that
would list candidates in different orders. How
many different types of ballots did the state
need to create?
59Practice
-
- 2.6904727073180495e230
- Or
60- 26,904,727,073,180,495,000,000,000,000,000,000,00
0,000,000,000,000,000,000,000,000,000,000,000,000,
000,000,000,000,000,000,000,000,000,000,000,000,00
0,000,000,000,000,000,000,000,000,000,000,000,000,
000,000,000,000,000,000,000,000,000,000,000,000,00
0,000,000,000,000,000,000,000,000,000,000,000,000,
000,000,000
61Practice
- Page 137
- Exercise 5.2
- Exercise 5.3
- Exercise 5.4 and 5.5
625.2
- p 1 / 1000 .001
- p 2 / 1000 .002
- p .001 .002 .003
635.3
- p 1 / 9 .111
- p (2 / 10)(1/9) (.20)(.111) .022
- p (1/10)(2/9) (.10)(.22) .022
- p (.022)(.022) .044
645.4
- p 1 / 9 .111
- p (2 / 10)(1/9) (.20)(.111) .022
- p (b win 1, y win 2)
- p (1/10)(2/9) (.10)(.22) .022
- p (y win 1, b win 1)
- p (.022)(.022) .044
- p(b win 1, y win 2) p (y win 1, b win 2)
655.5
- p 1 / 9 .111
- p(win 2nd l lost1st)
- p (2 / 10)(1/9) (.20)(.111) .022
- p (1/10)(2/9) (.10)(.22) .022
- p (.022)(.022) .044
66Practice
- Page 139 --
- Exercise 5.26
- Exercise 5.27
- Exercise 5.28
675.26
685.27
695.28
There are 60 possible orders to push 3 out of 5
buttons. The probability that the subject will
choose the correct order on the first trial is p
(1/60) .017
70Extra Brownie Points!
- Lottery
- To Win
- choose the 5 winnings numbers
- from 1 to 49
- AND
- Choose the "Powerball" number
- from 1 to 42
- What is the probability you will win?
- Use combinations to answer this question
71- p of winning jackpot
- Total number of ways to win / total number of
possible outcomes
72Total Number of Outcomes
Different 5 number combinations
Different Powerball outcomes
Thus, there are 1,906,884 42 80,089,128 ways
the drawing can occur
73Total Number of Ways to Win
Only one way to win
74(No Transcript)