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
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

4,194 documents

Quant Q&A

The document explains how to derive daily stock returns relative to the Fama-French three-factor model. The question asks whether regression residuals represent daily outperformance, or whether one should subtract factor contributions, weighted by estimated…

EquitiesFactor investingStatistics
Quant Q&A

The document discusses how to calculate portfolio returns when some constituent stocks have missing monthly returns, using a value-weighted portfolio as its example. It contrasts treating a missing return as zero with calculating the portfolio return from…

EquitiesPortfolio constructionStatisticsFactor investing
Quant Q&A

The document describes a factor attribution exercise for a backtested equity strategy. The researcher aggregates strategy returns monthly, obtains monthly Fama–French factor returns, and runs a multivariate regression. The resulting fit is low, prompting…

EquitiesFactor investingStatisticsBacktesting
Quant Q&A

The document explains a decomposition of momentum profits into effects associated with cross-sectional differences in average returns and with the time-series behavior of returns. It relays a three-part formulation attributed to Lo and MacKinlay: market…

MomentumEquitiesStatisticsFactor investing
Quant Q&A

The document frames equity risk model construction as a set of methodological choices, including factor selection, matching the horizon to the analysis, cross-sectional versus time-series estimation, regression design, and adjustments to the covariance…

EquitiesFactor investingRisk management
Quant Q&A

This document distinguishes beta as a statistical regression slope from beta's role in the Capital Asset Pricing Model (CAPM). In a single index model, beta is estimated from the covariance of an asset's excess returns with a factor's excess returns divided…

EquitiesStatisticsFactor investing
Quant Q&A

The discussion asks whether investors can access systematic risk premia through funds, indices, or exchange-traded products. It names carry, curve or term premium, size, value, momentum and trend, liquidity, and volatility as areas of interest, and notes…

Factor investingEquitiesMomentumMean reversion
Quant Q&A

The document explains how principal component analysis (PCA) is used to describe changes in yields across maturities. PCA finds eigenvectors of the covariance matrix of yield changes, ordered by their eigenvalues, which measure the variance captured by each…

Fixed incomeStatisticsFactor investing
Quant Q&A

The document considers how to choose a tradable universe for statistical arbitrage that models shared factors or indices and trades residuals. It contrasts liquidity cutoffs, selecting assets by their contribution to strategy performance, and using principal…

ArbitragePortfolio constructionFactor investingBacktesting
Quant Q&A

The document discusses ways to assess whether publicly traded U.S. companies may face bankruptcy, with the aim of informing decisions from short-term trading through long-term investing. One response suggests tracking financial ratios such as leverage,…

EquitiesRisk managementStatisticsFactor investing
Quant Q&A

The note explains where to retrieve a company’s Standard Industrial Classification code when working with Compustat data through SQL. The question arises because the Compustat fundamentals table, comp.funda, exposes SICH but not a field named SIC, even…

EquitiesUS marketsFactor investing
Quant Q&A

The document discusses how to interpret negative cost of equity estimates produced from CAPM beta calculations. It argues that a negative expected return can be consistent with portfolio theory: an asset that offsets another asset’s risk may have a negative…

EquitiesFactor investingPortfolio constructionStatistics
Quant Q&A

A negative average SMB return does not establish that large stocks outperformed small stocks: the observed estimate may be statistically indistinguishable from zero. The response illustrates this with Swedish market data, where the estimated monthly SMB…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document asks how a Barra-style factor model estimates factor returns from stock exposures and realized returns. It describes the standard cross-sectional fit: choose factor returns so the exposure-weighted estimates for each stock best match observed…

Factor investingStatisticsEquities
Quant Q&A

Fama–French portfolio breakpoints are thresholds calculated from NYSE-listed stocks and then applied to stocks listed on the NYSE, AMEX, and NASDAQ. The explanation links this choice to differences in market capitalization across exchanges and the addition…

EquitiesFactor investingPortfolio constructionUS markets
Quant Q&A

The document explains why empirical studies and Magic Formula screens often exclude financial companies and utilities. Financial firms have business models and balance sheets that make leverage difficult to interpret alongside leverage at nonfinancial…

EquitiesFactor investingStatistics
Quant Q&A

The document explores the distinction between factor research and alpha research. A factor is framed as an exposure that explains a systematic component of returns or risk, while alpha is described as a forecast of idiosyncratic returns without a systematic…

EquitiesFactor investingStatistics
Quant Q&A

The document discusses the equity risk premium as an expected return on the market factor and examines how its estimate behaves in CAPM and Fama–French three-factor asset-pricing tests. It cites a conservative US equity premium estimate of 3–4% and argues…

EquitiesFactor investingStatisticsUS markets
Quant Q&A

The document explains why a Fama–MacBeth cross-sectional regression may estimate a market risk premium even though market returns are observed. It distinguishes the time-series regression, which estimates each asset’s beta and alpha, from a cross-sectional…

StatisticsFactor investingEquities
Quant Q&A

The document explains Cochrane’s argument that variation in the dividend-price ratio must be associated with forecasts of future dividend growth, future returns, or both. If the ratio is stationary and tends to revert toward typical levels, an unusually high…

EquitiesStatisticsFactor investing
Quant Q&A

This exchange considers whether CAPM or a multi-factor asset-pricing regression requires the portfolio being analyzed to be efficiently diversified. The answer says statistically significant coefficients can still be interpreted when the portfolio does not…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document considers how business-cycle conditions may affect the performance of asset-pricing models applied to industry portfolios. It proposes dividing monthly excess returns into recession and non-recession subsamples, with recession dates identified…

EquitiesStatisticsFactor investing
Quant Q&A

The document asks how to obtain size and value risk premia for a Fama–French three-factor cost-of-equity estimate after estimating factor betas. One response proposes constructing the HML and SMB zero-investment portfolios from historical equity data, using…

EquitiesFactor investingStatistics
Quant Q&A

The document surveys several ways to group systematic trading strategies. Strategy families include trend and reversal approaches, price or technical methods, fundamental, yield, growth, and quality signals, as well as arbitrage, market making, sentiment…

ArbitrageMarket makingEvent-drivenSentiment