Chapter 8: Introduction to Probability and Statistics

Download Report

Transcript Chapter 8: Introduction to Probability and Statistics

INTRODUCTORY MATHEMATICAL ANALYSIS
For Business, Economics, and the Life and Social Sciences
Chapter 8
Introduction to Probability and Statistics
2007 Pearson Education Asia
INTRODUCTORY MATHEMATICAL ANALYSIS
0. Review of Algebra
1. Applications and More Algebra
2. Functions and Graphs
3. Lines, Parabolas, and Systems
4. Exponential and Logarithmic Functions
5. Mathematics of Finance
6. Matrix Algebra
7. Linear Programming
8. Introduction to Probability and
Statistics
2007 Pearson Education Asia
INTRODUCTORY MATHEMATICAL ANALYSIS
9. Additional Topics in Probability
10. Limits and Continuity
11. Differentiation
12. Additional Differentiation Topics
13. Curve Sketching
14. Integration
15. Methods and Applications of Integration
16. Continuous Random Variables
17. Multivariable Calculus
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
Chapter Objectives
• To develop and apply a Basic Counting
Principle.
• Combinations and permutations.
• To determine a sample space.
• To define what is meant by the probability of an
event.
• To discuss conditional probability.
• To develop the notion of independent events.
• To develop Bayes’s formula.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
Chapter Outline
8.1) Basic Counting Principle and Permutations
8.2) Combinations and Other Counting Principles
8.3) Sample Spaces and Events
8.4) Probability
8.5) Conditional Probability and Stochastic
Processes
8.6) Independent Events
8.7) Bayes’ Formula
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.1 Basic Counting Principle and Permutations
Basic Counting Principle
• The total number of different ways a sequence can
occur is n1  n2 nk.
Example 1 – Travel Routes
To drive from A, to B, to C, and then to city D, how
many different routes are possible?
Solution:
Total number of routes is 2  4  5  40
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.1 Basic Counting Principle and Permutations
Example 3 – Answering a Quiz
In how many different ways can a quiz be answered
under each of the following conditions?
a. The quiz consists of three multiple-choice
questions with four choices for each.
Solution: 4  4  4  43  64
b. The quiz consists of three multiple-choice
questions (with four choices for each) and five
true–false questions.
Solution: 4  4  42  2  2  2  2  43  25  2048
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.1 Basic Counting Principle and Permutations
Permutations
• An ordered selection of r objects, without
repetition, is a permutation of n objects, taken r at
a time.
• The number of permutations is denoted nPr .
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.1 Basic Counting Principle and Permutations
Example 5 – Club Officers
A club has 20 members. The offices of president,
vice president, secretary, and treasurer are to be
filled. No member may serve in more than one
office. How many different slates of candidates are
possible?
Solution 1: n Pr  nn  1n  2n  r  1
20
Solution 2:
P4  20  19  18  17  116,280
20!
20! 20  19  18  17  16!


20 P4 
20  4! 16!
16!
 20  19  18  17  116,280
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.1 Basic Counting Principle and Permutations
• The number of permutations of n objects taken all
at a time is n Pn  n!  n!  n!  n! .
n  n ! 0! 1
Example 7 – Name of a Legal Firm
Lawyers Smith, Jones, Jacobs, and Bell want to form
a legal firm and will name it by using all four of their
last names. How many possible names are there?
Solution: Possible names for the firm,
4!  4  3  2  1  24
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.2 Combinations and Other Counting Principles
Combinations
• A combination of n objects taken r at a time is
n!
C

denoted by n r r ! n  r !
Example 1 – Comparing Combinations and Permutations
List all combinations and all permutations of the
four letters when they are taken three at a time.
Solution:
Combinations: 4 C3  4
Permutations: 24
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.2 Combinations and Other Counting Principles
Example 3 – Poker Hand
A poker hand consists of 5 cards dealt from an
ordinary deck of 52 cards. How many different
poker hands are there?
Solution: Number of possible hands,
52!
52!

 2,598,960
52 C5 
5! 52  5! 5!47!
Example 5 – A Basic Combinatorial Identity
Establish the identity n Cr n Cr 1 n1 Cr 1
n!
n!
Solution: n Cr  n Cr 1 

r ! n  r !
2007 Pearson Education Asia
r  1! n  r  1!
n  1!

 n 1 Cr 1
