2.5 Problems: Review of Random Variables
Exercise 2.1 Suppose X is a normally distributed random variable with mean 0.05
and variance (0.10)2. That is, X∼N(0.05,(0,10)2).
Use the and
qnorm()
functions in R to compute
the following:
- Pr(X≥0.10),~Pr(X≤−0.10).
- Pr(−0.05≤X≤0.15).
- 1% and 5% quantiles, qR0.01 and qR0.05.
- 95% and 99% quantiles, qR0.95 and qR0.99.
Exercise 2.2 Let X denote the monthly return on Microsoft Stock and let Y
denote the monthly return on Starbucks stock. Assume that X∼N(0.05,(0.10)2)
and Y∼N(0.025,(0.05)2).
- Using a grid of values between −0.25 and 0.35, plot the normal curves for X and Y. Make sure that both normal curves are on the same plot.
- Plot the points (σX,μX)=(0.10,0.05) and (σY,μY)=(0.05,0.025) in an x-y plot.
- Comment on the risk-return tradeoffs for the two stocks.
Exercise 2.3 Let X1,X2,Y1, and Y2 be random variables.
- Show that Cov(X1+X2,Y1+Y2)=Cov(X1,Y1)+Cov(X1,Y2)+Cov(X2,Y1)+Cov(X2,Y2).
Exercise 2.4 Let X be a random variable with var(X)<∞.
- Show that var(X)=E[(X−μX)2]=E[X2]−μ2X.
Exercise 2.5 Let X and Y be a random variables such that cov(X,Y)<∞.
- If Y=aX+b where a>0 show that ρXY=cor(X,Y)=1.
- If Y=aX+b where a<0 show that ρXY=cor(X,Y)=−1.
Exercise 2.6 Let R denote the simple monthly return on Microsoft stock and let
W0 denote initial wealth to be invested over the month. Assume
that R∼N(0.04,(0.09)2) and that W0=$100,000.
- Determine the 1% and 5% Value-at-Risk (VaR) over the month on the investment. That is, determine the loss in investment value that may occur over the next month with 1% probability and with 5% probability.
Exercise 2.7 Let Rt denote the simple monthly return and assume Rt∼iidN(μ,σ2).
Consider the 2-period return Rt(2)=(1+Rt)(1+Rt−1)−1.
- Assuming that cov(Rt,Rt−1)=0, show that E[RtRt−1]=μ2. Hint: use cov(Rt,Rt−1)=E[RtRt−1]−E[Rt]E[Rt−1].
- Show that E[Rt(2)]=(1+μ2)−1.
- Is Rt(2) normally distributed? Justify your answer.
Exercise 2.8 Let r denote the continuously compounded monthly return on Microsoft
stock and let W0 denote initial wealth to be invested over the
month. Assume that r∼iidN(0.04,(0.09)2) and that W0=$100,000.
- Determine the 1% and 5% value-at-risk (VaR) over the month on the investment. That is, determine the loss in investment value that may occur over the next month with 1% probability and with 5% probability. (Hint: compute the 1% and 5% quantile from the Normal distribution for r and then convert the continuously compounded return quantile to a simple return quantile using the transformation R=er−1.)
- Let r(12)=r1+r2+⋯+r12 denote the 12-month (annual) continuously compounded return. Compute E[r(12)], var(r(12)) and sd(r(12)). What is the probability distribution of r(12)?
- Using the probability distribution for r(12), determine the 1% and 5% value-at-risk (VaR) over the year on the investment.
Exercise 2.9 Let RVFINX and RAAPL denote the monthly simple returns
on VFINX (Vanguard S&P 500 index) and AAPL (Apple stock). Suppose
that RVFINX∼i.i.d.N(0.013,(0.037)2), RAAPL∼i.i.d.N(0.028,(0.073)2).
- Sketch the normal distributions for the two assets on the same graph. Show the mean values and the ranges within 2 standard deviations of the mean. Which asset appears to be more risky?
- Plot the risk-return tradeoff for the two assets. That is, plot the mean values of each asset on the y-axis and the standard deviations on the x-axis. Comment on the relationship.
- Let W0=$1,000 be the initial wealth invested in each asset. Compute the 1% monthly Value-at-Risk values for each asset. (Hint: qZ0.01=−2.326).
- Continue with the above question, state in words what the 1% Value-at-Risk numbers represent (i.e., explain what 1% Value-at-Risk for a one month $1,000 investment means).
- The normal distribution can be used to characterize the probability distribution of monthly simple returns or monthly continuously compounded returns. What are two problems with using the normal distribution for simple returns? Given these two problems, why might it be better to use the normal distribution for continuously compounded returns?
Exercise 2.10 In this question, you will examine the chi-square and Students
t distributions. A chi-square random variable with n degrees of
freedom, denoted X∼χ2n, is defined as X=Z21+Z22+⋯+Z2n
where Z1,Z2,…,Zn are iidN(0,1) random variables.
Notice that X only takes positive values. A Student’s t random
variable with n degrees of freedom, denoted t∼tn, is
defined as t=Z/√X/n, where Z∼N(0,1), X∼χ2n
and Z is independent of X. The Student’s t distribution is similar
to the standard normal except that it has fatter tails.
- On the same graph, plot the probability curves of chi-squared distributed random variables with 1, 2, 5 and 10 degrees of freedom. Use different colors and line styles for each curve. Hint: In R the density of the chi-square distribution is computed using the function
dchisq()
. - On the same graph, plot the probability curves of Student’s t distributed random variables with 1, 2, 5 and 10 degrees of freedom. Also include the probability curve for the standard normal distribution. Use different colors and line styles for each curve. Hint: In R the density of the chi-square distribution is computed using the function
dt()
.
Exercise 2.11 Consider the following joint distribution of X and Y:
X/Y | 1 | 2 | 3 |
---|---|---|---|
1 | 0.1 | 0.2 | 0 |
2 | 0.1 | 0 | 0.2 |
3 | 0 | 0.1 | 0.3 |
- Find the marginal distributions of X and Y. Using these distributions, compute E[X], var(X), sd(X), E[Y], var(Y) and sd(Y).
- Compute cov(X,Y) and cor(X,Y).
- Find the conditional distributions Pr(X|Y=y) for y=1,2,3 and the conditional distributions Pr(Y|X=x) for x=1,2,3.
- Using the conditional distributions Pr(X|Y=y) for y=1,2,3 and Pr(Y|X=x) for x=1,2,3 compute E[X|Y=y] and E[Y|X=x].
- Using the conditional distributions Pr(X|Y=y) for y=1,2,3 and Pr(Y|X=x) for x=1,2,3 compute var[X|Y=y] and var[Y|X=x].
- Are X and Y independent? Fully justify your answer.
Exercise 2.12 Let X and Y be distributed bivariate normal with μX=0.05,
μY=0.025, σX=0.10, and σY=0.05.
- Using R package mvtnorm function
rmvnorm()
, simulate 100 observations from the bivariate normal distribution with ρXY=0.9. Using theplot()
function create a scatterplot of the observations and comment on the direction and strength of the linear association. Using the functionpmvnorm()
, compute the joint probability Pr(X≤,Y≤0). - Using R package mvtnorm function
rmvnorm()
, simulate 100 observations from the bivariate normal distribution with ρXY=−0.9. Using theplot()
function create a scatterplot of the observations and comment on the direction and strength of the linear association. Using the functionpmvnorm()
, compute the joint probability Pr(X≤,Y≤0). - Using R package mvtnorm function
rmvnorm()
, simulate 100 observations from the bivariate normal distribution with ρXY=0. Using theplot()
function create a scatterplot of the observations and comment on the direction and strength of the linear association. Using the functionpmvnorm()
, compute the joint probability Pr(X≤,Y≤0).