Docsity

statistics and probability course exercise, Esercizi di Statistica

Toggle sidebar
bg1
Exercises to
Probability Theory and Statistics
(sf1901)
These are essentially translations of the Swedish pdf-exercises, but I
have replaced a few of them with – in my opinion – more relevant
ones. Harald Lang, 2016.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Anteprima parziale del testo

Scarica statistics and probability course exercise e più Esercizi in PDF di Statistica solo su Docsity!

Exercises to

Probability Theory and Statistics

(sf1901)

These are essentially translations of the Swedish pdf-exercises, but I

have replaced a few of them with – in my opinion – more relevant

ones. Harald Lang, 2016.

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.2 a) 0.25 b) 0.05 c) 0.75 d) 0.

1.3 a) 0.01294 b) 0.4135 c) 0.

1.5 a) 1/3 b) 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.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.3 In a certain risk group, individuals are tested for a certain

disease S. A person who has the disease gets the correct

diagnosis with probability 0.99, whereas a person who does not

suffer from S gets the correct diagnosis with probability 0.95.

Furthermore, it is known that 6% of the individuals in the group

get the diagnosis “suffer from S”.

Determine a) the proportion of individuals in the group who

suffer from S, and b) the probability that a person who gets the

diagnosis “suffer from S” actually carries the disease.

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.

Answers

  • 3.1 0.
  • 3.2 2/
  • 3.3 a) 1/94 b) 33/188 ≈ 0.
  • 3.4 4/

5.1a) Determine the constant c such that the function

2

0 otherwise

cx x

f x

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

3

X

x

F x x x

x

Compute E(X) and SD(X).

5.3 The length X of a telephone call can often be approximated as

an exp(  )random variable. If

1

 2 3min ,

 compute

a) the probability P(1  X10).

b) E(X) and SD(X).

5.4 It is a fact that if X exp( ),then

2

2  X  (2).Use this fact

to compute the probability in 5.3.a) with your pocket calculator.

5.5 In a coordinate system, the interval [–a, a] on the x-axis

represents a fault fissure. An earth quake will occur such that its

epicentre X on that interval follows a uniform probability

distribution. At (0,d) is a dam. Let Y be the distance from the

dam to the epicentre X. Determine the density function for Y.

5.6 Xexp( ).

a) Determine the density function for.

X

Y e

b) Use a calculator to compute

E X.

Answers

5.1 a) c = 1/72 b)

3

X

F x  x for 0 < x < 6, = 0 otherwise,

c) E(X) = 4.5, V(X) = 1.

5.2 E(X)=3/4, SD( X )  3 / 80

5.3 a) 0.5121, E(X) = 3/2, SD( X )  3 / 2

2 2

Y

y

f y

a y d

for

2 2

d  y  a  d ,= 0 otherwise.

5.6a)

1

Y

f y

y

 , y > 1 (a Pareto distribution)

b)

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).

7.2 The random variable X  exp(2.5).Compute  

E

X

e

and

 

V.

X

e

7.3 X  U(1, 2).We draw a random value x of X, and let

Y  exp( ).x Compute the expected value E(Y).

7.4 The random variables

1 2 3

X , X andX are independent and have

all the expected value 2 and standard deviation 3. Let

1 2 3

Y  3 X  2 X  X 6.

a) Compute E(Y) and SD(Y).

b) Compute the correlation coefficient

1 2

 (Y X ,  X ).

7.5 The random variable X has density function

X

f x  x  x Compute

2

V( X ).

7.6 In certain breakfast cereal packs, plastic toys are placed. Each

pack contains one toy, and there are in total six different toys

that are distributed evenly among packs. You don’t know which

toy the pack contains until you open it.

You buy packs, one at a time, and let X be the number of packs

bought when you have just collected at least one of each toy.

Compute E(X).

Answers

 

E 5 7

X

e

 

V 20 441

X

e

7.3 ln(2)

7.4 a) E( Y )  2, SD( Y )  3 14 b)

1 2

 ( Y X,  X )  1 14

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.

e) a, such that P( X  a) 0.

8.2 X  N(5, 2).Compute

a) P( X 6)

b) P(1.8  X7.2)

c) a, such that P( X  a) 0.

8.3 X, Y and Z are independent normally distributed random

variables with expected values 2, 1 and 0, respectively. They all

have the sane variance 2. Compute P(4 X  3 Y  5 Z).

8.4 A lift in a department store has a sign “a maximum 10 persons,

or at most 800 kg.” Assume that a random person’s weight is

N(70, 10) kg. What is the probability that 10 customers will

overload the lift?

8.5 A new residential area is planned for 1’000 families. The

probability that a family owns 0, 1, 2 and 3 cars is, 0.2, 0.4, 0.

and 0.1, respectively. How many parking places have to be

planned for, in order that with 90% probability all cars have a

parking place?

8.6 X  Bin(2300, 0.25)and Y  Po(640).X and Y are

independent. Compute (approximately) the probability

P X ( Y).

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 μ.

9.2 We have a random sample x 1

, … , x

n

(n > 2) of an N(μ ,σ)

random variable. Consider the two estimates

1

n

x x

n

     and

1

n

  x x

a) Show that both estimates are unbiased.

b) Which of the two estimates is most efficient?

9.3 x 1

, … , x

n

are independent observations of a Maxwell distributed

random variable, i.e. its density function is

2

2

/(2 )

3/ 2

x

x

f x e x

where α is a parameter. This distribution has expected value

8   and variance  (3  8 ).

a) Compute the ML-estimate ˆ

ML

 of .

b) Is

ML

 an unbiased estimate of α?

9.4 We have three independent measurements x 1

, x

2

, x

3

of the angle

AOC, and two independent measurements x

4

, x

5

of AOB (see

picture below.) The measurements are unbiased with a random

error with standard deviation σ.

a) Compute the LS estimates of

1

 and

2

b) Are the estimates unbiased?

c) Compute the variances of the estimates.

9.5 The discrete random variable X has probability function

1

j

p j   j

    where 0   1.We have six

independent observations of X: 4, 5, 4, 6, 4, 1.

a) Compute the ML-estimate of θ.

b) Compute the LS-estimate of θ.

Answers

9.1 a)

2

 ˆ  5.2, ˆ  1.7 b)

SD( ˆ ) , ( ˆ) 0.

d

2

Var( ) ,

n

2

Var( ˆ)

is more efficient.

9.3 a)

2

ML

1

n

j

j

x

n

b) yes

9.4 a)

1 4 5 2 1 2 3 4 5

  x  x   x  x  x  x x

9.5 a)

ML

  b)

LS

difference

B A

a) when the standard deviations are known to be 2

A

  and

B

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.2and sample standard

deviation s  2.8.At a location downstream, 40 measurements

were made at different days. Here the sample mean was

x  86.1and 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

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.3 In a psychological experiment 198 economics students were

asked “Should Sweden join the EMU and introduce the euro as

currency?” 107 said “Yes” and 91 “No”. Another 198 students

were asked “Should Sweden join the EMU and abandon the

Swedish krona as currency?” 95 answered “Yes” and 103

“No”.

Compute a 95% confidence interval for the difference in

proportions of students who answer “yes” in the entire student

population between the two questions. Can we draw any

conclusion whether the formulation of the question influences

the answer?

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.