Exercises
Exercises
1
a) If you decide in advance to always stick to your originally
chosen door, what is your chance to win the car?
b) If you decide in advance to always change door (when there are
two closed doors,) what is your chance to win the car?
Answers
1.4 0.5073
2
2.1 The two events A and B are independent with P(A) = 0.1 and
P(B) = 0.05. Compute P( A B ). What can we say about the
events A and B ?
2.2 The two events A and B have both positive probabilities.
a) If they are disjoint, can they be independent?
b) If they are independent, can they be disjoint?
2.3 The two events A and B have probabilities P(A) = 0.1,
P(B) = 0.05 and P( A B ) 0.8. Determine if A and B are
independent events.
2.4 We have three lottery tickets; one is a winning ticket and two
are blanks. The three individuals Joe, Kim and Mary draw a
ticket each in order, (Joe first, Mary last.)
a) What is the probability that Joe wins?
b) that Kim wins?
c) that Mary wins?
2.5 From a sign with the text MALMO two random letters fall to
the ground. An individual, who is ignorant of the original text,
puts them up again at random. What is the probability that the
original text will be restored?
2.6 Assume that the probability that a born baby is a boy is 0.5, and
that gender is independent between births. A family has four
children. Compute
a) the probability that they have two boys and two girls,
conditional that the first (oldest) is a boy
b) the probability that they have two boys and two girls,
conditional that at least one is a boy.
3
2.7 For the three events A, B and C it holds that
P( A B C ) 0.1, P( A) 0.5 and P( B | A) 0.4.
Compute the probability P(C | A B).
Answers
2.1 0.855
2.2 a) no b) no
2.3 dependent
2.4 All three probabilities are 1/3
2.5 0.55
2.6 a) 0.375 b) 0.4
2.7 0.5
4
3.1 At a production process, the produced items are tested for
defects. A defective unit is classified as such with probability
0.9, whereas a correct unit is classified as such with probability
0.85. Furthermore, 10% of the produced units are defective.
Compute the conditional probability that a unit is defective,
given that is has been classified as such.
3.2 A and B are two independent events with probabilities 0.5 and
0.4 respectively. Compute the conditional probability that both
A and B occur, when it is known that at least one of the events A
and B has occurred.
3.4 We have two urns, A and B, who contain black and white balls.
A contains two black and three white balls, whereas B contains
two black and two white balls. We draw one ball at random
from A and put it in B, without noticing its colour. Next we
draw at random one ball from B, and notice that it is white.
Compute the probability that the ball we moved from A to B
was black.
5
Answers
3.1 0.4
3.2 2/7
3.4 4/13
6
4.1 A library has on average 78 visitors on an ordinary Friday.
Compute the probability that the library has more than 90
visitors on an ordinary Friday. Motivate carefully!
7
5.1a) Determine the constant c such that the function
cx 0 x6
2
f ( x)
0 otherwise
becomes a probability density function.
b) Determine the corresponding distribution function.
c) Compute the expected value and variance.
5.2 A random variable X has the distribution function
0 x0
FX ( x) x 3 0 x 1
1 x 1
8
Answers
1 3
5.1 a) c = 1/72 b) FX ( x) x for 0 < x < 6, = 0 otherwise,
216
c) E(X) = 4.5, V(X) = 1.35
y
5.5 fY ( y ) for d y a 2 d 2 , = 0 otherwise.
a y d 2 2
5.6a) fY ( y ) 1
, y > 1 (a Pareto distribution)
y
0.8862
b)
2
9
6.1 X and Y are independent, discrete random variables whose
probability functions are given in the tables below:
k 1 2 3 k 1 2 3
p X (k ) 1 3 1 2 1 6 pY (k ) 2 3 1 6 1 6
Answers
6.1 a) 1/4 b) 5/9
6.2 2/3
6.3 2
1 0.5 x
6.4 xe , x 0.
4
6.5
1
10
7.1 The two random variables X and Y have expected values
E(X) = –1 and E(Y) = 1, and variances V(X) = 2 and V(Y) = 4.
The covariance is Cov(X, Y) = –1. Compute the standard
deviation SD(X – 2Y + 1).
11
8.1 X N(0,1) . Compute
a) P( X 1.8)
b) P( X 1.35)
c) P( 1.2 X 0.5)
d) a, such that P( X a ) 0.05
e) a, such that P( X a ) 0.95
12
Answers
8.1 a) 0.9641 b) 0.0885 c) 0.3849 d) 1.6449 e) 1.9600
8.5 1'337
8.6 0.0219 [0.02235]
13
9.1 A measuring instrument uses a special kind of battery. Five
batteries of this type have been used to measure the time spell
they deliver enough power. The result was 5, 4, 6, 4, 7 hours.
These values can be regarded as observations of a random
variable X with expected value μ and variance σ2.
a) Estimate μ and σ2 in some suitable way.
b) Show that estimate of μ is unbiased.
c) compute the standard deviation and standard error of the
estimate of μ.
3/ 2
14
c) Compute the variances of the estimates.
15
10.1 Four independent measurements of a distance have been
performed with an instrument which gives an unbiased result,
but with a random error which is normally distributed with
standard deviation 0.005 mm. The measurements were
(mm)
1132.155 1132.158 1132.145 1132.163
a) Compute a 95% confidence interval for the true distance.
b) As a) but assume that σ is unknown.
10.2 Two nursery schools are located in the same town, but one of
them, “The Clearing” is located close to a forest, whereas the
other, “The Brick Wall” is located downtown. The environ-
mental manager suspects that the children at “The Brick Wall”
might get higher content of lead in their blood, due to the
location. In order to find out, five children were randomly
drawn from each nursery school, and their lead contents were
measured (ng/ml). The result was
The Clearing: 0.96 0.43 0.93 0.85 0.48
The Brick Wall: 0.93 0.63 1.21 1.30 0.58
Do these data indicate a difference between the two nursery
schools? Construct a 95% confidence interval to answer the
question.
a) Assume that the variation in lead content between children is
normally distributed with the same variance for the two nursery
schools.
b) As in a) but do not assume equal variances.
10.3 In order to compare two scales, six items were weighed with
each of the two scales. The results were:
item 1 2 3 4 5 6
scale A 1.0 7.7 9.6 21.0 32.3 22.6
scale B 3.1 8.8 12.0 19.5 35.5 32.5
16
difference B A
a) when the standard deviations are known to be A 2 and
B 3
b) when the standard deviations are unknown.
10.4 During 30 days at an upstream location of the Mississippi river
a certain contamination was measured. Since the measurements
were made at different days, they can be considered as indepen-
dent. The sample mean value was x 13.2 and sample standard
deviation s 2.8. At a location downstream, 40 measurements
were made at different days. Here the sample mean was
x 86.1 and the sample standard deviation s 38.7. Compute
a 95% confidence interval that can be used to assess the
difference in contamination between the two locations. (Note
that we do not assume normal distributions.)
10.5 A physicist has made five measurements in order to determine a
certain physical constant. These measurements can be regarded
as observations of a normally distributed random variable with
known variance. He computes a 90% confidence interval to be
(7.02, 7.14). How many measurements would he need in order
to get
a) a confidence interval with half the length?
b) a 99% confidence interval of the same length?
c) a 99% confidence interval with half the length?
Answers
10.1 a) (1132.150, 1132.160) b) (1132.143, 1132.167)
10.2 a) (–0.628, 0.228) b) (–0.632, 0.232) (df = 7.55)
10.3 a) (–0.018, 5.752) b) (–1.131, 6.865)
10.4 (60.87, 84.93) [(60.49, 85.31) df= 39.54]
10.5 a) 20 b) 13 c) 49
17
11.1 Two firms, A and B, offer telephone support. One wanted to
estimate the difference in wait time before a call is answered
between the two firms. The wait time for 420 calls to firm A
was on average 26.0 minutes, and for 376 calls to firm B the
wait time was on average 31.6 minutes. Assume that wait time
is exponentially distributed with expected values A and B
respectively. Construct a 95% confidence interval for the
difference B A . Can we draw any conclusion (with error
risk 5%) as to which firm has the longer expected wait times?
11.2 The traffic on a certain road can be described such that the
number of cars that pass a certain point on the road during a
time period of t minutes is Po( t ). During a time period of 10
minutes, 400 cars passed. Compute a 95% confidence interval
for .
11.4 Assume that the number of fatal traffic accidents during two
consecutive years was 537 and 453, respectively. The minister
in charge described this decline in accidents as a result of his
clever policy, whereas his opponents claimed it was pure
chance.
18
Compute a 95% confidence interval for the difference in
intensity of fatal accidents between the two years. Can we reject
the hypothesis that the outcome was pure chance?
Answers
11.1 a) (1.55, 9.65), firm B has on average longer wait times.
19
12.1 Joe plays on a slot machine which gives a win with probability
p. The claim is that p = 0.2, but Joe suspects that p < 0.2.
Define the hypotheses H0: p = 0.2 and H1: p < 0.2. Joe wants to
test H0 against H1, so he plays on the machine until he wins the
first time. This happens at his 11:th attempt. Can he – with risk
level at most 0.1 – reject H0 in favour of H1?
12.2 Eighteen pairs of iron rods have been buried in the soil, where
in each pair one rod has been given anti corrosion treatment,
whereas the other has not. The task is to figure out if the
treatment has any real effect. The rods will be examined after
some prescribed time and x, = the number of pairs where the
treated rods have corroded more than the untreated, will be
noted. It is decided that the null hypothesis H0: “no effect” will
be rejected in favour of H1: “the treatment has some anti
corrosion effect” if x 5.
a) Decide the significance level of the test
b) What is the conclusion if x = 1? x = 5? x = 15?
20
thermometer employed. It is known that the errors are
independent between measurements, unbiased and have a
standard deviation of 2.3 centigrade
a) Test the hypothesis that the melting temperature is 1050
centigrade against the alternative that it is different from that.
Use error level 5%.
b) The same as in a), but assume that the standard deviation is
unknown.
12.5 The traffic police sets up a road check to test drivers for
intoxication. The test is as a null hypothesis test: H0: “the driver
is sober” is tested against the alternative H1: “the driver is
intoxicated” with an error risk of 1%. What will happen in the
long run? Is it true that
a) at most 1% of those acquitted are in fact intoxicated
b) at most 1% of those who are intoxicated are acquitted?
c) at most 1% of those who are caught are in fact sober.
Answers
12.1 The test is “reject if the number of attempts needed is large”.
p-value = P(lose first 10 games) = 0.810 = 0.1074 > 0.1 . No
conclusion.
12.2 a) 0.048 b) accept H1, accept H1, no conclusion.
21
13.1 In exercise 12.2, compute the power of the test against the
alternative that p = 0.25, where p = probability that a treated
rod will corrode more than an untreated.
13.2 In exercise 12.3, compute the power function for the test. What
is the power if the true value of μ is μ = 3.8? If μ = 4.3?
13.3 in exercise 12.4, compute the power function of the test. What
is the power if the true value is 1051 centigrade? If it is 1053
centigrade?
13.4 Eight persons measure their heights (cm) morning and evening.
Result:
individual A B C D E F G H
morning 172 168 180 181 160 163 165 177
evening 172 167 177 179 159 161 166 175
1050
13.3 h( ) 1 10 1.9600
2.3
1050
10 1.9600
2.3
h(1051) 0.280 , h(1053) 0.9848
22
14.1 SIFO made opinion polls for the political parties in May and
June 2016. In May, 498 individuals out of 1937 said they would
vote for “Moderaterna” (M). In June, 531 individuals out of
1937 said they would vote for M. Test with error risk 5% if
there has been a shift in the support for M between the two
months
a) employing a confidence interval for the difference in
proportions in favour of M.
b) employing a 2 -test.
14.2 In a genetic experiment the offsprings were studied when two
types of guinea pigs were interbred. Out of 87 offsprings 43
were red, 10 black and 34 white.
According to the genetic model, the probabilities for these
colours are 9/16, 3/16 and 4/16. Should that hypothesis be
rejected at 5% risk level?
14.3 During 81 days the number of cars that passed a certain point
on a road in a ten minute period were counted. The result was:
#cars 0 1 2 3 4 5 6
#days 14 12 25 16 10 3 1
23
14.5 From 500 accidents on a country road data have been collected
according to this table:
injuries safety belt no safety belt
none or light 101 143
severe 58 198
Test, with error risk 5% if safety belts have an impact on the
severity of injuries.
Answers
14.1 a) June – May (–0.0108, 0.04485). No conclusion
b) p = 0.2300, no conclusion
14.2 p = 0.00653 (df = 2). Reject
14.3 p = 0.1130 (df = 3). No conclusion
14.4 p = 0.1519 (df = 2). No conclusion
14.5 p 6.89 106. Safety belts have an impact
24