Docsity

Probability and Statistics I Exercise Solutions, Exams of Mathematics

Toggle sidebar
bg1
CM141A – Probability and Statistics I Solutions
to exercise sheet 5
1. Let Y=# of defective machines among the five selected. Then, the information provided
in the introduction means that Y is hypergeometric with N =10, r = 4 and n = 5. This means
⎛ ⎞⎛4 6 ⎞
p i( )= ⎝ ⎠⎝⎜ ⎟⎜i5−i⎟⎠ i = 0,1,2,3,4
⎛ ⎞10
⎜ ⎟⎝ ⎠5
a. The probability that all five of the machines are nondefective is
⎛ ⎞⎛ ⎞4 6
⎜ ⎟⎜ ⎟
6 1
p( )0 == = .
252 42
⎜ ⎟⎝ ⎠5
b. Note that the cost is just the random variable 50Y , and so 50Y = 50 Y , and
Var(50Y)= 502Var Y( ). Next we apply the formulas for the mean and variance of a
hypergeometric distribution:
r 4
50Y = 50 Y = 50×n = 50 5× =100
N 10
Var(50Y)= 502Var Y( )= 2500×nN Nr N r N n− N−1 = 2500 5× 10 10 9 4 6 5 = 2500× =
1666.6
−
c. In that case the hypergeometric distribution is well approximated by the Binomial
distribution with the same parameters, i.e. p = Nr = 100004000 = 104 and n = 5. The exact value of
N from that point on becomes unimportant as it is very big.
pf3
pf4
pf5

Partial preview of the text

Download Probability and Statistics I Exercise Solutions and more Exams Mathematics in PDF only on Docsity!

CM141A – Probability and Statistics I Solutions

to exercise sheet 5

  1. Let Y=# of defective machines among the five selected. Then, the information provided

in the introduction means that Y is hypergeometric with N =10, r = 4 and n = 5. This means

p i ( )

=

i 5 − i

i = 0,1,2,3,

a. The probability that all five of the machines are nondefective is

p ( ) 0 == =.

b. Note that the cost is just the random variable 50 Y , and so 50 Y = 50 Y , and

Var ( 50 Y )= 50

2

Var Y ( ). Next we apply the formulas for the mean and variance of a

hypergeometric distribution:

r 4

50 Y = 50 Y = 50 × n = 50 5× = 100

N 10

Var ( 50 Y )= 50

2

Var Y ( )= 2500 × nN N

r N r N n

N

×

2500 × =

c. In that case the hypergeometric distribution is well approximated by the Binomial

distribution with the same parameters, i.e. p = N

r

= 10000

4000

= 10

4

and n = 5. The exact value of

N from that point on becomes unimportant as it is very big.

In that case, the mean would be exactly the same, i.e. 50 Y = 50 × np = 50 5×

And the variance simplifies a bit and becomes

Var ( 50 Y ) = 50

2

Var Y ( ) = 2500 × n

r N

r

×

N N 10 10

The difference between this approximation and the full hypergeometric one is

Var ( 50 Y )= 2500 × n r N

r N

n

2500 × 5

N N N − 1 10 10 9999

i.e. through the factor N − n = 9995 =.

N − 1 9999

  1. Q: Let Y have a Poisson distribution with mean λ. Find E Y Y ⎡ ⎣

and then use this

to show that Var Y ( )=λ.

y

Solution: We know that E Y [ ] =λ, and p y ( )= e

−λ

λ

. We need to calculate Var Y ( ) =λ.

y!

Let’s start with E Y Y ⎡ ⎣

y y

E Y Y ⎣⎡ ( − 1 )⎤⎦=

y ∞= 0 y y ( − 1 ) ( ) p y = e −λ= e −λ

λ

2

y ∞= 0

y

)λ y − 2 =

= e −λλ 2 ∑ y ∞= 0 y 1!⎜⎝⎛ dd λ 22 λ y ⎟⎠⎞= e −λλ 2 dd λ 22 ⎜⎝⎛∑ y ∞= 0 λ yy! ⎟⎠⎞=

