Professional Documents
Culture Documents
4 Probability
4 Probability
4 Probability
Outline
Basic Concepts
Rules of Probability
Conditional Probability
Case Analysis
Bayes’ Theorem
Random Experiment
• A random experiment is an action or process that leads to one of several
outcomes.
• Examples:
1. Experiment: Flip a coin.
Outcomes: Heads and tails.
2. Experiment: Record the party that a voter will vote in an upcoming election.
Outcomes: Party A, Party B,…
Sample Space
• A sample space of a random experiment is a list of all possible
outcomes of the experiment.
Event
• An individual outcome of a sample space is called a simple event.
• An event is a collection or set of one or more simple events in a sample space.
Probability
• A probability is a numerical value that measures the likelihood that an
uncertain event occurs.
• Requirements of Probabilities:
The probability of any outcome must lie between 0 and 1.
The sum of the probabilities of all the outcomes in a sample space must be 1.
Approaches to Assigning Probabilities
• There are three ways to assign a probability, P(Oi), to an outcome, Oi, namely:
Classical approach: Based on equally likely events.
Relative frequency: Assigning probabilities based on experimentation or
historical data.
Subjective approach: Assigning probabilities based on the assignor’s
(subjective) judgment.
Classical Approach
• If an experiment has n possible outcomes, this method would assign a
probability of 1/n to each outcome. It is necessary to determine the number of
possible outcomes.
Experiment Rolling a die
Outcomes {1, 2, 3, 4, 5, 6}
Probabilities Each sample point has a 1/6 chance of occurring.
• No matter which method is used to assign
probabilities all will be interpreted in the relative
frequency approach.
• Example: Suppose an investor have used the
subjective approach to determine that there is a
Interpreting 65% probability that a particular stock’s price will
Probability increase over the next month.
• Interpretation: If we had an infinite number of
stocks with same economic and market
characteristics as the one the investor will buy,
65% of them will increase in price over the next
month.
Probability from Relative Frequency: A
demonstration
Suppose Tata Steel is planning to increase the capacity of one
of its plants.
A Ac A B
Intersection of Events
A B
Rules of Probability
Complement Rule
•The probability of the complement of an
event, 𝑃(𝐴𝐶 ), is equal to one minus the
probability of the event.
A Ac
• That is,
𝑃 𝐴𝐶 = 1 − 𝑃 𝐴 .
An Example
• According to the Census, 37% of women ages 25 to 34 have earned at least a
college degree as compared with 30% of men in the same age group.
a. What is the probability that a randomly selected woman between the ages
of 25 to 34 does not have a college degree?
b. What is the probability that a randomly selected man between the ages of
25 to 34 does not have a college degree?
Example contd..
a. Let’s define A as the event that a randomly selected woman between the
ages of 25 and 34 has a college degree.
Then 𝑃(𝐴) = 0.37.
In this problem, we are interested in the complement of A.
So 𝑃(𝐴𝐶 ) = 1 – 𝑃(𝐴) = 1 – 0.37 = 0.63.
Example contd..
b. We now define B as the event that a randomly selected man between the
ages of 25 to 34 has a college degree.
So 𝑃(𝐵) = 0.30.
Thus 𝑃 𝐵𝐶 = 1 − 𝑃 𝐵 = 1 − 0.30 = 0.70.
Addition Rule
• The probability that event A or B A∩B
occurs, or that at least one of these
events occurs, is
A∪B
An Example
• Anthony feels that he has a 75% chance of getting an A in Statistics and a 55%
chance of getting an A in Managerial Economics. He also believes he has a 40%
chance of getting an A in both classes.
What is the probability that he gets an A in at least one of these courses?
What is the probability that he does not get an A in either of these courses?
Example contd..
• AS : Getting an A in Statistics.
• AM: Getting an A in Managerial Economics.
• Given P(AS) = 0.75 and P(AM) = 0.55 and P(AS ∩ AM) = 0.40.
• In order to find the probability that he receives an A in at least one
of these courses, we calculate:
P(AS ∪ AM) = 𝑃(AS) + 𝑃(AM) – 𝑃(AS ∩ AM)
= 0.75 + 0.55 – 0.40 = 0.90.
Example contd..
• The probability that he does not receive an A in either of these two
courses is actually the complement of the union of the two events;
that is, P((AS ∪ AM)c).
• Using the complement rule, we have
𝑃(𝐴 ∩ 𝐵) = 0
A B
A∪B
P(A ∪ B) = P(A) + P(B)
An Example
• Samantha Greene, a college senior, contemplates her future immediately after
graduation. She thinks there is a 25% chance that she will join the Peace Corps
and a 35% chance that she will enroll in a full-time law school program in the
United States.
• What is the probability that she does not choose either of these options?
An Example
• Samantha Greene, a college senior, contemplates her future
immediately after graduation. She thinks there is a 25% chance that
she will join the Peace Corps and a 35% chance that she will enroll in
a full-time law school program in the United States.
• What is the probability that she does not choose either of these
options?
𝑃 𝐴∩𝐵
P (A | B) =
𝑃(𝐵)
An Example
• An economist predicts a 60% chance that country A will perform poorly
economically and a 25% chance that country B will perform poorly economically.
There is also a 16% chance that both countries will perform poorly. What is the
probability that country A performs poorly given that country B performs
poorly?
An Example
• An economist predicts a 60% chance that country A will perform poorly
economically and a 25% chance that country B will perform poorly economically.
There is also a 16% chance that both countries will perform poorly. What is the
probability that country A performs poorly given that country B performs
poorly?
• Given P(A) = 0.60, P(B) = 0.25, and P(A ∩ B) = 0.16.
𝑃 𝐴 ∩𝐵 0.16
P (A | B) = 𝑃(𝐵)
=
0.25
= 0.64
Independent Events
• Two events are independent if the occurrence of one event does not affect
the probability of the occurrence of the other event.
• Events are considered dependent if the occurrence of one is related to the
probability of the occurrence of the other.
• Two events are independent if and only if
P A | B P A
An Example
• Suppose that for a given year there is a 2% chance that your desktop computer
will crash and a 6% chance that your laptop computer will crash. Moreover,
there is a 0.12% chance that both computers will crash. Is the reliability of the
two computers independent of each other?
Example contd..
• D: Desktop crashes
• L: Laptop crashes.
• P(D) = 0.02, P(L) = 0.06, and P(D ∩ L) = 0.0012.
• The reliability of the two computers is independent because
𝑃(𝐷 ∩ 𝐿) 0.0012
𝑃 𝐷𝐿 = = = 0.02 = P D .
𝑃(𝐿) 0.06
Multiplication Rule
• The probability that A and B both occur is equal to:
𝑃(𝑆 ∩ 𝐵) 0.33
𝑃 𝑆𝐵 = = = 0.66.
𝑃(𝐵) 0.50
Multiplication Rule for Independent Events
• The joint probability of A and B equals the product of the individual
probabilities of A and B:
P(A ∩ B) = P(A)P(B)
Variables
• Default: A factor with levels “No” and “Yes” indicating whether the customer
defaulted on their debt.
• Student: A factor with levels “No” and “Yes” indicating whether the customer is a
student.
• Balance: The average balance that the customer has remaining on their credit card
after making their monthly payment.
• Income: Income of customer.
Default Data Set
ID Balance Income Student Default
1 729.52 44361.63 No No
2 817.18 12106.13 Yes No
3 1073.55 31767.14 No No
4 529.25 35704.49 No No
5 785.66 38463.5 No No
6 919.59 7491.559 Yes No
7 825.5 24905.23 No No
8 808.67 17600.45 Yes No
9 1161.06 37468.53 No No
Revisit to Case 2..
Student
Default Total
No Yes
3. Are the students more risky as compared to all customers who are not
students?
𝑃(Default ∩ Not Student) 206
Pr Default Not Student = = = 2.92%.
𝑃(Not Student) 7056
Total Probability
Total Probability
B c Consider event 𝐵 and its complement
B A
•
𝑐
𝐵 .
These two events are mutually exclusive
•
and exhaustive.
•The circle, representing event A,
consists 𝑐entirely of its intersections with
𝐵 and 𝐵 .
P(A ∩ B) P(A ∩ Bc) •𝑃(𝐴) is the sum of its intersections with
some mutually exclusive and exhaustive
events corresponding to an experiment.
Total Probability
• The total probability rule conditional on two events, B and Bc, is
𝑃 𝑅𝑐 = 0.20 𝑃 𝐴 𝑅𝑐 = 0.05 𝑃 𝐴 ∩ 𝑅𝑐
= 𝑃 𝐴 𝑅𝑐 𝑃 𝑅𝑐
= 0.01
𝑃 𝑅 + 𝑃 𝑅𝑐 = 1.00 𝑃 𝐴
=𝑃 𝐴∩𝑅
+ 𝑃 𝐴 ∩ 𝑅𝑐 = 0.29
Example contd..
1. 𝑃 𝑅𝑐 = 0.20.
2. 𝑃 𝐴 ∩ 𝑅 = 𝑃 𝐴 𝑅 𝑃 𝑅 = 0.28
3. 𝑃 𝐴 ∩ 𝑅𝑐 = 𝑃 𝐴 𝑅𝑐 𝑃 𝑅𝑐 = 0.01
4. 𝑃 𝐴 = 𝑃 𝐴 ∩ 𝑅 + 𝑃 𝐴 ∩ 𝑅𝑐 = 0.29
Bayes’
Theorem
Bayes’ Theorem
• Suppose that a person is worried that he might have a rare disease.
• He decides to get tested, and suppose that the testing methods for this disease
are correct 99 percent of the time (in other words, if he has the disease, it shows
that he does with 99 percent probability, and if he doesn't have the disease, it
shows that he does not with 99 percent probability).
• Suppose this disease is actually quite rare, occurring randomly in the general
population in only one of every 10,000 people.
• If the test results come back positive, what are his chances that he actually has
the disease?
Bayes’ Theorem
Test Results
True Positive Negative Total
Status Disease
No Disease
Total 10,00,000
Bayes’ Theorem
Test Results
True Positive Negative Total
Status Disease 100
No Disease 99,99,00
Total 1,000,000
Bayes’ Theorem
Test Results
True Positive Negative Total
Status Disease 99 1 100
No Disease 99,99,00
Total 1,000,000
Bayes’ Theorem
Test Results
True Positive Negative Total
Status Disease 99 1 100
No Disease 9999 989901 99,99,00
Total 1,000,000
Bayes’ Theorem
Test Results
True Positive Negative Total
Status Disease 99 1 100
No Disease 9999 989901 99,99,00
Total 10098 989902 1,000,000
Bayes’ Theorem
Test Results
True Positive Negative Total
Status Disease 99 1 100
No Disease 9999 989901 99,99,00
Total 10098 989902 1,000,000
99
𝑃 𝐷𝑖𝑠𝑒𝑎𝑠𝑒 𝑃𝑜𝑠𝑖𝑡𝑖𝑣𝑒 = = 0.0098 < 1%.
10098
Bayes’ Theorem
Bayes’ Theorem
• A procedure for updating probabilities based on new information.
• Prior probability is the original (unconditional) probability (e.g., P(B) ).
• Posterior probability is the updated (conditional) probability (e.g., P(B | A)).
• In its most basic form, if we know 𝑃(𝐴 | 𝐵), we can apply Bayes’ Law to
determine 𝑃(𝐵 |𝐴).
Bayes’ Theorem
• Given a set of prior probabilities for an event and some new information, the rule for
updating the probability of the event is called Bayes’ theorem.
P(A ∩ B)
P(B | A) =
P(A ∩ B) + P(A ∩ Bc)
P(A | B)P(B)
P(B | A) =
P(A | B)P(B) + P(A | Bc)P(Bc)
Example
• In a lie-detector test, an individual is asked to answer a series of questions while
connected to a polygraph (lie detector).
• This instrument measures and records several physiological responses of the
individual on the basis that false answers will produce distinctive
measurements.
• Assume that 99% of the individuals who go in for a polygraph test tell the truth.
• These tests are considered to be 95% reliable. In other words, there is a 95%
chance that the test will detect a lie if an individual actually lies.
Example contd..
• Let there also be a 0.5% chance that the test erroneously detects a lie even
when the individual is telling the truth.
• An individual has just taken a polygraph test and the test has detected a lie.
• What is the probability that the individual was actually telling the truth?
Example contd..
• Let D denote the outcome that the polygraph detects a lie and T represent the
outcome that an individual is telling the truth.
• Given 𝑃(𝑇) = 0.99. This implies 𝑃 𝑇 𝑐 = 0.01.
• Also 𝑃 𝐷 𝑇 𝑐 = 0.95 and 𝑃 𝐷 𝑇 = 0.005.
• We have to find out 𝑃 𝑇 𝐷 .
Computing Posterior Probabilities
P(D ∩ T)
P(T | D) =
P(D ∩ T) + P(D ∩𝑇 𝑐 )
(0.005)(0.99) 0.00495
= =
(0.005)(0.99) + (0.95)(0.01) 0.01445
= 0.34256
Reading Material
• Sections 4.1, 4.2, 4.3 and 4.4
• Additional Questions and Cases uploaded in VC