I am VERY new in the R world... need a lot of help!
I am working on a problem where I got the mean for two separate variables within one dataset. Now, I am trying to figure out how can I compare those and how to do hypotheses testing.
The dataset contains daily closing stock prices for Google and Amazon from 8/22/2017 to 8/22/2018. When we examine stock prices (or other financial assets) we often transform them into a (simple) return series. The return series are computed by the formula: (present price/past price) - 1. The dataset contains both stock prices and return series.
- 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.