Need help on R studio for my Quantitative Methods finance class 1. Download the daily data of
Question:
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/06/667b1801bde77_105667b1801a8cce.jpg)
Need help on R studio for my Quantitative Methods finance class
1. Download the daily data of SPDR S&P MidCap 400 ETF from July 31 to August 31 2013, from finance.yahoo.com. The ticker symbol is MDY. Use the column of data corresponding to "Adjusted prices" in the following questions: a) Compute the daily percentage returns for August 2013 b) Use a), compute sample mean, median, volatility, skewness and kurtosis of the daily returns. Comment on your findings. c) Draw histogram AND boxplot based on the returns from a). Comment on your graphs. d) Assuming the risk-free rate is zero, what is the Sharpe ratio of MDY's daily returns in August 2013? e) Assuming the daily returns from a) follow normal distribution, what is its value-at-risk measure at 5% level?
2. Below are the annual rates of return for Merck stock and the S&P 500 from 1989 to 2009. Draw time plot of the annual returns (both time series on the same plot). Compare the returns' time series, and compare the risks and returns for holding Merck versus holding S&P 500 during the sample time period. Comment. Year MRK S&P 500 1989 0.3715 0.2146 1990 0.1854 0.0364 1991 0.8786 0.1243 1992 -0.7338 0.1052 1993 -0.183 0.0858 1994 0.1424 0.02 1995 0.7539 0.1766 1996 0.2353 0.2377 1997 0.3525 0.3027 1998 0.4097 0.2428 1999 -0.5371 0.2228 2000 0.4119 0.0753 2001 -0.3575 -0.1633 2002 -0.0133 -0.1677 2003 -0.1583 -0.0289 2004 -0.272 0.1714 2005 0.0369 0.0677 2006 0.4183 0.0855 2007 0.3674 0.1272 2008 -0.4508 -0.1741 2009 0.2541 -0.2229
3. The Global Positioning System (GPS) used satellites to transit microwave signals that enable enable GPS receivers to determine the exact location of he receiver. Here are the market shares for the major GPS receiver brands sold in the United States. a) What are the variables in the above data? Are they categorical or quantitative variable? b) Use r to display the data in a bar chart as well as in a pie chart.
4. Treasury bills, also known as T-bills, are short-term debt obligation issued by the U.S. Department of the Treasury. The data set, "tbillrates.txt", contains the (annual) interest rates for T-Bills from December 12, 1958, to October 3, 2008. a) Use r to display the data in T-bill interest rates with a histogram b) Use r to display the T-bill rates in a time series plot.
You can see the questions from Page 31-35
![image text in transcribed](https://s3.amazonaws.com/si.experts.images/answers/2024/06/667b180237830_106667b18020f185.jpg)