Docsity

Problem Set 2 - Computational Finance | ECON 424, Assignments of Economics

Toggle sidebar
bg1
Eric Zivot
Econ 424
Fall 2008
Problem Set #2 Part I
Working with Random Variables and Probability Distributions
Due: Wednesday 10/8/08 at the beginning of class
Readings
• Ruppert, chapter 2, sections 1-17.
• My lecture notes on review of probability theory and random variables.
Programs and Data
• probReview.xls (on class syllabus and homework pages)
• probReview.r (on class syllabus and homework pages)
Instructions
In this lab you will become more familiar with random variables and probability
distributions. Try to do all of the calculations and plots in R. You will find the examples
in probReview.R to be helpful for some of the exercises that follow.
Exercises
1. Suppose X is a normally distributed random variable with mean 0.05 and variance
(0.10)2. Compute the following
• Pr(X > 0.10)
• Pr(X < -0.10)
• Pr(-0.05 < X < 0.15)
• 1% quantile, q.01
• 5% quantile, q.05
• 95% quantile q.95
• 99% quantile, q.99
Hint: you can use the R functions pnorm and qnorm to answer these questions.
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.
• Comment on the risk-return tradeoffs for the two stocks.
pf3

Partial preview of the text

Download Problem Set 2 - Computational Finance | ECON 424 and more Assignments Economics in PDF only on Docsity!

Eric Zivot Econ 424 Fall 2008

Problem Set #2 Part I Working with Random Variables and Probability Distributions Due: Wednesday 10/8/08 at the beginning of class

Readings

  • Ruppert, chapter 2, sections 1-17.
  • My lecture notes on review of probability theory and random variables.

Programs and Data

  • probReview.xls (on class syllabus and homework pages)
  • probReview.r (on class syllabus and homework pages)

Instructions

In this lab you will become more familiar with random variables and probability distributions. Try to do all of the calculations and plots in R. You will find the examples in probReview.R to be helpful for some of the exercises that follow.

Exercises

  1. Suppose X is a normally distributed random variable with mean 0.05 and variance (0.10) 2. Compute the following
    • Pr(X > 0.10)
    • Pr(X < -0.10)
    • Pr(-0.05 < X < 0.15)
    • 1% quantile, q (^).
    • 5% quantile, q (^).
    • 95% quantile q.
    • 99% quantile, q.

Hint : you can use the R functions pnorm and qnorm to answer these questions.

  1. 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.
    • Comment on the risk-return tradeoffs for the two stocks.
  1. Let R denote the simple monthly return on Microsoft stock and let W 0 denote initial wealth to be invested over the month. Assume that R ~ N(0.04, (0.09) 2 ) and that W 0 = $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.
  2. Let r denote the continuously compounded monthly return on Microsoft stock and let W 0 denote initial wealth to be invested over the month. Assume that r ~ iid N(0.04, (0.09) 2 ) and that W 0 = $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 continuously compounded return quantile to a simple return quantile using the transformation R = er − 1 )
    • Determine the 1% and 5% value-at-risk (VaR) over the year on the investment. Hint: to answer this question, you must determine the normal distribution that applies to the annual (12 month) continuously compounded return. This was done as an example in class.
  3. 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. 3 0 0.1 0.

a. 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). b. Compute COV(X,Y) and CORR(X,Y) f. Are X and Y independent? Fully justify your answer.

  1. Consider a one month investment in two Northwest stocks: Amazon and Costco. Suppose you buy Amazon and Costco at the end of September at PA t (^) , − 1 = $38.23, PC t , − 1 = $41.11and then sell at the end of the October for PA t (^) , = $41.29, PC t , = $41.74. (Note: these are actual closing prices for 2004 taken from

Yahoo!)

a. What are the simple monthly returns for the two stocks?

b. What are the continuously compounded returns for the two stocks?