Lecture 4
Lecture 4
Lecture 4
Probability and
Probability Distributions
WHAT IS PROBABILITY?
InChapters 2 and 3, we used graphs
and numerical measures to describe
data sets which were usually
samples.
We measured “how often” using
Sample Population
And “How often”
= Relative frequency Probability
BASIC CONCEPTS
An experiment is the process by which an observation
(or measurement) is obtained.
Experiment: Record an age
Experiment: Toss a die
Experiment: Record an opinion (yes,
no)
Experiment: Toss two coins
BASIC CONCEPTS
1 E1
S ={E1, E2, E3, E4, E5, E6}
2 E2
S
3 E3 •E1 •E3
4 E4 •E5
5 E5 •E2 •E4 •E6
6 E6
BASIC CONCEPTS
•Examples:
–Toss a fair coin. P(Head) = 1/2
–10% of the U.S. population has red hair.
Select a person at random. P(Red hair) =
.10
EXAMPLE
Toss
a fair coin twice. What is the
probability of observing at least one
head?
1st Coin 2nd Coin Ei P(Ei)
H HH 1/4 P(at least 1 head)
H
T HT 1/4 = P(E1) + P(E2) +
H 1/4 P(E3)
TH
T 1/4 = 1/4 + 1/4 + 1/4 =
T TT 3/4
EXAMPLE
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!
EXAMPLES
Example: A lock consists of five parts
and can be assembled in any order. A
quality control engineer wants to test
each order for efficiency of assembly.
How many orders are there?
The order of the choice is
important!
5!
P = = 5( 4)(3)( 2)(1) = 120
5
5
0!
COMBINATIONS
The number of distinct combinations of
n distinct objects that can be formed,
taking them r at a timen is n!
Cr =
r!( n − r )!
A B A B
EVENT RELATIONS
The intersection of two events, A and B, is
the event that both A and B occur when the
experiment is performed. We write A B.
A B A B
S
AC
A
EXAMPLE
P ( A B ) = P ( A) + P ( B ) − P ( A B )
A B
EXAMPLE: ADDITIVE RULE
Example: Suppose that there were 120
students in the classroom, and that
they could be classified as follows:
A: brown hair Brown Not Brown
P(A) = 50/120 Male 20 40
B: female Female 30 30
P(B) = 60/120
P(AB) = P(A) + P(B) – P(AB)
= 50/120 + 60/120 - 30/120
= 80/120 = 2/3 Check: P(AB)
= (20 + 30 + 30)/120
A SPECIAL CASE
When two events A and B are
mutually exclusive, P(AB) = 0
and P(AB) = P(A) + P(B).
A: male with brown hair Brown Not
Brown
P(A) = 20/120
Male 20 40
B: female with brown hair
P(B) = 30/120 Female 30 30
FOR COMPLEMENTS A
P(AC) = 1 – P(A)
EXAMPLE
Select a student at random
from the classroom. Define:
A: male Brown Not Brown
P(A) = 60/120 Male 20 40
B: female Female 30 30
P( A B)
P( A | B) = if P ( B ) 0
P( B)
“given”
EXAMPLE 1
Toss a fair coin twice. Define
A: head on second toss
B: head on first toss
P(A|B) = ½
HH 1/4 P(A|not B) = ½
HT 1/4
P(A) does not A and B are
TH 1/4
change, independent
1/4 whether B
TT !
happens or
not…
EXAMPLE 2
A bowl contains five M&Ms®, two red and three
blue. Randomly select two candies, and define
A: second candy is red.
B: first candy is blue.
A
A S1
Sk
S2….
P(Si ) P( A | Si )
P ( S i | A) = for i = 1, 2 ,...k
P(Si ) P( A | Si )
EXAMPLE
From a previous example, we know that 49%
of the population are female. Of the female patients,
8% are high risk for heart attack, while 12% of the
male patients are high risk. A single person is
selected at random and found to be high risk. What
is the probability that it is a male?
Define H: high risk F: female M: male
P(M ) P( H | M )
We know: P(M | H ) =
P(F) = .49 P(M ) P( H | M ) + P( F ) P( H | F )
P(M) = .51 .51 (.12 )
= = .61
P(H|F) = .08 .51 (.12 ) + .49 (.08)
P(H|M) = .12
RANDOM VARIABLES
A quantitative variable x is a random
variable if the value that it assumes,
corresponding to the outcome of an
experiment is a chance or random event.
Random variables can be discrete or
continuous.
• Examples:
✓x = SAT score for a randomly selected
student
✓x = number of people in a room at a
randomly selected time of day
✓x = number on the upper face of a
randomly tossed die
PROBABILITY DISTRIBUTIONS FOR
DISCRETE RANDOM VARIABLES
The probability distribution for a discrete
random variable x resembles the relative frequency
distributions we constructed in Chapter 1. It is a graph,
table or formula that gives the possible values of x and
the probability p(x) associated with each value.
We must have
0 p ( x ) 1 and p ( x ) = 1
EXAMPLE
Toss a fair coin three times and
define x = number of heads.
x
HHH x p(x)
1/8 3 P(x = 0) = 1/8 0 1/8
HHT
1/8 2
P(x = 1) = 3/8 1 3/8
HTH P(x = 2) = 3/8 2 3/8
1/8 2
THH
P(x = 3) = 1/8
3 1/8
1/8 2
HTT
1/8 1 Probability
THT 1/8 1 Histogram for x
TTH 1/8 1
TTT 1/8 0
PROBABILITY DISTRIBUTIONS
Probabilitydistributions can be used to describe
the population, just as we described samples in
Chapter 1.
Shape: Symmetric, skewed, mound-shaped…
Outliers: unusual or unlikely measurements
Center and spread: mean and standard
deviation. A population mean is called m and a
population standard deviation is called s.
THE MEAN
AND STANDARD DEVIATION
Let x be a discrete random variable with probability
distribution p(x). Then the mean, variance and standard
deviation of x are given as
Mean : m = xp ( x )
Variance : s = ( x − m ) p ( x )
2 2
Standard deviation : s = s 2
EXAMPLE
Toss a fair coin 3 times and
record x the number of
heads.
x p(x) xp(x) (x-m)2p(x) 12
0 1/8 0 (-1.5)2(1/8) m = xp ( x ) = = 1 .5
8
1 3/8 3/8 (-0.5)2(3/8)
2 3/8 6/8 (0.5)2(3/8)
3 1/8 3/8 (1.5)2(1/8) s = ( x − m ) p( x)
2 2
s = .75 = .688
EXAMPLE
The probability distribution for x
the number of heads in tossing 3
fair coins.
Symmetric;
• Shape? mound-
• Outliers? shaped
None
• Center? m = 1.5
• Spread? s = .688
m
KEY CONCEPTS
I. Experiments and the Sample Space
1. Experiments, events, mutually exclusive events,
simple events
2. The sample space
3. Venn diagrams, tree diagrams, probability tables
II. Probabilities
1. Relative frequency definition of probability
2. Properties of probabilities
a. Each probability lies between 0 and 1.
b. Sum of all simple-event probabilities equals 1.
3. P(A), the sum of the probabilities for all simple
events in A
KEY CONCEPTS
III. Counting Rules
1. mn Rule; extended mn Rule
2. Permutations: Pn =
n!
( n − r )!
r
n!
3. Combinations: C rn =
r!( n − r )!
IV. Event Relations
1. Unions and intersections
2. Events
a. Disjoint or mutually exclusive: P(A B) = 0
b. Complementary: P(A) = 1 − P(AC )
KEY CONCEPTS
P( A B)
3. Conditional probability: P( A | B) =
P( B)
4. Independent and dependent events
5. Additive Rule of Probability:
P ( A B ) = P ( A) + P ( B ) − P ( A B )