Question

In: Statistics and Probability

1. Using R, construct time series (line) plots for both stock prices and return series. R...

1. Using R, construct time series (line) plots for both stock prices and return series. R functions ts.plot or plot can create the plot. Describe the patterns and compare the plots.


2. Based on the return series, can we claim that the mean Amazon return series is higher than that of Google?

a. What would be an appropriate test of the claim above? Explain.
b. Write the null and alternative hypotheses.
c. Using R, perform the test.
d. Write the decision in the problem context.

Take the screenshots of the R graphs and output as well as the code.

The file needed for this assignment can be found here: drive.google.com/file/d/1-JQz8vy61IJF_d2Qr3g4gvbDxIZODQji/view?usp=sharing

Solutions

Expert Solution

We can use a t-test to find whether the Amazon returns are higher than Google returns

Let X denotes the difference in Amazon stock and Google stock return

E(X)=mu

Since the p-value is less than 0.05, at 5% level of significance we can conclude that amazon stock returns are higher than google stock returns


Related Solutions

Can someone show me the R code to accomplish this? In R, Construct scatter plots of...
Can someone show me the R code to accomplish this? In R, Construct scatter plots of y versus x, y versus ln(x), ln(y) versus ln(x) and 1/y versus 1/x. Include your R code in a separate file. The article “Reduction in Soluble Protein and Chlorophyll Contents in a Few Plants as Indicators of Automobile Exhaust Pollution” (Intl. J. of Environ. Studies, 1983: 239-244) reported the accompanying data on x distance from a highway (meters) and y lead content of soil...
Part (A): Using R to show how to decompose the seasonal time series data and then...
Part (A): Using R to show how to decompose the seasonal time series data and then subtract that effect from the data. This assignment is to practice using R to learn how to decompose seasonal time series data. Please use the data set in “A Little of R for Time Series” Section 2.4 (p.20): • > births <-scan("http://robjhyndman.com/tsdldata/data/nybirths.dat") > birthstimeseries <-  ts(births, frequency=12, start=c(1946,1)) > birthstimeseries • Then you can use the following to show how you can decompose the time...
(1) What two plots might you use to check whether a given time series is stationary?...
(1) What two plots might you use to check whether a given time series is stationary? How are they used? (2) What plot might you use to determine the order of an MA process? What plot might you use to determine the order of an AR process? How are they used? (3) After fitting a time series model, what two plots might you use to assess whether the fitted model is appropriate? How are they used?
(a) Construct a time series plot. (b)Develop the three-week moving average forecasts for this time series.
Consider the following time series data. Week 1 2 3 4 5 6 Value 17 12 14 10 16 13 (a) Construct a time series plot. (b)Develop the three-week moving average forecasts for this time series. (Round your answers to two decimal places.) Week Time Series Value Forecast 1 17 2 12 3 14 4 10 5 16 6 13 Compute MSE. (Round your answer to two decimal places.) MSE = What is the forecast for week 7? (c) Use...
The following graph plots the current security market line (SML) and indicates the return that investors require from holding stock from Happy Corp.
Changes to the security market lineThe following graph plots the current security market line (SML) and indicates the return that investors require from holding stock from Happy Corp. (HC). Based on the graph, complete the table that follows:00.51.01.52.020.016.012.08.04.00REQUIRED RATE OF RETURN (Percent)RISK (Beta)Return on HC's StockCAPM ElementsValueRisk-free rate (rRFrRF)  Market risk premium (RPMRPM)  Happy Corp. stock’s beta  Required rate of return on Happy Corp. stock  An analyst believes that inflation is going to increase by 2.0% over the next year, while the market risk...
Construct a time series plot. What type of pattern exists in the data?
Consider the following time series data. Quarter Year 1 Year 2 Year 3 1 4 6 7 2 2 3 6 3 3 5 6 4 5 7 8 Construct a time series plot. What type of pattern exists in the data? The time series plot indicates a linear trend and a seasonal pattern Show the four-quarter and centered moving average values for this time series.   Compute seasonal indexes and adjusted seasonal indexes for the four quarters.
Need To Do this in R Studio...Here are the Instruction steps: 1. Using the 1:n construct,...
Need To Do this in R Studio...Here are the Instruction steps: 1. Using the 1:n construct, create the sequence 4,8,12, ..., 48. 2. Similarly, create the sequence 0,5,10,15, ..., 100. 3. Using a for() loop and the print() function, print the values 2,3,4,..., 7. 4. Using a for() loop and the print() function, print the values 8,11,14, ..., 26. 5. Create a vector with a length of 10. Then, using a for() loop, assign the values 3,6,9, ..., 30. to...
Using the stock prices in Problem 3, calculate the exponential three-month moving average for both stocks...
Using the stock prices in Problem 3, calculate the exponential three-month moving average for both stocks where two-thirds of the average weight is placed on the most recent price. Amazon Google $169.64 $600.36 $173.29 $613.40 $180.13 $586.76 $195.81 $544.10 $196.69 $529.02 $204.49 $506.38 $222.52 $603.69 $215.23 $540.96 $216.23 $515.04 $213.51 $592.64 $192.29 $599.39 $173.10 $645.90
Both a call and a put currently are traded on stock XYZ; both have strike prices...
Both a call and a put currently are traded on stock XYZ; both have strike prices of $35 and expirations of 6 months. a. What will be the profit to an investor who buys the call for $5 in the following scenarios for stock prices in 6 months? (i) $40; (ii) $45; (iii) $50; (iv) $55; (v) $60. (Leave no cells blank - be certain to enter "0" wherever required. Negative amounts should be indicated by a minus sign. Round...
Both a call and a put currently are traded on stock XYZ; both have strike prices...
Both a call and a put currently are traded on stock XYZ; both have strike prices of $50 and expirations of 6 months. a. What will be the profit to an investor who buys the call for $4.8 in the following scenarios for stock prices in 6 months? (i) $40; (ii) $45; (iii) $50; (iv) $55; (v) $60. (Leave no cells blank - be certain to enter "0" wherever required. Negative amounts should be indicated by a minus sign. Round...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT