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

4,194 documents

Quant Q&A

The discussion compares principal component analysis (PCA) and clustering as ways to build risk models for portfolio optimization. PCA is presented as a method for reducing a set of risk variables to a smaller number of uncorrelated factors. Clustering…

StatisticsPortfolio constructionRisk managementFactor investing
Quant Q&A

The document compares smart beta, alternative indexes, and factor investing. Alternative indexes use weighting rules beyond market capitalization, including tilts toward momentum, value, smaller companies, or lower volatility, as well as fundamental measures…

Factor investingPortfolio constructionMomentumVolatility
Quant Q&A

The document considers whether assets with extreme estimated betas should be excluded when using CAPM to predict expected returns and calculate residual, or idiosyncratic, returns. The proposed model estimates monthly total returns against a global equity…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document raises questions about different James–Stein shrinkage-factor formulas used to adjust estimated asset-class returns before mean-variance portfolio optimization. One expression uses the number of observations, a grand mean, and the inverse…

Factor investingPortfolio constructionStatisticsRisk management
Quant Q&A

The document outlines how to simulate one-day returns for many stocks using factor-model inputs: factor returns, factor covariance, stock factor loadings, and idiosyncratic risk. It proposes drawing correlated factor shocks through a Cholesky decomposition,…

EquitiesFactor investingStatisticsRisk management
Quant Q&A

The document explains how to assess whether a proposed factor adds explanatory power to a Fama–French three-factor model. It distinguishes time-series regressions on sorted portfolios, which measure how much factor variation explains return variation, from…

Factor investingStatisticsEquities
Quant Q&A

Macro funds do not share one standard framework for managing risk or modeling returns. Their practices differ with each firm’s strengths, investment style, and willingness to use quantitative methods; some are less receptive to formal risk models than…

Multi-assetRisk managementFactor investingStatistics
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 explains how to calculate the Lakonishok et al. herding measure from the fraction of active institutions buying a stock, the market-wide buy proportion, and an adjustment factor. The question asks how to derive that factor and how to aggregate…

EquitiesStatisticsFactor investing
Quant Q&A

The document addresses which book equity measure to use when replicating a monthly book-to-market variable in a study of expected stock returns. The accepted response infers that the intended numerator is common equity, even though the paper does not…

EquitiesFactor investingStatistics
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 asks whether stock exposure to market, value, or momentum factors should be estimated using returns during factor drawdowns, since those losses may be linked to factor risk premiums. It also raises the estimation challenge: crash periods offer…

Factor investingStatisticsRisk managementMachine learning
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 document addresses how to calculate each company’s percentile rank for dividend yield and PEG ratio within its industry, using a universe such as the S&P 500 Pure Value Index. The suggested workflow is to retrieve ticker, industry, PEG, and…

EquitiesFactor investingUS markets
Quant Q&A

The document discusses the reported finding that stocks with greater sensitivity to innovations in aggregate volatility have lower average returns, and asks why such exposure might act as a hedge against market downside risk. It does not settle the puzzle;…

EquitiesVolatilityFactor investingRisk management
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 asks how matrix notation expresses the ordinary least squares objective and how differentiation produces the estimator. It starts from the linear model, writes residuals as the observed response minus fitted values, and expands the residual sum…

StatisticsFactor investing
Quant Q&A

The document discusses how accounting knowledge can matter across different quantitative finance roles. Its answers distinguish work focused on short-horizon research or derivatives pricing from roles involving fundamental equity selection, credit and…

EquitiesFixed incomeFactor investingStatistics
Quant Q&A

The document describes a proposed zero-investment stock portfolio in which each asset's weight depends on observable state variables, such as factors related to stock performance. This is the parametric portfolio policy approach associated with Brandt and…

Portfolio constructionEquitiesFixed incomeFactor investing
Quant Q&A

The document explains which stocks qualify for the annual Fama–French size and book-to-market portfolio sorts. Portfolios are formed at June end using market equity for size and book-to-market information based on prior fiscal-year book equity and December…

EquitiesFactor investingPortfolio constructionBacktesting
Quant Q&A

The document considers how to include valuation data in a regression when some companies have no meaningful positive price-to-earnings ratio because they are unprofitable. It raises two possible treatments: assigning those firms an artificially high P/E, or…

EquitiesStatisticsFactor investing
Quant Q&A

The document explains how to estimate a stock’s exposure to the Fama–French SMB and HML factors. The proposed method is a linear regression of the stock’s returns on the relevant factor returns; the resulting coefficients are the estimated factor betas.…

Factor investingEquitiesStatistics
Quant Q&A

The document raises a research question about measuring the stability of factor loadings in models such as Fama–French or Carhart. It frames loading stability as a criterion for evaluating alternative ways to construct a risk factor, using a possible climate…

Factor investingStatisticsEquities
Quant Q&A

The note explains that an asset pricing factor does not have to be an excess return or even a traded portfolio. In a one-factor model where the factor is itself an excess return, its risk price can be read directly from its average value: the factor has a…

Factor investingStatistics