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
Binance API docs
45 documents
Quantopian lectures
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 addresses how to obtain value at risk and expected shortfall measures for exchange-traded funds when the figures are not readily available from common financial data websites. It recommends calculating the measures from the ETF’s return data,…

Risk managementStatisticsEquitiesPortfolio construction
Quant Q&A

The question asks whether the same portfolio or index can have different Sharpe ratios when analyzed with CAPM or Arbitrage Pricing Theory. The answers distinguish ex-post Sharpe ratios, calculated from realized excess returns and their variability, from…

StatisticsRisk managementPortfolio constructionFactor investing
Quant Q&A

The note asks how prices connect across periods when returns are defined from consecutive prices in a single-period CAPM setup. It distinguishes the price used to calculate a period’s return from the equilibrium price in a subsequent period, and asks how an…

EquitiesStatisticsPortfolio construction
Quant Q&A

The note explains how to define portfolio weights when a long position is fully funded by an equal-sized short position. For a $200 long in Apple and a $200 short in Google, it uses signed weights of +1 and −1, calculated relative to the portfolio’s net…

EquitiesPortfolio constructionPosition sizing
Quant Q&A

The document examines why a large simulation of randomly generated long-short equity weights may fail to find the theoretical global minimum-variance portfolio. The analytical portfolio is calculated from the inverse covariance matrix and normalized to sum…

Portfolio constructionStatisticsBacktestingEquities
Quant Q&A

The document addresses whether SMB and HML factor returns should have the risk-free rate subtracted when they are used as risk premia in a Fama–French expected-return model. Its explanation focuses on how the factors are constructed: HML is a long position…

Factor investingEquitiesPortfolio constructionStatistics
Quant Q&A

The document explains how to express the Sharpe ratio of a portfolio containing two risky stocks as a function of one stock’s weight. With the other stock’s weight set to the remainder, expected return is a weighted average, while portfolio variance depends…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document concerns calculating portfolio and backtest performance statistics through callable Python functions. It names Quantopian’s Empyrical package as a library for measures such as cumulative and annual returns, Sharpe ratio, and Omega ratio. The…

BacktestingPortfolio constructionStatistics
Quant Q&A

The document asks how portfolio choice changes when the objective is to win a winner-take-all competition rather than to balance expected return against risk. Its example contrasts maximizing expected return and variance with conventional mean-variance…

Portfolio constructionRisk managementStatistics
Quant Q&A

The discussion considers how to calculate simple and logarithmic returns for a portfolio, including what changes when holdings are added, removed, replaced, or rebalanced during a measurement period. It emphasizes comparing like with like across the start…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The document explains how to allocate portfolio variance across assets. It first questions a proposed allocation that adds covariance terms directly to each asset’s weighted variance, then presents a derivative-based approach associated with Euler…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document examines a minimum-variance portfolio problem using a bank account, a stock, and call options on that stock. Monte Carlo paths under geometric Brownian motion supply estimated returns and covariance. Because the options and stock share a driver,…

OptionsPortfolio constructionStatisticsRisk management
Quant Q&A

The document explains why parametric portfolio risk is often calculated from asset returns and their covariance matrix. If portfolio positions are held constant, portfolio PnL is a weighted sum of the asset return vector, so its variance follows from the…

StatisticsRisk managementPortfolio construction
Quant Q&A

This document raises a conceptual question about how CAPM’s Security Market Line can classify a stock as overpriced or underpriced when CAPM is derived from mean-variance portfolio theory and is often discussed alongside the Efficient Market Hypothesis. The…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document presents an exam-style portfolio risk problem. It supplies a current portfolio value, a sequence of ten daily log returns, an initial variance forecast, and an exponential moving volatility parameter. The requested outputs are one-day historical…

Risk managementVolatilityStatisticsPortfolio construction
Quant Q&A

The document examines how to choose notionals for a three-bond, proceeds-weighted butterfly using bonds identified as the wings and belly. It lays out a duration-neutrality condition and a proceeds or notional neutrality condition, then tries to solve both…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The document outlines a monthly portfolio strategy that ranks stocks by their trailing three-year return volatility, divides them into five groups, and equally weights the stocks in each group. The answer demonstrates one implementation approach in R using a…

EquitiesVolatilityPortfolio constructionBacktesting
Quant Q&A

The document describes how to attribute a portfolio’s variance to principal components derived from the covariance matrix of asset returns. PCA expresses that covariance matrix using eigenvectors and eigenvalues. Projecting portfolio weights onto the…

StatisticsPortfolio constructionFactor investing
Quant Q&A

The document derives the correlation between one asset and a portfolio formed from two other assets. It defines the portfolio as a weighted combination of the two holdings, then applies covariance linearity to express the portfolio’s covariance with the…

Portfolio constructionStatisticsMulti-asset
Quant Q&A

The document examines how commonly internal rate of return (IRR) is used in capital budgeting and why practitioners may continue to use it despite known limitations. It cites an earlier report on CFO practice, then contrasts IRR’s simplicity with net present…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document reviews the internal rate of return (IRR) and net present value (NPV) as capital budgeting measures, drawing on reported survey results and practitioner accounts. IRR offers a compact rate that managers may find easy to compare with a financing…

StatisticsRisk managementPortfolio construction
Quant Q&A

This note describes a factor-based way to stress portfolio covariance. It starts with asset returns, asset factor exposures, and factor returns, and estimates an ex-post covariance matrix from observed asset returns. The analyst then chooses the direction…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document explains how an ETF can be replicated using either its underlying holdings or derivative exposures. Physical replication holds all or a selected subset of the constituent instruments; an optimized subset may aim to reduce tracking error or…

EquitiesDerivatives pricingArbitragePortfolio construction
Quant Q&A

The document surveys ways to estimate multivariate conditional volatility when a Python workflow is desired. It notes that common Python GARCH support may focus on univariate models, and suggests that a basic multivariate model could require custom…

VolatilityStatisticsMachine learningPortfolio construction