Question: Use the Python Jupyter notebook provided to download daily price data on two individual tickers. Costco ( COST ) and the broader market, S&P 5
Use the Python Jupyter notebook provided to download daily price data on two individual tickers. Costco COST and the broader market, S&PSPY Explain the codes used to calculate simple returns, annualized returns, and log returns of these two stocks. Are those returns different? Why? Write a few lines to code to compute the sample statistics of the simple returns for the two stocks. Please compare those sample statistics between the two stocks. Compute the first autocorrelation coefficients of the simple return of each stock. Which stock return is more predictable? Why? Explain the codes used to calculate the performance ratios. Compute the Sharpe ratio of the simple returns for the two stocks. Which stock looks better to invest? Why? Compute the Calmar ratio of the simple returns for the two stocks. Which stock looks better to invest? Why? Compute the Sortino ratio of the simple returns for the two stocks. Which stock looks better to invest? Why? Consider a simple trendfollowing trading strategy without a transaction cost given your initial endowment is $: a Buy shares of AMZN if the current day simple moving average SMAof closing prices is above the current day SMA. Of course, if you already have shares of this stock, then continue holding onto itb Sell the shares if the current day simple moving average SMA is below the current day SMA. Of course, if you do not have a share of this stock, then you do not have anything to sell. Please calculate the Sharpe ratio and Calmar ratio to measure the performance of this strategy. Does it beat the simple buyandhold strategy?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
