4 Probability
4 Probability
Statistics for Managers Using Microsoft Excel®7e Copyright ©2014 Pearson Education, Inc. 1
Learning Objectives
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 2
Basic Probability Concepts
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 3
Sample Space
The Sample Space is the collection of all possible
outcomes
e.g. All 6 faces of a die:
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 4
Events
Each possible outcome of a variable is an event. A subset of the
sample space is called an event.
■ Simple event
■
An event described by a single characteristic or outcome
■
e.g., A day in January from all days in 2013
■ Joint event
■
An event described by two or more characteristics
■
e.g. A day in January that is also a Wednesday from all days in 2013
Experiment Outcomes
Flip a coin H,T
Grades in exams A+,A,B+,B,C+……F
Rolling a die 1,2,3…..6
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Assessing Probability
There are three approaches
1. a priori/ Classical : based on prior knowledge of the process i.e.
No. of outcomes favorable to Event X / total no. of outcomes
probability of occurrence
Assuming
all
outcomes
are equally 2. empirical probability: based on repetition of experiments
likely
probability of occurrence
3. subjective probability
based on a combination of an individual’s past experience,
personal opinion, and analysis of a particular situation
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 7
Example of a priori probability
Ex 2 Rolling a die
What is the probability of getting a 2 when we roll a die once?
Sample space = 1,2,3,4,5,6
Prob of getting any no. is equal
= 1/6
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 8
Empirical Probability
The empirical approach to probability is based on what is called the law of large
numbers. The key to establishing probabilities empirically is that more
observations will provide a more accurate estimate of the probability.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Example of empirical probability
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 1
Subjective probability
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 1
Summary of Types of Probability
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Mutually Exclusive Events
■ Mutually exclusive events are the events who have nothing in common ie
disjoint.
■
Events that cannot occur simultaneously
■
A clear example is the set of outcomes of a single coin toss, which
can result in either heads or tails, but not both.
■ A ■ B
■
When A∩B = ∅ (empty)
■
P(A or B)= P(A)+P(B)
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 13
Complementary Events
The complement of Event E is the set of all outcomes in
the sample space that are not included in event E.
(Denoted E′ or Ec and read “E prime.”)
P(E) + P (E′ ) = 1 P(E) = 1 – P (E′ ) P (E′ ) = 1 – P(E)
Example:
There are 5 red chips, 4 blue chips, and 6 white chips in a
basket. Find the probability of randomly selecting a chip
that is not blue.
4
P (selecting a blue chip) 0.267
15
4 11
P (not selecting a blue chip) 1 0.733
15 15
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Collectively Exhaustive Events
■
At least one of the events must occur. For example, when rolling a six-
sided die, the outcomes 1, 2, 3, 4, 5, and 6 are collectively exhaustive,
because they cover the entire range of possible outcomes.
■
Another way to describe collectively exhaustive events, is that their union
must cover all the events within the entire sample space.
■
Events A, B, C and D are collectively exhaustive (but not mutually
exclusive ie Joint – a weekday can be in January or in Spring)
■
Events A and B are collectively exhaustive and also mutually exclusive.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 15
Probability Summary So Far
■ Probability is the numerical measure of the
likelihood that an event will occur 1 Certain
0 ≤ P(A) ≤ 1 For any event A
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 16
General Addition Rule
If A and B are two events that are not mutually exclusive(joint) , then P(A
or B) is given by the following formula:
AUB
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 17
Mutually exclusive events
A
B
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Addition Rule - Example
What is the probability that a card chosen at random from a standard
deck of cards will be either a king or a heart?
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Addition Rule - Example
What is the probability that a card chosen at random from a standard
deck of cards will be either a king or a heart?
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Marginal & Joint Probabilities in a
Contingency Table
Event
Event B1 B2 Total
A1 P(A1 and B1) P(A1 and B2) P(A1)
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 21
Contingency Tables -- For All
Days in 2013
Wed. 5 47 52
Not Wed. 26 287 313
Total Number of
Sample Space
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 22
Marginal Probability Example
P(Wed.)
P(Jan and Wed.) + P(Not Jan and Wed.) = 5/365 +47/365 = 52/365
Wed. 5 47 52
Not Wed. 26 286 313
Wed. 5 47 52
Not Wed. 26 286 313
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 24
General Addition Rule Example
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 25
Some more rules….
Complementary Probability
P(A')= 1- P(A)
Prob of no A but just B = P(A' and B)= Only B= P(B) - P(B and A)
A B
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Venn Diagrams
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Example
In a medical trial there are 70 patients. 24 receive treatment B, 30
receive treatment A and 20 receive both treatment A and B.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
P(A)= 30/70, P(B)= 24/70, P(A and B)= 20/70
a.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
b. P(A U B) = 10/70 +20/70 +4/70 = 34/70
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
e. Only receiving treatment A
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Special Rule of Multiplication
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Multiplication Rule-Example
A survey by the American Automobile Association (AAA) revealed 60 percent of
its members made airline reservations last year. Two members are selected
at random. What is the probability both made airline reservations last year?
Solution:
The probability the first member made an airline reservation last year is 0.60,
written as P(R1) = 0.60
The probability that the second member selected made a reservation is also
0.60, so P(R2) = 0.60.
Since the number of AAA members is very large, you may assume that
R1 and R2 are independent.
The conditional
probability of B given
that A has occurred
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Conditional Probability Example
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 36
P(GPS and AC)= 0.2, P(AC)= 0.7
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Independent Events
■ Two events are independent if and only if the
occurrence of one of the events does not affect
the probability of the other event i.e.
P(B | A) = P(B)
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Example
Example:
Two cards are selected, without replacement, from a
deck. Find the probability of selecting a diamond,
and then selecting a spade.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Example
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
General Multiplication Rule -
Example
A golfer has 12 golf shirts in his closet. Suppose 9 of these
shirts are white and the others blue. He gets dressed in
the dark, so he just grabs a shirt and puts it on. He plays
golf two days in a row and does not do laundry(no
replacement).
What is the likelihood both shirts selected are white?
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
The event that the first shirt selected is white is W1. The
probability is P(W1) = 9/12
The event that the second shirt selected is also white is
identified as W2. The conditional probability that the
second shirt selected is white, given that the first shirt
selected is also white, is P(W2 | W1) = 8/11.
To determine the probability of 2 white shirts being
selected we use formula: P(AB) = P(A) P(B|A)
P(W1 and W2) = P(W1)P(W2 |W1) = (9/12)(8/11) = 0.55
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Bayes’ Theorem
■ where:
Bi = ith event of k mutually exclusive and collectively
exhaustive events
A = new event that might impact P(Bi)
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 46
Example
A bag I contains 4 white and 6 black balls while
another Bag II contains 4 white and 3 black balls. One
ball is drawn at random from one of the bags, and it is
found to be black. Find the probability that it was
drawn from Bag I.
Then,
P(E1) = P(E2) = 1/2
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
By using Bayes’ theorem, the probability of drawing a
black ball from bag I out of two bags,
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Bayes’ Theorem Example
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 50
Bayes’ Theorem Example
(continued)
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc. 51
Bayes’ Theorem Example
(continued)
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Mutual exclusive vs Independent
events
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.
Statistics for Managers using Microsoft Excel® 7e Copyright ©2014 Pearson Education, Inc.