Professional Documents
Culture Documents
Set 05 2023
Set 05 2023
Set 05 2023
Set 05 - Chapter 4
Basic Probability
Chap 4-1
Learning Objectives
In this chapter, you will learn:
Counting techniques
Basic probability concepts
Sample Spaces and Events, Simple Probability, and
Joint Probability
Conditional probability
To use Bayes’ Theorem to revise probabilities
Chap 4-2
Counting techniques
Multiplication rule 1
If each event in a sequence of n events has k different
possibilities, then the total number of possibilities of the
sequence will be k*k*k*k*……k= kn
Multiplication rule 2
In a sequence of n events in which the first one has k1
possibilities, the second event has k2, the third has k3, etc., the
total possibilities of the sequence will be k1*k2*k3*k4……kn
Chap 4-3
Counting techniques
1. Three dice are rolled. How many different outcomes are possible?
3. A nurse has three patients to visit. How many different ways can she
make her rounds if she visits each patient only once?
4. The digits 0,1,2,3 and 4 are to be used in a four-digit id card. How many
different cards are possible if repetitions are permitted?
Chap 4-4
Permutations
A permutation is an arrangement of objects
without repetition where order is important.
N N!
P
N
n
n (N n)!
where N! N(N - 1)(N - 2)............(2)(1)
and 0! 1
Chap 4-5
Combinations
A combination is an arrangement of objects
without repetition where order is not important.
N N!
C
N
n
n n!( N n)!
where N! N(N - 1)(N - 2)............(2)(1)
n! n(n - 1)(n - 2).................(2)(1)
and 0! 1
Chap 4-6
Permutations and Combinations
How many different arrangements of three letters can be made
using the letters a, c, e, g, i, k and m?
How many ways can four books be arranged on a shelf if they
can be selected from nine books?
Harry has to visit ten cities. He can visit any three in one day.
How many different ways can he select three cities?
In a club there are 7 women and 5 men. A committee of 3
women and 2 men are to be chosen. How many different
possibilities are there?
Find the number of ways that 7 people can arrange
themselves: a, in a row of 7 chairs. b, around a circular table.
Chap 4-7
Distinguishable permutations
Chap 4-8
Definitions
Chap 4-9
Types of Probability
There are three approaches to assessing the probability of an
uncertain event:
Chap 4-10
Calculating Probability
Chap 4-11
Example of a priori
classical probability
Find the probability of selecting a face card (Jack,
Queen, or King) from a standard deck of 52 cards.
Chap 4-12
Example of empirical
classical probability
Find the probability of selecting a male taking statistics
from the population described in the following table:
Chap 4-13
Examples of Sample Space
The Sample Space is the collection of all possible
events
ex. All 6 faces of a dice:
Chap 4-14
Events in Sample Space
Simple event
An outcome from a sample space with one
characteristic
ex. A red card from a deck of cards
Complement of an event A (denoted A/)
All outcomes that are not part of event A
ex. All cards that are not diamonds
Joint event
Involves two or more characteristics simultaneously
ex. An ace that is also red from a deck of cards
Chap 4-15
Visualizing Events in
Sample Space
Contingency Tables: Ace Not Total
Ace
Black 2 24 26
Red 2 24 26
Total 4 48 52
Tree Diagrams: 2
Ace
ck Card
Bla Not an Ace 24
Full Deck
of 52 Cards Ace 2
Sample Red C
ard
Space Not an
Ace 24
Chap 4-16
Definitions
Simple vs. Joint Probability
Simple (Marginal) Probability refers to the
probability of a simple event.
ex. P(King)
Joint Probability refers to the probability of
an occurrence of two or more events.
ex. P(King and Spade)
Chap 4-17
Definitions
Mutually Exclusive Events
Mutually exclusive events are events that cannot occur together
(simultaneously).
example:
Heads and tails in a coin toss are mutually exclusive if both the events
cannot occur simultaneously.
example:
A = queen of diamonds; B = queen of clubs
Events A and B are mutually exclusive if only one card is selected
example:
B = having a boy; G = having a girl
Events B and G are mutually exclusive if only one child is born
Chap 4-18
Mutually exclusive
Chap 4-19
Definitions
Collectively Exhaustive Events
Collectively exhaustive events
One of the events must occur
The set of events covers the entire sample space
Example:
Heads and tails in a coin toss are collectively exhaustive events. One of
them must occur. If heads does not occur, tails must occur. If tails does
not occur, heads must occur.
Being male and being female are mutually exclusive and collectively
exhaustive events. No one is both (the two are mutually exclusive), and
everyone is one or the other (the two are collectively exhaustive).
A = aces; B = black cards; C = diamonds; D = hearts
Chap 4-20
Computing Joint and
Marginal Probabilities
The probability of a joint event, A and B:
Chap 4-21
Example:
Joint Probability
P(Red and Ace)
number of cards that are red and ace 2
total number of cards 52
Chap 4-22
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
Chap 4-23
Joint Probability Using a
Contingency Table
Event
Event B1 B2 Total
Chap 4-24
Probability
Summary So Far
Probability is the numerical measure of the 1 Certain
likelihood that an event will occur.
Chap 4-25
General Addition Rule
General Addition Rule:
P(A or B) = P(A) + P(B) - P(A and B)
Chap 4-26
Examples
Chap 4-27
Examples
Chap 4-28
Examples
On new year’s, the probability of a person driving
while intoxicated is 0.32, the probability of a person
having a driving accident is 0.09, and the probability of
a person having a driving accident while intoxicated is
0.06. what is the probability of a person driving while
intoxicated or having a driving accident?
There are 12 boys and 8 girls in a class. ¼ of the boys
and ¼ of the girls wear glasses. What is the probability
that a student chosen at random from the class is a boy
not wearing glasses or a girl wearing glasses?
Chap 4-29
Exercise
When three fair dice are thrown, what is the
probability that
a, the three numbers are different?
b, the product of the three numbers is even?
Chap 4-30
General Addition Rule
Example
Find the probability of selecting a male or a statistics student
from the population described in the following table:
Chap 4-31
Conditional Probability
A conditional probability is the probability of one event,
given that another event has occurred:
Chap 4-33
Conditional Probability Using
Contingency Table
Conditional Event: Draw 1 Card. Note Kind & Color
Color
Type Red Black Total Revised
Sample
Ace 2 2 4 Space
Non-Ace 24 24 48
Total 26 26 52
P(Ace | Red) =
Chap 4-34
Computing Conditional
Probability
Of the cars on a used car lot, 70% have air
conditioning (AC) and 40% have a CD
player (CD). 20% of the cars have both.
What is the probability that a car has a CD
player, given that it has AC ?
We want to find P(CD | AC).
Chap 4-35
Computing Conditional
Probability
CD No CD Total
Chap 4-36
Statistical Independence
P(A | B) P(A)
Chap 4-37
Multiplication Rules for
independent events
Multiplication rule for two events A and B:
Chap 4-38
Independent events example
Chap 4-40
Marginal Probability Using
Multiplication Rules
Marginal probability for event A:
Chap 4-41
Bayes’ Theorem
P(A | Bi )P(Bi )
P(Bi | A)
P(A | B1 )P(B1 ) P(A | B 2 )P(B2 ) P(A | B k )P(Bk )
where:
Bi = ith event of k mutually exclusive and
collectively exhaustive events
A = new event that might impact P(Bi)
Chap 4-42
Bayes’ Theorem
Example
A drilling company has estimated a 40% chance of
striking oil for their new well.
A detailed test has been scheduled for more
information. Historically, 60% of successful wells
have had detailed tests, and 20% of unsuccessful
wells have had detailed tests.
Given that this well has been scheduled for a
detailed test, what is the probability that the well
will be successful?
Chap 4-43
Bayes’ Theorem
Example
Let S = successful well
U = unsuccessful well
P(S) = .4 , P(U) = .6 (prior probabilities)
Define the detailed test event as D
Conditional probabilities:
P(D|S) = .6 P(D|U) = .2
Goal: To find P(S|D)
Chap 4-44
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
Chap 4-45
Bayes’ Theorem:
Contingency Table
In a telephone survey of 1000 adults,
respondents were asked about the expense of
a college education and the relative necessity
of some form of financial assistance. The
respondents were classified according to
whether they currently had a child in college
and whether they thought the loan burden for
most college students is too high, the right
amount, or too little.
Chap 4-46
Too Right Too little
high amount (B3)
(B1) (B2)
Chap 4-47
Chapter Summary
In this chapter, we have
Chap 4-48
Supplementary Reading & Exercises:
Chapter 4
Chap 4-49