# Financial Stats Homework Assignment

Need help with this question or any other R homework assignment task or project?

## Popular Services

Post your project now for free and watch professional homework help experts outbid each other in just a few minutes.

## Financial Stats Homework Assignment

Modified
Viewed 8
See Details in files attached. Please knit any and all results to a pdf and an RMD file. ////////////////////////////////////////////////////////////

This order does not have tags, yet.

Homework 2 FA-542 Due: February 27, 2022 at 5PM Problem 1 (30pt) Suppose that the daily log return of a security follows the AR(2) model: rt = 0.1− 0.5rt−2 + at where at is a Gaussian white noise series with mean zeros and variance 0.2. (i) What are the mean and variance of the return series rt? (ii) Compute the lag-1 and lag-2 autocorrelations of rt. (iii) Assume that r100 = 0.2 and r99 = 0.05. Compute the 1- and 2-step ahead forecasts of the return series at the forecast origin t = 100. What are the associated standard deviations of the forecast errors? (iv) In R create a report in pdf format using RMarkdown (or, if you choose to use Python instead, create a Jupyter notebook) to: (a) Simulate 1000 terms of this time series with r0 = 0.2 and r−1 = 0.05. (b) Using the generated time series, find the sample mean and variance. How do these values compare with those computed analytically? (c) Using the generated time series, find the sample lag-1 and lag-2 autocorrelations. How do these values compare with those computed analytically? (d) Consider how you might use repeated simulations to forecast this time series. Use your method with 1000 repeated simulations of the time series to forecast the 1- and 2-step ahead returns with rt = 0.2 and rt−1 = 0.05. What is the sample standard deviation? How do these values compare with those computed analytically? Problem 2 (30pt) Suppose that the simple return of a monthly bond index follows the MA(1) model: Rt = at − 0.1at−1 where at is a Gaussian white noise series with mean zero and variance 0.01. (i) What are the mean and variance of the return series Rt? 1 (ii) Compute the lag-1 and lag-2 autocorrelations of Rt. (iii) Assume that a100 = 0.01. Compute the 1- and 2-step ahead forecasts of the return series at the forecast origin t = 100. What are the associated standard deviations of the forecast errors? (iv) In R create a report in pdf format using RMarkdown (or, if you choose to use Python instead, create a Jupyter notebook) to: (a) Simulate 1000 terms of this time series. (b) Using the generated time series, find the sample mean and variance. How do these values compare with those computed analytically? (c) Using the generated time series, find the sample lag-1 and lag-2 autocorrelations. How do these values compare with those computed analytically? (d) Consider how you might use repeated simulations to forecast this time series. Use your method with 1000 repeated simulations of the time series to forecast the 1- and 2-step ahead returns with at = 0.01. What is the sample standard deviation? How do these values compare with those computed analytically? Problem 3 (40pt) In R create a report in pdf format using RMarkdown (or, if you choose to use Python instead, create a Jupyter notebook) to: (i) Import the monthly yields of Moody’s Aaa seasoned bonds from January 1962 to De- cember 2021 from homework02.csv provided on Canvas. The data are obtained from the Federal Reserve Bank of St. Louis. Monthly yields are averages of daily yields. (ii) Obtain the summary statistics (sample mean, standard deviation, skewness, excess kurtosis) of this yield series. (iii) Build a time series model for this data. Evaluate its performance. Justify your choices. 2 DATE AAA 1962-01-01 4.42 1962-02-01 4.42 1962-03-01 4.39 1962-04-01 4.33 1962-05-01 4.28 1962-06-01 4.28 1962-07-01 4.34 1962-08-01 4.35 1962-09-01 4.32 1962-10-01 4.28 1962-11-01 4.25 1962-12-01 4.24 1963-01-01 4.21 1963-02-01 4.19 1963-03-01 4.19 1963-04-01 4.21 1963-05-01 4.22 1963-06-01 4.23 1963-07-01 4.26 1963-08-01 4.29 1963-09-01 4.31 1963-10-01 4.32 1963-11-01 4.33 1963-12-01 4.35 1964-01-01 4.39 1964-02-01 4.36 1964-03-01 4.38 1964-04-01 4.40 1964-05-01 4.41 1964-06-01 4.41 1964-07-01 4.40 1964-08-01 4.41 1964-09-01 4.42 1964-10-01 4.42 1964-11-01 4.43 1964-12-01 4.44 1965-01-01 4.43 1965-02-01 4.41 1965-03-01 4.42 1965-04-01 4.43 1965-05-01 4.44 1965-06-01 4.46 1965-07-01 4.48 1965-08-01 4.49 1965-09-01 4.52 1965-10-01 4.56 1965-11-01 4.60 1965-12-01 4.68 1966-01-01 4.74 1966-02-01 4.78 1966-03-01 4.92 1966-04-01 4.96 1966-05-01 4.98 1966-06-01 5.07 1966-07-01 5.16 1966-08-01 5.31 1966-09-01 5.49 1966-10-01 5.41 1966-11-01 5.35 1966-12-01 5.39 1967-01-01 5.20 1967-02-01 5.03 1967-03-01 5.13 1967-04-01 5.11 1967-05-01 5.24 1967-06-01 5.44 1967-07-01 5.58 1967-08-01 5.62 1967-09-01 5.65 1967-10-01 5.82 1967-11-01 6.07 1967-12-01 6.19 1968-01-01 6.17 1968-02-01 6.10 1968-03-01 6.11 1968-04-01 6.21 1968-05-01 6.27 1968-06-01 6.28 1968-07-01 6.24 1968-08-01 6.02 1968-09-01 5.97 1968-10-01 6.09 1968-11-01 6.19 1968-12-01 6.45 1969-01-01 6.59 1969-02-01 6.66 1969-03-01 6.85 1969-04-01 6.89 1969-05-01 6.79 1969-06-01 6.98 1969-07-01 7.08 1969-08-01 6.97 1969-09-01 7.14 1969-10-01 7.33 1969-11-01 7.35 1969-12-01 7.72 1970-01-01 7.91 1970-02-01 7.93 1970-03-01 7.84 1970-04-01 7.83 1970-05-01 8.11 1970-06-01 8.48 1970-07-01 8.44 1970-08-01 8.13 1970-09-01 8.09 1970-10-01 8.03 1970-11-01 8.05 1970-12-01 7.64 1971-01-01 7.36 1971-02-01 7.08 1971-03-01 7.21 1971-04-01 7.25 1971-05-01 7.53 1971-06-01 7.64 1971-07-01 7.64 1971-08-01 7.59 1971-09-01 7.44 1971-10-01 7.39 1971-11-01 7.26 1971-12-01 7.25 1972-01-01 7.19 1972-02-01 7.27 1972-03-01 7.24 1972-04-01 7.30 1972-05-01 7.30 1972-06-01 7.23 1972-07-01 7.21 1972-08-01 7.19 1972-09-01 7.22 1972-10-01 7.21 1972-11-01 7.12 1972-12-01 7.08 1973-01-01 7.15 1973-02-01 7.22 1973-03-01 7.29 1973-04-01 7.26 1973-05-01 7.29 1973-06-01 7.37 1973-07-01 7.45 1973-08-01 7.68 1973-09-01 7.63 1973-10-01 7.60 1973-11-01 7.67 1973-12-01 7.68 1974-01-01 7.83 1974-02-01 7.85 1974-03-01 8.01 1974-04-01 8.25 1974-05-01 8.37 1974-06-01 8.47 1974-07-01 8.72 1974-08-01 9.00 1974-09-01 9.24 1974-10-01 9.27 1974-11-01 8.89 1974-12-01 8.89 1975-01-01 8.83 1975-02-01 8.62 1975-03-01 8.67 1975-04-01 8.95 1975-05-01 8.90 1975-06-01 8.77 1975-07-01 8.84 1975-08-01 8.95 1975-09-01 8.95 1975-10-01 8.86 1975-11-01 8.78 1975-12-01 8.79 1976-01-01 8.60 1976-02-01 8.55 1976-03-01 8.52 1976-04-01 8.40 1976-05-01 8.58 1976-06-01 8.62 1976-07-01 8.56 1976-08-01 8.45 1976-09-01 8.38 1976-10-01 8.32 1976-11-01 8.25 1976-12-01 7.98 1977-01-01 7.96 1977-02-01 8.04 1977-03-01 8.10 1977-04-01 8.04 1977-05-01 8.05 1977-06-01 7.95 1977-07-01 7.94 1977-08-01 7.98 1977-09-01 7.92 1977-10-01 8.04 1977-11-01 8.08 1977-12-01 8.19 1978-01-01 8.41 1978-02-01 8.47 1978-03-01 8.47 1978-04-01 8.56 1978-05-01 8.69 1978-06-01 8.76 1978-07-01 8.88 1978-08-01 8.69 1978-09-01 8.69 1978-10-01 8.89 1978-11-01 9.03 1978-12-01 9.16 1979-01-01 9.25 1979-02-01 9.26 1979-03-01 9.37 1979-04-01 9.38 1979-05-01 9.50 1979-06-01 9.29 1979-07-01 9.20 1979-08-01 9.23 1979-09-01 9.44 1979-10-01 10.13 1979-11-01 10.76 1979-12-01 10.74 1980-01-01 11.09 1980-02-01 12.38 1980-03-01 12.96 1980-04-01 12.04 1980-05-01 10.99 1980-06-01 10.58 1980-07-01 11.07 1980-08-01 11.64 1980-09-01 12.02 1980-10-01 12.31 1980-11-01 12.97 1980-12-01 13.21 1981-01-01 12.81 1981-02-01 13.35 1981-03-01 13.33 1981-04-01 13.88 1981-05-01 14.32 1981-06-01 13.75 1981-07-01 14.38 1981-08-01 14.89 1981-09-01 15.49 1981-10-01 15.40 1981-11-01 14.22 1981-12-01 14.23 1982-01-01 15.18 1982-02-01 15.27 1982-03-01 14.58 1982-04-01 14.46 1982-05-01 14.26 1982-06-01 14.81 1982-07-01 14.61 1982-08-01 13.71 1982-09-01 12.94 1982-10-01 12.12 1982-11-01 11.68 1982-12-01 11.83 1983-01-01 11.79 1983-02-01 12.01 1983-03-01 11.73 1983-04-01 11.51 1983-05-01 11.46 1983-06-01 11.74 1983-07-01 12.15 1983-08-01 12.51 1983-09-01 12.37 1983-10-01 12.25 1983-11-01 12.41 1983-12-01 12.57 1984-01-01 12.20 1984-02-01 12.08 1984-03-01 12.57 1984-04-01 12.81 1984-05-01 13.28 1984-06-01 13.55 1984-07-01 13.44 1984-08-01 12.87 1984-09-01 12.66 1984-10-01 12.63 1984-11-01 12.29 1984-12-01 12.13 1985-01-01 12.08 1985-02-01 12.13 1985-03-01 12.56 1985-04-01 12.23 1985-05-01 11.72 1985-06-01 10.94 1985-07-01 10.97 1985-08-01 11.05 1985-09-01 11.07 1985-10-01 11.02 1985-11-01 10.55 1985-12-01 10.16 1986-01-01 10.05 1986-02-01 9.67 1986-03-01 9.00 1986-04-01 8.79 1986-05-01 9.09 1986-06-01 9.13 1986-07-01 8.88 1986-08-01 8.72 1986-09-01 8.89 1986-10-01 8.86 1986-11-01 8.68 1986-12-01 8.49 1987-01-01 8.36 1987-02-01 8.38 1987-03-01 8.36 1987-04-01 8.85 1987-05-01 9.33 1987-06-01 9.32 1987-07-01 9.42 1987-08-01 9.67 1987-09-01 10.18 1987-10-01 10.52 1987-11-01 10.01 1987-12-01 10.11 1988-01-01 9.88 1988-02-01 9.40 1988-03-01 9.39 1988-04-01 9.67 1988-05-01 9.90 1988-06-01 9.86 1988-07-01 9.96 1988-08-01 10.11 1988-09-01 9.82 1988-10-01 9.51 1988-11-01 9.45 1988-12-01 9.57 1989-01-01 9.62 1989-02-01 9.64 1989-03-01 9.80 1989-04-01 9.79 1989-05-01 9.57 1989-06-01 9.10 1989-07-01 8.93 1989-08-01 8.96 1989-09-01 9.01 1989-10-01 8.92 1989-11-01 8.89 1989-12-01 8.86 1990-01-01 8.99 1990-02-01 9.22 1990-03-01 9.37 1990-04-01 9.46 1990-05-01 9.47 1990-06-01 9.26 1990-07-01 9.24 1990-08-01 9.41 1990-09-01 9.56 1990-10-01 9.53 1990-11-01 9.30 1990-12-01 9.05 1991-01-01 9.04 1991-02-01 8.83 1991-03-01 8.93 1991-04-01 8.86 1991-05-01 8.86 1991-06-01 9.01 1991-07-01 9.00 1991-08-01 8.75 1991-09-01 8.61 1991-10-01 8.55 1991-11-01 8.48 1991-12-01 8.31 1992-01-01 8.20 1992-02-01 8.29 1992-03-01 8.35 1992-04-01 8.33 1992-05-01 8.28 1992-06-01 8.22 1992-07-01 8.07 1992-08-01 7.95 1992-09-01 7.92 1992-10-01 7.99 1992-11-01 8.10 1992-12-01 7.98 1993-01-01 7.91 1993-02-01 7.71 1993-03-01 7.58 1993-04-01 7.46 1993-05-01 7.43 1993-06-01 7.33 1993-07-01 7.17 1993-08-01 6.85 1993-09-01 6.66 1993-10-01 6.67 1993-11-01 6.93 1993-12-01 6.93 1994-01-01 6.92 1994-02-01 7.08 1994-03-01 7.48 1994-04-01 7.88 1994-05-01 7.99 1994-06-01 7.97 1994-07-01 8.11 1994-08-01 8.07 1994-09-01 8.34 1994-10-01 8.57 1994-11-01 8.68 1994-12-01 8.46 1995-01-01 8.46 1995-02-01 8.26 1995-03-01 8.12 1995-04-01 8.03 1995-05-01 7.65 1995-06-01 7.30 1995-07-01 7.41 1995-08-01 7.57 1995-09-01 7.32 1995-10-01 7.12 1995-11-01 7.02 1995-12-01 6.82 1996-01-01 6.81 1996-02-01 6.99 1996-03-01 7.35 1996-04-01 7.50 1996-05-01 7.62 1996-06-01 7.71 1996-07-01 7.65 1996-08-01 7.46 1996-09-01 7.66 1996-10-01 7.39 1996-11-01 7.10 1996-12-01 7.20 1997-01-01 7.42 1997-02-01 7.31 1997-03-01 7.55 1997-04-01 7.73 1997-05-01 7.58 1997-06-01 7.41 1997-07-01 7.14 1997-08-01 7.22 1997-09-01 7.15 1997-10-01 7.00 1997-11-01 6.87 1997-12-01 6.76 1998-01-01 6.61 1998-02-01 6.67 1998-03-01 6.72 1998-04-01 6.69 1998-05-01 6.69 1998-06-01 6.53 1998-07-01 6.55 1998-08-01 6.52 1998-09-01 6.40 1998-10-01 6.37 1998-11-01 6.41 1998-12-01 6.22 1999-01-01 6.24 1999-02-01 6.40 1999-03-01 6.62 1999-04-01 6.64 1999-05-01 6.93 1999-06-01 7.23 1999-07-01 7.19 1999-08-01 7.40 1999-09-01 7.39 1999-10-01 7.55 1999-11-01 7.36 1999-12-01 7.55 2000-01-01 7.78 2000-02-01 7.68 2000-03-01 7.68 2000-04-01 7.64 2000-05-01 7.99 2000-06-01 7.67 2000-07-01 7.65 2000-08-01 7.55 2000-09-01 7.62 2000-10-01 7.55 2000-11-01 7.45 2000-12-01 7.21 2001-01-01 7.15 2001-02-01 7.10 2001-03-01 6.98 2001-04-01 7.20 2001-05-01 7.29 2001-06-01 7.18 2001-07-01 7.13 2001-08-01 7.02 2001-09-01 7.17 2001-10-01 7.03 2001-11-01 6.97 2001-12-01 6.77 2002-01-01 6.55 2002-02-01 6.51 2002-03-01 6.81 2002-04-01 6.76 2002-05-01 6.75 2002-06-01 6.63 2002-07-01 6.53 2002-08-01 6.37 2002-09-01 6.15 2002-10-01 6.32 2002-11-01 6.31 2002-12-01 6.21 2003-01-01 6.17 2003-02-01 5.95 2003-03-01 5.89 2003-04-01 5.74 2003-05-01 5.22 2003-06-01 4.97 2003-07-01 5.49 2003-08-01 5.88 2003-09-01 5.72 2003-10-01 5.70 2003-11-01 5.65 2003-12-01 5.62 2004-01-01 5.54 2004-02-01 5.50 2004-03-01 5.33 2004-04-01 5.73 2004-05-01 6.04 2004-06-01 6.01 2004-07-01 5.82 2004-08-01 5.65 2004-09-01 5.46 2004-10-01 5.47 2004-11-01 5.52 2004-12-01 5.47 2005-01-01 5.36 2005-02-01 5.20 2005-03-01 5.40 2005-04-01 5.33 2005-05-01 5.15 2005-06-01 4.96 2005-07-01 5.06 2005-08-01 5.09 2005-09-01 5.13 2005-10-01 5.35 2005-11-01 5.42 2005-12-01 5.37 2006-01-01 5.29 2006-02-01 5.35 2006-03-01 5.53 2006-04-01 5.84 2006-05-01 5.95 2006-06-01 5.89 2006-07-01 5.85 2006-08-01 5.68 2006-09-01 5.51 2006-10-01 5.51 2006-11-01 5.33 2006-12-01 5.32 2007-01-01 5.40 2007-02-01 5.39 2007-03-01 5.30 2007-04-01 5.47 2007-05-01 5.47 2007-06-01 5.79 2007-07-01 5.73 2007-08-01 5.79 2007-09-01 5.74 2007-10-01 5.66 2007-11-01 5.44 2007-12-01 5.49 2008-01-01 5.33 2008-02-01 5.53 2008-03-01 5.51 2008-04-01 5.55 2008-05-01 5.57 2008-06-01 5.68 2008-07-01 5.67 2008-08-01 5.64 2008-09-01 5.65 2008-10-01 6.28 2008-11-01 6.12 2008-12-01 5.05 2009-01-01 5.05 2009-02-01 5.27 2009-03-01 5.50 2009-04-01 5.39 2009-05-01 5.54 2009-06-01 5.61 2009-07-01 5.41 2009-08-01 5.26 2009-09-01 5.13 2009-10-01 5.15 2009-11-01 5.19 2009-12-01 5.26 2010-01-01 5.26 2010-02-01 5.35 2010-03-01 5.27 2010-04-01 5.29 2010-05-01 4.96 2010-06-01 4.88 2010-07-01 4.72 2010-08-01 4.49 2010-09-01 4.53 2010-10-01 4.68 2010-11-01 4.87 2010-12-01 5.02 2011-01-01 5.04 2011-02-01 5.22 2011-03-01 5.13 2011-04-01 5.16 2011-05-01 4.96 2011-06-01 4.99 2011-07-01 4.93 2011-08-01 4.37 2011-09-01 4.09 2011-10-01 3.98 2011-11-01 3.87 2011-12-01 3.93 2012-01-01 3.85 2012-02-01 3.85 2012-03-01 3.99 2012-04-01 3.96 2012-05-01 3.80 2012-06-01 3.64 2012-07-01 3.40 2012-08-01 3.48 2012-09-01 3.49 2012-10-01 3.47 2012-11-01 3.50 2012-12-01 3.65 2013-01-01 3.80 2013-02-01 3.90 2013-03-01 3.93 2013-04-01 3.73 2013-05-01 3.89 2013-06-01 4.27 2013-07-01 4.34 2013-08-01 4.54 2013-09-01 4.64 2013-10-01 4.53 2013-11-01 4.63 2013-12-01 4.62 2014-01-01 4.49 2014-02-01 4.45 2014-03-01 4.38 2014-04-01 4.24 2014-05-01 4.16 2014-06-01 4.25 2014-07-01 4.16 2014-08-01 4.08 2014-09-01 4.11 2014-10-01 3.92 2014-11-01 3.92 2014-12-01 3.79 2015-01-01 3.46 2015-02-01 3.61 2015-03-01 3.64 2015-04-01 3.52 2015-05-01 3.98 2015-06-01 4.19 2015-07-01 4.15 2015-08-01 4.04 2015-09-01 4.07 2015-10-01 3.95 2015-11-01 4.06 2015-12-01 3.97 2016-01-01 4.00 2016-02-01 3.96 2016-03-01 3.82 2016-04-01 3.62 2016-05-01 3.65 2016-06-01 3.50 2016-07-01 3.28 2016-08-01 3.32 2016-09-01 3.41 2016-10-01 3.51 2016-11-01 3.86 2016-12-01 4.06 2017-01-01 3.92 2017-02-01 3.95 2017-03-01 4.01 2017-04-01 3.87 2017-05-01 3.85 2017-06-01 3.68 2017-07-01 3.7 2017-08-01 3.63 2017-09-01 3.63 2017-10-01 3.6 2017-11-01 3.57 2017-12-01 3.51 2018-01-01 3.55 2018-02-01 3.82 2018-03-01 3.87 2018-04-01 3.85 2018-05-01 4.0 2018-06-01 3.96 2018-07-01 3.87 2018-08-01 3.88 2018-09-01 3.98 2018-10-01 4.14 2018-11-01 4.22 2018-12-01 4.02 2019-01-01 3.93 2019-02-01 3.79 2019-03-01 3.77 2019-04-01 3.69 2019-05-01 3.67 2019-06-01 3.42 2019-07-01 3.29 2019-08-01 2.98 2019-09-01 3.03 2019-10-01 3.01 2019-11-01 3.06 2019-12-01 3.01 2020-01-01 2.94 2020-02-01 2.78 2020-03-01 3.02 2020-04-01 2.43 2020-05-01 2.5 2020-06-01 2.44 2020-07-01 2.14 2020-08-01 2.25 2020-09-01 2.31 2020-10-01 2.35 2020-11-01 2.3 2020-12-01 2.26 2021-01-01 2.45 2021-02-01 2.7 2021-03-01 3.04 2021-04-01 2.9 2021-05-01 2.96 2021-06-01 2.79 2021-07-01 2.57 2021-08-01 2.55 2021-09-01 2.53 2021-10-01 2.68 2021-11-01 2.62 2021-12-01 2.65

0