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 document corrects an attempt to reconstruct an equity index by multiplying constituent share prices by published weights and summing them. It explains that an index such as the FTSE 100 is based on company market values rather than a simple weighted…

EquitiesUS marketsPortfolio construction
Quant Q&A

The document asks whether a portfolio’s expected returns should use only statistically significant factors identified through Fama–MacBeth analysis or all factors in the model. The response distinguishes a statistical selection view, which would omit…

Factor investingPortfolio constructionStatisticsBacktesting
Quant Q&A

The document presents the Manipulation-Proof Performance Measure (MPPM), a risk-adjusted portfolio performance statistic based on the average of relative gross returns raised to a power determined by a risk-aversion parameter. It describes the measure as a…

StatisticsRisk managementPortfolio constructionBacktesting
Quant Q&A

The document explains how to account for long and short contracts for difference (CFDs) when calculating a portfolio’s profit and loss and return. It treats each position’s mark-to-market gain or loss as an asset or liability, even when an open position has…

EquitiesDerivatives pricingPortfolio constructionRisk management
Quant Q&A

The document asks how to optimize a portfolio across multiple periods when asset holdings, trades, returns, and transaction costs are linked over time. It presents a deterministic linear programming formulation in which holdings evolve as assets are bought…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document considers how to build a hedge from quarterly short-term interest-rate futures using weights from a first principal component. It normalizes the component weights to one contract month to create a spread representation, then shows how equal tick…

FuturesStatisticsRisk managementPortfolio construction
Quant Q&A

The document clarifies the units behind a consumption constraint in a continuous-time asset-pricing problem. In discrete time, an investor’s consumption can be written as an endowment adjusted by the cost of an asset position, with later consumption…

StatisticsPortfolio construction
Quant Q&A

The document derives the variance of a multi-period compounded return when single-period returns are independent and share the same mean and variance. It first expands the squared gross return, showing that its expectation equals the return variance plus the…

StatisticsPortfolio construction
Quant Q&A

The document explains a practical use of Fama–French style factor models: assessing whether a stock or portfolio earns returns beyond those associated with established risk factors. It describes regressing the portfolio’s returns on the factors and…

Factor investingEquitiesPortfolio constructionStatistics
Quant Q&A

The document clarifies the meaning of the vector often denoted by u in a matrix expression for minimum-variance portfolio weights. A student initially wonders whether it represents expected returns, but distinguishes it from the separately named return…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document compares dedicated bond portfolios with immunized portfolios used to fund known future liabilities. A dedicated portfolio holds bonds whose cash flows match the amount and timing of the required payments, commonly using zero-coupon bonds. This…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The document asks why adding regression residuals to asset returns can leave their covariance unchanged. In a factor model, return covariance separates into covariance explained by the shared factors and covariance between residuals. If residuals are…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document tests whether a stock contributes a stated amount to portfolio volatility when its weight, volatility, and correlation with the portfolio are specified. The questioner starts from the portfolio variance expansion but applies it incorrectly,…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document discusses how to set strategic weights across broad asset classes while overlaying separate tactical signals. The questioner seeks long-horizon allocations informed by economic and country views, rather than risk parity or mean-variance…

Multi-assetPortfolio constructionFactor investingRisk management
Quant Q&A

This exercise studies pricing and hedging in a discrete-time market where the risky asset can move to one of three outcomes per period. Because a single risky asset cannot span all three outcomes, the market is incomplete. The exercise first relates…

OptionsDerivatives pricingRisk managementPortfolio construction
Quant Q&A

The document asks why two estimates of portfolio beta can differ: one sums individual asset betas weighted by portfolio weights, while the other estimates beta from the portfolio return series. It explains that beta is covariance with the market return…

StatisticsPortfolio construction
Quant Q&A

The document asks which discount rate is appropriate for market-consistent valuation of liabilities when an insurance arrangement uses return smoothing. The setup distinguishes general assets earning a risk-neutral rate from insurance capital whose return…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document clarifies that the classic Fama-French factors are formed through characteristic sorts rather than portfolio optimization. It outlines a size and book-to-market procedure: classify stocks into small or big groups using market capitalization,…

EquitiesFactor investingPortfolio construction
Quant Q&A

The document introduces a problem in arithmetic performance attribution: component contributions may add up to the active return within individual periods but fail to match the total active return when aggregated across periods. It asks how a linking…

StatisticsPortfolio construction
Quant Q&A

The document considers how to estimate expected returns for mean-variance portfolio optimization, noting that a simple historical average is a basic and potentially inadequate choice. It emphasizes that return estimates are difficult to make reliably because…

Portfolio constructionStatisticsFactor investingRisk management
Quant Q&A

The document examines a weighted average correlation measure formed from portfolio variance, individual asset volatilities, and pairwise cross terms. It asks whether the measure must stay within the usual correlation bounds when weights may be negative, and…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains how to calculate portfolio variance from position exposures and a covariance matrix. It distinguishes dollar exposures from normalized weights: dividing by net asset value can produce misleading signs when a portfolio is net short,…

Portfolio constructionRisk managementStatistics
Quant Q&A

The question describes annual sorting of stocks into portfolios by ESG score, holding each portfolio for seven years, rebalancing annually, and regressing monthly returns on the Fama-French five factors plus momentum. The reported pattern is negative alpha…

EquitiesFactor investingMomentumStatistics
Quant Q&A

The question concerns generating a vector whose components have mixed marginal distributions, with some normal variables and some gamma variables, while also matching a specified correlation matrix. It notes that transforming components of a multivariate…

StatisticsRisk managementPortfolio construction