Reference no: EM132363350
Statistics Assignment -
Instructions: It needs to be completed both in Excel and in R studio. We will need 2 files (Excel file and R files). Please see the instructions below.
Download the "Stocks data review the document" dataset. The dataset contains five years of monthly time series data of stocks listed in the S&P 500 (see fig. 1). The file includes columns for the following data:
- Date
- Ticker (combination of letters and numbers that identifies a security in an exchange)
- Company name
- CUSIP (an alphanumeric ID for each security)
- Monthly return
- End of month stock price
- Monthly traded volume (number of shares exchanged)
- 'sprtrn' - the monthly return of the S&P 500 index
Select one stock from the sample. For the return of this stock, do the following:
Calculate mean, median, mode, standard deviation, skewness and kurtosis.
Calculate mean and standard deviation of returns of the S&P 500 index. (Note that the same returns are copied over and over, and placed next to each stock, so you have to select a single run of 60 observations).
Answer the following questions:
Which has higher average returns, the stock you picked or the index?
Which is riskier? (i.e.: more volatile / higher standard deviation).
Generate a scatter plot with the returns of your selected stock in the y-axis and the returns of the S&P 500 in the x-axis. Just looking at the scatter plot, can you tell whether there's a relationship between these two variables?
Probability - Using the same data as above, do the following:
Select a single stock from the sample. You are allowed to use the same stock you studied in Part I.
Calculate (or copy) the stock's mean and standard deviation.
Assume that the stock returns follow a normal distribution, with mean and standard deviation you calculated.
If you were to invest in that stock, what is the probability that you lose money? That is, what is the probability of obtaining a negative return?
What is the probability of earning at least 10%? 25%? 50%?
What is the probability of doubling your money? (i.e.: return of 100% or more)
Repeat this analysis for the S&P500 Index.
Deliverables -
IMPORTANT: The analyses described above in Statistics points 2.1, 2.2, and 4, and Probability, must be made using BOTH, Excel and R.
To complete this assignment, upload the following deliverables:
Excel spreadsheet with your calculations (tidiness, please!)
R program file. I will check for functionality by running your code in my PC, so make sure it works! (Except for the path to the data file, which I will change to reflect its location in my system)
Brief summary report in a Word or PDF file containing the answers/calculations requested in Statistics points 2, 3 and 4, and Probability.
Attachment:- Statistics Assignment Files.rar