r  1! n  1  r  1!
Chapter 8: Introduction to Probability and Statistics
8.2 Combinations and Other Counting Principles
Permutations with Repeated Objects
• The number of distinguishable permutations
such that n1 are of one type, n2 are of a second
type, …, and nk are of a kth type, where
n!
n1 + n2 + … + nk = n, is n ! n !...n !
1
2007 Pearson Education Asia
2
k
Chapter 8: Introduction to Probability and Statistics
8.2 Combinations and Other Counting Principles
Example 7 – Name of a Legal Firm
A group of four lawyers, Smith, Jones, Smith, and
Bell (the Smiths are cousins), want to form a legal
firm and will name it by using all of their last names.
How many possible names exist?
Solution:
4!
 12
The number of distinguishable names is
2!1!1!
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.2 Combinations and Other Counting Principles
Example 9 – Art Exhibit
An artist has created 20 original paintings, and she
will exhibit some of them in three galleries. Four
paintings will be sent to gallery A, four to gallery B,
and three to gallery C. In how many ways can this be
done?
20!
Method 1: 4!4!3!9!  1,939,938,000
11!
20! 11!


 1,939,938,00
Method 2: 20 C11 
4!4!3! 11!9! 4!4!3!
20! 16! 12!
20!



Method 3: 20 C4 16 C4 12 C3 
4!16! 4!12! 3!9! 4!4!3!9!
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.3 Sample Spaces and Events
Sample Spaces
• A sample space S is the set of all possible
outcomes.
• The number of sample points is denoted #(S).
Example 1 – Sample Space: Toss of Two Coins
Two different coins are tossed, and the result (H or
T) for each coin is observed. Determine a sample
space.
Solution: S  HH, HT, TH, TT
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.3 Sample Spaces and Events
Example 3 – Sample Space: Jelly Beans in a Bag
A bag contains four jelly beans: one red, one pink,
one black, and one white.
a. A jelly bean is withdrawn at random, its color is
noted, and it is put back in the bag. Then a jelly
bean is again randomly withdrawn and its color
noted. Describe a sample space and determine
the number of sample points.
Solution: Sample Space: S  RW, PB, RB, WW 
Sample Points: 4  4  16
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.3 Sample Spaces and Events
Example 3 – Sample Space: Jelly Beans in a Bag
b. Determine the number of sample points in the
sample space if two jelly beans are selected in
succession without replacement and the colors
are noted.
Solution: Sample Points: 4  3  12 or 4 P2  12
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.3 Sample Spaces and Events
Example 5 – Sample Space: Roll of Two Dice
A pair of dice is rolled once, and for each die, the
number that turns up is observed. Determine the
number of sample points.
Solution:
Sample Points: 6 · 6 = 36
Events
• Event E is a subset of the sample space for the
experiment.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.3 Sample Spaces and Events
Example 7 – Complement, Union, Intersection
Given the usual sample space S  1, 2, 3, 4, 5, 6
for the rolling of a die, let E, F, and G be the events
E  1, 3, 5 F  3, 4, 5, 6 G  
1
Determine each of the following events.
Solution:
a. Complement, E’  E'  2, 4, 6
b. Union: E  F E  F  1, 3, 4, 5, 6
c. Intersect: E  F  E  F  3, 5
d. Intersect: F  G  F  G  φ
e. Union: E  E’  E  E'  1, 3, 5 2, 4, 6  φ
f. Intersect: E  E’ 
E  E'  1, 3, 5 2, 4, 6  1, 2, 3, 4, 5, 6  S
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.3 Sample Spaces and Events
Properties of Events
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Equiprobable Spaces
• S is called an equiprobable space if all events are
equally likely to occur.
• Probability of the simple event is P si  
1
N
• If S is a finite equiprobable space, probability of E
is
P E   P s1   P s2   ...  P s j 
# E 
P E  
# S 
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Example 1 – Coin Tossing
Two fair coins are tossed, S  HH, HT, TH, TT
Determine the probability that
a. two heads occur
b. at least one head occurs
Solution:
# E  1

a. E = {HH}, probability is P E  
# S 
4
b. F = {at least one head} where F  HH, HT, TH
# F  3
Thus probability is P F  

