Lecture 3
Lecture 3
Probability
Alexey Rubtsov
Ryerson University
Definition
An experiment is the process which leads to well-defined results
called outcomes (measurements).
Definition
The sample space S is the set of all possible outcomes of a
probability experiment.
Example
Rolling a die.
Sample space: S = {1, 2, 3, 4, 5, 6}.
Event: A = {1, 2, 3}
Time to failure of a laptop.
Sample space: S = {x | x ∈ [0, ∞)} in years.
Event: A = {x | x ∈ [2, 10]} in years.
Definition
Two events are mutually exclusive if, when one event occurs, the
other cannot, and vice versa.
Definition
The probability of an event A is equal to the sum of the
probabilities of the simple events contained in A.
1
Example 4.8 – Solution (1 of 3)
Since no probabilities are given, you must list the simple
events in the sample space. The two-stage selection of the
candies suggests a tree diagram.
Figure 4.4
2
Example 4.8 – Solution (2 of 3)
There are two red candies in the dish, so you can use the
letters R1, R2, and Y to indicate that you have selected the
first red, the second red, or the yellow candy, respectively.
Since you closed your eyes when you chose the candies, all
six choices should be equally likely and are assigned
probability 1 ∕ 6.
3
Example 4.8 – Solution (3 of 3)
Thus,
P(A) = P(R1R2) + P(R2R1)
4
Calculating Probabilities Using Simple Events (5 of 5)
5
2. Counting Rules
A1 = T echnician = {M1 , M2 , M3 , M4 }
A2 = iP hones = {A, B, C}
n1 = 4, n2 = 3
Answer : 4 · 3 = 12.
Find probability that technician M2 will be chosen for a quick testing
of signals.
Find probability that either technician M2 or technician M1 are chosen.
5!
P55 = = 120
(0)!
What is the probability that component ”1” is chosen first for a
randomly selected assemble?
5!
C35 = = 10.
3! · (5 − 3)!
What is the probability that person A is part of the subcommittee?
Find probability that either person A or B are part of the
subcommittee.
1
Example 4.10 – Solution
The first candy can be chosen in m = 3 ways.
2
Example 4.12
A truck driver can take three routes from city A to city B, four
from city B to city C, and three from city C to city D. When
traveling from A to D, if the driver must drive from A to B to
C to D, how many possible A-to-D routes are available?
Solution:
Let
n1 = Number of routes from A to B = 3
n2 = Number of routes from B to C = 4
n3 = Number of routes from C to D = 3
3
Example 4.12 – Solution
Then the total number of ways to construct a complete
route, taking one subroute from each of the three groups,
(A to B), (B to C), and (C to D), is
n1n2n3 = (3)(4)(3) = 36
4
Example 4.13
Three lottery tickets are drawn from a total of 50. If the
tickets will be distributed to each of three employees in the
order in which they are drawn, the order will be important.
5
Example 4.13 – Solution
The total number of simple events is
= 50(49)(48)
= 117,600
6
Example 4.16
Five manufacturers produce a certain electronic device,
whose quality varies from manufacturer to manufacturer. If
you were to select three manufacturers at random, what is
the chance that the selection would contain exactly two of
the best three?
7
Example 4.16 – Solution (1 of 3)
The experiment consists of randomly selecting three
manufacturers from a group of five, three of which are
designated as “best” and two as “not best.” The event of
interest is
A: select exactly two of the “best” three manufacturers
8
Example 4.16 – Solution (2 of 3)
To find P(A), we need to calculate
To find nA, notice that A will occur only when you select two
of the “best” three and one of the “not best”—a two-step
process.
9
Example 4.16 – Solution (3 of 3)
There are
10
Example
Consider a box containing 2 red lollipops and 48 yellow lollipops, and
suppose that 3 lollipops are chosen at random without replacement.
a) What is the probability that none of the lollipops chosen are red?
b) What is the probability that one of them is red?
c) What is the probability that at most one is red?
d) What is the probability that three are red?
1
Sets theory
You can see from the Venn diagram in figure that A and
are mutually exclusive and that the entire
sample space.
2
Sets theory
3
4. Probability
P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
1
Example 4.17 – Solution (1 of 3)
We know that the simple events for this experiment are
2
Example 4.17 – Solution (2 of 3)
Event A, at least one head, occurs if E1, E2, or E3 occurs, so
that
and
3
Example 4.17 – Solution (3 of 3)
Similarly,
4
Calculating Probabilities for Unions and Complements
5
Calculating Probabilities for Unions and Complements
6
Calculating Probabilities for Unions and Complements
You can see from the Venn diagram in figure that A and
are mutually exclusive and that the entire
sample space.
7
Calculating Probabilities for Unions and Complements
It follows that
8
Example 4.19 (1 of 3)
In a survey of 1000 adults, respondents were asked about
the cost of a college education.
9
Example 4.19 (2 of 3)
The proportions responding in each category are shown in
the probability table. Suppose one respondent is chosen at
random from this group.
Table 4.6
10
Example 4.19 (3 of 3)
1. What is the probability that the respondent has a child in
college?
2. What is the probability that the respondent does not
have a child in college?
3. What is the probability that the respondent has a child in
college or thinks that the loan burden is too high or both?
11
Example 4.19 – Solution (1 of 3)
Table 4.6 gives the probabilities for the six simple events in
the table. For example, the entry in the top left corner of the
table is the probability that a respondent has a child in
college and thinks the loan burden is too high (A ∩ D).
1. The event that a respondent has a child in college will
occur regardless of his or her response to the question
about loan burden. That is, event D consists of the
simple events in the first row:
P(D) = .35 + .08 + .01 = .44
12
Example 4.19 – Solution (2 of 3)
In general, the probabilities of marginal events such as D
and A are found by summing the probabilities in the
appropriate row or column.
2. The event that the respondent does not have a child in
college is the complement of the event D denoted by
The probability of is found as
13
Example 4.19 – Solution (3 of 3)
3. The event of interest is P(A ∪ D). Using the Addition
Rule
P(A ∪ D) = P(A) + P(D) − P(A ∩ D)
= .60 + .44 − .35
= .69
14
5. Conditional Probability
Definition
If A and B are any events in S and P (B) 6= 0, the conditional
probability of A given B is:
P (A ∩ B)
P (A | B) = .
P (B)
Definition
Two events A and B are independent events if P (A | B) = P (A).
P (A ∩ B) = P (A)P (B)
P (Br )P (A | Br )
P (Br | A) = n
P
P (Bi ) · P (A | Bi )
i=1
Colorblindness
A researcher notes a person’s gender and whether or not
the person is colorblind to red and green. Does the
probability that a person is colorblind change, depending on
whether the person is male or not?
1
Conditional Probability
2
Conditional Probability
Tossing Dice
On the other hand, consider tossing a single die two times,
and define two events:
A: Observe a 2 on the first toss
B: Observe a 2 on the second toss
If the die is fair, the probability of event A is P(A) = 1 ∕ 6.
3
Conditional Probability
We could write:
P(B given that A occurred) = 1 ∕ 6
P(B given that A did not occur) = 1 ∕ 6
Since the probability of event B is not changed by the
occurrence of event A, we say that A and B are independent
events.
4
Example 4.20
In a color preference experiment, eight toys are placed in a
container. The toys are identical except for color—two are
red, and six are green. A child is asked to choose two toys
at random. What is the probability that the child chooses the
two red toys?
5
Example 4.20 – Solution (1 of 3)
Use a tree diagram as shown
in figure and define the
following events:
R: Red toy is chosen
G: Green toy is chosen
Figure 4.12
6
Example 4.20 – Solution (2 of 3)
The event A (both toys are red) can be written as the
intersection of two events:
A = (R on first choice) ∩ (R on second choice)
Since there are only two red toys in the container, the
probability of choosing red on the first choice is 2 ∕ 8.
However, once this red toy has been chosen, the probability
of red on the second choice is dependent on the outcome of
the first choice.
7
Example 4.20 – Solution (3 of 3)
If the first choice was red, the probability of choosing a
second red toy is only 1 ∕ 7 because there is only one red toy
among the seven remaining. Using this information and the
Multiplication Rule, you can find the probability of event A.
P(A) = P(R on first choice ∩ R on second choice)
8
Conditional Probabilities
Colorblindness, continued
Suppose that in the general population, there are 51% men
and 49% women, and that the proportions of colorblind men
and women are shown in the following probability table:
9
Conditional Probabilities
10
Conditional Probabilities
11
Example
Solution
If the coin is fair, the event can be described in three steps:
A: lose the first toss
B: lose the second toss
C: lose the third toss
12
Example
13
Example 4.21
Toss two coins and observe the outcome. Define these
events:
A: Head on the first coin
B: Tail on the second coin
Are events A and B independent?
Solution:
From previous examples, you know that
S = {HH, HT, TH, TT}. Use these four simple events to find
14
Example 4.21 – Solution
Since we have
15
The Difference between Mutually Exclusive and
Independent Events
16
The Difference between Mutually Exclusive and
Independent Events
17
Example 4.23
Two cards are drawn from a deck of 52 cards. Calculate the
probability that the draw includes an ace and a ten.
Solution:
Consider the event of interest:
A: Draw an ace and a ten
Then A = B ∪ C, where
B: Draw the ace on the first draw and the ten on the second
C: Draw the ten on the first draw and the ace on the second
18
Example 4.23 – Solution (1 of 2)
Events B and C were chosen to be mutually exclusive and
also to be intersections of events with known probabilities;
that is,
B = B1 ∩ B2 and C = C1 ∩ C2
where
B1 : Draw an ace on the first draw
B2 : Draw a ten on the second draw
C1 : Draw a ten on the first draw
C2 : Draw an ace on the second draw
19
Example 4.23 – Solution (2 of 2)
Applying the Multiplication Rule, you get
and
20