Time series · Forecasting · Streamlit

Apple (AAPL) Stock Price Forecasting

A 30-day forecast of Apple's closing price from eight years of daily data, comparing five time-series approaches and being honest about which comparison is fair.

End-to-end project

The problem

Investment and treasury teams want a view of where a stock is heading over the next month, and how much to trust that view.

The data

2,011 trading days of AAPL prices, January 2012 to December 2019; the closing price is the target.

Approach

  1. EDA

    Trend, moving averages, returns, volatility and seasonality.

  2. Statistical models

    ARIMA (ADF test, differencing, auto_arima), SARIMA and Holt-Winters (multiplicative trend and season).

  3. Prophet and LSTM

    Prophet with trend and seasonality; a 2-layer LSTM on 60-day windows.

  4. Evaluation

    Time-ordered 80/20 split, never shuffled.

  5. Deployment

    Streamlit app with interactive Plotly forecasts.

What I found

The key insight

A fair model comparison needs the same forecast horizon for every model. That rolling 30-day comparison against a naive baseline is the next step, and it's the kind of check I apply before trusting any forecast.

Limitations & next steps

Tools