# S 
2007 Pearson Education Asia
4
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Example 3 – Full House Poker Hand
Find the probability of being dealt a full house in a
poker game. A full house is three of one kind and
two of another, such as three queens and two 10’s.
Express your answer in terms of nCr .
Solution:P full house   # E   13 4 C3  12 4 C2
# S 
2007 Pearson Education Asia
53
C5
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Example 5 – Quality Control
From a production run of 5000 light bulbs, 2% of
which are defective, 1 bulb is selected at random.
What is the probability that the bulb is defective?
What is the probability that it is not defective?
Solution:
The number of outcomes in E is 0.02 · 5000 = 100.
# E  100
P E  

 0.02
# S  5000
Alternatively, probability (defective) is
 1 
P E   100
  0.02
 5000 
Probability (not defective) is
2007 Pearson Education Asia
P E'  1 P E   1 0.02  0.98
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Example 7 – Interrupted Gambling
Obtain Pascal and Fermat’s solution to the problem
of dividing the pot between two gamblers in an
interrupted game of chance, as described in the
introduction to this chapter. Recall that when the
game was interrupted, Player 1 needed r more
“rounds” to win the pot outright and that Player 2
needed s more rounds to win. It is agreed that the
pot should be divided so that each player gets the
value of the pot multiplied by the probability that he
or she would have won an uninterrupted game.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Example 7 – Interrupted Gambling
Solution:
Probability that Player 1 will win is given by
s 1
P E0  E1  ...  Es 1   P E0   P E1   ...  P Es 1    P Ek 
k 0
Number of these outcomes which consist of k T’s is
the number of ways of choosing k from among n.
s 1

n 0
2007 Pearson Education Asia
Ck
2n
n
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
P is a probability function, if both of the following
are true:
• 0 ≤ P(si) ≤ 1 for i = 1 to N
• P(s1) + P(s2) + ·· ·+ P(sN) = 1
Odds
• The odds in favor of event E occurring are the
ratio
P E 
P E ' 
Finding Probability from Odds
• If the odds that event E occurs are a : b, then
a
P E  
ab
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.4 Probability
Example 9 – Odds for an A in an Exam
A student believes that the probability of getting an
A on the next mathematics exam is 0.2. What are
the odds (in favor) of this occurring?
Solution:
The odds of getting an A are
PE  0.2 1

  1: 4
PE ' 0.8 4
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
Conditional Probability
• If E and F are events associated with an
equiprobable sample space and F = ∅, then
# E  F 
P E F  
# F 
Example 1 – Jelly Beans in a Bag
A bag contains two blue jelly beans (say, B1 and B2)
and two white jelly beans (W1 and W2). If two jelly
beans are randomly taken from the bag, without
replacement, find the probability that the second jelly
bean taken is white, given that the first one is blue.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
Example 1 – Jelly Beans in a Bag
Solution:
Event W ∩ B consists of the outcomes in B for which
the second jelly bean is white:
4 2
P W B   
6 3
Conditional probability of an event E is given as
P E  F 
P E F  
P F 
2007 Pearson Education Asia
and P F   0
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
Example 3 – Quality Control
After the initial production run of a new style of steel
desk, a quality control technician found that 40% of
the desks had an alignment problem and 10% had
both a defective paint job and an alignment problem.
If a desk is randomly selected from this run, and it
has an alignment problem, what is the probability that
it also has a defective paint job?
Solution:
Let A and D be the events
We have P(A) = 0.4 and P(D ∩ A) = 0.1, thus
PD  A 0.1 1
PD A 


P  A
0.4 4
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
General Multiplication Law
P E  F   P E P F E   P F P E F 
Example 5 – Advertising
A computer hardware company placed an ad for its
new modem in a popular computer magazine. The
company believes that the ad will be read by 32% of
the magazine’s readers and that 2% of those who
read the ad will buy the modem. Assume that this is
true, and find the probability that a reader of the
magazine will read the ad and buy the modem.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
Example 5 – Advertising
Solution:
R is “read ad” and B is “buy modem”, thus
P R  B  P R P B R   0.320.02  0.0064
Example 7 – Cards
Two cards are drawn without replacement from a
standard deck of cards. Find the probability that both
cards are red.
Solution:
The desired probability is
P R1  R2   P R1 P R2 R1  
2007 Pearson Education Asia
26 25 25


