


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Chapter 4 Problems
Pr{X = k} =
j≥1: k≤ 10 j
Pr{X = k , N = j}
j≥log k
10 j^ Pr{N = j}.
But N = geometric(1/2). Therefore, Pr{N = j} = (1/2)(1/2)j−^1 = (1/2)j^ , whence Pr{X = k} =
j≥log k
20 j^
Recall that if 0 < r < 1 and n ≥ 1 is an integer, then
j≥n rj^ =^ rn/(1−r) [Lecture 9]. Apply this with r = 1/20 and n = dlog ke, where dxe denotes the smallest integer ≥ x. In other words,
Pr{X = k} = (1/20)dlog^ ke 1 − (1/20) =^
20 dlog^ ke−^1 k=1,2,....
For other values of k, Pr{X = k} = 0. Of course,
E(X) =
k=
k 20 dlog^ ke^
but can this be simplified a bit? To see that the answer is “yes,” note that dlog ke ≤ log k + 1. Therefore,
E(X) ≥
k=
k 20 log^ k^
k=
k k^2
This proves that EX = ∞.
E
(X − a)^2
X^2 − 2 aX + a^2
= E(X^2 ) − 2 aEX + a^2 ︸ ︷︷ ︸ g(a)
Thus, we are interested in minimizing the function g over all a. First of all, g′(a) = −2EX + 2a. Therefore, g′(a) = 0 yields a = EX. To see that this is giving us the minimum of g, note that g′′(a) = 2 > 0. Thus,
min a g(a) = g (EX) = E
which is Var(X).
Pr{X ≤ a} =
x≤a
f (x) =
y≤ 0
f (y + a)
y≤ 0
f (a − y) =
y≥ 0
f (a + y)
x≥a
f (x) = Pr{X ≥ a}.
Therefore, the median is a. Note that it need not be the case that P{X ≤ a} = 1/2, though (why?). In order to compute the mean, I first claim that ∑ x<a
xf (x) +
x>a
xf (x) = a − af (a). (2)
Indeed, a change of variables [y = x − a] reveals that ∑ x<a
xf (x) =
y< 0
(y + a)f (y + a)
y< 0
(y + a)f (a − y) (by symmetry)
=
z> 0
(a − z)f (a + z) (z = −y)
=
x>a
(2a − x)f (x) (x = a + z)
= 2a
x>a
f (x) −
x>a
xf (x).
By the same argument that led to 1,
x>a f^ (x) =^
x<a f^ (x). But
1 =
x<a
f (x) +
x>a
f (x) + f (a) = 2
x>a
f (x) + f (a).
Therefore, 2 a
x>a
f (x) = a(1 − f (a)) = a − af (a).
Plug this into (3) to obtain (2). Thus,
EX =
x<a
xf (x) +
x>a
xf (x) + af (a) = a.
E
= p
k=
k qk−^1.
f (x) =
x − 1 k − 1
pk(1 − p)x−k^ if x = k, k + 1, k + 2,... , 0 otherwise.
This implies (a). (b) According to Example 10.6 (Lecture 10), E(Y ) = k/p, whence E(X) = (k/p) − k = kq/p. We compute Var(X) = Var(Y ) by first noticing that
E[(Y + 1)Y ] =
x=k
(x + 1)x
x − 1 k − 1
pk(1 − p)x−k
x=k
(x + 1)! (k − 1)!(x − k)! p
kqx−k
(k + 1)k p^2
x=k
x + 1 k + 1
pk+2q(x+2)−(k+2)
= (k^ + 1)k pq
y=k+
y − 1 k + 1
pk+2qy−(k+2)
(k + 1)k p^2
Therefore,
E(Y 2 ) = E[(Y + 1)Y ] − EY = (k + 1)k p^2
k p
and hence
Var(Y ) = (k + 1)k p^2
k p
k^2 p^2
k p^2
k p
k p
p
kq p^2
Because Var(X) = Var(Y −k) = Var(Y ), the preceding also computes the variance of X.