Skip to content

Knowledge library

Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.

Quant Q&A
20,364 documents
SuperMind
12,226 documents
OKX Learn
8,431 documents
Strategy library
7,910 documents
MQL5 code base
7,090 documents
BigQuant
3,481 documents
Bitget Academy
3,298 documents
MQL5 articles
3,012 documents
TradingView scripts
1,976 documents
ProRealCode
1,507 documents
Deribit Insights
1,232 documents
Machine Learning for Trading
1,124 documents
arXiv papers
1,033 documents
Amberdata research
766 documents
FMZ forum
682 documents
FMZ digest
662 documents
vn.py community
560 documents
QuantInsti blog
511 documents
Galaxy Research
340 documents
QuantStart
246 documents
Stratmill research code
219 documents
Robot Wealth
195 documents
NautilusTrader
191 documents
Hummingbot docs
181 documents
Paradigm research
175 documents
Lumibot
164 documents
Kraken Learn
163 documents
Quant course library
157 documents
OctoBot
152 documents
Cryptohopper blog
144 documents
Systematic trading blog (Rob Carver)
132 documents
Qlib
116 documents
TqSdk
86 documents
Quantpedia
86 documents
Hyperliquid docs
79 documents
Freqtrade
68 documents
Hudson & Thames
62 documents
Awesome Systematic Trading
61 documents
backtrader
54 documents
vn.py
50 documents
Quantopian lectures
45 documents
Binance API docs
45 documents
FMZ guides
38 documents
pysystemtrade
34 documents
Freqtrade docs
32 documents
quant-trading
31 documents
FinRL
28 documents
Zipline
22 documents
FMZ live strategies
21 documents
Jesse
17 documents
pyfolio
16 documents
Alphalens
14 documents
WonderTrader
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

5,922 documents

Quant Q&A

The document considers how to optimize a portfolio over a short horizon when hedge fund or other illiquid asset indices are available only at low frequency. It questions whether monthly observations provide enough data for a two-year estimate and rejects…

Multi-assetPortfolio constructionStatisticsBacktesting
Quant Q&A

The document asks whether free cash flow to the firm and free cash flow to equity coincide for a company with no interest-bearing debt, and whether equity value can then be calculated as operating value plus cash. The answer agrees that the two cash flow…

EquitiesPortfolio construction
Quant Q&A

The discussion outlines ways to separate currency effects from local-market allocation and security selection when portfolio and benchmark weights and returns are available. One approach measures currency value added with a simple currency attribution, then…

Multi-assetForexEquitiesPortfolio construction
Quant Q&A

The document clarifies two formulas that can appear to measure security selection in performance attribution: benchmark weight multiplied by the portfolio-minus-benchmark return, and portfolio weight multiplied by that return. The distinction depends on…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document explains why positive definiteness matters for the covariance matrix in mean-variance portfolio optimization. Portfolio variance is a quadratic form in portfolio weights, and a valid covariance matrix cannot imply negative variance. Positive…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document addresses a failure to simulate jointly distributed returns when the covariance matrix cannot be Cholesky-decomposed. The proposed remedy is to adjust the correlation matrix so it is positive definite. One suggested approach uses an eigenvalue…

StatisticsPortfolio constructionRisk managementBacktesting
Quant Q&A

The document asks whether combining two portfolios can produce an expected return above that of the higher-return constituent while also producing volatility below that of the lower-volatility constituent. Its example gives one portfolio a higher expected…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks whether a minimum-return constraint in a two-risky-asset portfolio can determine the allocation without using the assets’ variances or covariance. With weights summing to one, the expected return is an affine function of the first asset’s…

Portfolio constructionStatistics
Quant Q&A

The document asks whether a Sharpe-ratio portfolio optimizer should ignore correlations after a backtest appears stronger with a diagonal covariance matrix. Setting off-diagonal covariances to zero can remove offsetting holdings, leaving positions more…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document compares ways to alter a 2s5s10s swap butterfly so its exposure to broad curve movements is reduced while keeping the 5-year body weight at two. It describes three approaches: hedge the first principal component of 2-year, 5-year, and 10-year…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document explains that negative weights in risk-parity portfolios depend on the construction method and its constraints. An inverse-volatility allocation is positive by design, and many full optimization implementations impose nonnegative weights.…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers whether retail investors can hedge severe equity-market declines by buying deep out-of-the-money index puts, how to size and roll such positions, and whether a packaged product may be easier to use. The replies caution that repeatedly…

OptionsRisk managementVolatilityPortfolio construction
Quant Q&A

The document discusses how to interpret a portfolio’s daily return standard deviation on an efficient-frontier plot. Under an approximate normality assumption, the accepted answer relates one standard deviation around the mean to roughly a 68% probability…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document asks how to attribute a portfolio’s factor-model variance to individual factors. It starts from a covariance decomposition into factor risk and specific risk, then forms position-weighted factor exposures by multiplying asset weights by the…

Factor investingRisk managementPortfolio constructionStatistics
Quant Q&A

The document asks how to compare portfolio allocation strategies beyond the performance measures used in a cited study of optimized portfolios and the naive equal-weight strategy. The answer points to research on alternative risk and reward specifications…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to evaluate a pooled investment made up of projects with different start dates and a common sale date. It contrasts summing the project cash flows and calculating a combined internal rate of return with weighting separate project…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explores why portfolio investors distinguish factors that forecast returns from factors used to describe risk exposures. Its central correction is that bearing risk does not guarantee a return premium: some exposures may have a researched…

Factor investingPortfolio constructionRisk management
Quant Q&A

The document discusses a liquidity score defined as the ratio of pure market profit-and-loss conditional value at risk to market-plus-liquidity profit-and-loss conditional value at risk. In an attempt to reproduce an example from a liquidity and market risk…

EquitiesRisk managementPortfolio constructionMarket microstructure
Quant Q&A

The document presents a question about the mutual fund theorem in a market with one risk-free asset and at least one risky asset. It describes the theorem’s intuition: under the stated assumptions, an investor can combine a risk-free holding with a common…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to turn country-level fundamental scores, such as GDP growth, into allocations across G10 currency pairs versus the US dollar. The response separates two problems: converting fundamentals into expected risk-adjusted returns, and…

ForexPortfolio constructionStatistics
Quant Q&A

The document explains how principal component analysis can help assess whether yield curve movements are well described by a parallel shift. Apply PCA to changes in yields across maturities, then inspect the first component’s loadings: a parallel-shift…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document examines why the Merton portfolio formula can produce a large recommended allocation to equities. The fraction depends on expected excess return, volatility squared, and risk aversion. Using historical equity returns, a risk-free rate, and…

Portfolio constructionPosition sizingRisk managementEquities
Quant Q&A

The document addresses a replication problem in a Jegadeesh–Titman style momentum strategy: portfolios formed from rolling returns appeared to have identical results across formation periods and ranks. It outlines a procedure for calculating each security’s…

EquitiesMomentumPortfolio constructionBacktesting
Quant Q&A

The document compares two portfolio weight formulas: the global minimum-variance portfolio and a maximum-Sharpe portfolio. It asks whether the sum of absolute weight powers, scaled by the power, must be smaller for the minimum-variance portfolio when the…

Portfolio constructionStatistics