Академический Документы
Профессиональный Документы
Культура Документы
Chapter 4
Basic Probability and Discrete
Probability Distributions
Chap 4-2
© 2002 Prentice-Hall, Inc.
Chapter Topics
(continued)
Chap 4-3
© 2002 Prentice-Hall, Inc.
Sample Spaces
Collection of all possible outcomes
e.g.: All six faces of a die:
Chap 4-4
© 2002 Prentice-Hall, Inc.
Events
Simple event
Outcome from a sample space with one
characteristic
e.g.: A red card from a deck of cards
Joint event
Involves two outcomes simultaneously
e.g.: An ace that is also red from a deck of
cards
Chap 4-5
© 2002 Prentice-Hall, Inc.
Visualizing Events
Contingency Tables
Ace Not Ace Total
Black 2 24 26
Red 2 24 26
Total 4 48 52
Impossible event
e.g.: Club & diamond on one card
draw
Complement of event
For event A, all events not in A
Denoted as A’
e.g.: A: queen of diamonds
A’: all cards in a deck that are
not queen of diamonds
Chap 4-9
© 2002 Prentice-Hall, Inc.
Special Events
(continued)
Mutually exclusive events
Two events cannot occur together
e.g.: -- A: queen of diamonds; B: queen of clubs
Events A and B are mutually exclusive
Collectively exhaustive events
One of the events must occur
The set of events covers the whole sample space
e.g.: -- A: all the aces; B: all the black cards; C: all the diamonds; D:
all the hearts
Events A, B, C and D are collectively exhaustive
Events B, C and D are also collectively
exhaustive
Chap 4-10
© 2002 Prentice-Hall, Inc.
Contingency Table
A Deck of 52 Cards
Red Ace
Not an Total
Ace
Ace
Red 2 24 26
Black 2 24 26
Total 4 48 52
Sample Space
Chap 4-11
© 2002 Prentice-Hall, Inc.
Tree Diagram
Event Possibilities
Ace
Red
Cards Not an Ace
Full
Deck
Ace
of Cards
Black
Cards Not an Ace
Chap 4-12
© 2002 Prentice-Hall, Inc.
Probability
Probability is the numerical 1 Certain
measure of the likelihood
that an event will occur
Value is between 0 and 1
.5
Sum of the probabilities of
all mutually exclusive and
collective exhaustive events
is 1
0 Impossible
Chap 4-13
© 2002 Prentice-Hall, Inc.
Computing Probabilities
Event
Event B1 B2 Total
A1 P(A1 and B1) P(A1 and B2) P(A1)
A2 P(A2 and B1) P(A2 and B2) P(A2)
Chap 4-16
© 2002 Prentice-Hall, Inc.
Computing Compound
Probability
Probability of a compound event, A or B:
P( A or B ) P( A B )
number of outcomes from either A or B or both
total number of outcomes in sample space
E.g. P(Red Card or Ace)
4 Aces + 26 Red Cards - 2 Red Aces
52 total number of cards
28 7
52 13
Chap 4-17
© 2002 Prentice-Hall, Inc.
Compound Probability
(Addition Rule)
P(A1 or B1 ) = P(A1) + P(B1) - P(A1 and B1)
Event
Event B1 B2 Total
A1 P(A1 and B1) P(A1 and B2) P(A1)
A2 P(A2 and B1) P(A2 and B2) P(A2)
Chap 4-18
© 2002 Prentice-Hall, Inc.
Computing Conditional
Probability
The probability of event A given that event B
has occurred:
P ( A and B )
P( A | B)
P( B)
E.g.
P(Red Card given that it is an Ace)
2 Red Aces 1
4 Aces 2
Chap 4-19
© 2002 Prentice-Hall, Inc.
Conditional Probability Using
Contingency Table
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
P( A and B) P( A | B) P( B)
P( B | A) P( A)
Chap 4-21
© 2002 Prentice-Hall, Inc.
Conditional Probability and
Statistical Independence
(continued)
Chap 4-22
© 2002 Prentice-Hall, Inc.
Bayes’s Theorem
P A | Bi P Bi
P Bi | A
P A | B1 P B1 P A | Bk P Bk
P Bi and A
P A Adding up
the parts
Same of A in all
Event the B’s
Chap 4-23
© 2002 Prentice-Hall, Inc.
Bayes’s Theorem
Using Contingency Table
Fifty percent of borrowers repaid their loans. Out of those
who repaid, 40% had a college degree. Ten percent of
those who defaulted had a college degree. What is the
probability that a randomly selected borrower who has a
college degree will repay the loan?
P R .50 P C | R .4 P C | R .10
P R |C ?
Chap 4-24
© 2002 Prentice-Hall, Inc.
Bayes’s Theorem
Using Contingency Table
(continued)
P C | R P R
P R | C
P C | R P R P C | R P R
.4 .5
.2
.8
.4 .5 .1 .5 .25
Chap 4-25
© 2002 Prentice-Hall, Inc.
Random Variable
Random Variable
Outcomes of an experiment expressed numerically
e.g.: Toss a die twice; count the number of times
the number 4 appears (0, 1 or 2 times)
Chap 4-26
© 2002 Prentice-Hall, Inc.
Discrete Random Variable
Discrete random variable
Obtained by counting (1, 2, 3, etc.)
Usually a finite number of different values
e.g.: Toss a coin five times; count the number of
tails (0, 1, 2, 3, 4, or 5 times)
Chap 4-27
© 2002 Prentice-Hall, Inc.
Discrete Probability
Distribution Example
Event: Toss two coins Count the number of tails
Probability Distribution
Values Probability
T 0 1/4 = .25
1 2/4 = .50
T 2 1/4 = .25
T T
Chap 4-28
© 2002 Prentice-Hall, Inc.
Discrete Probability Distribution
List of all possible [Xj , p(Xj) ] pairs
Xj = value of random variable
P(Xj) = probability associated with value
Mutually exclusive (nothing in common)
Collectively exhaustive (nothing left out)
0 P X j 1 P X 1j
Chap 4-29
© 2002 Prentice-Hall, Inc.
Summary Measures
Expected value (the mean)
Weighted average of the probability distribution
E X X jP X j
j
0 2.5 1 .5 2 .25 1
Chap 4-30
© 2002 Prentice-Hall, Inc.
Summary Measures
(continued)
Variance
Weight average squared deviation about the mean
E X X j P X j
2 2 2
e.g. Toss two coins, count number of tails,
compute variance
X j P X j
2 2
0 1 .25 1 1 .5 2 1 .25 .5
2 2 2
Chap 4-31
© 2002 Prentice-Hall, Inc.
Covariance and its Application
N
XY X i E X Yi E Y P X iYi
i 1
Investment
P(XiYi) Economic condition Dow Jones fund X Growth Stock Y
.2 Recession -$100 -$200
.5 Stable Economy + 100 + 50
.3 Expanding Economy + 250 + 350
37,900 Y 194.68
Chap 4-34
© 2002 Prentice-Hall, Inc.
Computing the Covariance for
Investment Returns
Investment
P(XiYi) Economic condition Dow Jones fund X Growth Stock Y
.2 Recession -$100 -$200
.5 Stable Economy + 100 + 50
.3 Expanding Economy + 250 + 350
Discrete Probability
Distributions
Chap 4-36
© 2002 Prentice-Hall, Inc.
Binomial Probability Distribution
‘n’ identical trials
e.g.: 15 tosses of a coin; ten light bulbs taken from
a warehouse
Two mutually exclusive outcomes on each
trials
e.g.: Head or tail in each toss of a coin; defective
or not defective light bulb
Trials are independent
The outcome of one trial does not affect the
outcome of the other
Chap 4-37
© 2002 Prentice-Hall, Inc.
Binomial Probability Distribution
(continued)
Chap 4-38
© 2002 Prentice-Hall, Inc.
Binomial Probability
Distribution Function
n!
P X p 1 p
X n X
X ! n X !
P X : probability of X successes given n and p
X : number of "successes" in sample X 0,1, , n
p : the probability of each "success"
n : sample size Tails in 2 Tosses of Coin
X P(X)
0 1/4 = .25
1 2/4 = .50
2 1/4 = .25 Chap 4-39
© 2002 Prentice-Hall, Inc.
Binomial Distribution
Characteristics
Mean
E X np
E.g. np 5 .1 .5
np 1 p 0 1 2 3 4 5
E.g.
np 1 p 5 .1 1 .1 .6708
Chap 4-40
© 2002 Prentice-Hall, Inc.
Binomial Distribution in PHStat
PHStat | probability & prob. Distributions |
binomial
Example in excel spreadsheet
Microsoft Excel
Worksheet
Chap 4-41
© 2002 Prentice-Hall, Inc.
Poisson Distribution
Poisson Process: P( X x |
Discrete events in an “interval” e- x
The probability of One Success
in an interval is stable x!
The probability of More than
One Success in this interval is 0
The probability of success is
independent from interval to
interval
e.g.: number of customers arriving in 15 minutes
e.g.: number of defects per case of light bulbs
Chap 4-42
© 2002 Prentice-Hall, Inc.
Poisson Probability
Distribution Function
e X
P X
X!
P X : probability of X "successes" given
X : number of "successes" per unit
: expected (average) number of "successes"
e : 2.71828 (base of natural logs)
e.g.: Find the probability of 4 e 3.6 3.64
customers arriving in 3 minutes P X .1912
4!
when the mean is 3.6.
Chap 4-43
© 2002 Prentice-Hall, Inc.
Poisson Distribution in PHStat
PHStat | probability & prob. Distributions |
Poisson
Example in excel spreadsheet
Microsoft Excel
Worksheet
Chap 4-44
© 2002 Prentice-Hall, Inc.
Poisson Distribution
Characteristics
Mean .6
P(X) = 0.5
E X .4
.2
N 0 X
XiP Xi 0 1 2 3 4 5
i 1
P(X) = 6
Standard Deviation .6
.4
and Variance .2
2
0 X
0 2 4 6 8 10
Chap 4-45
© 2002 Prentice-Hall, Inc.
Hypergeometric Distribution
“n” trials in a sample taken from a finite
population of size N
Sample taken without replacement
Trials are dependent
Concerned with finding the probability of “X”
successes in the sample where there are “A”
successes in the population
Chap 4-46
© 2002 Prentice-Hall, Inc.
Hypergeometric Distribution
Function
A N A E.g. 3 Light bulbs were
X n X selected from 10. Of the 10
P X
there were 4 defective. What
N
is the probability that 2 of the
n 3 selected are defective?
P X : probability that X successes given n, N , and A
n : sample size 4 6
N : population size 2 1
P 2 .30
A : number of "successes" in population 10
X : number of "successes" in sample 3
2
Population
N2 N 1 Correction
Factor
nA N A N n
N 2
N 1
Chap 4-48
© 2002 Prentice-Hall, Inc.
Hypergeometric Distribution in
PHStat
PHStat | probability & prob. Distributions |
Hypergeometric …
Example in excel spreadsheet
Microsoft Excel
Worksheet
Chap 4-49
© 2002 Prentice-Hall, Inc.
Chapter Summary
Discussed basic probability concepts
Sample spaces and events, simple probability,
and joint probability
Defined conditional probability
Statistical independence, marginal probability
Discussed Bayes’s theorem
Chap 4-50
© 2002 Prentice-Hall, Inc.
Chapter Summary
(continued)
Chap 4-51
© 2002 Prentice-Hall, Inc.