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 note addresses whether an information ratio should use average monthly returns or cumulative monthly returns. Its answer recommends dividing the average monthly return by the standard deviation, pointing readers to an external response for further…

StatisticsPortfolio construction
Quant Q&A

The document discusses how to identify common risk factors in private markets when asset prices are infrequently observed or unavailable. One suggested route is to describe companies using observable characteristics such as industry, business relationships,…

Fixed incomeStatisticsRisk managementPortfolio construction
Quant Q&A

The document presents a derivation of the CAPM by treating the market portfolio as a portfolio on the capital allocation line that maximizes the Sharpe ratio. Under the assumption that investors choose mean–variance efficient portfolios, individual holdings…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains how to generate multivariate Gaussian returns with a target covariance structure. Starting with a vector of independent standard normal draws, apply a matrix square root of the desired covariance matrix. A Cholesky factor is one such…

StatisticsPortfolio constructionBacktesting
Quant Q&A

The document examines a spreadsheet that models portfolio wealth with a lognormal distribution derived from expected return and risk, then scales the log-return distribution across multiple years. The resulting wealth distributions spread out over time,…

StatisticsPortfolio constructionRisk management
Quant Q&A

This document asks whether a minimum-variance portfolio is more likely than a maximum-Sharpe, or tangency, portfolio to deliver out-of-sample performance close to its in-sample estimate. It defines disappointment as the gap between predicted in-sample…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how covariance-matrix inversion affects the standard mean-variance portfolio solution. In an eigenvector decomposition, each direction’s contribution is scaled by the reciprocal of its covariance eigenvalue. Consequently, directions…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document shows how to calculate a money-weighted rate of return for a pension fund with dated inflows and outflows. The method sets the future value equation to zero at the fund’s closing date, compounds the starting balance over twelve months, adjusts…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains why the S&P 500 price index and its total return counterpart produce different performance charts. The price index reflects constituent share prices, so it falls when a company goes ex-dividend; it does not credit the dividend to the…

EquitiesUS marketsPortfolio construction
Quant Q&A

The document resolves a confusion between variance as a function of a probability parameter and portfolio variance as a function of asset weights. A Bernoulli variable’s variance can be concave in its probability parameter, but portfolio variance, expressed…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note derives the range of a common off-diagonal correlation that makes a matrix with unit diagonal entries a valid covariance or correlation matrix. It corrects a variance calculation: when summing pairwise covariances in the variance of a sum, each…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains two possible budget constraints in mean-variance portfolio optimization when short sales are permitted. Requiring signed portfolio weights to sum to one treats short positions as negative weights whose proceeds can fund long positions.…

Portfolio constructionRisk managementEquities
Quant Q&A

The document introduces mean-variance portfolio optimization, including a minimum-variance portfolio and a variance-minimizing portfolio constrained to a target expected return. It then describes practical variations: long-only holdings, caps on individual…

Portfolio constructionRisk managementFixed incomeStatistics
Quant Q&A

The document asks how to interpret the point where a line from the risk-free rate touches the efficient frontier for a portfolio built from three stocks. In mean-variance portfolio theory, that tangency point represents the risky portfolio with the highest…

Portfolio constructionEquitiesRisk management
Quant Q&A

The document asks whether investors who understand asset pricing should hold only portfolios on the mean-variance efficient frontier. It presents a relation between an asset’s expected return, its volatility, its correlation with the stochastic discount…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how to maximize expected return for a portfolio subject to a limit on expected shortfall (ES), also called conditional value-at-risk. It describes an auxiliary function of portfolio weights and a threshold variable: the function is…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document asks how to combine multiple strategies into one portfolio and why volatility calculated from aggregate asset exposures may differ from volatility calculated using strategy return streams. It describes two views: treat each strategy’s returns as…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document proposes revisiting the portfolio construction rule at every rebalance instead of committing to one allocation scheme throughout an investment horizon. It contrasts optimized approaches, such as minimum variance and maximum Sharpe portfolios,…

Portfolio constructionBacktestingStatistics
Quant Q&A

The document asks how to handle zero weights from a Markowitz allocation when every asset must be included, and how to determine the risk-free allocation when constructing a portfolio on the capital market line. The response focuses on selecting the risky…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document proves convexity for a portfolio risk measure consisting of expected return plus a positive multiple of the expected absolute deviation from expected return. It assumes portfolio return is linear in portfolio weights, so expected return is also…

Risk managementPortfolio constructionStatistics
Quant Q&A

The document examines why the optimal risky portfolio can appear to differ when optimizing with or without access to lending and borrowing at a risk-free rate. Its central correction is that maximizing expected return divided by volatility is not equivalent…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document presents an equity portfolio-selection problem based on monthly returns for a large stock universe and a market index. Its code estimates each stock's average return, beta, residual risk, and Treynor ratio, then applies a single-index cutoff…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

This collection of answers challenges widely used ideas in quantitative finance, including correlation-based diversification, CAPM as an allocation rule, normally distributed independent returns, value at risk, efficient markets, copulas, and perfect delta…

Risk managementStatisticsPortfolio constructionDerivatives pricing
Quant Q&A

The document explains how to turn a sequence of periodic returns into a continuous index or equity curve starting from a base value. It distinguishes adding return increments from compounding them and gives the accepted answer: multiply the index by one plus…

StatisticsBacktestingPortfolio construction