Skip to article frontmatterSkip to article content

4.9 Supplementary Exercises

Exercise 4.9.2

Suppose that the random variable XX has a continuous distribution with CDF F(x)F(x). Suppose also that Pr(X0)=1\Pr(X \geq 0) = 1 and that E[X]\mathbb{E}[X] exists. Show that

E[X]=0[1F(x)]dx.\mathbb{E}[X] = \int_{0}^{\infty}[1 - F(x)]dx.

Hint: You may use the result proven in Exercise 4.9.1.

Exercise 4.9.3

Consider again the conditions of Div, but suppose now that XX has a discrete distribution with CDF F(x)F(x), rather than a continuous distribution. Show that the conclusion of Div still holds.

Exercise 4.9.4

Suppose that XX, YY, and ZZ are nonnegative random variables such that Pr(X+Y+Z1.3)=1\Pr(X + Y + Z \leq 1.3) = 1. Show that XX, YY, and ZZ cannot possibly have a joint distribution under which each of their marginal distributions is the uniform distribution on the interval [0,1][0, 1].

Exercise 4.9.5

Suppose that the random variable XX has mean μ\mu and variance σ2\sigma^2, and that Y=aX+bY = aX + b. Determine the values of aa and bb for which E[Y]=0\mathbb{E}[Y] = 0 and Var[Y]=1\text{Var}[Y] = 1.

Exercise 4.9.6

Determine the expectation of the range of a random sample of size NN from the uniform distribution on the interval [0,1][0, 1].

Exercise 4.9.7

Suppose that an automobile dealer pays an amount XX (in thousands of dollars) for a used car and then sells it for an amount YY. Suppose that the random variables XX and YY have the following joint pdf:

