Chap2 Full
Chap2 Full
Chap2 Full
• Any action whose outcome is random and results in well defined out-
comes is an experiment.
• The set of all possible outcomes of an experiment is called the sample
space of the experiment and is denoted by S.
Examples
i. Tossing a fair coin 3 times and recording heads or tails for each.
ii. Tossing a fair coin 3 times and recording the number of heads.
iii. Tossing a fair coin and recording the number of tosses until the third
head occurs.
Example: Four WashU students are selected and asked their opinion on the
university’s handling of covid-19 (on a 1-10 scale).
1
• An event that contains only one outcome is a simple event.
• An event that contains more than one outcome is a compound event.
• S is an event, and ∅ = empty set is an event.
• We say event A has occurred if the outcome of the experiment is in A.
We can use set operations on events to create additional events. Let A and
B be events.
• The union of A and B, A ∪ B, is the event containing all outcomes in
A or B.
2
• A and B are disjoint or mutually exclusive if they have no outcomes in
common.
Note: Unions and intersections can be extended to more than two sets.
i. A1 ∪ A2 ∪ · · · ∪ Ak is the event containing outcomes that are in A1 or A2
or · · · or Ak .
b. Let Ei be the event that the ith resistor tests acceptable. Describe E2 .
3
c. Are E1 and E2 mutually exclusive?
d. Find E1 ∪ E2 ∪ E3 ∪ E4 .
e. Find E1 ∩ E2 ∩ E3 ∩ E4 .
Set operations
i. Commutative Laws:
A ∪ B = B ∪ A and A ∩ B = B ∩ A
(A ∪ B) ∪ C = A ∪ (B ∪ C) and (A ∩ B) ∩ C = A ∩ (B ∩ C)
(A ∪ B) ∩ C = (A ∩ C) ∪ (B ∩ C) and (A ∩ B) ∪ C = (A ∪ C) ∩ (B ∪ C)
4
Equally Likely Outcomes
Counting Techniques
Examples:
i. Suppose a coin is tossed 10 times.
ii. Suppose car license plates have two letters followed by a digit, a letter,
a digit, and a letter.
5
iii. Select a first, second, and third place winner from a group of four final-
ists.
Pn,n =
6
Example: Suppose we select two cards from a deck of 52 cards.
a. How many outcomes are there if the first card will be given to player 1
and the second card will be given to player 2?
b. How many outcomes are there if both cards will be given to player 1?
Example: In a game of poker each player receives five cards dealt from a deck
of 52 cards. A full house refers to a five-card hand consisting of three of a
kind and two of a kind. Find the probability that a randomly dealt five-card
hand is a full house.
7
Example: How many ways are there to form groups of sizes 2, 3, and 3 from
8 students?
We often start with an experiment with equally likely outcomes, but record
the value of a random variable X.
The outcomes in the sample space for X may not be equally likely.
8
Example: A simple random sample of size n = 3 is drawn from a batch of 10
product items. If 4 of the 10 items are defective, find the PMF of the random
variable X = the number of defective items in the sample.
x 0 1 2 3
p(x)
9
Axioms and Properties of Probability
Properties of Probability
• P (∅) = 0 where ∅ is the empty set.
• For any finite collection, E1 , E2 , . . . , Em , of disjoint events
10
Example: Suppose two dice are rolled. What is the probability the sum is
greater than 2, but less than 5?
Example: In a certain community 60% of families own a dog, 70% own a cat,
and 50% own both a dog and a cat.
• If a family is selected at random, what is the probability the family owns
at least one of the two kinds of pets.
11
Conditional Probability
b. Suppose we know the first bill drawn is a ten-dollar bill. What is the
probability the second bill is a ten-dollar bill?
For any two events A and B with P (A) > 0, the conditional probability of B
given A, denoted by P (B | A), is
P (A ∩ B)
P (B | A) =
P (A)
Note:
Example: Two dice are rolled and their sum is observed to be 7. Given
this information, what is the conditional probability that one of the two die
rolls was a 3?
12
Example: If a randomly selected family owns a dog, what is the probability
that it also owns a cat?
Properties
• 0 ≤ P (B | A) ≤ 1
• P (A ∪ C | B) = P (A | B) + P (C | B) − P (A ∩ C | B)
Multiplication Rule:
• P (A ∩ B) = P (A)P (B | A)
• P (A ∩ B ∩ C) = P (A)P (B | A)P (C | A ∩ B)
13
Example: Two consecutive traffic lights have been synchronized to make a
run of green lights more likely. In particular, if a driver finds the first light
to be red, the second light will be green with probability 0.9, and if the first
light is green the second will be green with probability 0.7. If the probability
of finding the first light green is 0.6, find the probability that a driver will
find both lights green.
A tree diagram:
14
Example: Find the probability that a driver will find the second traffic light
green.
Bayes’ Theorem
Bayes’ Theorem is often used in the same context as the law of total proba-
bility.
P (A)P (B | A)
P (A | B) =
P (A)P (B | A) + P (Ac )P (B | Ac )
15
Independent Events
Properties:
1. If A and B are independent so are A and B c (and so are Ac and B).
2. S and ∅ are independent of every other event.
3. Disjoint events are not independent unless the probability of one of them
is 0.
16
Example: The proportion of female voters who support the exploration of all
alternative forms of energy production is the same as the proportion of all
voters who support the exploration of all alternative forms of energy produc-
tion. For a randomly selected voter, let F denote the event that the voter is
female, and let E denote the event that the voter supports the exploration
of all alternative forms of energy production.
a. Are the events E and F independent?
b. Is the proportion of male voters who support the exploration of all al-
ternative forms of energy production the same as the corresponding pro-
portion female voters?
Example: Suppose we draw one card from a deck of 52 cards. Let F be the
event that a face card is drawn. Let A be the event that an ace is drawn.
Are A and F independent?
Mutual Independence
17
Example: 20% of a certain type of laser diodes have efficiency below 0.3
mW/mA. For 5 diodes, selected by random sampling from a large population
of such diodes, find the probability of the following events.
a. All five have efficiency above 0.3.
18