PROJECT / 01 PYTHON · ML · TIME SERIES · STREAMLIT · FORECASTING
CRYPTO TIME SERIES ANALYSIS

Historical Bitcoin markets. Explored with rigor.

A research-led time series project that combines data preparation, feature engineering, forecasting replay, market-regime inference, anomaly detection, and change-point analysis around historical BTC market data, exposed through an interactive Streamlit dashboard.

DOMAIN Cryptocurrency Analytics
CORE Time Series Forecasting
MODELS LightGBM · CatBoost · GMM · HMM
STACK Python · PySpark · Streamlit
01 FORECAST
TS REGIME ANOMALY
DATA · FEATURES · DASHBOARD PORTFOLIO EXPLORE
01

Can historical Bitcoin market structure be dissected beyond price alone using disciplined time-series methods?

Price is only one signal. Volume, returns, volatility, and regime shifts together tell the fuller story.

Bitcoin time series carry rich structure in returns, volume, and rolling risk. Without a consistent analysis loop, it is difficult to separate signal from noise or to compare forecasting approaches fairly.

Crypto Time Series Analysis was built to run raw OHLCV data through a chronological pipeline — audit, feature engineering, modelling, and evaluation — and surface the results through an interactive dashboard covering forecasts, regimes, anomalies, and change points.

THESIS

A transparent, leakage-free chronological pipeline reveals whether model complexity delivers real gains over baselines on historical crypto market behavior.

02

Historical OHLCV data and engineered time-series features.

The pipeline respects the flow of time at every stage.
01

Raw OHLCV Series

Historical Bitcoin price, volume, and candle data ingested and standardized into cleaned Parquet datasets with audit metadata.

02

Engineered Features

Returns, volume, rolling volatility, and market-structure features built across 7, 14, 30, and 60-bar windows with return lags.

03

Chronological Splits

A 70 / 15 / 15 train-validation-test split keeps later observations out of training, with trailing rows purged so target labels never cross partition boundaries.

DATA VIEW

Four notebook stages take raw observations to prepared datasets, model artifacts, scores, and research figures.

NOTEBOOK STAGES 0 pipeline → features → models → evaluation
FEATURE WINDOWS 4 7, 14, 30, and 60 bars
SPLIT 70 / 15 / 15 chronological train / validation / test
03

From raw OHLCV to comparable forecasts and regime views.

01

Market Data

Historical OHLCV and engineered time-series features.

02

Forecasting Models

LightGBM and CatBoost replayed over chronological windows.

03

Regime & Anomaly

GMM / HMM regimes, Isolation Forest scores, CUSUM change points.

04

Dashboard

Interactive Streamlit exploration of data, forecasts, and states.

INPUTOHLCV
FEATURESNO LEAKAGE
TRAINLGBM · CATBOOST
EVALUATECHRONOLOGICAL
VIEWDASHBOARD
01

Leakage-Free Design

Every feature uses only data available at prediction time. Targets are strictly shifted so no future information enters training.

02

Chronological Evaluation

MAE, RMSE, and sMAPE are reported consistently under time-ordered splits, with walk-forward testing for robust assessment.

03

Interactive Dashboard

A Streamlit application brings data quality, forecasts, volatility, regimes, anomalies, and change points into one explorable view.

04

What disciplined time-series analysis reveals.

Illustration of Bitcoin price, rolling volatility, and an inferred market-regime view.
Conceptual project illustration; curves are not actual market data.

Forecasting is an exploratory loop, not a signal to trade.

Historical replay shows how LightGBM and CatBoost behave against baselines over a fixed window, while regime and anomaly outputs help characterize market states rather than predict them.

01 FOUR-STAGE PIPELINE

Audit and clean, engineer features, fit and compare models, then evaluate and export — each stage reproducible from source.

02 REGIME INFERENCE

Gaussian Mixture and Hidden Markov models surface inferred market states and transition probabilities across the selected window.

03 ANOMALY & CHANGE POINTS

Isolation Forest scores flag unusual observations, and CUSUM timestamps mark structural breaks alongside price and volatility.

04 CLEAR METRICS

MAE, RMSE, and sMAPE are reported consistently across forecasting experiments, interpreted together rather than in isolation.

05 INTERACTIVE EXPLORATION

The Streamlit dashboard lets users inspect datasets, feature distributions, model replay, volatility, regimes, and anomalies.

05

Where time-series market analysis remains constrained.

01

Market Regime Shifts

Models fitted on past regimes can degrade when volatility, correlation, or liquidity conditions change abruptly.

02

Low Signal-to-Noise

Short-horizon returns are inherently noisy, and forecasting advantage over strong baselines is often modest.

03

Historical Replay Only

Forecasting replays saved models over past windows. It is not a forward forecast, holdout evaluation, or live trading signal.

04

Data & Artifact Constraints

Prepared Parquet data and model artifacts are generated locally and are not bundled; they must be provisioned separately for deployment.

IMPORTANT

Historical relationships do not guarantee future behavior. Nothing in this project is investment, trading, or financial advice.

06

Where the analysis stack can evolve.

01
REGIME-AWARE MODELS

Adapt feature sets to detected market regimes.

Shift model selection and features when volatility or correlation structure changes.

02
RICHER FEATURES

On-chain and cross-asset signals.

Explore additional market-structure and cross-sectional features while maintaining strict leakage control.

03
DEEP LEARNING WRAPPERS

Optional TCN and PatchTST experiments.

Evaluate deep-learning time-series wrappers under the same chronological conditions as the tree baselines.

04
LIVE MONITORING

Ongoing tracking over time.

Monitor model behaviour and regime transitions across new windows as data becomes available.

The project started with individual models. It became an exercise in honest, time-aware exploration of historical markets.

Running forecasting, regime, anomaly, and change-point analysis under identical chronological conditions, with leakage-free features and clear metrics, produces clearer insight than chasing a single back-test score.

01 DISCIPLINE

Chronological validation and leakage-free features keep claims honest.

02 DIVERSITY

Forecasting, regimes, anomalies, and change points each reveal a different layer of market structure.

03 TRANSPARENCY

An interactive dashboard makes model behaviour and outputs inspectable.

04 ITERATION

The stack is designed to absorb better models and richer data.

Explore the analysis.

Source code and implementation.