Probability Combined 0
Probability Combined 0
Probability Combined 0
GX (s) = E sX = ∞ n
P
n=0 s P(X = n). For X ∼Po(λ),
∞ ∞
X λn X (sλ)n
GX (s) = sn e−λ = e−λ = eλ(s−1) .
n! n!
n=0 n=0
[3]
(b) Define the moment-generating function MY (t). Calculate it explicitly for a
normal random variable N(0, 1).
Z ∞
1 2
MY (t) = √ etx e−x /2 dx
2π −∞
t2 /2 Z ∞
e 2 2
=√ e−(x−t) /2 dx = et /2 ,
2π −∞
√ 2
as the last integral gives 2π (since e−(x−t) /2 2π is the PDF for
√
P(A|Bi )P(Bi )
P(Bi |A) = P .
P(A|Bj )P(Bj )
16j6n
[5] and subbing into (1) for P(A) gives the result.
(b) A prince is equally likely to sleep on any number of mattresses from six to eight;
on half the nights a pea is placed beneath the lowest mattress. With only six mattresses
his sleep is always disturbed by the presence of a pea; with seven a pea, if present, is
unnoticed in one night out of five; and with eight his sleep is undisturbed despite an
offending pea in two nights out of five.
What is the probability that, on a given night, the prince’s sleep was undisturbed?
Let U be the event that he slept undisturbed, P be the event that a pea
is placed (with complement P c ), and N be the number of mattresses.
Assuming P and N are indep, we have
8
X
P(U ) = P(U ∩ P c ) + P(U ∩ P ∩ {N = n})
n=6
8
1 X
= + P(U |P ∩ {N = n}) × P(P ) × P(N = n)
2
n=6
8
1 Xn−6 1 1 1 1 1 2 3
= + × × = + 0+ + = .
2 5 2 3 2 6 5 5 5
n=6
[7]
On the morning of his wedding day, he announces that he has just spent the most
peaceful and undisturbed of nights. What is the expected number of mattresses on which
he slept the previous night?
12F Probability
A circular island has a volcano at its central point. During an eruption, lava flows
from the mouth of the volcano and covers a sector with random angle Φ (measured in
radians), whose line of symmetry makes a random angle Θ with some fixed compass
bearing.
The variables Θ and Φ are independent. The probability density function of Θ is
constant on (0, 2π) and the probability density function of Φ is of the form A(π − φ/2)
where 0 < φ < 2π, and A is a constant.
(a) Find the value of A. Calculate the expected value and the variance of the sector
angle Φ. Explain briefly how you would simulate the random variable Φ using a uniformly
distributed random variable U .
Z 2π
By normalisation of the PDF, A(π − φ/2) dφ = 1
0
2π 1
Hence 1 = A πφ − φ2 /4 0 = π 2 A. Hence A = 2 .
π
Then
Z 2π
2π 2π
Aφ(π − φ/2) dφ = A πφ2 /2 − φ3 /6 0 = A(2π 3 − 4π 3 /3) =
E(Φ) = .
0 3
and
Z 2π 2π
2
Aφ2 (π − φ/2) dφ = A πφ3 /3 − φ4 /8 0
E(Φ ) =
0
2π 2
= A(8π 4 /3 − 2π 4 ) =
3
so
2π 2 4π 2 2π 2
Var(Φ) = E(Φ2 ) − E(Φ)2 = − = .
3 9 9
Φ has distribution function
0
for φ 6 0
FΦ (φ) = P(Φ 6 φ) = φ/π − φ2 /4π 2 for φ ∈ [0, 2π]
1 for φ > 2π.
φ2 φ
2
− +x=0
4π π
and is therefore
p
1/π ± 1/π 2 − x/π 2 √
= 2π 1 ± 1 − x .
1/2π 2
[7] simulates Φ.
(b) H1 and H2 are two houses on the island which are collinear with the mouth of
the volcano, but on different sides of it. Find
(i) the probability that H1 is hit by the lava;