= e −λλ 2 ⎛⎜ dd λ 22 e λ⎟⎠⎞= e −λ λλ λ 2 e = 2

E Y Y ⎡

= E Y ⎡

2

−

Y

⎤= E Y ⎡ ⎤

2

− E Y [ ]= E Y ⎡ ⎤

2

− =λ

λ 2

On the other hand

⇒ E Y ⎡ ⎤⎣ ⎦ 2 =λ λ 2 +

And thus Var Y ( ) = E Y ⎡

2 ⎤ ⎦

− E Y [ ]

2

2

2

c. Note that if λ> y , p y ( ) > p y ( − 1 ). If λ< y , p y ( ) < p y ( − 1 ). If λ= y for some

integer y , p y ( ) = p y ( − 1 ).

d. Note that for λ a non–integer, parts b-c imply that for y <λ we get p y ( ) > p y ( − 1 ).

On the other hand for y >λ− 1 ⇔ y + > 1 λ we obtain p ( y + 1 ) < p y ( ). Therefore, for

λ− < 1 y <λ which practically means y = [λ] (i.e., the integer part of λ, since y is an

integery itself) p y ( −1) < p y ( ) > p y ( +1), and p ( y ) is maximized. If λ is an integer,

then p ( ) y is maximized at both values λ− 1 and λ.

e. Y ~ Poisson (5.3). Since λ is a non–integer, p ( y ) is maximized at y = [5.3] = 5.

f. If Y ~ Poisson ( )6 , observe that λ is now an integer and p ( 5 )= e

− 6

=.1606 , and p (

) 6 = e

− 6 = e

− 6 6

5! 6

5 ×

× 6 =.1606, and so 5 and 6 are the two most likely values of Y

And here are the plots of the two distributions in the range 0 ≤ y ≤15 :

6. Q: Let X be a random variable that takes on values between 0 and c (that is P ( 0 ≤ X ≤ c )

=1). Show that Var X ( ) ≤ c

2

Proof: In the following we will use a notation for continuous random variables, but the prrof

is general, and applies to discrete random variables by replacing to sums by integrals.

Let’s start by showing that E ⎡ ⎣

X

2 ⎤ ⎦

≤ cE X [ ]:

∞ ∞ ∞

E ⎡

X

2 ⎤ ⎦

= ∫ x p x dx

2

( ) ≤ ∫ cxp x dx c xp x dx cE X ( )= ∫ ( ) = [

]

−∞ x c ≤ −∞ −∞

Therefore:

1

2 σ

α= c

where α= E [ X ] c , and is therefore bounded by: (since 0 ≤ X ≤ c ).

Interestingly, the function f ( )α =α α( 1 − ) attains it maximum in the interval α∈[0,1] at

α= , where it if f ( )

1

2

1

4 , and thus for any α. Therefore, no matter what is

the exact expectation value E [ X ], we obtain.

We are only left with proving that the maximum of f (α) is at :

Let’s differentiate f (α): f ′( )α = − 1 2 α

It’s extremum is obtained when f ′(α) = 0, i.e. for α=. We only need to verify that this is

indeed a maximum by looking at the 2

nd

derivative: f ′′(α) = − 2 ⇒ f ′′( ) = − < 2 0,

and since it is negative, we conclude that α= is a maximum. It is actually a global

maximum, as can be seen graphically for example:

This proves that and thus completes the proof.

Taking a step beyond the formulas, this result simply means that the fact that the range of X

is limited, its variance has to follow, such that the standard deviation Var X c

with be at most half the range of X.

  1. Flying bomb hits on London

Let’s start by counting the number of bombs in each of the 100 cells:

0.2 0.4 0.6 0.8 1.

1

(b) Q: What random variable, having a linear relation with X , is uniformly distributed over [0,1]?

Solution: Obviously, the variable X − a is a good starting point as it is uniformly distributed

over [0, b − a ]. Thus if we now divide it by ( b − a ) we obtain what we need and the new

variable Y = b a −

1 X − b a −

a

is uniformly distributed over [0,1].

Pow ered by TC PDF (ww w.tc pdf.org)