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
Quantpedia
86 documents
TqSdk
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 describes a two-period portfolio comparison using historical returns. It estimates an in-sample efficient frontier from the first period’s empirical covariance matrix, generating portfolios across target returns. It then keeps those portfolio…

Portfolio constructionBacktestingStatisticsEquities
Quant Q&A

The document explains the beta adjustment behind the betting-against-beta factor. It treats a risky asset's return above the risk-free rate as a zero-cost excess return, then scales that return by the inverse of its market beta. This changes the portfolio's…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document weighs whether investors should include commodities in diversified portfolios. It presents arguments on both sides, noting that asset-allocation products and some institutional portfolios use commodity exposure, while the cited research is not…

CommoditiesFuturesPortfolio constructionMomentum
Quant Q&A

The discussion considers default counts in a loan portfolio when each loan has a specified marginal default probability and defaults may share a common latent macro factor. One answer standardizes a shared-factor Gaussian construction to preserve the…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The discussion examines whether European stock portfolio returns should be converted to euros before regression against Fama-French factors reported in dollars. It first points out that a portfolio of ten high book-to-market stocks is not constructed like…

EquitiesFactor investingPortfolio constructionStatistics
Quant Q&A

The document asks what the number of independent forecasts, N, means in the Fundamental Law of Active Management, commonly expressed as information ratio equal to information coefficient times the square root of N. It quotes a definition that describes N as…

Portfolio constructionStatisticsFactor investing
Quant Q&A

This discussion surveys Python approaches to portfolio construction, focusing on mean-variance and minimum-variance optimization. It points to convex optimization packages that can solve quadratic portfolio problems, with higher-level interfaces for…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document presents an attempt to calculate the tangency portfolio for five risky Dow stocks and a risk-free asset using weekly simple returns over ten years. It supplies estimated asset returns, a covariance matrix, and its inverse, then applies a…

EquitiesPortfolio constructionStatisticsRisk management
Quant Q&A

The document resolves a portfolio valuation question by clarifying the option position’s direction. A portfolio holding shares plus a long call includes the call’s positive value; a portfolio that has sold the call must subtract the liability represented by…

OptionsEquitiesPortfolio construction
Quant Q&A

The document describes a thesis analysis using randomly selected stocks grouped into portfolios and asks why estimated Fama–French three-factor betas, especially SMB and HML, have p-values above 0.05. The proposed workflow constructs SMB and HML portfolios…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The discussion explains why factor risk contributions may not add up to a portfolio regression’s R-squared when a portfolio contains multiple instruments. Aggregating each instrument’s factor betas by portfolio weight can produce exposures, but the resulting…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document collects several answers to whether the central limit theorem justifies treating asset returns as normally distributed. A core distinction is that the standard theorem describes the distribution of standardized sample means under assumptions…

StatisticsEquitiesPortfolio construction
Quant Q&A

The document asks how to show that a portfolio’s percentage contribution to loss equals its percentage contribution to risk, in the setting of a quantitative equity portfolio management exercise. It defines percentage contribution to risk for asset i as that…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document explains how to extend minimum-variance portfolio construction by adding a penalty on asset weights while keeping the weights summing to one. It notes that a convex penalty yields a convex optimization problem that can be solved numerically,…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explains why expected shortfall for the sum of two loss variables is no greater than the sum of their separate expected shortfalls. The key idea is that the worst observations for the combined portfolio generally differ from the worst…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document answers a request for accessible textbook guidance on constructing factor-mimicking portfolios. It recommends CFA Level III study notes as a relatively plain-language source, specifically citing two volumes from an older edition. It also points…

Factor investingPortfolio construction
Quant Q&A

The document considers how to allocate a fixed portfolio among four hedge funds when their returns are assumed independent and each fund has a purchase limit. It explains that zero correlations do not prevent mean-variance optimization: the covariance matrix…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document considers how to build a weighted index from several equity index series when their market calendars do not match. It identifies two basic approaches: restrict calculations to dates common to all series, or carry forward the previous available…

EquitiesPortfolio constructionBacktesting
Quant Q&A

The document asks whether bootstrap resampling should happen before strategy data mining or after a candidate strategy has been selected. It describes a monthly SPY and TLT rebalancing strategy tested over six years and 72 trades, reporting a backtest Sharpe…

BacktestingStatisticsMachine learningPortfolio construction
Quant Q&A

The document explains why two derivatives for a two-asset portfolio's volatility differ when one asset's weight is constrained to equal one minus the other's. Roncalli's marginal risk contribution is a partial derivative: it varies one asset's weight while…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to choose portfolio weights that are proportional to risk budgets divided by asset volatilities, while meeting a target portfolio volatility and other constraints. It contrasts this objective with a risk-budgeting formulation that…

Portfolio constructionRisk managementPosition sizing
Quant Q&A

The document explains why pension funds and endowments may invest directly alongside private equity or venture capital funds. Co-investment can let an institution increase its exposure to a deal it finds especially attractive beyond its proportional…

Portfolio constructionRisk management
Quant Q&A

The document explains why a historical portfolio Value at Risk calculation can return an empty result at a high confidence level. The cited implementation converts the confidence level to a lower-tail probability, multiplies that probability by the number of…

Risk managementStatisticsPortfolio constructionBacktesting
Quant Q&A

The document presents ways to explain bond P&L in a format resembling swap curve attribution. One method maps each bond’s risk to maturity buckets, such as splitting a bond between adjacent swap tenors, then estimates bucket moves by minimizing the…

Fixed incomePortfolio constructionRisk management