ECO2004_Ch5
ECO2004_Ch5
1. What is a probability?
2) Interpretation of probabilities
• A value near zero means the event is not likely to happen.
• A value near one means it is likely.
1
2. Approaches to assigning probabilities
2) Classical probability
• Based on the assumption that the outcomes of an experiment
are equally likely.
• To find the probability of a particular outcome, we divide the
number of favorable outcomes by the total number of possible
outcomes:
Number of favorable outcomes
Probability of an event = .
Total number of possible outcomes
2
• Note!
a. Mutually exclusive: Events are mutually exclusive if the
occurrence of any one event means that none of the others
can occur at the same time. (In a die-tossing experiment,
every outcome will be either an even number or an odd
number.)
b. Collectively Exhaustive: Events are collectively exhaustive
if at least one of the events must occur when an experiment
is conducted. (In a die-tossing game, the set of outcomes is
collectively exhaustive.)
c. If the set of events is collectively exhaustive and the events
are mutually exclusive, the sum of the probabilities equals 1.
3) Empirical probability
• Relative frequencies.
• The probability of an event happening is the fraction of the
time similar events happened in the past.
• Formula:
Number of times the event occurs
Empirical Probability = .
Total number of observations
3
• Example of LLN: Suppose we toss a fair coin. The result of
each toss is either an H or a T. If we toss the coin many times,
the probability of getting H’s will get close to 0.5. The
following table (on 131) reports the results of an experiment of
tossing a fair coin 1, 10, 50, 100, 500, 1,000 and 10,000 times
and computing the relative frequency of H’s.
4
4. Some rules for computing probabilities
1) Rules of addition
• Special Rule of Addition: If two events A and B are mutually
exclusive, the probability of one or the other event’s occurring
equals the sum of their probabilities.
𝑃𝑃(𝐴𝐴 𝑜𝑜𝑜𝑜 𝐵𝐵) = 𝑃𝑃(𝐴𝐴 ∪ 𝐵𝐵) = 𝑃𝑃(𝐴𝐴) + 𝑃𝑃(𝐵𝐵)
(Call 𝐴𝐴 ∪ 𝐵𝐵 as A union B)
5
• Example: A sample of employees of World Enterprises is to be
surveyed about a new health care plan. The employees are
classified as follows:
6
• General Rule of Addition: What if the events are not mutually
exclusive? In that case the general rule of addition is used.
The probability that event A or B happens, i.e., P(A or B), is
computed by the following formula:
P(A or B) = P(A) + P(B) - P(A and B)
𝑃𝑃(𝐴𝐴 ∪ 𝐵𝐵) = 𝑃𝑃(𝐴𝐴) + 𝑃𝑃(𝐵𝐵) − 𝑃𝑃(𝐴𝐴 ∩ 𝐵𝐵)
(Call 𝐴𝐴 ∩ 𝐵𝐵 as A intersection B)
7
2) Rules of multiplication (How to get the joint probability? – Part 1)
• Special Rule of multiplication
a. Independence: Two events A and B are independent if the
occurrence of one has no effect on the probability of the
occurrence of the other. Note! The independency of A and
B does not mean that they are mutually exclusive.
Similarly,
𝑃𝑃(𝑅𝑅1 ∩ 𝑁𝑁𝑅𝑅2 ) = 𝑃𝑃(𝑅𝑅1 )𝑃𝑃(𝑁𝑁𝑁𝑁2 ) = (0.6)(0.4) = 0.24
𝑃𝑃(𝑁𝑁𝑅𝑅1 ∩ 𝑅𝑅2 ) = 𝑃𝑃(𝑁𝑁𝑅𝑅1 )𝑃𝑃(𝑅𝑅2 ) = (0.4)(0.6) = 0.24
𝑃𝑃(𝑁𝑁𝑅𝑅1 ∩ 𝑁𝑁𝑅𝑅2 ) = 𝑃𝑃(𝑁𝑁𝑁𝑁1 )𝑃𝑃(𝑁𝑁𝑁𝑁2 ) = (0.4)(0.4) = 0.16
8
• General rule of multiplication
a. Conditional Probability
– A conditional probability is the probability of a
particular event occurring, given that another event has
occurred.
– The probability of the event A given that the event B has
occurred is written P(A|B).
– Formula:
P(A ∩ B) = P(A)P(B|A)
9
• Example 2: 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. What is the
likelihood both shirts selected are white?
Solution:
The event that the first shirt selected it white is 𝑊𝑊1 . The
probability is 𝑃𝑃(𝑊𝑊1 ) = 9/12. The event that the second shirt
selected is also white is identified as 𝑊𝑊2 . The conditional
probability that the second shirt selected is white, given that
the first shirt selected is also white, is 𝑃𝑃(𝑊𝑊2 |𝑊𝑊1 ) = 8/11. To
determine the probability of 2 white shirts being selected we
use formula:
9 8
𝑃𝑃(𝑊𝑊1 ∩ 𝑊𝑊2 ) = 𝑃𝑃(𝑊𝑊1 )𝑃𝑃(𝑊𝑊2 |𝑊𝑊1 ) = � � � � = 0.55.
12 11
10
5. Contingency Tables (How to get the joint probability? – Part 2)
1) Contingency table: Contingency table is a table used to
classify sample observations according to two or more
identifiable characteristics.
11
6. Principles of counting
1) Multiplication
• Example: An automobile dealer wants to advertise that for
$29,999 you can buy a convertible, a two-door sedan, or a
four-door model with your choice of either wire wheel covers
or solid wheel covers. How many different arrangements of
models and wheel covers can the dealer offer?
12
2) Permutation
• Example 1: Jack has three T-shirts (white, grey, and dark blue)
and a three pairs of pants (white, grey, and dark blue).
a. In how many different ways, can he wear a shirt and pants?
(9)
𝑛𝑛!
𝑛𝑛𝑃𝑃𝑟𝑟 = ,
(𝑛𝑛 − 𝑟𝑟)!
where:
𝑛𝑛 is the total number of objects.
𝑟𝑟 is the number of objects selected.
13
3) Combination
• If the order of the selected objects is not important, any
selection is called a combination.
• Formula:
𝑛𝑛!
𝑛𝑛𝐶𝐶𝑟𝑟 =
𝑟𝑟! (𝑛𝑛 − 𝑟𝑟)!
12! (12∙11∙10∙9∙8)∙7!
12𝐶𝐶5 =
5!7!
=
(5∙4∙3∙2∙1)∙7!
14
7. Bayes’ theorem
5) Bayes’ theorem (for two mutually exclusive events 𝐴𝐴1 and 𝐴𝐴2 )
𝑃𝑃(𝐴𝐴1 ∩ 𝐵𝐵) 𝑃𝑃(𝐴𝐴1 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 )
𝑃𝑃(𝐴𝐴1 |𝐵𝐵) = =
𝑃𝑃(𝐵𝐵) 𝑃𝑃(𝐴𝐴1 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 ) + 𝑃𝑃(𝐴𝐴2 )𝑃𝑃(𝐵𝐵|𝐴𝐴2 )
𝑃𝑃(𝐴𝐴2 ∩ 𝐵𝐵) 𝑃𝑃(𝐴𝐴2 )𝑃𝑃(𝐵𝐵|𝐴𝐴2 )
𝑃𝑃(𝐴𝐴2 |𝐵𝐵) = =
𝑃𝑃(𝐵𝐵) 𝑃𝑃(𝐴𝐴1 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 ) + 𝑃𝑃(𝐴𝐴2 )𝑃𝑃(𝐵𝐵|𝐴𝐴2 )
15
7) Example for two-event case
Percentage Percentage
Good Parts Bad Parts
Supplier 1 98 2
Supplier 2 95 5
Let 𝐴𝐴1 denote the event that a part is from supplier 1 and 𝐴𝐴2
denote the event that a part is from supplier 2. If a part is selected
at random we would assign the prior probabilities:
𝑃𝑃(𝐴𝐴1 ) = 0.65 and 𝑃𝑃(𝐴𝐴2 ) = 0.35
If we let 𝐺𝐺 denote the event that a part is good and 𝐵𝐵 denote the
event that a part is bad, the information in the above table
provides the following conditional probabilities:
𝑃𝑃(𝐺𝐺|𝐴𝐴1 ) = 0.98 𝑃𝑃(𝐵𝐵|𝐴𝐴1 ) = 0.02
𝑃𝑃(𝐺𝐺|𝐴𝐴2 ) = 0.95 𝑃𝑃(𝐵𝐵|𝐴𝐴2 ) = 0.05
Thus, the probability that a bad part came from supplier 1:
(𝐴𝐴1 ∩ 𝐵𝐵) 𝑃𝑃(𝐴𝐴1 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 )
𝑃𝑃(𝐴𝐴1 |𝐵𝐵) = =
𝑃𝑃(𝐵𝐵) 𝑃𝑃(𝐴𝐴1 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 ) + 𝑃𝑃(𝐴𝐴2 )𝑃𝑃(𝐵𝐵|𝐴𝐴2 )
(0.65)(0.02) 0.0130
= = = 0.4262
(0.65)(0.02) + (0.35)(0.05) 0.0305
16
Similarly,
(𝐴𝐴2 ∩ 𝐵𝐵) 𝑃𝑃 (𝐴𝐴2 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 )
𝑃𝑃(𝐴𝐴2 |𝐵𝐵) = =
𝑃𝑃(𝐵𝐵) 𝑃𝑃(𝐴𝐴1 )𝑃𝑃(𝐵𝐵|𝐴𝐴1 ) + 𝑃𝑃(𝐴𝐴2 )𝑃𝑃(𝐵𝐵|𝐴𝐴2 )
(0.35)(0.05) 0.0175
= = = 0.5738
(0.65)(0.02) + (0.35)(0.05) 0.0305
17