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

This exchange concerns how to construct an equal risk contribution portfolio when the investor also wants a specified total volatility. It defines portfolio volatility from the covariance matrix and weights, and frames the allocation as minimizing squared…

Portfolio constructionRisk managementVolatility
Quant Q&A

This note explains how redundant factor exposures make ordinary least squares attribution underdetermined. In its example, every Japanese stock has identical exposure to both a Japan country factor and a JPY currency factor, so the two columns of the…

Factor investingStatisticsPortfolio construction
Quant Q&A

The question concerns selecting historical data for the covariance matrix used to forecast portfolio tracking error. The calculation is refreshed quarterly and annualized, and the author is comparing forecasts with realized post-period values while…

EquitiesStatisticsRisk managementPortfolio construction
Quant Q&A

The document examines whether maximizing a mean-variance objective is equivalent to maximizing a portfolio’s Sharpe ratio. It contrasts a quadratic objective that trades expected return against variance through a risk-aversion parameter with a ratio…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains practical ways to hedge a portfolio of bonds with different maturities against rising interest rates. A basic method groups holdings into maturity or duration buckets, totals each bucket’s exposure, and offsets it with Treasury bonds of…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document explains that whether past positions affect a value-at-risk estimate depends on the calculation method. A historical portfolio-return approach can use the portfolio composition held at each point in the selected history, so position changes are…

Risk managementStatisticsPortfolio construction
Quant Q&A

For a portfolio formed by summing two dependent random variables, the note explains that VaR is still a one-dimensional quantile: first find the distribution of their sum, then take its target quantile. It gives an integral for the sum’s cumulative…

Multi-assetStatisticsRisk managementPortfolio construction
Quant Q&A

The document points readers to approximate dynamic programming as a way to solve finance problems involving decisions over time, focusing on dynamic portfolio choice. Its central method is value function approximation: simulate possible paths and approximate…

Portfolio constructionMachine learningStatistics
Quant Q&A

The document asks whether the stock-and-bond portfolio used to interpret the Black–Scholes call formula remains self-financing as time passes. The proposed hedge holds a quantity of stock linked to the call’s delta and finances part of that position by…

OptionsDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The document explains why Kelly sizing maximizes expected logarithmic wealth rather than expected terminal wealth. In a repeated favorable coin-toss game, betting all available capital can maximize expected wealth but carries a high risk of ruin. Betting a…

Position sizingRisk managementPortfolio constructionStatistics
Quant Q&A

The document frames a return-measurement choice for equity factor research using weekly prices across thousands of stocks and annual portfolio rebalancing. It contrasts the compounded simple return over the year with the sum of weekly log returns, and notes…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document discusses a reviewer’s concern that using principal component analysis to reduce the size of a robust optimization problem may introduce harmful distortions. The response suggests one possible interpretation: classical PCA’s asymptotic behavior…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document addresses how to calculate portfolio weights as they drift under buy-and-hold returns, an operation used in a Monte Carlo stress-testing workflow. It states the recursive update: each asset’s prior weight is multiplied by its gross return and…

Portfolio constructionBacktestingPosition sizing
Quant Q&A

The document considers a portfolio formed by adding two assets whose prices follow Bachelier processes, each with its own volatility and Brownian driver. The question is how to represent the portfolio dynamics when the drivers have correlation. The answer…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document asks how to respond when realized losses exceed a value-at-risk limit more often than the model allows. It raises possible actions such as changing the VaR simulation approach, applying an additional capital factor, or switching to expected…

Risk managementStatisticsPortfolio construction
Quant Q&A

The exchange considers how to choose whole-share quantities under a cash budget to approximate target portfolio weights. It critiques an objective that minimizes squared differences in share counts: equal share-count errors can represent very different…

Portfolio constructionPosition sizingEquities
Quant Q&A

The document asks how to update a sample covariance matrix when a new observation arrives while reducing the influence of older data. It presents exponential smoothing as a recursive approach: combine the current covariance estimate with a newly calculated…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document compares term-premium estimates for Polish government bonds using daily and month-end monthly observations of the ten-year yield. The yields are interpolated from a Nelson-Siegel-Svensson curve built from bootstrapped zero-coupon yields, and the…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document asks how differences in estimated asset betas affect a mean-variance optimal portfolio. The optimizer described minimizes portfolio variance subject to a target expected return and a fully invested constraint. In the standard formulation, the…

Portfolio constructionFactor investingStatistics
Quant Q&A

The question asks whether Hierarchical Risk Parity (HRP) has a clear mathematical problem statement behind its algorithm, including the roles of hierarchical clustering, quasi-diagonalization, and recursive bisection. It wonders whether HRP can be framed as…

Portfolio constructionRisk managementStatistics
Quant Q&A

A cumulative return series tracks the compounded performance of an investment over successive periods. The document explains it by imagining that one dollar is invested in the asset whose periodic returns are being measured. After each period, the investment…

StatisticsPortfolio construction
Quant Q&A

Volatility timing adjusts exposure to risky assets according to recent or current volatility. The basic approach reduces exposure when measured volatility is high and increases it when volatility is low; the document notes that this can mean cutting risk…

VolatilityRisk managementPortfolio constructionFactor investing
Quant Q&A

The document works through a three-asset portfolio volatility calculation under the CAPM assumption that unsystematic risk is ignored. It shows that portfolio beta is the weighted average of the component betas, then uses the absolute value of that portfolio…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explores whether a bond could specify repayment in units of another security, such as stock or ETF shares, rather than in conventional currency. It frames the question both as a conceptual possibility and a legal one, then proposes an ETF whose…

Fixed incomeEquitiesPortfolio construction