Probability - Session 7
Probability - Session 7
Probability - Session 7
Introduction to Probability
Outline
1
2023
Probability
• Probability is a numerical measure of the likelihood that an
event will occur.
• Probability values are always assigned on a scale from 0 to 1.
• A probability near zero indicates an event is quite unlikely to
occur.
• A probability near one indicates an event is almost certain to
occur.
Introduction
2
2023
Methods of Assigning
Probabilities
• Classical method of assigning
probability
– Rules and laws
• Relative frequency of occurrence
–Cumulated historical data
• Subjective Probability
–Personal intuition or reasoning
Classical Probability
• Number of outcomes leading
to the event divided by the
P( E) ne
total number of outcomes
possible N
• Each outcome is equally likely Where:
N totalnumberof outcomes
• Determined a priori ‐‐ before
performing the experiment ne numberof outcomesin E
• Applicable to games of chance
• Objective ‐‐ everyone correctly
using the method assigns an
identical probability
3
2023
Example
• Suppose a company has 200 workers and 70
are female, the probability of randomly
selecting a female from this company is
70/200 = 0.35
4
2023
Example
• A company wants to determine the probability that
its inspectors are going to reject the next batch of
raw materials from a supplier.
• Data gathered from company record books show that
the supplier sent the company 90 batches in the
past, and inspectors rejected 10 of them.
– The probability of the inspectors rejecting the next
batch is 10/90, or .11
– If the next batch is rejected, the relative frequency
of occurrence probability for the subsequent
shipment would change to 11/91 = .12
9
Subjective Probability
• Comes from a person’s intuition or reasoning
• Subjective ‐‐ different individuals may
(correctly) assign different numeric
probabilities to the same event
• Degree of belief
• Useful for unique (single‐trial) experiments
– New product introduction
– Initial public offering of common stock
– Site selection decisions
– Sporting events
10
5
2023
Example
• Suppose a director of transportation for an oil
company is asked the probability of getting a
shipment of oil out of Saudi Arabia to the United
States within three weeks.
– A director who has scheduled many such shipments,
may be able to give an accurate probability that the
shipment can be made on time
• Physicians sometimes assign subjective
probabilities to the life expectancy of people who
have disease (like cancer, TB)
11
Marginal Probability
Union Probability
Joint Probability
Conditional Probability
12
6
2023
P( X ) P( X Y ) P( X Y ) P( X| Y )
The probability The probability The probability The probability
of X occurring of X or Y of X and Y of X occurring
occurring occurring given that Y
has occurred
X X Y X Y
Y
13
14
7
2023
X Y
15
8
2023
17
P( N S ) P( N ) P( S ) P( N S )
P ( N ) .70
N S
P( S ) .67
.56
P ( N S ) .56
.70 .67
P ( N S ) .70 .67 .56
0.81
18
9
2023
Probability Matrices
• A probability matrix displays the marginal
probabilities and the intersection
probabilities of a given problem.
– Union probabilities and conditional
probabilities must be computed from the
matrix.
19
Increase
Storage Space
Yes No Total
Noise Yes .56 .14 .70
Reduction No .11 .19 .30
Total .67 .33 1.00
20
10
2023
P( N S ) P( N ) P( S ) P( N S )
.70 .67 .56
.81
21
Problem
Consider a standard deck of 52 cards, with
four suits: ♥♣♦♠
Let event A = card is an Ace
Let event B = card is from a red suit
Find P(Ace). P(Red and Ace),
P(Red or Ace)
22
11
2023
Example:
Joint Probability
P(Red and Ace)
number of cards that are red and ace 2
total number of cards 52
23
Example:
Marginal (Simple) Probability
P(Ace)
2 2 4
P( Ace and Re d) P( Ace and Black )
52 52 52
Black 2 24 26
Red 2 24 26
Total 4 48 52
24
12
2023
25
X Y
26
13
2023
X Y
P( X Y ) 1 P( X Y )
27
N S
P( N S ) 1 P( N S )
1 .81
.19
28
14
2023
Example
Mutually Exclusive Event
29
Y
X
30
15
2023
Problem 2
The client company data from the Decision Dilemma reveal
that 155 employees worked one of four types of positions.
If a worker is randomly selected from the company.
• What is the probability that the worker is either
technical or clerical?
• What is the probability that the worker is either a
professional or a clerical?
Type of Gender
Position Male Female Total
Managerial 8 3 11
Professional 31 13 44
Technical 52 17 69
Clerical 9 22 31
Total 100 55 155
31
Problem
Type of Gender
Position Male Female Total
Managerial 8 3 11
Professional 31 13 44
Technical 52 17 69
Clerical 9 22 31
Total 100 55 155
P(T C ) P (T ) P (C )
69 31
155 155
.645
32
16
2023
Problem
Type of Gender
Position Male Female Total
Managerial 8 3 11
Professional 31 13 44
Technical 52 17 69
Clerical 9 22 31
Total 100 55 155
P ( P C ) P ( P ) P (C )
44 31
155 155
.484
33
Law of Multiplication
P( X Y ) P( X ) P (Y | X ) P(Y ) P ( X | Y )
34
17
2023
• General Law
P( X Y ) P( X ) P(Y | X ) P(Y ) P( X | Y )
• Special Law
If events X and Y are independent,
P( X ) P( X | Y ), and P(Y ) P(Y | X ).
Consequently ,
P( X Y ) P ( X ) P(Y )
35
Problem 3
• A company has 140 employees, of which 30
are supervisors. 80 of the employees are
married, and 20% of the married employees
are supervisors. If a company employee is
randomly selected,
• What is the probability that the employee is
married and is a supervisor?
36
18
2023
Law of Multiplication
Problem
P ( X Y ) P( X ) P(Y | X ) P(Y ) P( X | Y )
80
P( M ) 0.5714
140
P ( S | M ) 0.20
P( M S ) P( M ) P( S | M )
(0.5714)(0.20) 0.1143
37
Problem 4
• A manufacturing firm produces pads of bound
paper. 3 % of all paper pads produced are
improperly bound.
• An inspector randomly samples two pads of
paper, one at a time. Because a large number of
pads are being produced during the inspection,
the sampling being done, in essence, is with
replacement.
• What is the probability that the two pads
selected are both improperly bound?
38
19
2023
39
Problem
• A study by Becker Associates, a San Diego travel
consultant, found that 30% of the traveling public
said that their flight selections are influenced by
perceptions of airline safety.
• 40 % of the traveling public wants to know the
age of the aircraft. Suppose 89% of the traveling
public who say that their flight selections are
influenced by perceptions of airline safety wants
to know the age of the aircraft.
40
20
2023
41
Solution
• Let S = safety Let A = age
P(S) = .30 P(A) = .40 P(AS) = .89
42
21
2023
43
P ( X Y ) P (Y | X ) P( X )
P( X | Y )
P (Y ) P (Y )
44
22
2023
Conditional Probability
A conditional probability is the probability of one event,
given that another event has occurred:
The conditional
P(A and B)
P(A | B) probability of A given
P(B) that B has occurred
P(A and B) The conditional
P(B | A) probability of B given
P(A) that A has occurred
46
23
2023
P ( N ) .7 0
S N P ( N S ) .5 6
P(N S)
P (S| N )
.56 P(N )
.70
.5 6
.7 0
.8 0
47
Problem
have both.
48
24
2023
CD No CD Total
AC 0.2 0.5 0.7
No AC 0.2 0.1 0.3
Total 0.4 0.6 1.0
49
Computing Conditional
Probability: Decision Trees
.2
.4
P(CD and AC) = .2
Given CD or
no CD:
P(CD and AC/) = .2
.2
.4
All
Cars .5
.6
P(CD/ and AC) = .5
50
25
2023
Computing Conditional
Probability: Decision Trees
.2
.7
P(AC and CD) = .2
Given AC or
no AC:
P(AC and CD/) = .5
.5
.7
All
Cars .2
.3
P(AC/ and CD) = .2
51
Independent Events
• If X and Y are independent events, the
occurrence of Y does not affect the probability
of X occurring.
• If X and Y are independent events, the
occurrence of X does not affect the probability
of Y occurring.
If X and Y are independent events,
P( X | Y ) P ( X ), and
P(Y | X ) P (Y ).
52
26
2023
Problem 8
• In a recent year, business failures in the United
States numbered 83,384, according to Dun &
Bradstreet. The construction industry
accounted for 10,867 of these business
failures. The South Atlantic states accounted
for 8,010 of the business failures.
• Suppose that 1,258 of all business failures were
construction businesses located in the South
Atlantic states. A failed business is randomly
selected from this list of business failures.
53
Calculate
a) What is the probability that the business is located in the
South Atlantic states?
b) What is the probability that the business is in the
construction industry or located in the South Atlantic
states?
c) What is the probability that the business is in the
construction industry if it is known that the business is
located in the South Atlantic states?
d) What is the probability that the business is not located in
the South Atlantic states if it is known that the business is
not a construction business?
e) Given that the business is a construction business, what is
the probability that the business is not located in the
South Atlantic states?
54
27
2023
• Let C = construction
• Let S = South Atlantic
– 83,384 total failures
– 10,867 failures in construction
– 8,010 failures in South Atlantic
– 1,258 failures in construction and South
Atlantic
55
a) P(S) = .09606
b) P(C or S) = .2113
c) P(CS) = .15705
d) P(NSNC) = .9069
e) P(NSC) = .8842
56
28
2023
Bayes’ Theorem
57
Bayes’ Theorem
58
29
2023
where:
Xi = ith event of k mutually exclusive and
collectively exhaustive events
Y = new event that might impact P(Xi)
59
Problem 9
• Machines A, B, and C all produce the same two parts, X
and Y. Of all the parts produced, machine A produces
60%, machine B produces 30%, and machine C
produces 10%. In addition
– 40% of the parts made by machine A are part X.
– 50% of the parts made by machine B are part X.
– 70% of the parts made by machine C are part X.
• A part produced by this company is randomly
sampled and is determined to be an X part. With
the knowledge that it is an X part, revise the
probabilities that the part came from machine A,
B, or C.
60
30
2023
• Prior probability
– machine A is 0.60, machine B 0.30, machine C
0.10
• The conditional probabilities
– P (XA) = 0.40,
– P (XB) = 0.50, P (XC) = 0.70
61
Revised Probabilities
62
31
2023
Tree diagram
63
Bayes’ Theorem
Problem
64
32
2023
Bayes’ Theorem
Example
65
Bayes’ Theorem
Example
Given the detailed test, the revised probability of a
successful well has risen to .667 from the original
estimate of 0.4.
Prior Conditional Joint Revised
Event
Prob. Prob. Prob. Prob.
S (successful) .4 .6 .4*.6 = .24 .24/.36 = .667
U (unsuccessful) .6 .2 .6*.2 = .12 .12/.36 = .333
0.36
66
33
2023
Bayes’ Theorem
Example
Apply Bayes’ Theorem:
P(D | S)P(S)
P(S | D)
P(D | S)P(S) P(D | U)P(U)
(.6)(.4)
(.6)(.4) (.2)(.6)
.24
.667
.24 .12
67
Problem
A proposed shopping center will provide strong competition
for downtown businesses like L. S. Clothiers. If the shopping
center is built, the owner of L. S. Clothiers feels it would be
best to relocate to the shopping center.
The shopping center cannot be built unless a zoning change is
approved by the town council. The planning board must first
make a recommendation, for or against the zoning change, to
the council.
Let: A1 = town council approves the zoning change
A2 = town council disapproves the change
68
34
2023
New Information
The planning board has recommended against the zoning change.
Let B denote the event of a negative recommendation by the
planning board.
Given that B has occurred, should L. S. Clothiers revise the
probabilities that the town council will approve or disapprove the
zoning change?
Past history with the planning board and the town council indicates
the following:
Hence:
69
Tree Diagram
Example: L. S. Clothiers
70
35
2023
Exercise
A firm has tendered for two independent
contracts. It estimates that it has
probability 0.4 of obtaining contract A and
probability 0.1 of obtaining contract B.
Find the probability that the firm: (i)
obtains both contracts. (ii) obtains neither
of the contracts (iii) obtains atleast one
contract.
71
72
36
2023
Class Exercise
In 2010,24% of all highway fatalities involved
rollovers; 15.8% of al fatalities in 2010 involved
SUV’s,vans and pickups given that the fatality
involved a rollover. Given that a rollover was
not involved ,5.6% of all fatalities involved
SUV’s, vans and pickups. Consider the
following:
A= fatalities involved an SUV, van or pickup
B= fatality involved a rollover
73
74
37
2023
Formulas
75
Thank You
76
38