Professional Documents
Culture Documents
Probability
Math221E – Engineering Data Analysis
Sample Space and
Events
Probability Theory
Statistics is basically concerned of
presentation and interpretation of chance
outcomes that occur in a planned study or
scientific investigation.
Jointly with statistics, probability theory is
a branch of mathematics that has been
developed to deal with uncertainty.
Probability is used to quantify the
likelihood, or chance, that an outcome of a
random experiment will occur.
Probability
A set real numbers ranging from 0 to 1 that
evaluates the likelihood of the occurrence of
an event resulting from statistical
experiments.
number of ways event A can occur
𝑃 𝐴 =
total number of possible outcomes
Sample space
The set of all possible outcomes of a
statistical experiment, usually represented
by the symbol S.
Each outcome is called an element or
sample point.
Sample space
S={heads, tails} S={1,2,3,4,5,6}
Example 2.1
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
𝑛 𝑆 = 406 70-75 75
𝑛 88 ≤ 𝑋 ≤ 93 = 80 76-81 86
𝑛 94 ≤ 𝑋 ≤ 99 = 60 82-87 105
𝑃 𝑋 ≥ 88 = (80 + 60)/406 88-93 80
𝑃 𝑋 ≥ 88 = 10/29 94-99 60
Total 406
Example 2.19
If a die is rolled, what is the probability of
getting
a. An odd number? 1/2
b. An even number? 1/2
c. A perfect square? 1/3
Example 2.20
If two coins are tossed, what is the
probability of getting both heads? 1/4
Example 2.21
A box has 3 red, 4 green, and 6 yellow balls.
If a ball is drawn from the box, what is the
probability that
a. It is green? 4/13
b. It is not red? 10/13
Addition Rule
The event that at least one of the events A
or B will happen is denoted by 𝐴 ∪ 𝐵.
The event that both events A and B will
occur is denoted by 𝐴 ∩ 𝐵.
Addition Rule
𝑃 𝐴∪𝐵 =𝑃 𝐴 +𝑃 𝐵 −𝑃 𝐴∩𝐵
𝑛 𝐴 𝑛 𝐵 𝑛 𝐴∩𝐵
𝑃 𝐴∪𝐵 = + −
𝑛 𝑆 𝑛 𝑆 𝑛 𝑆
Mutually exclusive: if both events cannot
occur at the same time; 𝑃 𝐴 ∩ 𝐵 = 𝜙
Addition rule: 𝑃 𝐴 ∪ 𝐵 = 𝑃 𝐴 + 𝑃 𝐵
Example 2.22
Consider the activity of rolling a die.
Determine the probability of getting
a. An odd or an even number
b. An even number or a perfect square
Example 2.22
a. An odd or an even number
𝑃 𝑂 = 3/6
𝑃 𝐸 = 3/6
𝑃 𝑂∪𝐸 =𝑃 𝑂 +𝑃 𝐸 = 1
b. An even number or a perfect square
2/3
Conditional Probability
Conditional probability is the probability
that a second event will occur if the first
event already happened.
𝑃 𝐴∩𝐵
𝑃 𝐴𝐵 = , provided 𝑃 𝐵 ≠ 0
𝑃 𝐵
𝑛 𝐴∩𝐵
𝑃 𝐴𝐵 =
𝑛 𝐵
Example 2.23
Suppose that P(A)=0.7, P(B)=0.3, and
𝑃 𝐴 ∩ 𝐵 = 0.2.
a. What is the probability that only event A
occurs?
b. What is the probability that either event
A or B occurs?
c. Given that the outcome of the
experiment belongs to B, what is then
the probability of A?
Example 2.23
Suppose that P(A)=0.7, P(B)=0.3, and
𝑃 𝐴 ∩ 𝐵 = 0.2.
a. What is the probability that only event A
occurs? 𝐴 𝐵
𝐴∩𝐵
𝑃 𝐸 =𝑃 𝐴 −𝑃 𝐴∩𝐵 0.2
𝑃 𝐸 = 0.7 − 0.2 = 0.5
b. What is the probability that either event
A or B occurs? 0.6
Example 2.23
Suppose that P(A)=0.7, P(B)=0.3, and
𝑃 𝐴 ∩ 𝐵 = 0.2.
c. Given that the outcome of the
experiment belongs to B, what is then
the probability of A?
𝑃 𝐴∪𝐵 0.2
𝑃 𝐴𝐵 = = = 2/3
𝑃(𝐵) 0.3
Example 2.24
A card is drawn from a deck of 52 playing
cards. Given that the card drawn is a face
card, then what is the probability of getting
a. A king? 1/3
b. A spade? 1/4
c. A red card? 1/2
Example 2.25
A vendor has 35 balloons on strings. Twenty
balloons are yellow, 8 are red, and 7 are
green. A balloon was selected at random and
sold. Given that the balloon selected and
sold is yellow, what is the probability that
the next balloon selected and sold at random
is
a. Also yellow? 19/34
b. Red or yellow? 27/34
Example 2.26
A box contains 6 black and 5 yellow
marbles. Two marbles are drawn from the
box in succession without replacement.
What is the probability of getting
a. Black on the first draw? 6/11
b. Black on the second draw given that it is
black on the first draw? 1/2
c. Black on the second draw given that it is
yellow on the first draw? 3/5
Multiplication Rule
The probability that both events occur is
given by:
𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 𝐵 𝑃(𝐵)
Independent events – if the occurrence of A
does not affect the probability of occurrence
of B, or vice versa
For independent events:
𝑃 𝐴 𝐵 = 𝑃 𝐴 ; 𝑃 𝐵 𝐴 = 𝑃(𝐵)
𝑃 𝐴 ∩ 𝐵 = 𝑃 𝐴 𝑃(𝐵)
Example 2.27
A box contains 7 red and 6 green balls. If 2
balls are drawn from the box, what is the
probability of getting
a. both green?
b. 1 red and 1 green?
Example 2.27
A box contains 7 red and 6 green balls. If 2 balls
are drawn from the box, what is the probability
of getting
a. both green?
Since order is not important, the number of ways
to draw 2 balls is 13 𝐶2 = 78
Drawing 0 red ball (R=0) from 7 and drawing 2
green balls (G) from 6 are independent events.
𝑃 𝐸 =𝑃 𝑅 =0 ×𝑃 𝐺 =2
7 𝐶0 × 6 𝐶2 (1)(15)
𝑃 𝐸 = = = 5/26
13 𝐶2 78
b. 1 red and 1 green? 7/13
Example 2.28
A box contains 3 red and 8 black balls. If
two balls are drawn in succession without
replacement, what is the probability that
a. both are red? 3/55
b. The first ball is red and the second ball
is black? 12/55