4-1+Probability+and+Counting+Rules
4-1+Probability+and+Counting+Rules
Random Sampling
• The topics of random sampling and probability are central to the methodology of
inferential statistics. Therefore, the basic principles of probability will be explored
in this chapter.
Probability & Counting Rules
• To generalize validly from the sample to the population, both in hypothesis
MATH 2031: Probability and Statistics testing and in parameter estimation experiments, the sample cannot be just any
Temple University, Japan Campus subset of the population. Rather, it is crucial that the sample is a random sample.
1 2
3 4
2) Drawing Cards: Find the sample space for drawing one card from an ordinary deck of
cards.
3) Boy or Girl: Find the sample space for a family with three children. Use B for boy and
G for girl.
4) Tossing Coins: Draw a tree diagram and determine the sample space for tossing four
coins.
5) Coin & Die: A coin and a die are tossed together onto a table. What is the sample
space for this experiment?
5 6
1
9/29/20
7 8
Tree Diagram
Problem – Sample Space
• A tree diagram, a device
consisting of line segments, • Tossing Coins Draw a tree diagram and determine the sample space
is used to determine all for tossing four coins.
possible outcomes of a
probability experiment.
9 10
• First-year students at a college must take one English class, one class in • An event with one outcome is called a simple event.
mathematics, a first-year seminar, and an elective. There are 2 English
classes to choose from, 3 mathematics classes, 5 electives, and everyone • A compound event consists of two or more outcomes or simple events.
takes the same first-year seminar.
• Represent the possible schedules using a tree diagram. • For example, if a die is rolled and a “5” shows, this result is called an outcome, since it is a
result of a single trial.
• The event of getting an odd number when a die is rolled is called a compound event since it
consists of three outcomes or three simple events.
12 13
2
9/29/20
Classical Probability
There are two basic interpretations of probability: • Classical probability uses sample spaces to determine the numerical
probability that an event will happen. You do not actually have to
perform the experiment to determine that probability.
1) Classical Probability
• Classical probability assumes that all outcomes in the sample space are
2) Empirical Probability equally likely to occur.
• For example, when a single die is rolled, each outcome has the same
probability of occurring. Since there are six outcomes, each outcome
has a probability of 1/6.
14 15
Number of Outcomes in E 2) Drawing cards: Find the probability of getting a black 6 when one card is
PE =
Total Number of Outcomes in the Sample Space randomly selected from an ordinary deck.
• This probability is denoted by 3) A family with 3 children: If a family has three children, find the probability that
n(E) exactly two of the three children are boys.
PE =
n(S)
where n(E) is the number of outcomes in E and n(S) is the number of outcomes in
the sample space S.
16 17
18 19
3
9/29/20
20 21
Complementary Events
Problem – Finding Complements
• The probability that an event doesn't occur is 1 minus the probability that the
event does occur. • Find the complement of each event:
• The complement of E is denoted by E¢ (or E, Ec). a) Selecting a month that has 30 days
b) Selecting a day of the week that begins with the letter W
P(E) = 1 − P(E¢) P(E¢) = 1 − P(E) P(E) + P(E¢) = 1 c) Rolling two dice and getting a number whose sum is 7
d) Selecting a letter of the alphabet (excluding y) that is a vowel.
• Find the complement of getting a “5” when a single die is rolled.
• Find the complement of getting an “odd number” when a single die is rolled.
22 23
Problem – Job Interviews & Clinical Trials Problem – Job Interviews & Clinical Trials
• You had interviews with 3 companies for a job. Find each probability: • You had interviews with 4 companies for a job. Find each probability:
a) Getting 3 “job offers” a) Getting 4 “job offers”
b) Getting 2 “job offers” and 1 ”no offer” b) Exactly 2 “job offers” and 2 ”no offers”
c) Getting 1 “job offer” and 2 ”no offers” c) Getting at least one “job offer”
d) Getting at least one “job offer” d) Getting at least one of each.
e) Getting at least one of each.
• Four patients participated in clinical trials. Find each probability
• Three patients participated in clinical trials. Find each probability a) All patients improved.
a) All patients improved. b) Exactly two patients improved, and two patients did not improve
b) Two patients improved, and one patient did not improve c) At least one patient improved
c) One patient improved, and two patients did not improve d) At least one of each result
d) At least one patient improved
e) At least one of each result
24 25
4
9/29/20
26 27
28 29
30 31
5
9/29/20
32 34
35 37
Mutually Exclusive events or Disjoint Events Mutually Exclusive Events or Disjoint Events
• For example, at a university, you might wish to know, for a person selected at
random, the probability that the person is a female or is a freshman. In this case,
• Two events are mutually exclusive events or disjoint events if they there are three possibilities to consider:
cannot occur at the same time (i.e., they have no outcomes in 1) The person is a female.
common or P(E ∩ F) = 0). 2) The person is a freshman.
3) The person is both a female and a freshman.
• Consider another example, If a person is selected at random, what is the
probability that the person is a freshman or a senior? In this case, there are only
two possibilities:
1) The person is a freshman.
2) The person is a senior.
38 40
6
9/29/20
• Determine whether the two events are mutually exclusive. Explain your answer. • Determine whether the two events, E and F, are mutually exclusive when a single
card is drawn at random from a deck.
a) Randomly selecting a person with type A blood
a) Event E: getting a 9; Event F: getting a diamond
Randomly selecting a person with type O blood.
b) Event E: getting a face card; Event F: getting a 6
b) Rolling a die and getting an odd number
Rolling a die and getting a number less than 3. c) Event E: getting a face card; Event F: getting a heart
c) Randomly selecting a person who is under 21 years of age d) Event E: getting a 7; Event F: getting a king
Randomly selecting a person who is over 30 years of age.
e) Event E: getting a queen; Event F: getting a spade
41 42
43 44
45 46
7
9/29/20
47 48
49 50
52 53
8
9/29/20
54 55
56 57
58 60
9
9/29/20
Problem – Selecting a Medical Staff Person (1) Problem – Selecting a Medical Staff Person (2)
• In a hospital unit there are 8 nurses and 5 physicians; 7 nurses and 3 physicians • The number of staff (doctors, surgeons, and nurses) in a hospital is shown.
are females.
Staff Females Males TOTAL Staff Males Females TOTAL
Nurses 7 1 8 Doctors 20 15 35
Physicians 3 2 5 Surgeons 13 27 40
Nurses 11 14 25
TOTAL 10 3 13 TOTAL 44 56 100
• If a staff person is selected, find the probability that • If a staff person is selected at random, find the probability that
1) the subject is a nurse or a male. 1)the subject is a nurse or a male.
2) the subject is a nurse and a male. 2) the subject is a nurse and a male.
3) the subject is a physician or a female. 3)the subject is a doctor or a surgeon.
4) the subject is a physician and a female. 4) the subject is a male.
5) the subject is not a nurse 5) the subject is not a surgeon.
61 62
63 64
Independent Events
Multiplication Rules
• Two events A and B are independent events if the fact that A occurs
• The multiplication rules can be used to find the probability of two does not affect the probability of B occurring.
or more events that occur in sequence.
• For example, if you toss a coin and then roll a die, you can find the
• For example, if you toss a coin and then roll a die, you can find probability of getting a head on the coin and a 4 on the die.
the probability of getting a head on the coin and a 4 on the die.
• These two events are said to be independent since the outcome of
the first event (tossing a coin) does not affect the probability
outcome of the second event (rolling a die).
66 67
10
9/29/20
68 70
71 72
73 76
11
9/29/20
𝑃(𝐴 ∩ 𝐵) 𝑛(𝐴 ∩ 𝐵)
𝑃 𝐴∖𝐵 = =
𝑃(𝐵) 𝑛(𝐵)
77 78
79 80
Problems – Probability with Two-Way Tables Problem – Selecting a Medical Staff Person (2)
• Researchers surveyed 100 TUJ students on which superpower they would most like to have.
• The two-way table displays data for the sample of students who responded to the survey.
• The number of staff (doctors, surgeons, and nurses) in a hospital is shown.
Staff Males Females TOTAL
• If a student will be chosen at random, find the probability that
1) the student was a female, given that the student chose to fly as their superpower. That is, P(Female I
Doctors 20 15 35
Fly) = ? Surgeons 13 27 40
2) the student chose to fly, given that the student was a female. That is, P(Fly I Female) =? Nurses 11 14 25
TOTAL 44 56 100
3) the student was a male, given that the student chose to read minds as their superpower. That is,
P(Male I Read Minds) = ? • If a staff person is selected at random, find the probability that
4) the student chose to read minds, given that the student was a male. That is, P(Read Minds I Male) =?
1) the person is a female, given that the person is a surgeon: P(Female I Surgeon) = ?
2) the person is a surgeon, given that the person is a female: P(Surgeon I Female) =?
3) the person is a male, given that the person is a doctor: P(Male I Doctor) = ?
4) the person is a doctor, given that the person is a male: P(Doctor I Male) =?
83 85
12
9/29/20
1) the student is a female, given that the student listens to music while studying: P(Female I Music) = ? c) gray or a bulldog? d) brown and a bulldog?
2) the student listens to music while studying, given that the student is a female: P(Music I Female) =?
e) a bulldog, given that it is gray? f) brown, given that it is a poodle?
3) the student is a male, given that the student watches TV while studying: P(Male I Watch TV) = ?
4) the student watches TV while studying, given that the student is a male: P(Watch TV I Male) =?
86 87
88 89
90 91
13
9/29/20
Problems
Problem – License Plates • Usernames: Suppose a local area network requires five letters for usernames. Lower-
and uppercase letters are considered the same. How many usernames are possible for
• The first year the state of Pennsylvania issued railroad memorial license the local area network?
plates, the plates had a picture of a steam engine followed by four
digits. • Committee Selection: A club has 10 members. Three members are to be randomly
a) How many railroad memorial plates could be issued if repetitions are selected to serve as chair, vice-chair, and secretary. The first person selected is the
allowed? chair; the second person selected, the vice-chair; and the third, the secretary. How
b) How many railroad memorial plates could be issued if repetitions are many different committee structures are possible?
not allowed?
• Horse Race: In how many ways can horses in a 10-horse race finish first, second, and
third?
• Postal Codes: Canadian postal codes consist of a “letter digit letter digit letter digit”
arrangement. (A)How many codes are possible if repetition is permitted?
92 93
94 95
n! = n(n – 1)(n – 2) … 1
0! = 1
96 97
14
9/29/20
Problem
Permutations 1) A club has 10 members. Three members will be selected to serve as a President,
Secretary, and Treasurer. No person will hold more than one position. How many
• A permutation is an arrangement of n objects in a specific order. different outcomes are possible?
2) A business owner wishes to rank the top 3 locations selected from 5 locations for a
• Permutation Rule: The arrangement of n objects in a specific order using r business. How many different ways can she rank them? What if she decides to rank all 5
objects at a time is called a permutation of n objects taking r objects at a locations?
time. It is written as nPr, and the formula is
3) A group of 20 people are going to run a race. The top three runners earn gold, silver,
𝑛! and bronze medals.
𝑛𝑃𝑟 = 𝑃 𝑛, 𝑟 =
𝑛−𝑟 !
4) There are 15 applicants for three jobs: Computer Programmer, Software Tester, and
Systems Engineer.
98 99
𝑛! 𝑛!
𝑟F ! ∗ 𝑟G ! ∗ … ∗ 𝑟P ! 𝑟F ! ∗ 𝑟G ! ∗ … ∗ 𝑟P !
10!
= 50,400
3! 3! 2! 1! 1!
100 101
Combinations Combination
• The difference between a combination and a permutation can be shown using
• A selection of distinct objects without regard to order is called a combination.
the letters A, B, C, and D. The permutations for the letters A, B, C, and D are:
• Combinations are used when the order or arrangement is not important, as in
the selecting process.
• Combination rule: The number of combinations of r objects selected from n
objects is denoted by nCr and is given by the formula:
102 103
15
9/29/20
3) a) How many basketball teams of 5 players can be formed from 15 players with regard to
playing positions?
b) How many basketball teams of 5 players can be formed from 15 players without regard to
playing positions?
104 105
106 109
112 113
16
9/29/20
Problems – FCP, Permutations, & Combinations (3) Problems – FCP, Permutations & Combinations (4)
6) Homer Simson is going to order a pizza. The following toppings are available, and 8) a) How many 2-letter words can be formed using the letters A, B, C, D, E, and F?
double toppings are not permitted: b) How many 2-element subsets can be formed using the letters A, B, C, D, E, and F?
mushrooms, spinach, cheese, olives, and anchovies
He may choose any combination of those toppings (this includes the possibility that he 9) a) How many two-digit numbers can be formed using the digits 0, 1, 2, 3, 4 if
may choose none of them). How many different topping combinations are possible? repetition is allowed?
b) How many two-digit numbers can be formed using the digits 0, 1, 2, 3, 4 if repetition
7) The local pizza shop makes pizzas in three sizes, with two kinds of crust, and offers is not allowed?
nine different toppings.
a) How many different plain (no toppings) pizzas can be ordered? 10) Ten comedians show up for an open-mic night. Due to time constraints, only seven
b. How many different one-topping pizzas can be ordered? can perform that night.
c) After selecting the size and crust of your pizza, in how many ways can you select two a) In how many ways can the promoter choose three comedians to leave out?
toppings? b) In how many ways can the promoter choose the line-up for the seven that will
d) How many different two-topping pizzas can be ordered? (Hint: You have 3 decisions to perform?
make. size, crust, and the two toppings. Use FCP and your answer from part c)
114 115
117 119
120 121
17
9/29/20
125 126
1) Find the probability of getting 4 aces when 5 cards are drawn from an
ordinary deck of cards.
2) A box contains 24 integrated circuits, 4 of which are defective. If 4 are sold
at random, find the following probabilities.
a) Exactly 2 are defective.
b) None is defective.
c) All are defective.
d) At least 1 is defective.
127
18