ES Lec. 6 and 7
ES Lec. 6 and 7
At the end of each lecture, you will be able to share your thoughts on the co
urse via:
3
Example 1
Amongst a group of 20 students, 7 students are taking Math, 3 are taking both (Math and
Biology), and 5 students are taking neither.
2. What is the probability that a randomly chosen student is taking Math or Biology?
5
Solution
Example 2
A and B are 2 events such where that P(A)=0.5, P(B) =0.7 and P(
P(A) =0.5
Let P(
P(B) =0.7
What's Next?
Total probability =1
(0.7-X) + (0.5-X) + X + 0.1 =1
1.3 – X =1
X = 0.3 = P(
7
Suppose you are managing a laboratory with 15 electronic devices, 6 of which are computers and 8
are printers. Among these devices, 3 devices can function both as computers and printers.
(a) What is the probability of randomly selecting a device that is either a computer or a printer?
(b) What is the probability of randomly selecting a device that is either a computer or a printer, but
not both?
(c) What is the probability of randomly selecting a device that is neither a computer nor a printer?
8
Solution
(b) We want to find P(C or P) but not (C and P) means just P(C) + P(P)
Example 3
Events A and B are such that P(B) =1/2, and P(A or B)=5/8, and P(A and B)=1/8.
Find P(A).
Solution
5/8=P(A)+1/2-1/8
P(A)=2/8=1/4
Example 4
A and B are two events such that
P(A)=0.3, P(B)=0.5 and the P(A or B)=0.55.
Find the probabilities of the following events:
1. P(A and B)
2. P(B’)
3. P(A’ ∩ B)
A and B are two events such that P(A)=0.3, P(B)=0.5 and the P(A or B)=0.55
with k1 ways to accomplish the first stage and k2 ways to accomplish the second stage, then
Example: Toss two coins. The total number of simple events is:
22
22 == 44
14
This rule is easily extended to n stages, with k1 ways on the first trial, k2 ways on the second
trial, …and kn ways on the nth trial, the number of possible outcomes is:
Total number of outcomes=(Number of choices for Stage 1)×(Number of choices for Stage
2)×…×(Number of choices for Stage n)
(k1)⸳(k2)⸳…⸳(kn)
Example
o You want to go to a park, eat at a restaurant, and see a movie. There are 3 parks, 4 restaurants,
and 6 movie choices. How many different possible combinations are there?
Answer: (3)(4)(6) = 72 different possibilities
15
Solution
17
Example:
How many 3-digit lock combinations can we make from the numbers 0, 1, 2, 3,…,9?
18
Solution
Total outcomes=26×10×10×10=26,000
19
calculate the number of car plates that can be generated with 5 digits
calculate the number of car plates that can be generated with 1 letter and 5 digits
Solution:
o There are 26 possible letters (A-Z).
o Each of the 5 digits can be any number from 0 to 9, giving us 10 possible digits for each position.
26×10×10×10×10×10=2,600,000
20
Assume you are rolling two dice, a green and a red one. What is the probability of getting at
least one dice showing number 1?
Solution
kn
Example
o See Assignment 4 (the gender of three children in a family)
o Find the sample space for rolling two dice.
o If you roll a die 3 times, then there are 6 3 = 216 possible outcomes
22
n! = (n)(n – 1)…(1)
Example
o You have three cards, A, B, and C. How many different ways can these cards be arranged
o You have five books to put on a bookshelf. How many different ways can these
books be placed on the shelf? On Excel =
FACT(5)=120
24
Example
Suppose a photographer must arrange 4 persons in a row for a photograph. In how many ways
can the arrangement be done?
Solution:
n! = 4! = 4 × 3 × 2 × 1 = 24 ways.
25
The number of ways of arranging r objects selected from n objects (r ≤ n) in order is:
Example:
How many 3-digit lock combinations can we make from the numbers 0, 1, 2, 3,…,9 if the
repetition is not allowed? On Excel =
PERMUT(10,3)=720
Solution:
26
Example
You have five books and are going to put three on a bookshelf.
Example
A device consists of five parts and can be assembled in any order. A quality control engineer
wants to test each order for the efficiency of assembly.
Solution:
A bowl contains three M&Ms®, one red, one blue, and one green. A child selects two
M&Ms at random. What is the probability that at least one is red?
1/6 P(at
P(atleast
least11red)
red)
==P(RB)
P(RB)++P(BR)+
P(BR)+P(RG)
P(RG)++P(GR)
P(GR)
1/6
==4/6
4/6==2/3
2/3
1/6
1/6
1/6
29
Solution
Total Possible Outcomes: Since the order matters, the total number of ways to select 2 balls
from the 3 can be calculated as 3 3!
𝑃2= =6
1!
Favorable Outcomes
1. Case 1: Red comes first: 1*2
2. Case 2: Red comes second: 2*1
Example
A box contains six M&Ms®, four red and two green. A child selects two M&Ms at random.
What is the probability that exactly one is red?
Solution:
Solution
Total Possible Outcomes: Since the order matters, the total number of ways to select 2
m&ms from the 6 can be calculated as6 6!
𝑃2= =30
4!
Favorable Outcomes
1. Case 1: Red comes first: 4*2=8
2. Case 2: Red comes second: 2*4=8
n n!
C r
Example: r!(n r )!
Three members of a 5-person committee must be chosen to form a subcommittee.
On Excel
How many different subcommittees could be formed? =COMBIN(5,3)=10
The difference between permutation and combination is that in combination the order of
objects being selected is not important, but the order matters in permutation
For example, abc, bac, acb, cab, cba are six different permutations but they are the same
combination.
34
Example
In how many ways can 10 people be seated on a bench if only 4 seats are available?
Solution:
=PERMUT(10,4)=5040
You have 12 books on your bookshelf and want to choose 3 to take on vacation. How many
different sets of books can you choose?
Solution:
=COMBIN(12,3)=220
35
Solution
37
A competition requires participants to enter a 4-digit security code, where each digit is
between 0 and 9.If a participant randomly guesses the code, what is the probability of
entering the correct one?
38
A box contains 4 red balls and 3 blue balls. If two balls are drawn randomly, what is the
probability that at least one is red?
39
A standard deck of 52 playing cards has 13 hearts. If a 5-card poker hand is drawn
randomly, what is the probability that all 5 cards are hearts?
40
A license plate consists of 3 letters followed by 3 digits. Each letter is chosen from A–Z,
and each digit is chosen from 0–9. If letters and digits can be repeated:
41