Question: Write a Python script that downloads stock prices starting in 2 0 1 8 for the FAANG stocks: Facebook ( ticker META ) , Apple
Write a Python script that downloads stock prices starting in for the FAANG stocks: Facebook ticker
META Apple AAPL Amazon AMZN Netflix NFLX and Google GOOGL Then do the following
a Compute returns for each stock from the adjusted prices.
b Compute descriptive statistics use describe for each stock.
c Make a boxplot of returns. Assign a different color to each ticker.
Which stock looks the riskiest and which one looks the safest? Explain.
d Plot the cumulative returns. Add labels to indicate the final return for each stock.
e Plot drawdowns. Which stock looks riskiest here?
f Compute correlations. Which pair of stocks have the smallest and largest correlations? Does it make sense?
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
