Professional Documents
Culture Documents
Required Reading:
Ref. File 4: Sections 4.7 to 4.9
Ref. File 5: Introduction and Sections 5.1 to 5.4
Example 4.16:
Suppose that in a given street 50 residents voted in the last
election. Of these, 15 voted for party ‘A’, 30 voted for
party ‘B’ and 5 voted for neither party ‘A’ nor ‘B’.
Suppose that one evening a candidate for the next election
visits the residents of the street to introduce herself. What
is the probability that the first two eligible voters she
meets voted for party ‘A’ at the last election? ( 3 35 )
We require
Example 4.17:
Consider the experiment of successively drawing 2 cards
from a deck of 52 playing cards. Define the following
events:
Without replacement:
12 1
P (A1 A 2 ) P (A1 ) P (A 2 | A1 ) (4 52)(3 51)
2652 221
With replacement:
1
P(A1 A 2 ) P(A1 ) P(A 2 ) (4 52)(4 52)
169
Example 4.18:
Greasy Mo’s take-away food store offers special $10 meal
deals consisting of a small pizza or a kebab, together with
a can of soft drink, a milkshake or a cup of fruit juice.
Past experience has shown that 60% of meal deal buyers
choose a pizza (‘P’), 40% choose kebabs (‘K’), 75% choose
softdrink (‘S’), 20% choose a milkshake (‘M’) and 5%
choose fruit juice (‘J’). Assume the events ‘P’ and ‘K’ are
independent of the events ‘S’, ‘M’ and ‘J’. What is the
probability that a meal deal customer (chosen at random)
will choose a pizza and fruit juice? (0.03)
P:0.6 J:0.05
P (P J) 0.6 (0.05) 0.03
J:0.05
P (K J) 0.4 (0.05) 0.02
P (H) 1 2
P ( T) 1 2
Example 5.1:
Consider the experiment of selecting a person at random
and noting their hair colour.
Example 5.2:
Consider again the experiment of tossing a fair die once
and noting the number of dots on the upward facing side
(X).
We have
P( X 1) P( X 2) P( X 3)
P( X 4) P( X 5) P( X 6) 1 6
and P( X x) 1
all x
F ( x) P ( X x)
E ( X ) xP ( X x)
all x
Example 5.3:
Suppose you buy a lottery ticket for $10. The sole prize in
the lottery is $100,000 and 100,000 tickets are sold. If the
lottery is fair (i.e. each ticket sold has an equal chance of
winning), what will be your expected net gain (or loss)
from buying the lottery ticket?
E [ g( X )] g( x) P ( X x)
all x
E (c ) c
E [cg( X )] cE [ g( X )]
E [ g1 ( X ) .. gk ( X )] E [ g1 ( X )] ... E [ gk ( X )]
E [h ( X )] E [ g( X )]
For example, E ( X Y ) E ( X ) E (Y )
Note:
Two discrete random variables X and Y are independent if
Var ( X ) E [( X E ( X )) 2 ]
SD ( X ) Var ( X ) E [( X E ( X )) 2 ]
14
Var ( X ) E ( X 2 ) [ E ( X )]2
x 2 P ( X x) [ E ( X )]2 (If X is discrete)
all x
Example 5.4:
Suppose a lottery offers 3 prizes: $1,000, $2,000 and
$3,000. 10,000 tickets are sold and each ticket has an
equal chance of winning a prize. Calculate the variance
and standard deviation of the random variable X
representing the value of the prize won by a ticket.
Thus
P (Y 1) p
P (Y 0) (1 p )
E (Y ) p
Var (Y ) p(1 p )
Example 5.5:
A company that supplies reverse-cycle air conditioning
units has found from experience that 70% of the units it
installs require servicing within the first 6 weeks of
operation. In a given week the firm installs 10 air
conditioning units. Calculate the probability that, within 6
weeks
5 of the units require servicing
none of the units require servicing
all of the units require servicing
(Extract of Appendix 3)
CUMULATIVE BINOMIAL PROBABILITIES: P ( X x | p, n)
p
n x 0.05 0.10 0.15 0.20 0.25 0.30 0.35 0.40 .... 0.70
1 0 0.9500 0.9000 0.8500 0.8000 0.7500 0.7000 0.6500 0.6000 .... 0.3000
1 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000
10 0 0.5987 0.3487 0.1969 0.1074 0.0563 0.0282 0.0135 0.0060 0.0000
1 0.9139 0.7361 0.5443 0.3758 0.2440 0.1493 0.0860 0.0464 0.0001
2 0.9885 0.9298 0.8202 0.6778 0.5256 0.3828 0.2616 0.1673 0.0016
3 0.9990 0.9872 0.9500 0.8791 0.7759 0.6496 0.5138 0.3823 0.0106
4 0.9999 0.9984 0.9901 0.9672 0.9219 0.8497 0.7515 0.6331 0.0473
5 1.0000 0.9999 0.9986 0.9936 0.9803 0.9527 0.9051 0.8338 .... 0.1503
6 1.0000 1.0000 0.9999 0.9991 0.9965 0.9894 0.9740 0.9452 0.3504
7 1.0000 1.0000 1.0000 0.9999 0.9996 0.9984 0.9952 0.9877 0.6172
8 1.0000 1.0000 1.0000 1.0000 1.0000 0.9999 0.9995 0.9983 0.8507
9 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 0.9999 0.9718
10 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000 1.0000
19
Example 5.6:
Referring to previous air conditioning unit example,
calculate the probability that within 6 weeks of installation
Example 5.7:
A referring to previous air conditioning unit example, use
the cumulative binomial tables to calculate the probability
that within 6 weeks of installation
E ( X ) np
Var ( X ) np(1 p)
Example 5.8:
Suppose n 5 and p 0.5
(probability histogram)
probability
0.3125
0.1563
0.0313
0 1 2 3 4 5 X
MAIN POINTS
E ( X ) x P ( X x) ( )
all x
Var ( X ) E [( X E ( X )) 2 ]
( x E ( X )) 2 P ( X x) ( 2 )
all x
24
P ( X x) C p x (1 p)n x
n x