52 51 102
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
Example 9 – Jelly Beans in a Bag
Bag I contains one black and two red jelly beans,
and Bag II contains one pink jelly bean. A bag is
selected at random. Then a jelly bean is randomly
taken from it and placed in the other bag. A jelly
bean is then randomly taken from that bag. Find the
probability that this jelly bean is pink.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.5 Conditional Probability and Stochastic Processes
Example 9 – Jelly Beans in a Bag
Solution:
This is a compound experiment with three trials:
a. Select a bag
b. Taking a jelly bean out
c. Putting it in the other bag and then taking a jelly
bean from that bag
1 2 1 1 1 1 1
1
P pink jelly bean on 2nd draw          1
2 3 2 2 3 2 2
4
3

8
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.6 Independent Events
• E and F are said to be independent events if either
P E F   P E  or P F E   P F 
Example 1 – Showing That Two Events Are Independent
A fair coin is tossed twice. Let E and F be the events
E = {head on first toss}
F = {head on second toss}
Determine whether or not E and F are independent
events.
Solution:
# E  2 1
P E  
 
# S  4 2
# E  F  # HH 1
P E F  


# F 
# F 
2
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.6 Independent Events
Special Multiplication Law
• If E and F are independent events, then
P E  F   P E P F 
Example 3 – Survival Rates
Suppose the probability of the event “Bob lives 20
more years” (B) is 0.8 and the probability of the
event “Doris lives 20 more years” (D) is 0.85.
Assume that B and D are independent events.
a. Find the probability that both Bob and Doris live
20 more years.
Solution:
P B  D  P BP D  0.80.85  0.68
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.6 Independent Events
Example 3 – Survival Rates
b. Find the probability that at least one of them lives
20 more years.
Solution: PB D  0.8  0.85  0.68  0.97
c. Find the probability that exactly one of them lives
20 more years.
Solution: PB  D'  PBPD'  0.80.15  0.12
PB'D  PB'PD  0.20.85  0.17
P E   0.12  0.17  0.29
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.6 Independent Events
Example 5 – Dice
Two fair dice, one red and the other green, are rolled,
and the numbers on the top faces are noted. Test
whether P(E ∩ F ) = P(E)P(F ) to determine whether
E and F are independent.
Solution: Event F has 6 outcomes which is
F  1,6 , 2,5 , 3,4, 4,3 , 5,2, 6,1
3
1

Thus the probability is P E  F  
36 12
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.6 Independent Events
Example 7 – Cards
Four cards are randomly drawn, with replacement,
from a deck of 52 cards. Find the probability that the
cards chosen, in order, are a king (K), a queen (Q), a
jack (J), and a heart (H).
Solution:
We obtain P K  Q  J  H   P K P Q P J P H 

2007 Pearson Education Asia
4 4 4 13
1




52 52 52 52 8788
Chapter 8: Introduction to Probability and Statistics
8.7 Bayes’ Formula
• The conditional probability of Fi given that event E
has occurred is expressed by
P Fi E  
P Fi P E Fi 
P F1 P E F1   P F2 P E F2   ...  P Fn P E Fn 
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.7 Bayes’ Formula
Example 1 – Quality Control
Microchips are purchased from A, B, and C and are
randomly picked for assembling each camcorder.
20% of the microchips come from A, 35% from B,
and rest from C. The probabilities that A is defective
is 0.03, and the corresponding probabilities for B
and C are 0.02 and 0.01, respectively. A camcorder
is selected at random from a day’s production, and
its microchip is found to be defective.
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.7 Bayes’ Formula
Example 1 – Quality Control
Find the probability that it was supplied
(a) from A,
(b) from B, and
(c) from C.
(d) From what supplier was the microchip most
likely purchased?
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.7 Bayes’ Formula
Example 1 – Quality Control
Solution: We define the following events,
S1  supplier A 
S2  supplier B
S3  supplier C
D  defective microchip 
a. P S D   probability of path through S1 and D
1
probability of all paths to D
0.20.03

0.20.03  0.350.02  0.450.01
12

35
2007 Pearson Education Asia
Chapter 8: Introduction to Probability and Statistics
8.7 Bayes’ Formula
Example 1 – Quality Control
b.
probability of path through S2 and D
P S2 D  
probability of all paths to D

0.35 0.02

0.0175
14

35
probability of path through S3 and D
c. P S3 D  
probability of all paths to D

0.45 0.01

0.0175
9

35
2007 Pearson Education Asia