Machine learning portfolio analysis workspace with data visualizations

Quantforge / FAQ

Common
Questions

Answers about ML portfolio cluster analysis, session formats, and how the curriculum is structured.

Questions cover everything from backtesting methodology and ai trading bots to how individual and group sessions differ in practice. If something is missing, reach out at contact@quantforgehq.com.

Portfolio cluster analysis applies unsupervised machine learning algorithms - such as k-means, hierarchical clustering, and DBSCAN - to group financial assets by behavioral similarity. Instead of relying solely on sector labels, the model identifies natural groupings based on return correlations, volatility patterns, and drawdown characteristics across a chosen lookback window. The result is a dynamic map of how assets actually move together, which often cuts across traditional industry classifications in useful ways.
Backtesting a cluster-based strategy means running the full clustering pipeline - feature engineering, model fitting, cluster assignment - on historical data windows, then simulating portfolio construction decisions as if you had no future information. Walk-forward validation with 6–12 month out-of-sample periods is standard practice to avoid look-ahead bias. Transaction costs and rebalancing frequency both affect results significantly, so the curriculum covers realistic cost modeling from the start rather than treating it as an afterthought.
Cluster analysis translates well into crypto automation pipelines. Many practitioners build auto trading bot systems that re-cluster a universe of tokens weekly, then route capital toward the cluster showing the most stable internal correlation. The same logic applies to bots for trading on platforms like Binance trading infrastructure, where API access allows near-real-time rebalancing. The program covers how to connect a crypto bot to live data feeds without over-engineering the execution layer - a common mistake in early implementations.
The most informative features are rolling return correlations (typically 60–90 day windows), realized volatility, maximum drawdown over the period, and average daily volume normalized by market cap. For crypto bot applications, on-chain metrics like active address growth can add a meaningful orthogonal signal that pure price data misses. Feature scaling matters considerably - unscaled inputs cause distance-based algorithms to weight high-variance features disproportionately, which skews the resulting clusters in ways that are hard to diagnose without careful inspection.
There is no universal answer. The elbow method and silhouette scores guide the search, but the final number depends on the asset universe size and the rebalancing frequency. For a universe of 40–80 equities, 5 to 9 clusters tend to produce stable, interpretable groupings. Fewer clusters reduce diversification; more clusters create noise that makes allocation decisions unstable. The program includes a dedicated session on cluster stability testing across multiple time periods, which is often more informative than any single selection metric.
Group sessions run with 4 to 8 participants and follow a structured curriculum covering the full pipeline from data preparation through deployment. Individual sessions adapt pace and depth to your existing background - if you already understand Binance website API mechanics or have built a crypto bot before, the instructor skips foundational material and focuses on the gaps you actually have. Both formats include live coding exercises, but individual sessions allow you to work directly on your own dataset rather than the shared practice data.
Participants need working knowledge of Python at the level of reading and modifying existing scripts. You do not need to build automated trading systems from scratch before joining - the program covers trading bots and ai trading bots infrastructure in structured steps. Familiarity with pandas and numpy is helpful but not a hard requirement. Participants who have never worked with financial data before typically need an additional 2–3 weeks of self-study before the curriculum moves at a comfortable pace.
The core curriculum spans 14 weeks at a pace of two 90-minute sessions per week. Participants who engage with the practice exercises between sessions typically reach a working cluster-analysis prototype by week 9 or 10. Individual-track learners sometimes move faster, finishing in 10 to 11 weeks depending on their starting point. The program does not award certificates based on time alone - completion requires a reviewed capstone project that demonstrates a functional, backtested clustering strategy applied to a real asset universe.

Terms used throughout the curriculum

These definitions reflect how each term is used in the context of ML-driven portfolio construction - not their broadest possible meaning in finance or computer science.

Before clustering 1 dimension of analysis - sector label only
After clustering 8+ behavioral dimensions captured simultaneously
Data pipeline visualization for portfolio cluster analysis
Cluster
A group of assets whose return and volatility behavior is more similar to each other than to assets in other groups, as determined by the chosen distance metric and algorithm.
Silhouette Score
A value between -1 and 1 measuring how well each asset fits its assigned cluster relative to neighboring clusters. Scores above 0.4 generally indicate meaningful structure.
Walk-Forward
A backtesting method where the model is retrained on each new training window and evaluated on the immediately following out-of-sample period - mimicking real deployment conditions.
Rebalancing
The periodic process of adjusting portfolio weights to match updated cluster assignments, typically triggered on a fixed schedule (weekly, monthly) or when cluster membership shifts by more than a defined threshold.
Feature Space
The multi-dimensional representation of each asset built from engineered inputs - correlation, volatility, drawdown - that the clustering algorithm uses to compute pairwise distances.
Auto Trading Bot
A software system that executes portfolio rebalancing decisions automatically based on signals generated by the ML pipeline, without requiring manual order entry at each rebalancing event.