f(x,y)={136xfor 0<x<y<6,0otherwise.f(x, y) = \begin{cases} \frac{1}{36}x &\text{for }0 < x < y < 6, \\ 0 &\text{otherwise.} \end{cases}

Determine the dealer’s expected gain from the sale.

Exercise 4.9.8

Suppose that X1,,XnX_1, \ldots, X_n form a random sample of size NN from a continuous distribution with the following pdf:

f(x)={2xfor 0<x<1,0otherwise.f(x) = \begin{cases} 2x &\text{for }0 < x < 1, \\ 0 &\text{otherwise.} \end{cases}

Let Yn=max{X1,,Xn}Y_n = \max\{X_1, \ldots, X_n\}. Evaluate E[Yn]\mathbb{E}[Y_n].

Exercise 4.9.9

If mm is a median of the distribution of XX, and if Y=r(X)Y = r(X) is either a nondecreasing or a nonincreasing function of XX, show that r(m)r(m) is a median of the distribution of YY.

Exercise 4.9.10

Suppose that X1,,XnX_1, \ldots, X_n are i.i.d. random variables, each of which has a continuous distribution with median mm. Let Yn=max{X1,,Xn}Y_n = \max\{X_1, \ldots, X_n\}. Determine the value of Pr(Yn>m)\Pr(Y_n > m).

Exercise 4.9.11

Suppose that you are going to sell cola at a football game and must decide in advance how much to order. Suppose that the demand for cola at the game, in liters, has a continuous distribution with pdf f(x)f(x). Suppose that you make a profit of gg cents on each liter that you sell at the game and suffer a loss of cc cents on each liter that you order but do not sell. What is the optimal amount of cola for you to order so as to maximize your expected net gain?

Exercise 4.9.12

Suppose that the number of hours XX for which a machine will operate before it fails has a continuous distribution with pdf f(x)f(x). Suppose that at the time at which the machine begins operating you must decide when you will return to inspect it. If you return before the machine has failed, you incur a cost of bb dollars for having wasted an inspection. If you return after the machine has failed, you incur a cost of cc dollars per hour for the length of time during which the machine was not operating after its failure. What is the optimal number of hours to wait before you return for inspection in order to minimize your expected cost?

Exercise 4.9.13

Suppose that XX and YY are random variables for which E[X]=3\mathbb{E}[X] = 3, E[Y]=1\mathbb{E}[Y] = 1, Var[X]=4\text{Var}[X] = 4, and Var[Y]=9\text{Var}[Y] = 9. Let Z=5XY+15Z = 5X − Y + 15. Find E[Z]\mathbb{E}[Z] and Var[Z]\text{Var}[Z] under each of the following conditions: (a) XX and YY are independent; (b) XX and YY are uncorrelated; (c) the correlation of XX and YY is 0.25.

Exercise 4.9.14

Suppose that X0,X1,,XnX_0, X_1, \ldots, X_n are independent random variables, each having the same variance σ2\sigma^2. Let Yj=XjXj1Y_j = X_j - X_{j-1} for j=1,,nj = 1, \ldots, n, and let Yn=1nj=1nYj\overline{Y_n} = \frac{1}{n}\sum_{j=1}^nY_j. Determine the value of Var ⁣[Yn]\text{Var}\mkern-3mu\left[\overline{Y_n}\right].

Exercise 4.9.15

Suppose that X1,,XnX_1, \ldots, X_n are random variables for which Var[Xi]\text{Var}[X_i] has the same value σ2\sigma^2 for i=1,,ni = 1, \ldots, n and ρ(Xi,Xj)\rho(X_i, X_j) has the same value ρ\rho for every pair of values ii and jj such that i =ji = j. Prove that ρ1n1\rho \geq -\frac{1}{n-1}.

Exercise 4.9.16

Suppose that the joint distribution of XX and YY is the uniform distribution over a rectangle with sides parallel to the coordinate axes in the xyxy-plane. Determine the correlation of XX and YY.

Exercise 4.9.17

Suppose that nn letters are put at random into nn envelopes, as in the matching problem described in 1.10 The Probability of a Union of Events. Determine the variance of the number of letters that are placed in the correct envelopes.

Exercise 4.9.18

Suppose that the random variable XX has mean μ\mu and variance σ2\sigma^2. Show that the third central moment of XX can be expressed as E[X3]3μσ2μ3\mathbb{E}[X^3] − 3\mu \sigma^2 − \mu^3.

Exercise 4.9.19

Suppose that XX is a random variable with MGF ψ(t)\psi(t), mean μ\mu, and variance σ2\sigma^2; and let c(t)=log[ψ(t)]c(t) = \log[\psi(t)]. Prove that c(0)=μc'(0) = \mu and c(0)=σ2c''(0) = \sigma^2.

Exercise 4.9.20

Suppose that XX and YY have a joint distribution with means μX\mu_X and μY\mu_Y, standard deviations σX\sigma_X and σY\sigma_Y, and correlation ρ\rho. Show that if E[YX]\mathbb{E}[Y \mid X] is a linear function of XX, then

E[YX]=μY+ρσYσX(XμX).\mathbb{E}[Y \mid X] = \mu_Y + \rho \frac{\sigma_Y}{\sigma_X}(X - \mu_X).

Exercise 4.9.21

Suppose that XX and YY are random variables such that E[YX]=7(1/4)X\mathbb{E}[Y \mid X] = 7 − (1/4)X and E[XY]=10Y\mathbb{E}[X \mid Y] = 10 − Y. Determine the correlation of XX and YY.

Exercise 4.9.22

Suppose that a stick having a length of 3 feet is broken into two pieces, and that the point at which the stick is broken is chosen in accordance with the pdf f(x)f(x). What is the correlation between the length of the longer piece and the length of the shorter piece?

Exercise 4.9.23

Suppose that XX and YY have a joint distribution with correlation ρ>1/2\rho > 1/2 and that Var[X]=Var[Y]=1\text{Var}[X] = \text{Var}[Y] = 1. Show that b=12ρb = -\frac{1}{2\rho} is the unique value of bb such that the correlation of XX and X+bYX + bY is also ρ\rho.

Exercise 4.9.24

Suppose that four apartment buildings AA, BB, CC, and DD are located along a highway at the points 0, 1, 3, and 5, as shown in fig-4-1. Suppose also that 10 percent of the employees of a certain company live in building AA, 20 percent live in BB, 30 percent live in CC, and 40 percent live in DD.

(a) Where should the company build its new office in order to minimize the total distance that its employees must travel? (b) Where should the company build its new office in order to minimize the sum of the squared distances that its employees must travel?

Exercise 4.9.25

Suppose that XX and YY have the following joint pdf:

f(x,y)={8xyfor 0<y<x<1,0otherwise.f(x, y) = \begin{cases} 8xy &\text{for }0 < y < x < 1, \\ 0 &\text{otherwise.} \end{cases}

Suppose also that the observed value of XX is 0.2.

(a) What predicted value of YY has the smallest MSE? (b) What predicted value of YY has the smallest MAE?

Exercise 4.9.26

For all random variables XX, YY, and ZZ, let Cov[X,Yz]\text{Cov}[X, Y \mid z] denote the covariance of XX and YY in their conditional joint distribution given Z=zZ = z. Prove that

Cov[X,Y]=E[Cov[X,YZ]]+Cov[E[XZ],E[YZ]].\text{Cov}[X, Y] = \mathbb{E}[\text{Cov}[X, Y \mid Z]] + \text{Cov}[\mathbb{E}[X \mid Z], \mathbb{E}[Y \mid Z]].

Exercise 4.9.27

Consider the box of red and blue balls in Examples exr-4-2-4 and exr-4-2-5. Suppose that we sample N>1N > 1 balls with replacement, and let XX be the number of red balls in the sample. Then we sample NN balls without replacement, and we let YY be the number of red balls in the sample. Prove that Pr(X=N)>Pr(Y=N)\Pr(X = N) > \Pr(Y = N).

Exercise 4.9.28

Suppose that a person’s utility function is U(x)=x2U(x) = x^2 for x0x \geq 0. Show that the person will always prefer to take a gamble in which she will receive a random gain of XX dollars rather than receive the amount E[X]\mathbb{E}[X] with certainty, where Pr(X0)=1\Pr(X \geq 0) = 1 and E[X]<\mathbb{E}[X] < \infty.

Exercise 4.9.29

A person is given mm dollars, which he must allocate between an event AA and its complement AcA^c. Suppose that he allocates aa dollars to AA and mam − a dollars to AcA^c. The person’s gain is then determined as follows: If AA occurs, his gain is g1ag_1a; if AcA^c occurs, his gain is g2(ma)g_2(m − a). Here, g1g_1 and g2g_2 are given positive constants. Suppose also that Pr(A)=p\Pr(A) = p and the person’s utility function is U(x)=log(x)U(x) = \log(x) for x>0x > 0. Determine the amount aa that will maximize the person’s expected utility, and show that this amount does not depend on the values of g1g_1 and g2g_2.