Apple Stock Financial Analysis
In this Project I analyzed Apple's stock price data using Python and the 'yfinance' package.
The Python code retrieves the data, cleans it,
then visualized the stock price over time using a line plot and candlestick chart
![](/web/image/642-5fa2e34d/Apple%20Stock%20Price.png)
![](/web/image/643-b68ebe73/Apple%20stock%20Price%20Candles2.png)
Next, we calculated the daily returns and volatility of the stock,
and plotted its cumulative returns.
![](/web/image/644-d769d1cd/Apple%20Cumulative%20Returns.png)
We then used a histogram and density plot to visualize the distribution of daily returns,
![](/web/image/645-1e977cd5/Apple%20Daily%20Return%20Distribution.png)
![](/web/image/646-4b5e9344/Apple%20Daily%20Return%20Distribution2.png)
and performed a normality test to assess whether the returns follow a normal distribution.
We also implemented a Moving Average Crossover strategy to generate buy/sell signals based on the stock's 50-day and 200-day moving
averages, and calculated the daily profit/loss based on these signals.
![](/web/image/649-7c4c987d/Apple%20Moving%20Average%20Crossover%20Strategy.png)
We then examined the correlation between Apple's stock returns and those of the S&P 500
using a scatter plot and correlation coefficient.
![](/web/image/647-ce14b4ca/Apple%20vs%20SP500%20Returns.png)
Finally, We performs a Monte Carlo simulation to predict future Apple stock prices based on historical daily returns.
![](/web/image/648-dc5f9847/Apple%20Monte%20Carlo%20Simulation.png)
Code
The Python code for this project can be found Here