Price History
Daily OHLCV data across US, UK, European, and Australian listings forms the foundation of every experiment. Data fetched via yfinance from Yahoo Finance.
Zephyr is a modular Streamlit dashboard that runs baselines, classical machine learning, and deep learning models against chronological holdouts across a curated universe of US, UK, European, and Australian equities. It adds split-conformal prediction intervals, model persistence, backtesting with costs and slippage, SHAP explainability, hyperparameter tuning, an experiment registry, a multi-ticker portfolio view with risk metrics, and a Scenario Lab for Monte Carlo, regime, and shock analysis.
Classical tree-based models, gradient boosting methods, structural regressors like Prophet, and recurrent networks each capture different structures in price data. Without a consistent evaluation framework it is impossible to know whether added complexity actually improves forecasts.
Zephyr was built to run multiple complementary model families under the same chronological conditions, measure them against strong naïve baselines, and surface the results through an interactive dashboard with uncertainty quantification, backtesting, explainability, and scenario analysis.
A transparent, modular, leakage-free multi-model pipeline with prediction intervals, backtesting, and scenario analysis reveals whether model complexity delivers real gains over simple baselines on short-horizon equity returns.
Daily OHLCV data across US, UK, European, and Australian listings forms the foundation of every experiment. Data fetched via yfinance from Yahoo Finance.
Returns and lags, moving averages (SMA/EMA), rolling volatility, momentum, candle shape (range, body, shadows), volume ratios, and longer-range high/low distances — all constructed without future information.
Every feature uses only data available at prediction time. Targets are strictly shifted forward by the selected horizon (1/3/5 trading days) to prevent look-ahead bias. A horizon-sized gap separates train and test partitions.
Configured ticker set spanning United States (AAPL, MSFT, NVDA, JPM), United Kingdom (AZN.L, SHEL.L, HSBA.L), Europe (ASML.AS, SAP.DE, NESN.SW), and Australia (CBA.AX, BHP.AX, CSL.AX).
Multiple model families trained and evaluated on the same chronological splits using identical feature sets, baselines, and a configurable 1-, 3-, or 5-trading-day horizon.
Yahoo Finance quotes and daily OHLCV via yfinance; data quality reporting.
Returns, lags, moving averages, volatility, momentum, candle shape, volume — leakage-free.
Naive baselines, Random Forest, Extra Trees, HistGradientBoosting, XGBoost, LightGBM, Prophet, LSTM, GRU.
Ordered train/test split with horizon gap; optional walk-forward; MAE, RMSE, directional accuracy.
Overview · Models & Evaluation · AI Forecast · Portfolio · Research · Scenario Lab.
Baselines, six tree-based/gradient-boosting/structural regressors, and two sequence models evaluated side-by-side under identical conditions and feature sets.
All features use only past information. Targets shifted forward by horizon. Train/test gap prevents label overlap. Walk-forward validation available.
Split-conformal prediction intervals on AI Forecast. Backtesting with costs, slippage, stop-loss. Portfolio risk: Sharpe, max drawdown, VaR.
Permutation importance (always) and optional SHAP for global/local attributions. RandomizedSearchCV over time-series folds. JSONL experiment registry.
Monte Carlo fan charts, first-passage target/stop probabilities, volatility regime maps, and interactive shock what-if recovery analysis.
Trained classical ML models saved to artifacts/models/ and reused across sessions. Session-state caching of supervised datasets per (ticker, horizon, window).
Latest quote, daily change, volume, day range, exchange, region, data age. Expandable Data & Features section with OHLCV history, quality summary, missing-value handling, and CSV download.
Segmented sub-nav: Classical ML · Neural Networks · Evaluation. Candlestick chart, feature preview, model comparison table, LSTM/GRU training curves, walk-forward validation. Models: baselines, RF, Extra Trees, HistGradientBoosting, XGBoost, LightGBM, Prophet, LSTM, GRU.
Holdout metrics for selected model, calibrated split-conformal prediction interval on chart, illustrative horizon return and implied price. Trained classical ML models persisted to artifacts/models/ and reused across sessions.
Multi-ticker correlation matrix, normalized equal-weight performance, equal-weight portfolio risk summary (mean return, Sharpe, max drawdown, VaR), and per-ticker fundamentals (market cap, P/E, dividend yield, beta, 52-week range).
Four sub-tabs: Explainability (permutation importance + optional SHAP), Hyperparameter Tuning (RandomizedSearchCV over time-series CV), Backtest (signals → equity curve, costs, slippage, stop-loss, stride mode), Experiments Registry (browsable JSONL runs).
Monte Carlo fan chart from historical return distribution or GBM fit. First-passage probability for target/stop levels. Volatility regime map (rolling quantile labels). Interactive shock what-if with historical recovery time estimates.
When models are evaluated fairly against strong baselines using chronological splits with a horizon gap, the advantage of more sophisticated algorithms is often smaller than expected. Prediction intervals quantify uncertainty; backtesting adds execution realism; scenario analysis maps descriptive possibilities.
Baselines, six classical ML estimators (including Prophet), and two sequence models run on the same feature set and time splits with identical preprocessing.
NaiveLastClose (zero return) and NaiveLastReturn (repeat last observed return) provide clear reference points for measuring real improvement on the selected horizon.
Split-conformal prediction intervals calibrated on the chronological holdout display a band around the point forecast with empirical coverage reporting.
Backtest engine applies transaction costs (bps), slippage, position sizing, and optional stop-loss. Non-overlapping stride mode reduces horizon overlap approximation.
Permutation importance always available; SHAP optional. RandomizedSearchCV over time-series folds. Append-only JSONL experiment registry for reproducibility.
Multi-ticker correlation, equal-weight risk metrics, and fundamentals. Scenario Lab provides descriptive Monte Carlo, regime, and shock tools — not predictions.
Market data fetched via yfinance from Yahoo Finance. Availability, coverage, timestamps, adjustment behavior, and delays are externally controlled. Responses can be incomplete, revised, or temporarily unavailable.
Models use only OHLCV-derived technical features and a direct cumulative return target. No fundamentals, macro variables, order-book data, or news sentiment in the forecast models (sentiment helpers removed from current dashboard).
The 1/3/5-day horizon estimates cumulative close-to-close return. The AI Forecast screen does not recursively generate a daily prediction path. Selecting 3 or 5 days does not produce a validated multi-day forecast sequence.
Split-conformal bands are finite-sample approximate and can degrade under distribution shift, regime change, or non-exchangeable data. A band on a chart is not a calibrated confidence statement about the future.
Historical signal simulation with costs, slippage, and stop-loss. Overlapping-horizon treatment is an approximation (stride mode reduces this). Not live paper trading, not a profitability guarantee.
Monte Carlo resamples historical returns; cannot anticipate regime change, news, or structural breaks. First-passage probabilities derived from simulated paths. Volatility regimes are descriptive rolling quantiles, not predictive. Shock recovery times estimated from historical analogues.
Trained models saved to artifacts/models/ via joblib. No versioning, lineage, drift monitoring, or production governance. Retrain when observation window or settings change.
Forecasts may be inaccurate, stale, or misleading. This is an educational research system, not a trading bot or financial advice. Do your own research and consult a qualified professional where appropriate.
This platform is an educational and research system. It is not a trading bot and does not constitute financial advice.
Introduce regime detection so model selection and feature sets can shift when volatility or correlation structure changes. Move from descriptive volatility regimes to predictive regime models.
Explore additional technical, fundamental, and cross-sectional features while maintaining strict leakage control. Incorporate fundamentals as model inputs, not just Portfolio display.
Implement recursive or direct multi-horizon forecasting for the 3/5-day selections so the AI Forecast screen produces a genuine daily path with calibrated intervals at each step.
Extend the evaluation framework toward ranking, position sizing, and simple portfolio construction logic across the universe with risk constraints.
Connect the forecasting pipeline to a paper-trading environment so model behaviour can be monitored over time with drift detection and performance attribution.
Add authentication, persistent caching, model versioning, experiment tracking with MLflow or similar, and containerized deployment for multi-user access.
Running multiple model families under identical chronological conditions, against strong baselines, with leakage-free features, prediction intervals, backtesting, explainability, and scenario analysis produces clearer insight than chasing the single highest back-test score.
Different model families capture different structures in price data. Compare them fairly.
Chronological validation, horizon gaps, and strong baselines keep claims honest.
Conformal intervals, backtest costs, and descriptive scenarios make uncertainty visible.
An interactive dashboard makes model behaviour, feature importance, and experiments inspectable.
Persisted models, cached datasets, JSONL registry, and seeded configuration support re-running.
The modular stack is designed to absorb better models, richer data, and deeper evaluation.
Source code, live demo, and documentation.