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
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 document explains how to calculate the correlation of each of two portfolios with a combined portfolio. Given the covariance matrix of the two subportfolios, define the combined portfolio as a weighted blend of them. The covariance of the first portfolio…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how to convert portfolio weights into capital allocations, contrasting a long-only formula with a long-short set of weights. One answer explains that weights whose positive and negative components are large can have a net exposure near the…

Portfolio constructionPosition sizingRisk managementEquities
Quant Q&A

The document explains a way to remove a portfolio’s estimated exposure to a Fama–French factor. First, regress the portfolio’s excess returns on the chosen factor to estimate its beta. Then combine the portfolio with a short position in the factor…

Factor investingPortfolio constructionStatisticsRisk management
Quant Q&A

The document outlines how to infer Stock Z’s expected return under CAPM when the market portfolio is composed of three stocks with equal weights. It proposes first calculating market variance from the component variances and covariances, then finding each…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document outlines ways to combine an allocation produced by a quantitative model with an allocation informed by qualitative judgments. It distinguishes blending portfolio weights from blending expected returns: direct weight combinations may remain…

Portfolio constructionRisk managementStatistics
Quant Q&A

This discussion examines why a risk-parity optimizer may return nearly equal asset weights when its inputs use a Ledoit–Wolf shrunk covariance matrix. The proposed explanation is that strong shrinkage reduces differences in the covariance estimates, leaving…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document addresses how to keep a stock portfolio beta-neutral when holdings change over time and may consist only of long or only of short positions on a given day. Its proposed approach is to estimate the stock portfolio’s beta against an index, then…

EquitiesFuturesRisk managementPortfolio construction
Quant Q&A

The document distinguishes calculating a bond’s yield to maturity from realizing that yield as an investor. YTM is the discount rate that equates a bond’s dirty price with the present value of its scheduled cash flows. Solving that equation does not require…

Fixed incomeRisk managementStatisticsPortfolio construction
Quant Q&A

The discussion distinguishes literal transfers of capital from the shorthand of money flowing into or out of an asset class. In secondary markets, a seller’s shares are acquired by a buyer, so trading alone does not reduce the number of outstanding shares or…

Market microstructureEquitiesPortfolio constructionStatistics
Quant Q&A

The document evaluates a portfolio objective that adds portfolio variance and a correlation-based term while requiring weights to sum to one. It explains that the formulation is mathematically permissible, but the two terms have different scales. Without an…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents a portfolio optimization problem in which trades should either be zero or exceed a chosen minimum absolute size. The proposed objective combines active risk with a turnover penalty, while portfolio weights and auxiliary buy and sell…

Portfolio constructionPosition sizingMachine learning
Quant Q&A

The document asks how to construct a factor from stocks ranked by idiosyncratic volatility after accounting for the Fama–French market, size, and value factors. The proposed long–short return subtracts the returns of low-volatility stocks from those of…

EquitiesFactor investingVolatilityPortfolio construction
Quant Q&A

The document poses a one-year holding-period return problem for a coupon bond using annual spot rates today and a projected spot curve one year later. The calculation must combine the coupon received during the year with the bond’s sale value after that…

Fixed incomePortfolio constructionStatistics
Quant Q&A

The document addresses a geometric-return calculation that appears to fail when a dataset includes a reported return below negative one hundred percent. The key issue is that the spreadsheet formula treats the observations as arithmetic simple returns, even…

StatisticsPortfolio construction
Quant Q&A

The document explains how an equal-weight portfolio can end up with a higher Sharpe ratio than a portfolio selected to maximize Sharpe. The tangency portfolio is chosen using information available at the investment date, such as historical returns and…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document considers minimizing an objective formed from two quadratic terms, one associated with price returns and another with income returns. The central algebraic observation is that both terms share the same coefficient vector, so they combine into a…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how to construct a mean-variance efficient frontier when expected returns and asset volatilities are forecasts rather than a historical return series. It emphasizes that asset volatilities alone are insufficient: portfolio risk also…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document explains how to calculate the portfolio where a capital market line from a risk-free asset touches the efficient frontier. It derives the weights from expected asset returns, the covariance matrix, and a risk-free rate. With unconstrained…

Portfolio constructionRisk managementStatistics
Quant Q&A

The discussion considers how to interpret portfolio exposures to the market, size, and value factors in the Fama-French three-factor model. One response characterizes portfolios through their individual loadings: exposure to size and value distinguishes a…

Factor investingStatisticsPortfolio construction
Quant Q&A

The discussion explains why portfolio VaR should be calculated against current positions and historical or simulated changes in market factors. Historical simulation revalues today’s portfolio using past factor moves; Monte Carlo simulation generates…

Risk managementVolatilityStatisticsPortfolio construction
Quant Q&A

The document explains how to calculate returns and risk for a long-short portfolio using asset weights. Portfolio return is the weighted sum of component returns, with short positions represented by negative weights and long positions by positive weights.…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to allocate a limited portion of a portfolio to puts as a tail-risk sleeve. It asks how option maturity, renewal frequency, and distance out of the money affect the strategy, noting that longer-dated options have greater vega…

OptionsVolatilityRisk managementPortfolio construction
Quant Q&A

The document describes a mean-variance optimization setup for an account manager allocating capital among multiple subportfolios with different, potentially overlapping asset universes. Each subportfolio has its own budget constraint, while assets not…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document derives how an investor’s wealth changes when a fraction is allocated to a risky asset following geometric Brownian motion and the remainder earns a risk-free rate. Applying Ito’s lemma transforms the wealth process into a stochastic process for…

StatisticsPosition sizingPortfolio constructionRisk management