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 examines why a single unusually large daily return can have a disproportionate effect on annualized variance when returns are aggregated to a lower frequency, such as monthly. Since the outlier remains one observation but represents a longer…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document raises a portfolio optimization question about shrinkage estimation of a Newey–West covariance matrix. It describes combining the contemporaneous covariance matrix with a symmetrized lagged covariance term, and considers using an identity matrix…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains a two-asset mean-variance optimization with a target portfolio return and a fully invested weight constraint. It interprets the solution weights as asset positions and the accompanying Lagrange multipliers as measures associated with…

Portfolio constructionRisk managementStatisticsEquities
Quant Q&A

The document distinguishes factor evaluation from factor modeling. It asks whether a factor’s long-short portfolio return and statistical significance correspond to the factor return in a model where asset returns depend on factor exposures. The answer…

Factor investingPortfolio constructionRisk managementEquities
Quant Q&A

The document considers allocating a portfolio across five asset categories while imposing lower or upper bounds on selected weights. It asks whether maximizing expected return under such constraints can be formulated as linear programming. The replies…

Portfolio constructionRisk managementStatistics
Quant Q&A

This question compares an extreme value theory approach to value-at-risk with simulation from empirical return distributions. The proposed EVT workflow models the center of returns with a Gaussian kernel and the tails with a generalized Pareto distribution,…

StatisticsRisk managementBacktestingPortfolio construction
Quant Q&A

The document explains why portfolio construction may benefit from shrinking an estimated covariance matrix, even when computation is cheap. Shrinkage pulls extreme covariance estimates toward more central values, which can reduce the estimation errors that…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document compares three ways of working with investment factors. One approach builds long-short portfolios by ranking stocks on a characteristic such as price-to-book and buying the highest-ranked group while shorting the lowest. The author notes that…

Factor investingPortfolio constructionEquitiesStatistics
Quant Q&A

The document explains that a valuation discount rate must match the cash flow being valued. It distinguishes dividends and free cash flow to equity, typically discounted at the required equity return estimated with CAPM or another equity model, from free…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document asks how to construct the tangent portfolio when short selling is prohibited. With short sales allowed, it gives the familiar solution proportional to the inverse covariance matrix times expected excess returns, then normalizes the risky-asset…

Portfolio constructionStatisticsRisk management
Quant Q&A

The discussion considers replacing discretionary Black-Litterman views with systematic signals. The proposed example estimates each stock’s residual return from a market model, standardizes residual averages by their volatility, and uses the difference…

Portfolio constructionFactor investingStatistics
Quant Q&A

The note asks why the maximum-Sharpe portfolio problem can be reformulated as minimizing portfolio variance subject to a fixed excess-return target. Its central idea is scale invariance: multiplying portfolio weights by a positive constant leaves the Sharpe…

Portfolio constructionStatistics
Quant Q&A

The document explains why stock and government bond prices can have changing correlations. Both asset classes respond to changes in risk-free discount rates: when rates rise, the present value of their future cash flows can fall. Equity prices also depend on…

EquitiesFixed incomePortfolio constructionStatistics
Quant Q&A

The document describes a Monte Carlo resampling approach to mean-variance portfolio optimization. It outlines fitting return distributions to assets, simulating returns while respecting assumptions about expected returns, volatility, and correlation,…

Portfolio constructionStatisticsRisk managementBacktesting
Quant Q&A

The discussion explains why daily component contributions that add to a portfolio’s return cannot each be compounded independently and expected to reproduce the portfolio’s compounded performance. Contributions allocate each period’s portfolio gain across…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks whether a long-short portfolio formed from a cointegrated pair can be shown to have zero CAPM beta. It writes the portfolio’s market exposure as the beta of the long position minus the hedge ratio times the beta of the short position.…

Pairs tradingPortfolio constructionRisk managementStatistics
Quant Q&A

The document compares monthly Fama-French factor returns with values obtained by geometrically compounding the published daily series. It focuses on the market excess return and the SMB and HML factors, which are built from portfolios formed by size and…

EquitiesFactor investingPortfolio constructionBacktesting
Quant Q&A

The document considers an equally weighted portfolio of three stocks with equal volatility and zero pairwise correlation. It asks what fraction of an individual stock’s risk is diversified by including it in that portfolio, and presents a variance-based…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The answer explains which portfolio risk report fields can be scaled by position size and netted across trades. Most sensitivities, including Greeks, typically scale with notional, but aggregation needs care: unlike-for-like positions should be combined, and…

OptionsRisk managementPortfolio construction
Quant Q&A

The document discusses combining forecasts from different trading methods, including sentiment measures, signal processing, and neural networks. One recommendation is to express forecasts in comparable units, such as expected returns or event probabilities,…

Machine learningPortfolio constructionBacktestingStatistics
Quant Q&A

The document explores how to set asset-level risk contribution budgets while also requiring a portfolio to meet a target volatility. It presents an optimization that minimizes squared differences between each asset’s share of portfolio variance and its…

Risk managementPortfolio constructionVolatilityPosition sizing
Quant Q&A

The document presents an informal argument linking arbitrage to the existence of an investor’s optimal consumption and trading choice. It says that if an optimal strategy exists and utility is strictly increasing, adding an affordable arbitrage that delivers…

ArbitragePortfolio constructionRisk management
Quant Q&A

The document describes an olive plantation scenario-generation problem involving investment costs, delayed revenues, and temperature. The author proposes fitting a four-variable Gaussian copula to ranked observations of costs, revenues, temperature changes,…

StatisticsMachine learningPortfolio construction
Quant Q&A

The document asks whether portfolio variance computed from a fixed vector of weights equals the quadratic form using the return covariance matrix, and whether the same identity holds with sample estimates. The answer applies linearity of expectation: for…

Portfolio constructionStatisticsRisk management