Professional Documents
Culture Documents
YAS
YAS
Probability
Businesses want to be able to quantify the
uncertainty of future events.
For example, what are the chances that next
month’s revenue will exceed last year’s average?
or written as S = {X | X > 0}
These are
displayed in a
Venn diagram:
Random Experiments
Events
Many different compound events could be defined.
If A B = , then P(A B) = 0
Random Experiments
Collectively Exhaustive outcomes
Events are collectively exhaustive if their union is
the entire sample space S.
Two mutually exclusive, collectively exhaustive
events are dichotomous (or binary) events.
No
Warranty P(S) = P(A) + P(B) = 1
Warranty
Random Experiments
Collectively Exhaustive outcomes
More than two mutually exclusive, collectively
exhaustive events are polytomous events.
For example, a Wal-Mart customer can pay by credit card (A), debit card
(B), cash (C) or check (D).
Cash Debit
Card
P(S) = P(A) + P(B) + P(C) + P(D) = 1
Credit
Card Check
ABL: Exercises 4.1
a) A customer at Cross-word can use Visa (V), Master (M) or American
Express (A) and may buy books (B), electronic item (E) or others (O).
Enumerate the elementary events in the sample space describing a
customer's purchase. Would each elementary event equally likely?
Explain.
b) A die is thrown (1,2,3,4,5,6) and a coin is tossed (H,T) simultaneously.
Enumerate all compound events at each trial. Are they equally likely?
Explain.
c) A survey reports that CEO salaries in Indian Corporates range
anywhere from 45 to 400 lakhs of rupees. Describe the sample space.
Approaches for assigning
Probability
Three approaches to probability:
Approach Example
Empirical There is a 2 percent chance
of twins in a randomly-
chosen birth.
Classical There is a 50 % probability
of heads on a coin flip.
may be read
as “or” since
one or the other
or both events
may occur.
Rules of Probability
Union of Two Events
For example, randomly choose a card from a deck
of 52 playing cards.
If Q is the event that we draw a
queen and R is the event that we
draw a red card, what is Q R?
It is the possibility of drawing
either a queen (4 ways)
or a red card (26 ways)
or both (2 ways).
Rules of Probability
Intersection of Two Events
The intersection of two events A and B
(denoted A B or “A and B”) is the event
consisting of all outcomes in the sample space S
that are contained in both event A and event B.
may be read as
“and” since both
events occur. This is
a joint probability.
Rules of Probability
Intersection of Two Events
For example, randomly choose a card from a deck
of 52 playing cards.
P( A B)
P( A | B)
P( B)
Rules of Probability
Conditional Probability
Consider the logic of this formula by looking at the
Venn diagram. The sample space is
P( A B)
P( A | B) restricted to B, an event
P( B)
that has occurred.
A B is the part of B
that is also in A.
The ratio of the relative
size of A B to B is
P(A | B).
Rules of Probability
Example: High School Dropouts
Of the population aged 16 – 21 and not in college:
Unemployed 13.5%
High school dropouts 29.05%
Unemployed high school dropouts 5.32%
P (U D) .0532
P(U | D ) .1831 or 18.31%
P( D) .2905
P(U | D) = .1831 > P(U) = .1350
Therefore, being a high school dropout is related to
being unemployed.
Independent Events
Event A is independent of event B if the conditional
probability P(A | B) is the same as the marginal
probability P(A).
To check for independence, apply this test:
If P(A | B) = P(A) then event A is independent of B.
= 0.000027
or 27 in 1,000,000 missions.
ABL: Exercises 4.3
a) Given P(A) = .40, P(B) = .50 and P(A ∩ B) = .05. Find (a) P(A ᴜ B), (b) P(A |
B) and (C) P (B |A). Sketch a Venn diagram.
b) Let S be the event that a randomly chosen male aged 18-24 is a smoker.
Let C be the event that a randomly chosen male is an Asian. Given P(S)
= .246, P(C) = .830, and P(S ∩ C) = .232, find each probability and express
the event in words. (a) P(S’), (b) P(S ᴜ C), (C) P(S |C) and (d) P(S |C’).
c) Which pairs of events are independent?
1. P(A) = .60, P(B) = .40, P(A ∩ B) = .24
2. P(A) = .90, P(B) = .20, P(A ∩ B) = .18
3. P(A) = .50, P(B) = .70, P(A ∩ B) = .25
ABL: Exercises 4.3 Continued…
d) Rahul sets two alarm clocks to be sure he arises for his Monday
8:00 A.M. accounting exam. There is a 75% chance that either clock
will wake up Rahul. (a) What is the probability that Rahul will over
sleep? (b) If he Rahul had three clocks, would he have a 99 percent
chance of waking up?
Contingency Tables
What is a Contingency Table?
A contingency Variable 1
Variable 2
Row 2 Cell
rows and Row 3
columns. Row 4
(a) P(A), (b) P(M), (C) P(A ∩ M), (d) P(F ∩ S), (e) P(A|M), (f) P(A |F), (g)
P(F |S), (h) P(E ᴜ F).
Is major independent of Gender?
ABL: Exercises 4.4 Continued…
• The contingency table shows average yield (rows) and average
duration (columns) for 38 bond funds
Intermediate Row
Yield Short (D1) (D2) Long (D3) Total
Small (Y1) 8 2 0 10
Medium (Y2) 1 6 6 13
High (Y3) 2 4 9 15
Column Total 11 12 15 38
Tabulate all marginal, joint and conditional probabilities and test the
independence of yield and duration
Tree Diagrams
What is a Tree?
A tree diagram or decision tree helps you visualize
all possible outcomes.
Start with a contingency table.
For example, this table gives expense ratios by
fund type for 21 bond funds and 23 stock funds.
Tree Diagrams
What is a Tree?
To label the tree, first calculate conditional
probabilities by dividing each cell frequency by its
column total.
For example, P(L | B) = 11/21 = .5238
Here is the table of conditional probabilities
Tree Diagrams
What is a Tree?
The tree diagram shows all events along with their
marginal, conditional and joint probabilities.
To calculate joint probabilities, use
P(A B) = P(A | B)P(B) = P(B | A)P(A)
P( A | B) P( B)
Bayes’s formula is: P( B | A)
P( A)
Bayes’s Theorem
Bayes’s formula begins as:
P( A | B) P( B)
P( B | A)
P( A)
B A and B' A,
so add their
probabilities
to obtain the
denominator
of the fraction
whose
numerator is
P(B A).
Bayes’s Theorem
General Form of Bayes’s Theorem
A generalization of Bayes’s Theorem allows event
B to be polytomous (B1, B2, … Bn) rather than
dichotomous (B and B').
P ( A | Bi ) P ( Bi )
P ( Bi | A)
P ( A | B1 ) P ( B1 ) P ( A | B2 ) P ( B2 ) ... P( A | Bn ) P( Bn )
Bayes’s Theorem
Example: Hospital Trauma Centers
Based on historical data, the percent of cases at 3
hospital trauma centers and the probability of a
case resulting in a malpractice suit are as follows:
(0.001)(0.50)
P ( B1 | A)
(0.001)(0.50) (0.005)(0.30) (0.008)(0.20)
0.0005 0.0005
P ( B1 | A) 0.1389
0.0005 0.0015 0.0016 0.00036
0.
Bayes’s Theorem
Example: Hospital Trauma Centers
Conclude that the probability that the malpractice
suit was filed in hospital 1 is .1389 or 13.89%.
All the posterior probabilities for each hospital can
be calculated and then compared:
Bayes’s Theorem
Example: Hospital Trauma Centers
Intuitively, imagine there were 10,000 patients and
calculate the frequencies:
Hospital Malpractice Suit No Malpractice Total
Filed Suit Filed
1 5 4,995 5,000 = 10,000x.5
2 15 2,985 3,000 = 10,000x.3
3 16 1,984 2,000 = 10,000x.2
Total 36 9,964 10,000
30%
50%
20%
Bayes’s Theorem
Example: Hospital Trauma Centers
But, given that a malpractice case has been filed
(event A), then the relevant sample space is
reduced to the yellow area of event A.
The revised probabilities are the relative areas
within event A.
P(B2 | A)
P(B1 | A) P(B3 | A)
ABL: Exercises 4.5
• A drug test for athletes has a 5% false positive rate and a 10% false
negative rate. Of the athletes tested, 4% have actually been using the
prohibited drug. If an athlete tests positive, what is the probabilities
that the athlete has actually been using the prohibited drug?
A drug test for athletes has a 5% false positive rate and a 10% false
negative rate. OF the ahtletes tested, 4% have actually been using
the prohibited drug. If an athlete tests positive, what is the
probability that the ahtlete has actually been using the prohibited
drug?
This one comes in handy when convincing your employer you're not on
drugs! "Yeah I got a positive drug test but there is only a 42.9 %
chance I'm actually on drugs!" hahahaha.
ABL: Exercises 4.5
• An airport gamma ray luggage scanner coupled with a neural net
artificial intelligence program can detect a weapon in suitcases with
a false positive rate of 2% and a false negative rate of 2%. Assume
a .001 probability of a suitcase containing a weapon. If a suitcase
triggers and alarm what is the probability that the suitcase contains
a weapon.