Chapter - 04 - Probability and Probability Distribution
Chapter - 04 - Probability and Probability Distribution
and Statistics
Twelfth Edition
Chapter 4
Probability and Probability
Distributions
Some graphic screen captures from Seeing Statistics ® Copyright ©2006 Brooks/Cole
Some images © 2001-(current year) www.arttoday.com A division of Thomson Learning, Inc.
The Role of Probability in Statistics
• Probability and statistics are related in an important way.
Probability is used as a tool; it allows you to evaluate the
reliability of your conclusions about the population when you
have only sample information.
• Tossing a single coin: Fair coin; Is coin fair or biased?
• Statisticians use probability in two ways.
– When the population is known, probability is used to describe
the likelihood of observing a particular sample outcome.
– When the population is unknown and only a sample from that
population is available, probability is used in making
statements about the makeup of the population—that is, in
making statistical inferences.
• As n gets larger,
Sample Population
And “How often”
= Relative frequency Probability
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Events and the Sample Space
• Def.: An experiment is the process by which an
observation (or measurement) is obtained.
• The observation or measurement generated by an
experiment may or may not produce a numerical value.
Examples of experiments are:
– Record an age / a test grade / a test gpa or cgpa
– Tossing a die / a coin and observing the face
– Recording an opinion (yes, no)
– Tossing two coins/dies and observing the faces
– Measuring daily rainfall
– Interviewing a householder regarding dependents
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Basic Concepts
• Def.: A simple event is the outcome that is observed
on a single repetition of the experiment.
– The basic element to which probability is applied.
– One and only one simple event can occur when the
experiment is performed.
• A simple event is denoted by E with a subscript.
• Each simple event will be assigned a probability,
measuring “how often” it occurs.
• Def.: The set of all simple events of an experiment is
called the sample space, S.
1 E1
S ={E1, E2, E3, E4, E5, E6}
2 E2
S
3 E3 •E1 •E3
4 •E5
E4
5 •E2 •E6
E5 •E4
6
E6 Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Basic Concepts
• Def.: An event is a collection of one or more simple
events, denoted by a capital letter.
S
•E1 •E3
•The die toss: A •E5
–A: an odd number B
–B: a number > 2 •E2 •E4 •E6
•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
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Example
• Toss a fair coin twice. What is the probability of
observing at least one head?
• Example 4.11
• A second useful counting rule follows from the mn Rule
and involves orderings or permutations.
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Permutations
2!
6 6! 6(5) C 2
2
The order of C2 15 1
1!1!
2!4! 2(1)
the choice is ways to choose
not important! ways to choose 2 M & Ms.
1 green M & M.
4 4!
C
1 4 4 2 = 8 ways to
1!3! choose 1 red and 1 P(exactly one
ways to choose green M&M. red) = 8/15
1 red M & M.
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Event Relations
• Sometimes the event of interest can be formed as a combination of
several other events.
• Let A and B be two events defined on the sample space S.
• Def.: The union of events A and B, denoted by A B, is the event
that either A or B or both occur when the experiment is performed.
A B A B
A B A B
• Any simple event in the shaded area is a possible outcome resulting in the appropriate event.
• The probabilities of the union, the intersection, or the complement is to sum the probabilities of all the associated simple events.
S
AC A
P ( A B ) P ( A) P ( B ) P ( A B ) A B
• In the Venn diagram the sum P(A) + P(B) double counts the simple
events that are common to both A and B. Subtracting P(A B) gives
the correct result.
Male Female
A: male and colorblind
P(A) = 40/1000 Colorblind 40 2
B: female and colorblind Not Colorblind 470 488
P(B) = 2/1000
P(AC) = 1 – P(A)
“given”
P(A|B) = ½ P(B|A) = ?
HH 1/4 P(A|not B) = ½ P(B|not A) = ?
HT 1/4
P(A) does not A and B are
TH 1/4
change, whether independent!
1/4 B happens or
TT
not…
Copyright ©2006 Brooks/Cole
Toss a fair coin thrice for same A and B events?
A division of Thomson Learning, Inc.
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.
m
P(A) does change,
m
depending on A and B are
whether B happens dependent!
or not…
Example 3
m m
m mm
• Example 4.20
• Example 4.21
P(A) = 510/1000=.51
P(B) = 42/1000=.042 P(AB) = 40/1000=.040
P(A|B) = P(AB)/P(B)=.040/.042=.95
P(A|B) and P(A) are not equal. A, B are Copyright
dependent ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Mutually Exclusive Vs Independent
Events
• Example 4.22
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Probability Rules & Relations of Events
Complement Event P ( Ac ) 1 P( A)
Additive Rule P( A B) P( A) P( B) P( A B)
Multiplicative Rule P ( A B ) P ( A) P ( B | A)
Conditional probability P( A | B) P( A B)
P( B)
P( A B) 0
Mutually Exclusive Events P( A B) P( A) P( B)
P ( A B ) P ( A) P ( B )
Independent Events P ( A | B ) P ( A)
P ( A B C ) Copyright
P ( A ) P( B) P (C )
©2006 Brooks/Cole
A division of Thomson Learning, Inc.
The Law of Total Probability
• Let S1 , S2 , S3 ,..., Sk be mutually exclusive and
exhaustive events (that is, one and only one must
happen). Then the probability of another event A can
be written as
P(A) = P(A S1) + P(A S2) + … + P(A Sk)
= P(S1)P(A|S1) + P(S2)P(A|S2) + … + P(Sk)P(A|Sk)
A Sk
A
A S1
Sk
S2….
• Example 4.24 P( Si ) P( A | Si )
P( Si | A) for i 1, 2 ,...k
P( Si ) P( A | Si )
We know: P( M ) P( H | M )
.49
P( M | H )
P(F) = 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
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Random Variables
• Variables are defined as characteristics that change or
vary over time and/or for different individuals or
objects under consideration.
• Quantitative variables generate numerical data,
whereas qualitative variables generate categorical data.
• However, even qualitative variables can generate
numerical data if the categories are numerically coded
to form a scale.
• For example, if you toss a single coin, the qualitative
outcome could be recorded as “0” if a head and “1” if a
tail.
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Random Variables
• Def. 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.
• Toss a die and measure x, the number observed on the
upper face. The variable x can take on any of six values
—1, 2, 3, 4, 5, 6—depending on the random outcome
of the experiment.
• 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 of defects on a randomly selected
Copyright ©2006 Brooks/Cole
A division of piece
Thomson Learning, Inc.
Random Variables
• Example: 4.25
We must have
0 p ( x) 1 and p ( x) 1
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Probability Distributions
( xi ) 2
2
2 xi
( x x ) n
• Example: 2.26, 2.27, 2.28 s2 i
n 1 n 1
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
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 : xp( x)
2 2
Variance : ( x ) p ( x)
2
Standard deviation :
2
.28125 .09375 .09375 .28125 .75
.75 .688
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Example
• Toss a fair coin 3 x p(x) (x-2p(x)
times and record x 0 1/8 (0-1.5)2(1/8)=.28125
the number of heads. 1 3/8 (1-1.5)2(3/8)=.09375
2 3/8 (2-1.5)2(3/8)=.09375
• Find variance by the 3 1/8 (3-1.5)2(1/8)=.28125
definition formula.
Total .75
E ( x) xp( x) 1.5
2 ( x ) 2 p ( x)
0.75
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Example
• Toss a fair coin 3 times x p(x) x2p(x)
and record x the
number of heads. 0 1/8 02(1/8)=0
1 3/8 12(3/8)=0.375
• Find the variance by the 2 3/8 22(3/8)=1.5
computational formula. 3 1/8 32(1/8)=1.125
Total 3
E ( x) xp( x) 1.5
2 2 2
x p( x)
3 1.5 2
0.75
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Example
• The probability distribution for x the
number of heads in tossing 3 fair coins.
Symmetric;
• Shape? mound-shaped
• Outliers? None
• Center? = 1.5
• Spread? = .688
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Example
• Book Example: 4.27, 4.28
• In a lottery, 8,000 tickets are sold at $5 each. The prize is
a $12,000 automobile and only one ticket will be the
winner. If you purchased two tickets, your expected
gain?
2 ( x ) 2 p ( x)
x p(x) x2p(x) 4
0 0.8 02(0.8)=0
5 .2 5 (0.2)=5
2 2 x 2 p( x) 2
Total 5 5 12
4 Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
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
Copyright ©2006 Brooks/Cole
A division of Thomson Learning, Inc.
Key Concepts
III. Counting Rules
1. mn Rule; extended mn Rule
2. Permutations: n!
Pn
r
(n r )!
n!
3. Combinations: Crn
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 )