Docsity

Probability Distribution: Expected Value and Variance Calculation, Assignments of Probability and Statistics

Toggle sidebar
bg1
Chapter 4 Problems
9. By independence,
Pr{X=k}=X
j≥1: k≤10j
Pr{X=k , N =j}
=X
j≥log k
1
10jPr{N=j}.
But N= geometric(1/2). Therefore, Pr{N=j}= (1/2)(1/2)j−1=
(1/2)j, whence
Pr{X=k}=X
j≥log k
1
20j.
Recall that if 0 < r < 1 and n≥1 is an integer, then Pj≥nrj=rn/(1−r)
[Lecture 9]. Apply this with r= 1/20 and n=dlog ke, where dxedenotes
the smallest integer ≥x. In other words,
Pr{X=k}=(1/20)dlog ke
1−(1/20) =1
19 ·1
20dlog ke−1k=1,2,. . . .
For other values of k, Pr{X=k}= 0. Of course,
E(X) = 1
19
∞
X
k=1
k
20dlog 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)≥1
20 ×19
∞
X
k=1
k
20log k≥1
20 ×19
∞
X
k=1
k
k2=∞.
This proves that EX=∞.
11. Compute directly to find that
Eh(X−a)2i= E X2−2aX +a2= E(X2)−2aEX+a2
| {z }
g(a)
.
Thus, we are interested in minimizing the function gover all a. First of
all,
g0(a) = −2EX+ 2a.
Therefore, g0(a) = 0 yields a= EX. To see that this is giving us the
minimum of g, note that g00(a) = 2 >0. Thus,
min
ag(a) = g(EX) = E h(X−EX)2i,
which is Var(X).
1
pf3
pf4

Partial preview of the text

Download Probability Distribution: Expected Value and Variance Calculation and more Assignments Probability and Statistics in PDF only on Docsity!

Chapter 4 Problems

  1. By independence,

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) =^

19 ·^

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

20 × 19

∑^ ∞

k=

k 20 log^ k^

20 × 19

∑^ ∞

k=

k k^2

This proves that EX = ∞.

  1. Compute directly to find that

E

[

(X − a)^2

]

= E

[

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

[

(X − EX)^2

]

which is Var(X).

  1. By symmetry,

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.

  1. We have

E

X

= p

∑^ ∞

k=

k qk−^1.

  1. According to Lecture 9 (§2), Y = k + X is negative binomial, and

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.