ProSta Chap1 (2021.2)
ProSta Chap1 (2021.2)
PROBABILITY
HANOI – 2022
(1)
Email: [email protected]
Nguyễn Thị Thu Thủy (SAMI-HUST) ProSta-CHAP1 1/96 HANOI – 2022 1 / 96
CHAPTER OUTLINE
Chapter outline
1 SAMPLE SPACES AND EVENTS
2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
3 ADDITION RULES
4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
6 BERNOULLI TRIAL FORMULARS
Content
1 1.1 SAMPLE SPACES AND EVENTS
1.1.1 Random Experiments
1.1.2. Sample Space
1.1.3. Event
1.1.4 Event Relations
1.1.5 Counting Techniques
2 1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
1.2.1 Probability of an Event. Equally Likely Outcomes
1.2.2 Theoretical Probability. Empirical Probability
1.2.3 Axioms of Probability
3 1.3 ADDITION RULES
4 1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
1.4.1 Conditional Probability
1.4.2 Multiplicative Rule
1.4.3 Independence
5 1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
1.5.1 Total Probability Rule
1.5.2 Bayes’ Theorem
6 1.6 BERNOULLI TRIAL FORMULARS
Nguyễn
1.6.1ThịBernoulli
Thu Thủy (SAMI-HUST) ProSta-CHAP1
trial/Independent Trials 4/96 HANOI – 2022 4 / 96
1.1 SAMPLE SPACES AND EVENTS 1.1.1 Random Experiments
Random Experiments
Definition 1 (Random Experiments)
An experiment that can result in different outcomes, even though it is repeated in the same manner every
time, is called a random experiment.
Example 2 (An experiment consists of the following procedure, observation, and model)
Random Experiments
Note
An experiment consists of both a procedure and observations.
It is important to understand that two experiments with the same procedure but with different
observations are different experiments.
Example 3
Note
These two experiments have the same procedure: flip a coin three times.
They are different experiments because they require different observations.
Sample Space
Example 4
1 The sample space in Example 1(a) is S = {H, T } where H is the outcome “observe head,” and T is
the outcome “observe tail.”
2 The sample space in Example 3(a) is
Sample Space
Note
In some experiments, it is helpful to list the elements of the sample space systematically by means of a tree
diagram.
Example 5
An experiment consists of flipping a coin and then flipping it a second time if a head occurs. If a tail
occurs on the first flip, then a die is tossed once. To list the elements of the sample space providing the
most information, we construct the tree diagram of Figure 1. The sample space is
Sample Space
Note
Sample spaces with a large or infinite number of sample points are best described by a statement or rule
method.
Example 6
1 If the possible outcomes of an experiment are the set of cities in the world with a population over 1
million, our sample space is written
which reads “S is the set of all x such that x is a city with a population over 1 million”. The vertical
bar is read “such that.”
2 If S is the set of all points (x, y) on the boundary or the interior of a circle of radius 2 with center at
the origin, we write the rule
S = {(x, y) | x2 + y 2 ≤ 4}.
Sample Space
Note
A sample space is discrete if it consists of a finite or countable infinite set of outcomes. A sample space is
continuous if it contains an interval (either finite or infinite) of real numbers.
Example 7
In Example 6(1), the choice S ∈ R+ is an example of a continuous sample space, whereas S = {0, 1, 2, 3} is
a discrete sample space.
Event
Definition 3 (Event)
Example 8
Suppose we roll a six-sided die and observe the number of dots on the side facing upwards. We can label
these outcomes Ei , i = 1, . . . , 6 where Ei denotes the outcome that i dots appear on the up face. The
sample space is S = {E1 , E2 , . . . , E6 }. Each subset of S is an event. Examples of events are
1 The event A = {Roll 4 or higher } = {E4 , E5 , E6 }.
2 The event B = {The roll is even} = {E2 , E4 , E6 }.
3 The event C = {The roll is the square of an integer} = {E1 , E4 }.
Event
Example 9
Wait for someone to make a phone call and observe the duration of the call in minutes. An outcome x is a
nonnegative real number. The sample space is S = {x | x ≥ 0}. The event A “the phone call lasts longer
than five minutes” is A = {x | x > 5}.
Example 10
See Example 8. List the simple events in the experiment. Event E1 : Observe a 1. Event E2 : Observe a 2.
Event E3 : Observe a 3. Event E4 : Observe a 4. Event E5 : Observe a 5. Event E6 : Observe a 6.
Note
We will use a shorthand for unions and intersections of n events:
n
[ n
\
Ai = A1 ∪ A2 ∪ · · · ∪ An and Ai = A1 ∩ A2 ∩ · · · ∩ An .
i=1 i=1
Mutually Exclusive
A∩B =∅
Ai ∩ Aj = ∅, i 6= j.
Mutually Exclusive
Mutually Exclusive
Example 11
1 In Example 8, events A and B are not mutually exclusive, because they have one outcome in common.
2 In Example 10 the six simple events E1 , E2 , . . . , E6 form a set of all mutually exclusive outcomes of
the experiment.
3 In Figure 5, we see that events A, B, and C are all subsets of the sample space S. It is also clear that
event B is a subset of event A, event B ∩ C has no elements and hence B and C are mutually
exclusive, event A ∩ C has at least one element, event A ∩ B = B, and event A ∪ B = A.
Mutually Exclusive
Figure 5
Events B and C are mutually exclusive; event A ∩ C has at least one element; event A ∩ B = B; and event
A ∪ B = A.
Mutually Exclusive
Property 1
Several results that follow from the foregoing definitions, which may easily be verified by means of Venn
diagrams, are as follows:
1. A ∩ ∅ = ∅. 6. ∅C = S.
2. A ∪ ∅ = A. 7. (AC )C = A.
3. A ∩ AC = ∅. 8. (A ∩ B)C = AC ∪ B C .
4. A ∪ AC = S. 9. (A ∪ B)C = AC ∩ B C .
5. S C = ∅.
A1 ∪ A2 ∪ · · · ∪ An = S.
Note
The set A = {A1 , A2 , . . . , An } is an event space if and only if
A1 ∪ A2 ∪ · · · ∪ An = S, and Ai ∩ Aj = ∅, i 6= j, i, j = 1, 2, . . . , n.
Example 12
Flip four coins, a penny, a nickel, a dime, and a quarter. Examine the coins in order (penny, then nickel,
then dime, then quarter) and observe whether each coin shows a head (H) or a tail (T ). The sample space
consists of 16 four-letter words, with each letter either H or T . For example, the outcome T T HH refers to
the penny and the nickel showing tails and the dime and quarter showing heads. There are 16 members of
the sample space.
Example 13
Continuing Example 12, let Ai = {outcomes with i heads}. Each Ai is an event containing one or more
outcomes. For example, A1 = {T T T H, T T HT, T HT T, HT T T } contains four outcomes. The set
B = {A0 , A1 , A2 , A3 , A4 } is an event space. Its members are mutually exclusive and collectively exhaustive.
It is not a sample space because it lacks the finest-grain property. Learning that an experiment produces
an event A1 tells you that one coin came up heads, but it doesn’t tell you which coin it was.
Theorem 1
For an event space B = {B1 , B2 , . . . , Bm } and any event A in the sample space, let Ci = A ∩ Bi ,
i = 1, 2, . . . , m. For i 6= j, the events Ci and Cj are mutually exclusive and
A = C1 ∪ C2 ∪ · · · ∪ Cm (1)
Figure 6
Example 14
In the coin-tossing experiment of Example 12, let A equal the set of outcomes with less than three heads:
From Example 13, let Bi = {outcomes with i heads}. Since {B0 , B1 , B2 , B3 , B4 } is an event space,
Theorem 1 states that
A = (A ∩ B0 ) ∪ (A ∩ B1 ) ∪ (A ∩ B2 ) ∪ (A ∩ B3 ) ∪ (A ∩ B4 ).
n1 × n2 × · · · × nk (2)
Example 15
In the design of a casing for a gear housing, we can use four different types of fasteners, three different bolt
lengths, and three different bolt locations. From the multiplication rule,
Permutations
Definition 9 (Permutations of n different elements – ORDER, without REPEAT, from n objects taken n
at a time)
The number of permutations of n different elements is n! where
n! = 1 × 2 × 3 · · · × n (3)
Example 16
Shuffle a deck and observe each card starting from the top. The outcome of the experiment is an ordered
sequence of the 52 cards of the deck. How many possible outcomes are there?
Solution. The procedure consists of 52 subexperiments. In each one the observation is the identity of one
card. The first subexperiment has 52 possible outcomes corresponding to the 52 cards that could be drawn.
After the first card is drawn, the second subexperiment has 51 possible outcomes corresponding to the 51
remaining cards. The total number of outcomes is
52 × 51 × · · · × 1 = 52!
Permutations of Subsets
Definition 10 (Permutations of subsets – ORDER, without REPEAT, from n objects taken k at a time)
The number of permutations of subsets of k elements selected from a set of n different elements is
n!
Akn = n(n − 1)(n − 2) . . . (n − k + 1) = (4)
(n − k)!
Example 17
A printed circuit board has eight different locations in which a component can be placed. If four different
components are to be placed on the board, how many different designs are possible?
Solution. Each design consists of selecting a location from the eight locations for the first component, a
location from the remaining seven for the second component, a location from the remaining six for the
third component, and a location from the remaining five for the fourth component. Therefore,
8!
A48 = 8 × 7 × 6 × 5 = = 1680 different designs are possible
(8 − 4)!
n!
(5)
n1 !n2 ! . . . nk !
Example 18
A part is labeled by printing with four thick lines, three medium lines, and two thin lines. If each ordering
of the nine lines represents a different label, how many different labels can be generated by using this
scheme?
Combination
k n!
= Cnk = (6)
n k!(n − k)!
Note
The number of combinations and the number of permutations are related:
Akn
Cnk = (7)
k!
Combination
Example 19
A printed circuit board may be purchased from five suppliers. In how many ways can three suppliers be
chosen from the five?
Solution. Since it is important to know only which three have been chosen, not the order of selection, the
number of ways is
5!
C53 = = 10.
3!2!
Note
In random experiments in which items are selected from a batch, an item may or may not be replaced before the
next one is selected. This is referred to as sampling with or without replacement, respectively.
Combination
Example 20
A bin of 50 manufactured parts contains three defective parts and 47 nondefective parts. A sample of six
parts is selected from the 50 parts without replacement. That is, each part can only be selected once and
the sample is a subset of the 50 parts. How many different samples are there of size six that contain
exactly two defective parts?
Solution. A subset containing exactly two defective parts can be formed by first choosing the two defective
parts from the three defective parts. Using Equation (6), this step can be completed in
3!
C32 = = 3 different ways.
2!1!
Then, the second step is to select the remaining four parts from the 47 acceptable parts in the bin. The
second step can be completed in
4 47!
C47 = = 178365 different ways.
4!43!
Therefore, from the multiplication rule, the number of subsets of size six that contain exactly two defective
items is
3 × 178365 = 535095 different ways.
Nguyễn Thị Thu Thủy (SAMI-HUST) ProSta-CHAP1 33/96 HANOI – 2022 33 / 96
1.1 SAMPLE SPACES AND EVENTS 1.1.5 Counting Techniques
Definition 13 (Sampling with Replacement – ORDER, with REPEAT, from n objects taken k at a time)
Example 21
The access code to a house’s security system consists of 3 digits. Each digit can be 0 through 9. How many
different codes are available if each digit can be repeated?
Solution. Because each digit can be repeated, there are 10 choices for each of the 3 digits
Practice Test 1
There are 10 competitors in the 100m final at the Olympics. How many ways can the gold, silver, and
bronze medals be awarded?
Practice Test 2
There are 6 SAMI professors and 7 SEM professors taking part in an escape room. If 4 SAMI professors
and 4 SEM professors are to be chosen and divided into 4 pairs (one SAMI professor with one SEM
professor per pair), how many pairings are possible?
Content
1 1.1 SAMPLE SPACES AND EVENTS
1.1.1 Random Experiments
1.1.2. Sample Space
1.1.3. Event
1.1.4 Event Relations
1.1.5 Counting Techniques
2 1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
1.2.1 Probability of an Event. Equally Likely Outcomes
1.2.2 Theoretical Probability. Empirical Probability
1.2.3 Axioms of Probability
3 1.3 ADDITION RULES
4 1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
1.4.1 Conditional Probability
1.4.2 Multiplicative Rule
1.4.3 Independence
5 1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
1.5.1 Total Probability Rule
1.5.2 Bayes’ Theorem
6 1.6 BERNOULLI TRIAL FORMULARS
Nguyễn
1.6.1ThịBernoulli
Thu Thủy (SAMI-HUST) ProSta-CHAP1
trial/Independent Trials 36/96 HANOI – 2022 36 / 96
1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY 1.2.1 Probability of an Event. Equally Likely Outcomes
Probability of an Event
Probability
To find the probability of an event E, we sum all the probabilities assigned to the sample points in E. This sum
is called the probability of E and is denoted by P (E).
Equally Likely
Whenever a sample space consists of n possible outcomes that are equally likely, the probability of each
outcome is 1/n.
Theorem 2
For an experiment with sample space S = {E1 , . . . , En } in which each outcome Ei is equally likely,
1
P (Ei ) = , i = 1, . . . , n (8)
n
Theoretical Probability
m
P (A) = (9)
n
Theoretical Probability
Example 22
A statistics class for engineers consists of 25 industrial, 10 mechanical, 10 electrical, and 8 civil engineering
students. If a person is randomly selected by the instructor to answer a question, find the probability that
the student chosen is (a) an industrial engineering major and (b) a civil engineering or an electrical
engineering major.
Solution. Denote by I, M, E, and C the students majoring in industrial, mechanical, electrical, and civil
engineering, respectively. The total number of students in the class is 53, all of whom are equally likely to be
selected.
1 Since 25 of the 53 students are majoring in industrial engineering, the probability of event I, selecting an
industrial engineering major at random, is
25
P (I) = .
53
2 Since 18 of the 53 students are civil or electrical engineering majors, it follows that
18
P (C ∪ E) = .
53
Theoretical Probability
Empirical Probability
Example 23
Toss n times a coin we have
Empirical Probability
Frequency
Relative frequency =
n
where the frequency is the number of times the event A occurred. If you let n, the number of repetitions of
the experiment, become larger and larger (n → ∞), you will eventually generate the entire population. In
this population, the relative frequency of the event A is defined as the probability of event A, that is
Frequency
P (A) = lim (10)
n→∞ n
Axioms of Probability
Note
These axioms imply the following results.
1 P (∅) = 0;
2 For any event E, P (E) = 1 − P (E C );
3 If the event E1 is contained in the event E2 , P (E1 ) ≤ P (E2 ).
Axioms of Probability
Example 24
A die is loaded in such a way that an even number is twice as likely to occur as an odd number.
1 If E is the event that a number less than 4 occurs on a single toss of the die, find P (E).
2 Let A be the event that an even number turns up and let B be the event that a number divisible by 3
occurs. Find P (A ∪ B) and P (A ∩ B).
Axioms of Probability
Example 24 Solution
The sample space is S = {1, 2, 3, 4, 5, 6}. We assign a probability of w to each odd number and a probability of
2w to each even number. Since the sum of the probabilities must be 1, we have 9w = 1 or w = 1/9. Hence,
probabilities of 1/9 and 2/9 are assigned to each odd and even number, respectively.
1 Therefore,
1 2 1 4
E = {1, 2, 3} and P (E) = + + = .
9 9 9 9
2 For the events A = {2, 4, 6} and B = {3, 6}, we have
By assigning a probability of 1/9 to each odd number and 2/9 to each even number, we have
7 2
P (A ∪ B) = and P (A ∩ B) = .
9 9
Axioms of Probability
Practice Test 3
If there are 5 people named A, B, C, D, and E, and they are randomly arranged in a row (with each
ordering equally likely), what is the probability that A and B are placed next to each other?
Practice Test 4
A fair pair of dice is rolled until the sum of the two numbers occurs as 7. Compute the probability that an
even number of rolls are needed.
Content
1 1.1 SAMPLE SPACES AND EVENTS
1.1.1 Random Experiments
1.1.2. Sample Space
1.1.3. Event
1.1.4 Event Relations
1.1.5 Counting Techniques
2 1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
1.2.1 Probability of an Event. Equally Likely Outcomes
1.2.2 Theoretical Probability. Empirical Probability
1.2.3 Axioms of Probability
3 1.3 ADDITION RULES
4 1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
1.4.1 Conditional Probability
1.4.2 Multiplicative Rule
1.4.3 Independence
5 1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
1.5.1 Total Probability Rule
1.5.2 Bayes’ Theorem
6 1.6 BERNOULLI TRIAL FORMULARS
Nguyễn
1.6.1ThịBernoulli
Thu Thủy (SAMI-HUST) ProSta-CHAP1
trial/Independent Trials 48/96 HANOI – 2022 48 / 96
1.3 ADDITION RULES
Note
Notice in the Venn diagram in Figure 7 that the sum P (A) + P (B) double counts the simple events that are
common to both A and B. Subtracting P (A ∩ B) gives the correct result.
Figure 7
Example 25
John is going to graduate from an industrial engineering department in a university by the end of the
semester. After being interviewed at two companies he likes, he assesses that his probability of getting an
offer from company A is 0.8, and his probability of getting an offer from company B is 0.6. If he believes
that the probability that he will get offers from both companies is 0.5, what is the probability that he will
get at least one offer from these two companies?
Figure 8
Corollary 2
If A and AC are complementary events, then
Remark 2
You can see from the Venn diagram in Figure 3 that A and AC are mutually exclusive and that
A ∪ AC = S, the entire sample space. It follows that
Example 26
If the probabilities that an automobile mechanic will service 3, 4, 5, 6, 7, or 8 or more cars on any given
workday are, respectively, 0.12, 0.19, 0.28, 0.24, 0.10, and 0.07, what is the probability that he will service
at least 5 cars on his next day at work?
Solution. Let E be the event that at least 5 cars are serviced. Now, P (E) = 1 − P (E C ), where E C is the event
that fewer than 5 cars are serviced. Since
Example 27
In a certain city, three newspapers A, B, and C are published. Suppose that 65 percent of the families in
the city subscribe to newspaper A, 35 percent of the families subscribe to newspaper B, and 35 percent of
the families subscribe to newspaper C. Suppose also that 25 percent of the families subscribe to both A
and B, 12 percent subscribe to both A and C, 15 percent subscribe to both B and C, and 8 percent
subscribe to all three newspapers A, B, and C. What percentage of the families in the city subscribe to at
least one of the three newspapers?
Solution. We have, P (A) = 0.65, P (B) = 0.35, P (C) = 0.35, P (A ∩ B) = 0.25, P (A ∩ C) = 0.12,
P (B ∩ C) = 0.15, and P (A ∩ B ∩ C) = 0.08. It follows from Theorem 5 that
Theorem 6 (m Events)
Corollary 3
Solution. Let F = “No one be selected from freshman class,” O = “No one be selected from sophomore class,”
J = “No one be selected from junior class,” E = “No one be selected from senior class,” p = P (At least one
from each class be selected).
p = P (F ∩ O ∩ J ∩ E) = P (F ∪ O ∪ J ∪ E) = 1 − P (F ∪ O ∪ J ∪ E).
It follows from Theorem 6 that
P (F ∪ O ∪ J ∪ E) = P (F ) + P (O) + P (J) + P (E) − P (F ∩ O) − P (F ∩ J) − P (F ∩ E) − P (O ∩ J)
− P (O ∩ E) − P (J ∩ E) + P (F ∩ O ∩ J) + P (F ∩ O ∩ E) + P (F ∩ J ∩ E) + P (O ∩ J ∩ E)
1 h 15 15 15 15 15 15 15 15 15 15
− P (F ∩ O ∩ J ∩ E) = 15 C90 + C80 + C70 + C60 − C70 − C60 − C50 − C50 − C40 − C30
C100
i
15 15 15
+ C40 + C30 + C20 + 0 − 0 = 0.79305.
Content
1 1.1 SAMPLE SPACES AND EVENTS
1.1.1 Random Experiments
1.1.2. Sample Space
1.1.3. Event
1.1.4 Event Relations
1.1.5 Counting Techniques
2 1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
1.2.1 Probability of an Event. Equally Likely Outcomes
1.2.2 Theoretical Probability. Empirical Probability
1.2.3 Axioms of Probability
3 1.3 ADDITION RULES
4 1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
1.4.1 Conditional Probability
1.4.2 Multiplicative Rule
1.4.3 Independence
5 1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
1.5.1 Total Probability Rule
1.5.2 Bayes’ Theorem
6 1.6 BERNOULLI TRIAL FORMULARS
Nguyễn
1.6.1ThịBernoulli
Thu Thủy (SAMI-HUST) ProSta-CHAP1
trial/Independent Trials 59/96 HANOI – 2022 59 / 96
1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES 1.4.1 Conditional Probability
Conditional Probability
Conditional Probability
The probability of an event B under the knowledge that the outcome will be in event A is denoted as
P (B|A)
P (A ∩ B)
P (A|B) = , provided P (B) > 0 (17)
P (B)
P (A ∩ B)
P (B|A) = , provided P (A) > 0 (18)
P (A)
Nguyễn Thị Thu Thủy (SAMI-HUST) ProSta-CHAP1 60/96 HANOI – 2022 60 / 96
1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES 1.4.1 Conditional Probability
Conditional Probability
Example 29
The probability that a regularly scheduled flight departs on time is P (D) = 0.83; the probability that it
arrives on time is P (A) = 0.82; and the probability that it departs and arrives on time is P (D ∩ A) = 0.78.
Find the probability that a plane (a) arrives on time, given that it departed on time, and (b) departed on
time, given that it has arrived on time.
Solution.
(a) The probability that a plane arrives on time, given that it departed on time, is
P (A ∩ D) 0.78
P (A|D) = = = 0.94.
P (D) 0.83
(b) The probability that a plane departed on time, given that it has arrived on time, is
P (A ∩ D) 0.78
P (D|A) = = = 0.95.
P (A) 0.82
Conditional Probability
Remark 3
Example 30
Consider an experiment that consists of testing two integrated circuits that come from the same silicon
wafer, and observing in each case whether a circuit is accepted (a) or rejected (r). Consider the a priori
probability model
Find the probability of A = “second chip rejected” and B = “first chip rejected.”
Conditional Probability
Example 30 Solution
The sample space of the experiment is S = {rr, ra, ar, aa}. A is the union of two disjoint events (outcomes) rr
and ar. Therefore, the a priori probability that the second chip is rejected is
This is also the a priori probability that the first chip is rejected:
The conditional probability of the second chip being rejected given that the first chip is rejected is, by definition,
the ratio of P (A ∩ B) to P (B), where, in this example,
Thus
P (A ∩ B) 0.01
P (A|B) = = = 0.5.
P (B) 0.02
Multiplicative Rule
Note
Since the events A ∩ B and B ∩ A are equivalent, it follows from Theorem 7 that we can also write
Multiplicative Rule
Example 31
One bag contains 4 white balls and 3 black balls, and a second bag contains 3 white balls and 5 black balls.
One ball is drawn from the first bag and placed unseen in the second bag. What is the probability that a
ball now drawn from the second bag is black?
Solution. Let B1 , B2 , and W1 represent, respectively, the drawing of a black ball from bag 1, a black ball from
bag 2, and a white ball from bag 1. We are interested in the union of the mutually exclusive events B1 ∩ B2 and
W1 ∩ B2 . The various possibilities and their probabilities are illustrated in Figure 9. Now
P [(B1 ∩ B2 ) + (W1 ∩ B2 )] = P [B1 ∩ B2 ] + P [W1 ∩ B2 ] = P [B1 ]P [B2 |B1 ] + P [W1 ]P [B2 |W1 ]
3 6 4 5 38
= + = .
7 9 7 9 63
Multiplicative Rule
Figure 9
Multiplicative Rule
P (A1 ∩ A2 ∩ · · · ∩ An ) = P (A1 )P (A2 |A1 )P (A3 |A1 A2 ) . . . P (An |A1 ∩ A2 ∩ · · · ∩ An−1 ) (21)
Multiplicative Rule
Example 32
Three cards are drawn in succession, without replacement, from an ordinary deck of playing cards. Find
the probability that the event A1 ∩ A2 ∩ A3 occurs, where A1 is the event that the first card is a red ace,
A2 is the event that the second card is a 10 or a jack, and A3 is the event that the third card is greater
than 3 but less than 7.
Solution. First we define the events A1 : “the first card is a red ace,” A2 : “the second card is a 10 or a jack,” A3 :
“the third card is greater than 3 but less than 7.” Now
2 8 12
P (A1 ) = , P (A2 |A1 ) = , P (A3 |A1 A2 ) =
52 51 50
and hence, by Theorem 8,
assuming the existences of the conditional probabilities. Otherwise, A and B are dependent.
Example 33
Toss two coins and observe the outcome. Define these events: A “Head (H) on the first coin”, B “Tail (T )
on the second coin”. Are events A and B independent?
Solution. From previous examples, you know that S = {HH, HT, T H, T T }. Use these four simple events to
find
1 1 1
P (A) = , P (B) = , P (A ∩ B) = .
2 2 4
Since
1
P (A)P (B) = P (A ∩ B) = ,
4
and the two events must be independent.
Example 34
1
In an experiment with equiprobable outcomes, the event space is S = {1, 2, 3, 4}. P (s) = for all s ∈ S.
4
Are the events A1 = {1, 3, 4}, A2 = {2, 3, 4}, and A3 = ∅ independent?
Solution. These three sets satisfy the final condition of Definition 19 because A1 ∩ A2 ∩ A3 = ∅, and
However, A1 and A2 are not independent because, with all outcomes equiprobable,
1 3 3
P (A1 ∩ A2 ) = P ({3, 4}) = 6= P (A1 )P (A2 ) = × .
2 4 4
Hence the three events are not dependent.
Remark 5 (What’s the difference between mutually exclusive and independent events?)
1 When two events are mutually exclusive or disjoint, they cannot both happen when the experiment is
performed. Once the event B has occurred, event A cannot occur, so that P (A|B) = 0, or vice versa.
The occurrence of event B certainly affects the probability that event A can occur. Therefore,
mutually exclusive events must be dependent.
2 When two events are mutually exclusive or disjoint,
P (A ∩ B) = 0 and P (A ∪ B) = P (A) + P (B).
3 When two events are independent,
P (A ∩ B) = P (A)P (B) and P (A ∪ B) = P (A) + P (B) − P (A)P (B).
Practice Test 5
In an experiment, A, B, and C are three independent events such that P (A) = 0.6, P (B) = 0.7, and
P (C) = 0.8. Determine the probability that exactly one of these three events will occur.
Practice Test 6
Let A and B be arbitrary events and P (A) = 0.4, P (B) = 0.6, and P (A|B) = 0.5. Find the probability of
(A ∪ B)?
Practice Test 7
Suppose that n guests check their hats when they arrive at a restaurant and that these hats are returned
to them in random order when they leave. Let pn denote the probability that no guest will receive the
proper hat. What is p6 ?
Content
1 1.1 SAMPLE SPACES AND EVENTS
1.1.1 Random Experiments
1.1.2. Sample Space
1.1.3. Event
1.1.4 Event Relations
1.1.5 Counting Techniques
2 1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
1.2.1 Probability of an Event. Equally Likely Outcomes
1.2.2 Theoretical Probability. Empirical Probability
1.2.3 Axioms of Probability
3 1.3 ADDITION RULES
4 1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
1.4.1 Conditional Probability
1.4.2 Multiplicative Rule
1.4.3 Independence
5 1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
1.5.1 Total Probability Rule
1.5.2 Bayes’ Theorem
6 1.6 BERNOULLI TRIAL FORMULARS
Nguyễn
1.6.1ThịBernoulli
Thu Thủy (SAMI-HUST) ProSta-CHAP1
trial/Independent Trials 76/96 HANOI – 2022 76 / 96
1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM 1.5.1 Total Probability Rule
For an event space (or partition) {B1 , B2 , . . . , Bm } with P (Bi ) > 0 for all i and an event A, the
probability of the event A can be expressed as
m
X
P (A) = P (Bi )P (A|Bi ) (25)
i=1
Proof Theorem 11
Consider the Venn diagram of Figure 10. The event A is seen to be the union of the mutually exclusive events
(B1 ∩ A), (B2 ∩ A), . . . , (Bm ∩ A) that is,
Example 35
A company has three machines B1 , B2 , and B3 for making 1 kΩ resistors. It has been observed that 80%
of resistors produced by B1 are within 50 of the nominal value. Machine B2 produces 90% of resistors
within 50 of the nominal value. The percentage for machine B3 is 60%. Each hour, machine B1 produces
3000 resistors, B2 produces 4000 resistors, and B3 produces 3000 resistors. All of the resistors are mixed
together at random in one bin and packed for shipment. What is the probability that the company ships a
resistor that is within 50 of the nominal value?
Example 35 Solution
Let A = “resistor is within 50 of the nominal value”. Using the resistor accuracy information to formulate a
probability model, we write
The production figures state that 3000 + 4000 + 3000 = 10,000 resistors per hour are produced. The fraction
from machine B1 is P (B1 ) = 3000/10000 = 0.3. Similarly, P (B2 ) = 0.4 and P (B3 ) = 0.3. Now it is a simple
matter to apply the law of total probability to find the accuracy probability for all resistors shipped by the
company:
For the whole factory, 78% of resistors are within 50 of the nominal value.
Practice Test 8
In a certain assembly plant, three machines, B1, B2, and B3, make 30%, 45%, and 25%, respectively, of the
products. It is known from past experience that 2%, 3%, and 2% of the products made by each machine,
respectively, are defective. Now, suppose that a finished product is randomly selected. What is the
probability that it is non-defective?
Bayes’ Theorem
Bayes’ Rule
From the definition of conditional probability,
Now, considering the second and last terms in the expression above, we can write
P (B)P (A|B)
P (B|A) = for P (A) > 0 (26)
P (A)
Let {B1 , B2 , . . . , Bm } be an event space with prior probabilities P (B1 ), P (B2 ), . . . , P (Bm ). If an event A
occurs such that P (A) 6= 0, the posterior probability of Bi given A is the conditional probability
P (Bi )P (A|Bi )
P (Bi |A) = Pm , i = 1, 2, . . . , m (27)
i=1 P (Bi )P (A|Bi )
Bayes’ Theorem
Proof Theorem 12
P (A ∩ Bi )
P (Bi |A) = (by the definition of conditional probability).
P (A)
P (A ∩ Bi ) = P (Bi )P (A|Bi ) (by the multiplicative rule).
P (A) = P (B1 )P (A|B1 ) + · · · + P (Bm )P (A|Bm ) (by total probability).
Bayes’ Theorem
Example 36
In Example 35 about a shipment of resistors from the factory, we learned that: the probability that a
resistor is from machine B3 is P (B3 ) = 0.3; the probability that a resistor is acceptable, i.e., within 50 of
the nominal value, is P (A) = 0.78; given that a resistor is from machine B3 , the conditional probability
that it is acceptable is P (A|B3 ) = 0.6. What is the probability that an acceptable resistor comes from
machine B3 ?
Bayes’ Theorem
Example 36 Solution
Now we are given the event A that a resistor is within 50 of the nominal value, and we need to find P (B3 |A).
Using Bayes’ theorem, we have
P (B3 )P (A|B3 )
P (B3 |A) = .
P (A)
Since all of the quantities we need are given in the problem description, our answer is
0.3 × 0.6
P (B3 |A) = = 0.23.
0.78
Similarly we obtain P (B1 |A) = 0.31 and P (B2 |A) = 0.46. Of all resistors within 50 of the nominal value, only
23% come from machine B3 (even though this machine produces 30% of all resistors). Machine B1 produces
31% of the resistors that meet the 50 criterion and machine B2 produces 46% of them.
Bayes’ Theorem
Practice Test 9
A manufacturing firm employs three analytical plans for the design and development of a particular
product. For cost reasons, all three are used at varying times. In fact, plans 1, 2, and 3 are used for 30%,
20%, and 50% of the products, respectively. The defect rate is different for the three procedures as follows:
where P (D|Bi ) is the probability of a defective product, given plan Bi , i = 1, 2, 3. If a random product was
observed and found to be defective, which plan was most likely used and thus responsible?
Bayes’ Theorem
Practice Test 10
Police plan to enforce speed limits by using radar traps at four different locations within the city limits.
The radar traps at each of the locations L1 , L2 , L3 , and L4 will be operated 20%, 30%, 20%, and 30% of
the time. If a person who is speeding on her way to work has probabilities of 0.2, 0.1, 0.3, and 0.2,
respectively, of passing through these locations, (a) what is the probability that she will receive a speeding
ticket? (b) If the person received a speeding ticket on her way to work, what is the probability that she
passed through the radar trap located at L2 ?
Content
1 1.1 SAMPLE SPACES AND EVENTS
1.1.1 Random Experiments
1.1.2. Sample Space
1.1.3. Event
1.1.4 Event Relations
1.1.5 Counting Techniques
2 1.2 INTERPRETATIONS AND AXIOMS OF PROBABILITY
1.2.1 Probability of an Event. Equally Likely Outcomes
1.2.2 Theoretical Probability. Empirical Probability
1.2.3 Axioms of Probability
3 1.3 ADDITION RULES
4 1.4 CONDITIONAL PROBABILITY. MULTIPLICATION RULES
1.4.1 Conditional Probability
1.4.2 Multiplicative Rule
1.4.3 Independence
5 1.5 TOTAL PROBABILITY RULES. BAYES’ THEOREM
1.5.1 Total Probability Rule
1.5.2 Bayes’ Theorem
6 1.6 BERNOULLI TRIAL FORMULARS
Nguyễn
1.6.1ThịBernoulli
Thu Thủy (SAMI-HUST) ProSta-CHAP1
trial/Independent Trials 89/96 HANOI – 2022 89 / 96
1.6 BERNOULLI TRIAL FORMULARS 1.6.1 Bernoulli trial/Independent Trials
Example 37
Examples of Bernoulli trials include:
1 Flipping a coin. In this context, obverse “heads” conventionally denotes success and reverse “tails”
denotes failure. A fair coin has the probability of success 0.5 by definition. In this case there are
exactly two possible outcomes.
2 Rolling a die, where a six is “success” and everything else a “failure”. In this case there are six possible
outcomes, and the event is a six; the complementary event “not a six” corresponds to the other five
possible outcomes.
3 In conducting a political opinion poll, choosing a voter at random to ascertain whether that voter will
vote “yes” in an upcoming referendum.
Example 38
What is the probability P5 (3) of three successes and two failures in five Bernoulli trials with success
probability p.
Solution. To find P5 (3), we observe that the outcomes with three successes in five trials are 11100, 11010,
11001, 10110, 10101, 10011, 01110, 01101, 01011, and 00111. We note that the probability of each outcome
is a product of five probabilities, each related to one subexperiment. In outcomes with three successes,
three of the probabilities are p and the other two are 1 − p. Therefore each outcome with three successes
has probability p3 (1 − p)2 .
We know that the number of such sequences is C53 . To find P5 (3), we add up the probabilities associated
with the 10 outcomes with 3 successes, yielding
where a success occurs with probability p and a failure occurs with probability 1 − p.
Example 39
In Example 35, we found that a randomly tested resistor was acceptable with probability P (A) = 0.78. If
we randomly test 100 resistors, what is the probability of Tk , the event that k resistors test acceptable?
Solution. Testing each resistor is a Bernoulli trial with a success occurring when a resistor is acceptable.
Thus for 0 ≤ k ≤ 100,
k
P (Tk ) = P100 (k) = C100 (0.78)k (1 − 0.78)100−k .
Example 40
To communicate one bit of information reliably, cellular phones transmit the same binary symbol five
times. Thus the information “zero” is transmitted as 00000 and “one” is 11111. The receiver detects the
correct information if three or more binary symbols are received correctly. What is the information error
probability P (E), if the binary symbol error probability is q = 0.1?
Solution. In this case, we have five trials corresponding to the five times the binary symbol is sent. On each
trial, a success occurs when a binary symbol is received correctly. The probability of a success is
p = 1 − q = 0.9. The error event E occurs when the number of successes is strictly less than three:
Remark 6
Bernoulli trial computation can only done under the following circumstances.
2 outcomes only
When there only only 2 possibile outcomes, most of the time expressed as success or failure. This can
represent many different results such as heads or tails, win or lose, go or don’t go. It can only be done
when there are exactly 2 outcomes. Most of the times it will be expressed as success or failure.
Each trial must be independent
Each trial (each time the event occurs) must be independent of each other. This means that the
events are completely independent; they do not depend on the previous trial or the trial after. A
classic example is heads or tails. Each flip is independent of all others.
Probability of success is the same for each trial
The probability of the event occurring or there being success in the desired outcome must be the
same. For example, for each flip of a coin, there is always a 50% success rate of getting a heads. In
other words, the probability of an event occurring must be the same, not different, for each trial.
Practice Test 11
If 10 percent of the balls in a certain box are red, and if 20 balls are selected from the box at random, with
replacement, (a) what is the probability that more than three red balls will be obtained? (b) Also find the
probability that exactly two red balls will be obtained.
Practice Test 12
If 10 percent of the balls in a certain box are red, and if 20 balls are selected from the box at random, with
replacement, (a) what is the probability that more than three red balls will be obtained? (b) Also find the
probability that exactly two red balls will be obtained.