
date/time/ds and value/close/price/revenue/y columns; no specific naming requiredAAPL, BTC-USD, MSFT, ETH-USD, ^GSPC) and pull up to 10 years of live OHLCV data@st.cache_data on all four model runners — second run with identical inputs returns instantly from cachetree_method="hist" — fastest available tree builderuncertainty_samples=200 and n_changepoints=15 — ~5× faster than defaultsmaxiter=75 — 3–4× faster than Newton defaultProphet installation note: Prophet requires a C++ compiler and PyStan. On most systemspip install prophethandles this automatically. On Windows, the easiest path is conda:
http://localhost:8501.main → main file app.pyrequirements.txt and .streamlit/config.toml automatically. No secrets or environment variables are required for any feature.ds, date, time, timestamp, period y, value, close, price, revenue, salesAAPL, BTC-USD, GLD, ^GSPC, EURUSD=X, NVDAyearly_seasonality 6 Fourier terms Faster; sufficient for most business series Prophet n_changepoints 15 Reduced from default 25; reduces overfitting Prophet uncertainty_samples 200 Reduced from default 1 000; 5× speed improvement Prophet changepoint_prior_scale 0.05 Conservative; prevents trend drift ARIMA Order (1,1,1) Robust default for integrated financial series ARIMA Seasonal order Auto Enabled when len(s) ≥ 3 × seasonal_period ARIMA Optimiser L-BFGS 3–4× faster than Newton ARIMA maxiter 75 Sufficient with L-BFGS XGBoost n_estimators 150 Diminishing returns beyond this for typical TS lengths XGBoost tree_method hist Fastest available; equivalent accuracy XGBoost max_depth 3 Shallower reduces overfitting on small datasets XGBoost Lag window 12 12 lagged values + rolling mean/std/min/max as features Monte Carlo Paths 500–5 000 User-configurable; vectorised via NumPy Monte Carlo Model GBM Log-normal returns, seed 99 for reproducibility(last / first) ^ (1 / years) − 1 × 100 Max Drawdown min((s − cummax(s)) / cummax(s)) × 100 Sharpe Ratio (annualised_return − 0.05) / annualised_std VaR 95% 5th percentile of Monte Carlo terminal distribution CVaR / ES Mean of simulated terminal values ≤ VaR MAPE `mean( sMAPE `mean(2 RMSE sqrt(mean((actual − forecast)²))df[:train_end] and forecasts step periods. Results are cached per (data_hash, freq) so repeated visits to the Validation tab do not re-run.streamlit ≥ 1.30 Web application framework plotly ≥ 5.0 Interactive charts pandas ≥ 2.0 Data manipulation numpy ≥ 1.24 Numerical computation prophet ≥ 1.1 Additive time series model (Meta) statsmodels ≥ 0.14 ARIMA / SARIMA xgboost ≥ 2.0 Gradient boosted trees yfinance ≥ 0.2 Yahoo Finance data fetching openpyxl ≥ 3.1 Excel export engine scikit-learn ≥ 1.3 Utility functionsst.secrets — user-provided Alpha Vantage / FRED / Quandl keys for alternative datafeat: · fix: · docs: · refactor: · perf:Posted Mar 17, 2026
Production forecasting platform: Prophet, ARIMA, XGBoost & Monte Carlo ensemble with walk-forward backtesting, VaR/CVaR risk output, and Excel export.
0
0