Probability
Probability
Business Applications
5E Note 4
Why Learn Probability?
• Nothing in life is certain. In everything we do, we
gauge the chances of successful outcomes, from
business to medicine to the weather
• A probability provides a quantitative description of
the chances or likelihoods associated with various
outcomes
• It provides a bridge between descriptive and
inferential statistics
Probability
Population Sample
Statistics
5E Note 4
Probabilistic vs Statistical Reasoning
• Suppose I know exactly the proportions of
car makes in California. Then I can find the
probability that the first car I see in the
street is a Ford. This is probabilistic
reasoning as I know the population and
predict the sample
• Now suppose that I do not know the
proportions of car makes in California, but
would like to estimate them. I observe a
random sample of cars in the street and then
I have an estimate of the proportions of the
population. This is statistical reasoning
5E Note 4
What is Probability?
• In Chapters 2, we used graphs and
numerical measures to describe data sets
which were usually samples.
• We measured “how often” using
Relative
Relative frequency
frequency == f/n
f/n
• As n gets larger,
Sample Population
And “How often”
= Relative frequency Probability
Note 5 of 5E
Basic Concepts
• An experiment is the process by which
an observation (or measurement) is
obtained.
• An event is an outcome of an experiment,
usually denoted by a capital letter.
– The basic element to which probability
is applied
– When an experiment is performed, a
particular event either happens, or it
doesn’t!
Note 5 of 5E
Experiments and Events
• Experiment: Record an age
– A: person is 30 years old
– B: person is older than 65
• Experiment: Toss a die
– A: observe an odd number
– B: observe a number greater than 2
Note 5 of 5E
Basic Concepts
• Two events are mutually exclusive if,
when one event occurs, the other cannot,
and vice versa.
• Experiment: Toss a die Not Mutually
–A: observe an odd number Exclusive
Note 5 of 5E
Example
• The die toss:
• Simple events: Sample space:
11 E1
S ={E1, E2, E3, E4, E5, E6}
22 E2
S
33 E3 • E1 • E3
44 E4 • E5
55
E5 • E2 • E4 • E6
66 E6
Note 5 of 5E
Basic Concepts
• An event is a collection of one or more
simple events.
S
• E1 • E3
• The die toss: A • E5
– A: an odd number B
– B: a number > 2 • E2 • E4 • E6
Note 5 of 5E
Example 3
Event Simple events Probability
Note 5 of 5E
The mn Rule
• If an experiment is performed in two stages,
with m ways to accomplish the first stage and
n ways to accomplish the second stage, then
there are mn ways to accomplish the
experiment.
• This rule is easily extended to k stages, with
the number of ways equal to
n1 n2 n3 … nk
Example: Toss two coins. The total number of
simple events is:
22
22 == 44
Note 5 of 5E
Examples m
m
Example: Toss three coins. The total number of
simple events is: 22
22 22 == 88
Example: Toss two dice. The total number of
simple events is: 6 6 = 36
6 6 = 36
Example: Toss three dice. The total number of
simple events is: 666=
666=
216
216
Example: Two M&Ms are drawn from a dish
containing two red and two blue candies. The total
number of simple events is:
44
33 == 12
12 Note 5 of 5E
Permutations
• The number of ways you can arrange
n distinct objects, taking them r at a time
is Prn n!
(n r )!
where n!n(n 1)( n 2)...( 2)(1) and 0!1.
Example: How many 3-digit lock combinations
can we make from the numbers 1, 2, 3, and 4?
The order of the choice is 4!
4
important!
P 4(3)( 2) 24
3
1! Note 5 of 5E
Examples
Example: A lock consists of five parts and
can be assembled in any order. A quality
control engineer wants to test each order for
efficiency of assembly. How many orders are
there?
The order of the choice is
important!
5!5
P 5(4)(3)( 2)(1) 120
5
0!
Note 5 of 5E
Combinations
• The number of distinct combinations of n
distinct objects that can be formed,
taking them r at a time is n n!
Cr
r!(n r )!
Example: Three members of a 5-person committee must
be chosen to form a subcommittee. How many different
subcommittees could be formed?
5 5! 5(4)(3)( 2)1 5(4)
The order of C
3 10
the choice is 3!(5 3)! 3(2)(1)( 2)1 (2)1
not important! Note 5 of 5E
Example m
m m
m mm
• A box contains six M&Ms®, four red
and two green. A child selects two M&Ms at
random. What is the probability that exactly
one is red? 2!
6 6! 6(5) 2
C1 2
The order of C
2 15 1!1!
2!4! 2(1)
the choice is ways to choose
not important! ways to choose 2 M & Ms.
1 green M & M.
4 4!
C 4
1 4 2 =8 ways to
1!3! choose 1 red and 1 P(exactly one
ways to choose green M&M. red) = 8/15
1 red M & M.
Note 5 of 5E
Example
A deck of cards consists of 52 cards, 13 "kinds"
each of four suits (spades, hearts, diamonds, and
clubs). The 13 kinds are Ace (A), 2, 3, 4, 5, 6, 7,
8, 9, 10, Jack (J), Queen (Q), King (K). In many
poker games, each player is dealt five cards from
a well shuffled deck.
Note 5 of 5E
Example
12
There are C 3 220 ways to pick the kinds of
the remaining three cards. There are 4 choices
for the suit of each of those three cards, a total
of 4 3 64 choices for the suits of all three.
Therefore the number of " one pair" hands is
13 6 220 64 1,098,240.
The probabilit y 1098240/25 98960
.422569
Note 5 of 5E
Event Relations
The beauty of using events, rather than simple events, is
that we can combine events to make other events using
logical operations: and, or and not.
The union of two events, A and B, is the event that
either A or B or both occur when the experiment is
performed. We write
A B
AB A B
Note 5 of 5E
Event Relations
The intersection of two events, A and B, is
the event that both A and B occur when the
experiment is performed. We write A B.
S
AB A B
S
AC
Note 5 of 5E
Example
Select a student from the classroom and
record his/her hair color and gender.
– A: student has brown hair
– B: student is female
– C: student is male Mutually exclusive; B = CC
What is the relationship between events B and C?
• AC: Student does not have brown hair
• BC: Student is both male and female =
• BC: Student is either male and female = all students = S
Note 5 of 5E
Calculating Probabilities for
Unions and Complements
• There are special rules that will allow you to
calculate probabilities for composite events.
• The Additive Rule for Unions:
• For any two events, A and B, the probability
of their union, P(A B), is
P ( A B ) P ( A) P ( B ) P ( A B )
A B
Note 5 of 5E
Example: Additive Rule
Example: Suppose that there were 120
students in the classroom, and that they
could be classified as follows:
A: brown hair Brown Not Brown
P(A) = 50/120 Male 20 40
B: female Female 30 30
P(B) = 60/120
P(AB)
P(AB) == P(A)
P(A) ++ P(B)
P(B) –– P(AB)
P(AB)
== 50/120
50/120 ++ 60/120
60/120 -- 30/120
30/120
== 80/120
80/120 == 2/3
2/3 Check:
Check: P(AB)
P(AB)
== (20
(20 ++ 30
30 ++ 30)/120
30)/120
Note 5 of 5E
Example: Two Dice
A: red die show 1
B: green die show 1
P(AB)
P(AB) == P(A)
P(A) ++ P(B)
P(B) –– P(AB)
P(AB)
== 6/36
6/36 ++ 6/36
6/36 –– 1/36
1/36
== 11/36
11/36
Note 5 of 5E
A Special Case
When two events A and B are
mutually exclusive, P(AB) = 0
and P(AB) = P(A) + P(B).
A: male with brown hair Brown Not Brown
P(A) = 20/120 Male 20 40
B: female with brown hair Female 30 30
P(B) = 30/120
A and B are mutually P(AB)
P(AB) == P(A)
P(A) ++ P(B)
P(B)
== 20/120
20/120 ++ 30/120
30/120
exclusive, so that
== 50/120
50/120
Note 5 of 5E
Example: Two Dice
A: dice add to 3
B: dice add to 6
P(A
P(A )) == 11 –– P(A)
CC
P(A)
Note 5 of 5E
Example
Select a student at random from
the classroom. Define:
A: male Brown Not Brown
P(A) = 60/120 Male 20 40
B: female Female 30 30
P(B) = ?
“given”
Note 5 of 5E
Example 1
Toss a fair coin twice. Define
– A: head on second toss
– B: head on first toss
P(A|B)
P(A|B) == ½
½
HH
HH P(A|not
1/4 P(A|not B)
B) == ½
½
HT
HT 1/4
1/4 P(A) does not A and B are
TH
TH change, whether
1/4 independent!
TT
TT
B happens or
not…
Note 5 of 5E
Example 2
A bowl contains five M&Ms®, two red and
three blue. Randomly select two candies, and
define
– A: second candy is red.
– B: first candy is blue.
m P(A|B)
P(A|B) =P(2
=P(2nd red|1
nd
red|1st blue)=
st
blue)= 2/4
2/4 == 1/2
1/2
m m
P(A|not
P(A|not B)
B) == P(2
P(2nd red|1
nd
red|1st red)
st
red) == 1/4
1/4
m m
P(A|B)
P(A|B) == P(A
P(Aand
and B)/P(B)
B)/P(B)
=1/36/1/6=1/6=P(A)
=1/36/1/6=1/6=P(A)
P(A|B)
P(A|B) == P(A
P(Aand
and B)/P(B)
B)/P(B)
=0/36/5/6=0
=0/36/5/6=0
Note 5 of 5E
Example 2
Suppose we have additional information in the
previous example. We know that only 49% of the
population are female. Also, of the female patients, 8%
are high risk. A single person is selected at random. What
is the probability that it is a high risk female?
Define H: high risk F: female
From
From the
the example,
example, P(F)
P(F) == .49
.49 and
and P(H|F)
P(H|F) == .08.
.08.
Use
Use the
the Multiplicative
Multiplicative Rule:
Rule:
P(high
P(high risk
risk female)
female) == P(HF)
P(HF)
== P(F)P(H|F)
P(F)P(H|F) =.49(.08)
=.49(.08) == .0392
.0392
Note 5 of 5E
The Law of Total Probability
Let S1 , S2 , S3 ,..., Sk be mutually exclusive
and exhaustive events (that is, one and only
one must happen). Then the probability of
any event A can be written as
P(A) P(A
P(A) == P(A P(A
SS11)) ++ P(A SS22)) ++ … P(A
… ++ P(A SSkk))
== P(S
P(S11)P(A|S
)P(A|S11)) ++ P(S
P(S22)P(A|S
)P(A|S22)) ++ …
… ++ P(S
P(Skk)P(A|S
)P(A|Skk))
Note 5 of 5E
The Law of Total Probability
S1
A Sk
A
A S1
Sk
S2….
P(A) P(A
P(A) == P(A P(A
SS11)) ++ P(A SS22)) ++ … P(A
… ++ P(A SSkk))
== P(S
P(S11)P(A|S
)P(A|S11)) ++ P(S
P(S22)P(A|S
)P(A|S22)) ++ …
… ++ P(S
P(Skk)P(A|S
)P(A|Skk))
Note 5 of 5E
Bayes’ Rule
Let S1 , S2 , S3 ,..., Sk be mutually exclusive and
exhaustive events with prior probabilities P(S 1),
P(S2),…,P(Sk). If an event A occurs, the posterior
probability of Si, given that A occurred is
P( Si ) P( A | Si )
P ( Si | A) for i 1, 2 ,...k
P( Si ) P( A | Si )
Proof
P ( ASi )
P( A | Si ) P ( ASi ) P ( Si ) P ( A | Si )
P( Si )
P ( ASi ) P( Si ) P( A | Si )
P ( Si | A)
P ( A) P( Si ) P( A | Si )
Note 5 of 5E
Example
From a previous example, we know that 49% of the
population are female. Of the female patients, 8% are
high risk for heart attack, while 12% of the male patients
are high risk. A single person is selected at random and
found to be high risk. What is the probability that it is a
male? Define H: high risk F: female M: male
We P( M ) P( H | M )
We know:
know: .49
P( M | H )
P(F)
P(F) == P( M ) P( H | M ) P( F ) P( H | F )
P(M) .51
P(M) ==
.51 (.12)
.61
P(H|F)
P(H|F) == .08 .51 (.12) .49 (.08)
P(H|M)
P(H|M) == .12
Note 5 of 5E
Example
Suppose a rare disease infects one out of
every 1000 people in a population. And
suppose that there is a good, but not perfect,
test for this disease: if a person has the
disease, the test comes back positive 99% of
the time. On the other hand, the test also
produces some false positives: 2% of
uninfected people are also test positive. And
someone just tested positive. What are his
chances of having this disease?
Note 5 of 5E
Example
Define A: has the disease B: test positive
We
We know:
know:
P(A)
P(A) == .001
.001 P(A
P(A )) =.999
cc
=.999
P(B|A)
P(B|A) == .99
.99 P(B|A
P(B|Ac)) =.02
c
=.02
2
“Psychology of the Scientist: Work Related Attitudes of U.S. Scientists”
(Psychological Reports (1991): 443 – 450). Note 5 of 5E
Example
If all the cells are divided by the total number
surveyed, 778, the resulting table is a table of
empirically derived probabilities.
Job Satisfaction
Satisfied Unsatisfied Total
L
E
College 0.095 0.055 0.150
V
E
High School 0.288 0.220 0.508
L
Elementary 0.162 0.180 0.342
Total 0.545 0.455 1.000
Note 5 of 5E
Job Satisfaction
Satisfied Unsatisfied Total
P(C S) 0.095
P(C) 0.150 and P(C | S) 0.175
P(S) 0.545
P(CS)?
== (1
(1 -- 0.8)
0.8) (1
(1 –– 0.7)
0.7) ++ (0.7)
(0.7) (1
(1 –– 0.8)
0.8) ++ (0.8)
(0.8) (1
(1 –– 0.7)
0.7)
== .44
.44
P(At
P(At most
most one
one person
person pass)
pass)
== 1-P(both
1-P(both pass)
pass) == 1-
1- 0.8
0.8 xx 0.7
0.7 == .44
.44
Note 5 of 5E
Example
What is the probability that at least one of
the two friends will pass the test?
P(At
P(At least
least one
one person
person pass)
pass)
P(D
== P(D T) T)
== 0.8
0.8 ++ 0.7
0.7 -- 0.8
0.8 xx 0.7
0.7
== .94
.94
P(At
P(At least
least one
one person
person pass)
pass)
== 1-P(neither
1-P(neitherpasses)
passes) == 1-
1- (1-0.8)
(1-0.8) xx (1-0.7)
(1-0.7) == .94
.94
Note 5 of 5E
Example
Suppose we know that only one of the two
friends passed the test. What is the
probability that it was Dick?
P(D
P(D || exactly
exactly one
one person
person passed)
passed)
P(D
== P(D exactly
exactly one
one person
person passed)
passed) // P(exactly
P(exactly one
one
person
person passed)
passed)
P(D T ) / (P(D T ) + P(D
== P(D T ) / (P(D T ) + P(D T)
T) ))
cc cc cc
== 0.8
0.8 xx (1-0.7)/(0.8
(1-0.7)/(0.8 xx (1-0.7)+(1-.8)
(1-0.7)+(1-.8) xx 0.7)
0.7)
== .63
.63
Note 5 of 5E
Random Variables
• A quantitative variable x is a random variable if
the value that it assumes, corresponding to the
outcome of an experiment is a chance or random
event.
• Random variables can be discrete or
continuous.
• Examples:
x = SAT score for a randomly selected student
x = number of people in a room at a randomly
selected time of day
x = number on the upper face of a randomly
tossed die Note 5 of 5E
Probability Distributions for
Discrete Random Variables
The probability distribution for a discrete
random variable x resembles the relative
frequency distributions we constructed in
Chapter 2. It is a graph, table or formula that
gives the possible values of x and the
probability p(x) associated with each value.
We must have
0 p ( x) 1 and p ( x) 1
Note 5 of 5E
Example
Toss a fair coin three times and
define x = number of heads.
x x p(x)
HHH
HHH
1/8 3 P(x
P(x == 0)
0) == 1/8
1/8 0 1/8
HHT
HHT
1/8 2 P(x
P(x == 1)
1) == 3/8
3/8 1 3/8
HTH
HTH P(x
P(x == 2)
2) == 3/8
3/8 2 3/8
1/8 2
THH
P(x
P(x == 3)
3) == 1/8
1/8 3 1/8
THH 1/8 2
HTT
HTT 1/8 1
Probability
Probability
THT
THT 1/8 1
Histogram
Histogramfor
forxx
1/8 1
TTH
TTH
1/8 0
TTT
TTT Note 5 of 5E
Example
Toss two dice and define
x = sum of two dice. x p(x)
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 Note1/36
5 of 5E
Probability Distributions
Probability distributions can be used to describe
the population, just as we described samples in
Chapter 2.
– Shape: Symmetric, skewed, mound-shaped…
– Outliers: unusual or unlikely measurements
– Center and spread: mean and standard
deviation. A population mean is called m and a
population standard deviation is called s.
Note 5 of 5E
The Mean
and Standard Deviation
Let x be a discrete random variable with
probability distribution p(x). Then the
mean, variance and standard deviation of x
are given as
Mean : xp ( x)
Variance : ( x ) p ( x)
2 2
Standard deviation : 2
Note 5 of 5E
Example
Toss a fair coin 3 times and
record x the number of heads.
x p(x) xp(x) (x-m)2p(x) 12
0 1/8 0 (-1.5)2(1/8) xp ( x) 1.5
8
1 3/8 3/8 (-0.5)2(3/8)
2 3/8 6/8 (0.5)2(3/8)
3 1/8 3/8 (1.5)2(1/8) ( x ) p ( x)
2 2
.75 .688
Note 5 of 5E
Example
The probability distribution for x the
number of heads in tossing 3 fair
coins.
Symmetric;
• Shape? mound-shaped
• Outliers? None
• Center? m = 1.5
• Spread? s = .688
m
Note 5 of 5E
Key Concepts
I. Experiments and the Sample Space
1. Experiments, events, mutually exclusive events,
simple events
2. The sample space
II. Probabilities
1. Relative frequency definition of probability
2. Properties of probabilities
a. Each probability lies between 0 and 1.
b. Sum of all simple-event probabilities equals 1.
3. P(A), the sum of the probabilities for all simple events in A
Note 5 of 5E
Key Concepts
III. Counting Rules
1. mn Rule; extended mn Rule
2. Permutations: Prn n!
(n r )!
n!
3. Combinations: Crn
r!(n r )!
IV. Event Relations
1. Unions and intersections
2. Events
a. Disjoint or mutually exclusive: P(A Ç B) =
0
b. Complementary: P(A) = 1 - P(AC )
Note 5 of 5E
Key Concepts
P( A B)
P( A | B)
3. Conditional probability: P( B)
4. Independent and dependent events
5. Additive Rule of Probability:
P ( A B ) P ( A) P ( B ) P ( A B )
Note 5 of 5E
Key Concepts
V. Discrete Random Variables and Probability
Distributions
1. Random variables, discrete and continuous
2. Properties of probability distributions
0 p ( x) 1 and p ( x) 1
3. Mean or expected value of a discrete random
variable: Mean : xp( x)
4. Variance and standard deviation of a discrete
random variable: Variance : 2 ( x ) 2 p( x)
Standard deviation : 2
Note 5 of 5E