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
WonderTrader
14 documents
Alphalens
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

5,922 documents

Quant Q&A

The answer treats a cointegration spread as a synthetic position: going long the spread means buying one leg and shorting a hedge-ratio-weighted amount of the other, with the reverse positions for a short spread. It then discusses practical sizing across…

Pairs tradingPosition sizingPortfolio constructionBacktesting
Quant Q&A

The document discusses resampling as an alternative to traditional mean-variance optimization (MVO). Its main practical benefit is that the resulting portfolio allocations may vary less over time, which can reduce how often a portfolio needs to be…

Portfolio constructionRisk management
Quant Q&A

The document considers how to form a self-financing portfolio of bonds and stocks to replicate a basket of options, with each option written on a different underlying stock. It suggests constructing a replicating portfolio for each option separately and then…

OptionsEquitiesPortfolio constructionDerivatives pricing
Quant Q&A

This document shows that minimizing portfolio standard deviation under a fully invested constraint produces the same weights as minimizing variance. Since standard deviation is the square root of variance, it preserves the ordering of feasible portfolios, so…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to express a CAPM statement about a risky asset whose return has zero covariance with the market return. The cited passage characterizes such an asset as contributing nothing to the variance of the market portfolio, while describing a…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how to calculate portfolio returns when security weights may be negative or may sum to less than the full portfolio value. It assumes the positions are not rebalanced and starts with a total portfolio value of one. Returns are converted…

Portfolio constructionStatisticsEquities
Quant Q&A

Covariance shrinkage can improve mean-variance optimization even when the sample contains more observations than assets. The discussion frames shrinkage as a way to limit estimation risk: combining the sample covariance with a more stable estimate can make…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains that broad sector and industry labels may be too coarse for some investment or research tasks, and asks about more detailed classifications of stocks. The response describes several established taxonomies that divide companies from…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document raises a portfolio statistics question about constructing a covariance matrix in two stages. The proposed approach estimates each asset's variance from its own data, estimates pairwise correlations separately, and combines the two sets of…

StatisticsPortfolio construction
Quant Q&A

The discussion explains a central reason SPY and the S&P 500 index ticker can diverge: the index is a price index that excludes dividends, while SPY owns shares of the constituent companies and receives their dividends. SPY holds the resulting cash during…

EquitiesUS marketsPortfolio construction
Quant Q&A

The post describes a historical S&P 500 simulation that forms annual portfolios from companies ranked by return on equity: a top group, a bottom group, and a portfolio combining both. Holdings that leave the index are sold and their value redistributed among…

EquitiesFactor investingPortfolio constructionBacktesting
Quant Q&A

The document presents several proposed ways to set relative objective weights for alpha forecasts and transaction costs in a portfolio optimizer. The setting is monthly standardized factor-model forecasts combined with a nonlinear market-impact model…

Portfolio constructionExecutionBacktestingFactor investing
Quant Q&A

The document considers funding a liability due in the future with a portfolio of four-year zero-coupon bonds and a perpetual annuity, using duration matching. It writes one duration equation at the initial date and another one year later, when the bond’s…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The document shows how to compute the composition of the efficient risky portfolio, also called the one-fund or tangency portfolio, from asset covariances and expected excess returns. It gives a three-asset example with specified volatilities, a correlation…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents a decision problem in which Monte Carlo simulation has produced cost distributions for two alternatives. Their benefits are assumed equal but are not specified, and the decision maker is described as risk averse. Because the simulated…

StatisticsRisk managementPortfolio constructionBacktesting
Quant Q&A

The document outlines the main steps for constructing a factor model from firm characteristics and stock returns, using a Fama–French-style approach. It recommends cleaning the data, forming characteristic-sorted portfolios for factors such as SMB, HML, RMW,…

Factor investingEquitiesPortfolio constructionStatistics
Quant Q&A

The document asks how practitioners choose the observation window, weighting scheme, and regularization method for estimating covariance among factor returns. It begins with the usual sample covariance estimator based on daily factor returns. The response…

Factor investingStatisticsRisk managementPortfolio construction
Quant Q&A

The document explains why estimating a covariance matrix for many stocks can require at least as many observations as assets. It represents each stock’s return history as a column in a data matrix, with observations as rows. When there are fewer observations…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document describes a portfolio construction problem in which an optimizer can process at most a fixed number of assets at once, while the full investment universe is larger. The proposed workflow is to divide the assets into groups no larger than the…

Portfolio constructionStatistics
Quant Q&A

This explanation distinguishes portfolio returns, cumulative sums, and compounded performance. It first defines each asset’s simple return from adjusted prices, accounting for events such as dividends and stock splits. To calculate a value-weighted portfolio…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document outlines ways to set long-term capital market assumptions for fixed-income assets, including government bonds and high-yield credit. One approach builds expected returns from a cash-return estimate plus relevant premia, such as government bond…

Fixed incomeCommoditiesPortfolio constructionStatistics
Quant Q&A

The document outlines a proposed portfolio framework that combines probabilities for four market states, historical asset data, simulated returns, and an investment committee’s views on distribution moments. It focuses on the difficulty of generating…

Multi-assetStatisticsPortfolio construction
Quant Q&A

The document explains why Ledoit–Wolf covariance estimation blends a sample covariance matrix with the identity matrix. The blend shrinks estimated covariances toward zero and variances toward a common scale, limiting the influence of extreme sample…

Multi-assetPortfolio constructionStatisticsRisk management
Quant Q&A

The document explains how to derive state prices from asset payoffs by constructing portfolios that replicate Arrow–Debreu securities. For each state, solve a linear system in which the payoff matrix multiplied by portfolio weights equals a payoff of one in…

Derivatives pricingStatisticsPortfolio construction