chapter 4: probability and counting...
TRANSCRIPT
FAROUQ ALAM, Ph.D.
Department of Statistics, KAU
Textbook:
Bluman, A. G. (2016). Elementary Statistics a Step by Step Approach. McGraw-Hill Education. Customized edition for the Department of Statistics at King Abdulaziz University, pp. 185 โ 255
Chapter 4: Probability and Counting Rules
4 โ 1: Sample Spaces and Probability
The five main concepts of probability:
Probability experiment.
Outcome.
Sample space.
Event:
โผ Simple
โผ Compound
Probability:
โผ Classical
โผ Empirical
4 โ 1 Sample Spaces and Probability
A probability experiment is a chance process that leads to well-defined results called outcomes. (Page 186)
An outcome is the result of a single trial of a probability experiment. (Page 186)
A sample space is the set of all possible outcomes of a probability experiment. (Page 186)
An event consists of a set of outcomes of a probability experiment. (Page 188)
Example 4 โ 1: Rolling Die
Probability experiment: rolling two dice.
OutcomeSample space
Example 4 โ 3: Gender of Children
Probability experiment: gender (B: Boy/G: Girl) of
the children of a family that has three children.
BBB, BBG, BGB, GBB
BGG, GBG, GGB, GGG
Outcome
Sample space
Tree diagram (Page 188)
A tree diagram is a device consisting of line
segments emanating from a starting point and also
from the outcome point. It is used to determine all
possible outcomes of a probability experiment.
Example 4 โ 4: Gender of Children
Types of Events (Page 189)
An event with one outcome is called a simple event.
BBB, BBG, BGB, GBB
BGG, GBG, GGB, GGG
Simple event: all children are boys
Types of Events (cont.)
A compound event consists of two or more
outcomes.
BBB, BBG, BGB, GBB
BGG, GBG, GGB, GGG
Compound event: exactly two children of the
three are girls.
Classical Probability
Classical probability uses sample spaces to
determine the numerical probability that an event
will happen. It assumes that all outcomes in the
sample space are equally likely to occur. (Page
189)
Equally likely events are events that have the
same probability of occurring. (Page 189)
Formula for Classical Probability
The classical probability of any event (E) of a
sample space (S) is
๐ท ๐ฌ =๐(๐ฌ)
๐(๐บ)
๐ ๐ฌ is the number of outcomes in E.
๐ ๐บ is the number of outcomes in S.
Example 4 โ 6: Gender of Children
Find the probability that two of the three children
are girls.
Sample space (S):
BBB, BBG, BGB, GBB, BGG, GBG, GGB, GGG
Event (E): two of the three children are girls (E)
BGG, GBG, GGB
๐ ๐บ = ๐
๐ ๐ฌ = ๐
Example 4 โ 6 (cont.)
Probability that two of the three children are girls is
๐ท ๐ฌ =๐(๐ฌ)
๐(๐บ)=๐
๐= ๐. ๐๐๐
Probability Rule (Page 191)
(1) 0 โค ๐ ๐ธ โค 1
(2) If ๐ ๐ธ = 0, then E cannot happen.
(3) If ๐ ๐ธ = 1, then E is certain.
Probability Rule (cont.)
(4) The sum of the probabilities of all the
outcomes in the sample space is 1.
Ex.
BBB, BBG, BGB, GBB, BGG, GBG, GGB, GGG
P(BBB) = 1/8, P(BBG) = 1/8, โฆ , P(GGG) = 1/8
P(BBB) + P(BBG) + โฆ + P(GGG) = 8 / 8 = 1
Example 4 โ 8: Rolling a Die
When a single die is rolled, find the
probability of getting an even number and an
odd number in the same time.
๐ท ๐ฌ = ๐
Example 4 โ 9: Rolling a Die
When a single die is rolled, what is the
probability of getting a number less than or
equal to ?
๐ท ๐ฌ = ๐
Complementary Events (Page 192)
The complement of an event ๐ธ is the set of
outcomes in the sample space that are not included
in the outcomes of event E. The complement of ๐ธ is
denoted by เดค๐ธ (read โE barโ).
Part of Example 4 โ 10: Finding
Complements
Find the complement of each of the following event:
(a) Selecting a month that has 31 days.
Solution: Selecting a month that has fewer than 31 days.
(b) Selecting a day of the week that begins with the letter
T.
Solution: Selecting a day of the week that does not
begin with the letter T.
Part of Example 4 โ 10 (cont.)
(c) Rolling two dice and getting a sum that is an odd
number.
Solution: Rolling two dice and getting a sum that is an
even number.
Rule for Complementary Events (Page 193)
๐ ๐ธ + ๐ เดค๐ธ = 1
OR
๐ เดค๐ธ = 1 โ ๐(๐ธ)
OR
๐ ๐ธ = 1 โ ๐( เดค๐ธ)
Example 4 โ 11: Favorite Ice Cream
Flavors
In a study, it was found that 23% of the people
surveyed said that vanilla was their favorite flavor
of ice cream. If a person is selected at random, find
the probability that the personโs favorite flavor of
ice cream is not vanilla.
๐ not vanilla = 1 โ ๐ vanilla = 1 โ 0.23 = 0.77
= 77%.
Empirical Probability (Page 194)
Given a frequency distribution, the probability of
an event being in a given class is
๐ท ๐ฌ =๐
๐๐ is the frequency of a class (event).
๐ is the sample size.
Example 4 โ 12: Travel Survey
Method Frequency Empirical
Probability
Drive 41 ๐๐
๐๐Fly 6 ๐
๐๐Train or bus 3 ๐
๐๐Total 50 ๐๐
๐๐
Example 4 โ 12: Travel Survey
Method Frequency Empirical
Probability
Drive 41 ๐๐
๐๐Fly 6 ๐
๐๐Train or bus 3 ๐
๐๐Total 50 ๐๐
๐๐
Example 4 โ 13: Distribution of Blood
Types
In a sample of 50 people, 21 had type O blood,
22 had type A blood, 5 had type B blood, and 2
had type AB blood. Find the following
probabilities.
(a) A person has type O blood.
๐ท ๐ถ =๐๐
๐๐
Example 4 โ 13 (cont.)
(b) A person has type A or type B blood.
๐ท ๐จ ๐๐ ๐ฉ =๐๐
๐๐+
๐
๐๐=๐๐
๐๐
(c) A person has neither type A nor type O blood.
๐ท ๐ฉ ๐๐ ๐จ๐ฉ =๐
๐๐+
๐
๐๐=
๐
๐๐
(d) A person does not have type AB blood.
๐ท ๐ง๐จ๐ญ ๐จ๐ฉ = ๐ โ๐
๐๐=๐๐
๐๐
Example 4 โ 14: Hospital Stays for
Knee Replacements
Hospital records indicated that knee replacement
patients stayed in the hospital for the number of
days shown in the distribution.
Number of days Frequency
3 15
4 32
5 56
6 19
7 5
Total 127
Example 4 โ 14 (cont.)
(a) A patient stayed exactly 5 days.
๐ท ๐ =๐๐
๐๐๐
Number of days Frequency
3 15
4 32
5 56
6 19
7 5
Total 127
Example 4 โ 14 (cont.)
(b) A patient stayed less (fewer) than 6 days.
๐ท ๐๐๐ฐ๐๐ซ ๐ญ๐ก๐๐ง ๐ ๐๐๐ฒ๐ฌ =๐๐
๐๐๐+
๐๐
๐๐๐+
๐๐
๐๐๐=๐๐๐
๐๐๐
Number of days Frequency
3 15
4 32
5 56
6 19
7 5
Total 127
Example 4 โ 14 (cont.)
(c) A patient stayed at most 4 days.
๐ท ๐๐ญ ๐ฆ๐จ๐ฌ๐ญ ๐ ๐๐๐ฒ๐ฌ =๐๐
๐๐๐+
๐๐
๐๐๐=
๐๐
๐๐๐
Number of days Frequency
3 15
4 32
5 56
6 19
7 5
Total 127
Example 4 โ 14 (cont.)
(d) A patient stayed at least 5 days.
๐ท ๐๐ญ ๐ฅ๐๐๐ฌ๐ญ ๐ ๐๐๐ฒ๐ฌ =๐๐
๐๐๐+
๐๐
๐๐๐+
๐
๐๐๐=
๐๐
๐๐๐
Number of days Frequency
3 15
4 32
5 56
6 19
7 5
Total 127
Important Note!
Consider the following numbers: 3, 4, 5, 6, 7. The
following are examples of five common statements
found in probability-based problems.
1. Exactly 5 means solving the given problem based
on the value 5.
2. Less (fewer) than 5 means solving the given
problem based on the values 3 and 4.
Important Note! (cont.)
4. At most 5 (5 or less) means solving the given
problem based on the values 3, 4 and 5.
5. More (greater) than 5 means solving the given
problem based on the values 6 and 7.
6. At least 5 means solving the given problem based
on the values 5, 6 and 7.
4 โ 2: The Addition Rules for Probability
(Page 201)
Two events are mutually exclusive events if they
cannot occur at the same time (i.e., they have no
outcomes in common).
Addition Rule
Addition Rule #1: When two events A and B are
mutually exclusive, the probability that A or B will
occur is
๐ท ๐จ ๐๐ ๐ฉ = ๐ท ๐จ + ๐ท(๐ฉ)
Addition Rule #2: If A and B are not mutually
exclusive, then
๐ท ๐จ ๐๐ ๐ฉ = ๐ท ๐จ + ๐ท ๐ฉ โ ๐ท(๐จ ๐๐๐ ๐ฉ)
Addition Rule (cont.)
Example 4 โ 15: Determining Mutually
Exclusive Events
Determine which events are mutually exclusive
and which are not.
(a) Randomly selecting a female student or a student who
is a junior.
Solution: not mutually exclusive.
Example 4 โ 15 (cont.)
(b) Randomly selecting a person with type A blood or with type O blood.
Solution: mutually exclusive.
(c) Getting an odd number or getting a number less than 3
Solution: not mutually exclusive.
(d) Randomly selecting a person who is either under 21 years of age or 30 years of age.
Solution: mutually exclusive.
Example 4 โ 17: Coffee Shop Selection
(Rule #1)
A city has 9 coffee shops: 3 Starbuckโs, 2 Caribou
Coffees, and 4 Crazy Mocho Coffees. If a person
selects one shop at random to buy a cup of coffee,
find the probability that it is either a Starbuckโs or
Crazy Mocho Coffees.
Example 4 โ 17 (cont.)
Since there are 3 Starbuckโs and 4 Crazy Mochos,
and a total of 9 coffee shops, and the events are
mutually exclusive. So,
๐ Starbuckโs or Crazy Mocho
= ๐ Starbuckโs + ๐ Crazy Mocho =3
9+4
9=๐
๐
Example 4 โ 18: Research and
Development Employees (Rule #1)
The corporate research and development centers for
three local companies have the following number of
employees:
U.S. Steel 110
Alcoa 750
Bayer Material Science 250
If a research employee is selected at random, find
the probability that the employee is employed by
U.S. Steel or Alcoa.
Example 4 โ 18 (cont.)
๐ U.S. Steel or Alcoa
= ๐ U.S. Steel + ๐ Alcoa =110
1110+
750
1110
=๐๐๐
๐๐๐๐=
๐๐
๐๐๐
Example 4 โ 21: Selecting a Medical Staff
Person (Rule #2)
In a hospital unit there are 8 nurses and 5
physicians; 7 nurses and 3 physicians are females.
If a staff person is selected, find the probability that
the subject is a nurse or a male.
Example 4 โ 21 (cont.)
Solution: The sample space is shown here.
๐ nurse or male
= ๐ nurse + ๐ male โ ๐ nurse and male
=8
13+
3
13โ
1
13=10
13
Staff Female Male Total
Nurses 7 1 8
Physicians 3 2 5
Total 10 3 13
Other examples.
Mutually exclusive events: Example 4 โ 19.
Non-mutually exclusive events: Example 4 โ 22.
4 โ 3: The Multiplication Rules and
Conditional Probability
Two events A and B are independent events if the
fact that A occurs does not affect the probability of
B occurring. (Page 213)
Two events A and B are dependent events if the
fact that A occurs does affect the probability of B
occurring. (Page 215)
Important Note!
Important note: independent events are NOT the
same as mutually exclusive events. For example,
when tossing a single coin, the result can be either
heads or tails, but cannot be both (exclusive
events). In contrast, when tossing two coins, the result
of one flip does not affect the result of the other.
Multiplication Rule #1
When two events are independent, the probability
of both occurring is
๐ท ๐จ ๐๐๐ ๐ฉ = ๐ท(๐จ) ร ๐ท(๐ฉ)
When two events are dependent, the probability of
both occurring is
๐ท ๐จ ๐๐๐ ๐ฉ = ๐ท(๐จ) ร ๐ท(๐ฉ|๐จ)
Example 4 โ 23: Tossing a Coin and
Rolling a Die (Independent Events)
A coin is flipped and a die is rolled. Find the
probability of getting a head (H) on the coin and
a 4 on the die.
Solution:
๐ ๐ป ๐๐๐ = ๐ ๐ป ร ๐ =1
2ร1
6=
๐
๐๐
Example 4 โ 25 (Independent Events)
An urn contains 3 red balls, 2 blue balls, and 5
white balls. A ball is selected and its color noted.
Then it is replaced. A second ball is selected and its
color noted. Find the probability of each of the
following events.
Example 4 โ 25 (cont.)
a. Selecting 2 blue balls.
๐ ร ๐ =2
10ร
2
10=
4
100=
1
25
b. Selecting 1 blue ball and then 1 white ball.
๐ ร ๐ =2
10ร
5
10=
10
100=
1
10
c. Selecting 1 red ball and then 1 blue ball.
๐ ร ๐ =3
10ร
2
10=
6
100=
3
50
Example 4 โ 26: Survey on Stress
(Independent Events)
A Harris poll found that 46% of Americans say they suffer great stress at least once a week. If three people are selected at random, find the probability that all three will say that they suffer great stress at least once a week.
Solution
๐๐๐ฅ๐ฅ ๐ ๐ฉ๐๐จ๐ฉ๐ฅ๐ ๐ฐ๐ข๐ฅ๐ฅ ๐ฌ๐๐ฒ ๐ญ๐ก๐๐ฒ ๐ฌ๐ฎ๐๐๐๐ซ ๐ ๐ซ๐๐๐ญ
๐ฌ๐ญ๐ซ๐๐ฌ๐ฌ ๐๐ญ ๐ฅ๐๐๐ฌ๐ญ ๐จ๐ง๐๐ ๐ ๐ฐ๐๐๐ค= 0.46 ร 0.46 ร 0.46 โ ๐. ๐๐๐
Example 4 โ 27: Male Color Blindness
(Independent Events)
Approximately 9% of men have a type of color
blindness. If 3 men are selected at random, find the
probability that all of them will have this type of
color blindness.
Solution
๐ ๐๐ฅ๐ฅ ๐ ๐ฆ๐๐ง ๐ก๐๐ฏ๐ ๐๐จ๐ฅ๐จ๐ซ ๐๐ฅ๐ข๐ง๐๐ง๐๐ฌ๐ฌ= 0.09 ร 0.09 ร 0.09 = 0.000729 โ ๐. ๐๐๐๐
Example 4 โ 29: Homeownerโs and
Automobile Insurance (Dependent Events)
World Wide Insurance Company found that 53% of
the residents of a city had homeownerโs insurance (H)
with the company. Of these clients, 27% also had
automobile insurance (A) with the company. If a
resident is selected at random, find the probability that
the resident has both homeownerโs and automobile
insurance with World Wide Insurance Company.
Solution
๐ H and A = ๐ ๐ป ๐ ๐ด ๐ป = (0.53)(0.27) โ ๐. ๐๐๐
Example 4 โ 30: Male Color Blindness
(Dependent Events)
Three cards are drawn from an ordinary deck and not replaced. Find the probability of these events:
a. Getting 3 jacks.
b. Getting an ace, a king, and a queen in order.
c. Getting a club, a spade, and a heart in order.
d. Getting 3 clubs.
Solution of (a)
๐ getting 3 jacks =4
52ร
3
51ร
2
50=
1
5525
4 โ 4: Counting Rules
The four main counting rules are:
Fundamental Counting Rule
Factorial Notation.
Permutations.
Combinations.
The Fundamental Counting Rule
(Page 227)
In a sequence of ๐ events in which the first one has
๐๐ possibilities, the second event has ๐๐, the third
has ๐๐, and so forth, the total number of
possibilities of the sequence will be
๐๐ ร ๐๐ รโฏร ๐๐
Example 4 โ 38: Tossing a Coin a
Rolling a Die
A coin is tossed and a die is rolled. Find the
number of outcomes for the sequence of
events.
Solution: the number of outcomes for the
sequence of events is
๐ ร ๐ = ๐๐
Example 4 โ 39: Types of Paint
A paint manufacturer wishes to manufacture several different
paints. The categories include
Color: red, blue, white, black, green, brown, yellow
Type: latex, oil
Texture: flat, semi-gloss, high gloss
Use: Outdoor, indoor
How many different kinds of paint can be made if you can
select one color, one type, one texture, and one use?
Solution: ๐ ร ๐ ร ๐ ร ๐ = ๐๐
Example 4 โ 40: Distribution of Blood
Types
There are four blood types, A, B, AB, and O.
Blood can be Rh+ or Rh-. Finally, a blood
donor can be classified as either male or
female. How many different ways can a donor
have his or her blood labeled?
Solution: ๐ ร ๐ ร ๐ = ๐๐
Example 4 โ 41: Railroad Memorial
License Plate
A license plate has a four-digit identification
number. How many different plates can be
made if the digits are from 0 to 9 and
repetitions are permitted?
Solution: ๐๐ ร ๐๐ ร ๐๐ ร ๐๐ = ๐๐, ๐๐๐
Factorial Notation (๐!) (Page 229)
For any counting ๐
๐! = ๐ ร ๐ โ ๐ ร ๐ โ ๐ รโฏร ๐ ร ๐๐! = ๐
Example 4 โ 42: Business Location
Suppose a business owner has a choice of 5
locations in which to establish her business. She
decides to rank each location according to
certain criteria, such as price of the store and
parking facilities. How many different ways
can she rank the 5 locations?
Solution: ๐! = ๐ ร ๐ ร ๐ ร ๐ ร ๐ = ๐๐๐
Permutations (Page 229)
A permutation is an arrangement of ๐ objects
in a specific order.
The arrangement of ๐ objects in a specific order
using ๐ objects at a time is called a permutation of
๐ objects taking ๐ objects at a time. The formula is
๐๐ท๐ =๐!
๐ โ ๐ !
Example 4 โ 43: Business Location
Suppose the business owner in Example 4 โ 42
wishes to rank only the top 3 of the 5 locations.
How many different ways can she rank them?
5๐3 =5!
5 โ 3 !=5!
2!=5 ร 4 ร 3 ร 2 ร 1
(2 ร 1)= 60
Combinations (Page 233)
A selection of distinct objects without regard
to order is called a combination.
The number of combinations of ๐ objects selected
from ๐ objects is given by the formula
๐๐ช๐ =๐!
๐ โ ๐ ! ๐!
Example 4 โ 47: Combinations
How many combinations of 4 objects are there,
taken 2 at a time?
4๐ถ2 =4!
4 โ 2 ! 2!=
4!
2! 2!=
4 ร 3 ร 2 ร 1
(2 ร 1)(2 ร 1)= 6
Example: Permutations vs Combinations
Given the letters A, B, C, and D, list the permutations and combinations for selecting two letters.
Permutations:
AB BA CA DA
AC BC CB DB
AD BD CD DC
Combinations:
AB BA CA DA
AC BC CB DB
AD BD CD DC
Other examples
Permutations: Examples 4 โ 44 and 4 โ 45.
Combinations: Examples 4 โ 48 and 4 โ 49.