Solution CVEN2002 Solutions 1 7
Solution CVEN2002 Solutions 1 7
Solution CVEN2002 Solutions 1 7
CVEN2002/2702
Solutions Week 1 7
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
2 / 22
Answers:
1
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
3 / 22
Week 3
5 365
5
=
= 0.1389
366
36
P(B) =
365 5
5
=
= 0.1389
366
36
5 364 5
25
=
= 0.0193
6
36
362
P(A B) = P(A) + P(B) P(A B) = 2 0.1389 0.0193 = 0.2585
P(A B) =
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
4 / 22
Week 3
We have:
365
n
0.8
n!
,
365n
0.0
0.2
0.4
so that
prob
0.6
20
40
60
80
100
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
5 / 22
Week 3
Example
A bin contains 5 defective, 10 partially defective and 25 acceptable
transistors. Defective transistors immediately fail when put in use, while
partially defective ones fail after a couple of hours of use. A transistor is
chosen at random from the bin and put into use. If it does not immediately
fail, what is the probability it is acceptable?
Define the following events:
A = the selected transistor is acceptable
P(PD) =
PD = it is partially defective
D = it is defective
P(D) =
F = it fails immediately
P(A) =
25
40
10
40
5
40
P(F ) = P(D) =
5
40
Now,
P(A|F c ) = P(F c |A)
CVEN2002/2702 (Statistics)
P(A)
25/40
25
=1
=
c
P(F )
1 5/40
35
Dr Joanna Wang
Solutions Week 1 7
6 / 22
Week 3
Example
Example
We toss two fair dice, denote E1 =the sum of the dice is six, E2 =the sum
of the dice is seven and F =the first die shows four. Are E1 and F
independent? Are E2 and F independent?
Recall that S = {(1, 1), (1, 2), (1, 3), . . . , (6, 5), (6, 6)} (there are thus 36
possible outcomes).
E1 = {(1, 5), (2, 4), (3, 3), (4, 2), (5, 1)}
P(E1 ) = 5/36
E2 = {(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1)}
P(E2 ) = 6/36
F = {(4, 1), (4, 2), (4, 3), (4, 4), (4, 5), (4, 6)}
P(F ) = 6/36
E1 F = {(4, 2)}
P(E1 F ) = 1/36
E2 F = {(4, 3)},
P(E2 F ) = 1/36
Dr Joanna Wang
Solutions Week 1 7
7 / 22
Week 3
Example
A new medical procedure has been shown to be effective in the early
detection of an illness and a medical screening of the population is proposed.
The probability that the test correctly identifies someone with the illness as
positive is 0.99, and the probability that someone without the illness is
correctly identified by the test is 0.95. The incidence of the illness in the
general population is 0.0001. You take the test, and the result is positive.
What is the probability that you have the illness?
Let I = event that you have the illness, T = positive outcome of the screening
test for illness. From the question we have,
P(T |I) = 0.99,
P(T C |I C ) = 0.95,
P(I) = 0.0001.
P(I|T ) =
CVEN2002/2702 (Statistics)
Dr Joanna Wang
= 0.001976
Solutions Week 1 7
8 / 22
Week 3
Example
Suppose a multiple choice test, with m multiple-choice alternatives for each
question. A student knows the answer of a given question with probability p.
If she does not know, she guesses. Given that the student correctly answered
a question, what is the probability that she effectively knew the answer?
Let C =she answers the question correctly and K =she knows the
answer. Then, we desire P(K |C). We have
P(K )
P(C)
P(C|K ) P(K )
=
P(C|K ) P(K ) + P(C|K c ) P(K c )
1p
=
1 p + (1/m) (1 p)
mp
=
1 + (m 1)p
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
9 / 22
Week 4
Example
Let X denote the current measured in a thin copper wire (in mA). Assume
that the pdf of X is
C(4x 2x 2 ) if 0 < x < 2
f (x) =
0
otherwise
What is the value of C ? Find P(X > 1.8)
R +
R2
We must have f (x) dx = 1, so C 0 (4x 2x 2 ) dx = C 83 = 1, that is
C = 3/8
R +
R2
Then, P(X > 1.8) = 1.8 f (x) dx = 3/8 1.8 (4x 2x 2 ) dx = 0.028
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
10 / 22
Week 4
Expectation: examples
Example 1
What is the expectation of the outcome when a fair die is rolled?
X = outcome, SX = {1, 2, 3, 4, 5, 6} with p(x) = 1/6 for any x SX
= E(X ) = 1 1/6 + 2 1/6 + 3 1/6 + 4 1/6 + 5 1/6 + 6 1/6
= 3.5
need not be a possible outcome !
is not the most likely outcome (this is called the mode)
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
11 / 22
Week 4
Example 2
What is the expected sum when two fair dice are rolled?
X = sum of the two dice,
SX = {2, 3, . . . , 12} with
p(x) = (6 |7 x|)/36 for any x SX
= E(X ) = 2 1/36 + 3 2/36 + . . . + 12 1/36 = 7
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
12 / 22
Week 4
Variance : examples
Example 1
What is the variance of the number of points shown when a fair die is rolled?
X = outcome, SX = {1, 2, 3, 4, 5, 6} with p(x) = 1/6 for any x SX
E(X 2 ) = 12 1/6 + 22 1/6 + 32 1/6 + 42 1/6 + 52 1/6 + 62 1/6
= 91/6
We know that = 3.5 (Slide 23), so that
2 = E(X 2 ) 2 = 91/6 3.52 ' 2.92
Example 2
What is the variance of the sum of the points when 2 fair dice are rolled ?
(Exercise) Check that 2 ' 5.83, ' 2.41
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
13 / 22
Week 4
SX
= aE(X ) + bE(Y )
Example
What is the expected sum obtained when two fair dice are rolled?
Let X be the sum and Xi the value shown on the ith die. Then, X = X1 + X2 ,
and
E(X ) = E(X1 ) + E(X2 ) = 2 3.5 = 7
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
14 / 22
Week 5
Dr Joanna Wang
Solutions Week 1 7
15 / 22
Week 5
Dr Joanna Wang
Solutions Week 1 7
16 / 22
Week 5
Dr Joanna Wang
Solutions Week 1 7
17 / 22
Week 5
ba
(area of a rectangle)
Example
Buses arrive at a specified stop at 15-minute intervals starting at 7 A . M . That
is, they arrive at 7, 7:15, 7:30, 7:45, etc. If a passenger arrives at the stop at a
time uniformly distributed between 7 and 7:30, find the probability that he
waits less than 5 minutes for a bus
Let X denote the time (in minutes) past 7 A . M . that the passenger arrives at
the stop. We have X U[0,30]
The passenger will have to wait less than 5 min if he arrives between 7:10
and 7:15 or between 7:25 and 7:30. This happens with probability
P((10 < X < 15) (25 < X < 30)) = P(10 < X < 15) + P(25 < X < 30)
5
5
1
=
+
=
30 30
3
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
18 / 22
Week 5
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
19 / 22
Week 6
Example
A sample of n = 28 heavy smoking men aged between 35 and 57, had
a sample mean testosterone level of 795.1 nanograms per decilitre. In
the general population of non smoking men of this age, we can
assume that testosterone is normally distributed with mean 620.6 and
standard deviation of 201.5. Are the results for the sample of smokers
consistent with the distribution for non-smokers?
Let Xi represent the testosterone level of a generic non-smoking man aged
between 35 57. Then Xi N (620.6, 201.5) for i = 1, 2, . . . , n. Then the
sample average of non-smoking men in this age bracket,
X 620.6
795.1 620.6
38.08
38.08
P (Z 4.58)
795.1) = P
P(X
Dr Joanna Wang
20 / 22
Week 7
1
1
x z1/2
, x + z1/2
= 64.46 1.96
, 64.46 + 1.96
n
n
10
10
= [63.84, 65.08]
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
21 / 22
Week 7
z1/2
e
2
=
1.96 1
0.5
2
= 15.37
CVEN2002/2702 (Statistics)
Dr Joanna Wang
Solutions Week 1 7
22 / 22