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
Quantpedia
86 documents
TqSdk
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 document clarifies how to calculate variance for daily Fama-French factor data aggregated over a month. Because factors such as SMB are already expressed as portfolio return differences, they are returns in their own right; there is no need to calculate…

EquitiesFactor investingStatistics
Quant Q&A

The discussion asks whether a general market model could predict how long a trading strategy’s alpha will persist. It presents several perspectives: asset-pricing models can relate expected returns to risk factors, while evolutionary economics frames…

StatisticsRisk managementFactor investingMachine learning
Quant Q&A

The document asks how to obtain semiannual or annual Fama–French three-factor values from the public historical data provided at daily, weekly, and monthly frequencies. Its accepted response recommends aggregating monthly factor returns to form annual…

Factor investingEquitiesBacktestingStatistics
Quant Q&A

The document considers whether stocks must be sorted into portfolios when estimating Fama–French factor models. With only three companies available, the accepted answer recommends running separate regressions on each stock’s excess returns using the factor…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

Factor models explain shared movements across assets with a smaller set of common drivers. Because stocks often move together, treating their returns as independent can overstate the diversification benefit in a portfolio. A factor representation captures…

Factor investingPortfolio constructionRisk managementStatistics
Quant Q&A

The document discusses how to compare CAPM with the Fama–French three-factor model when studying Swedish industrial stocks. It raises a design concern: regressions on individual stocks may be less standard than tests using portfolios. It also notes that…

Factor investingEquitiesStatisticsBacktesting
Quant Q&A

This discussion distinguishes named factors, defined by observable economic or financial variables, from statistical factors extracted from asset returns with principal component analysis (PCA). The first PCA component often resembles a broad market factor,…

StatisticsRisk managementFactor investing
Quant Q&A

The document explains why a weighted least squares regression may multiply each observation by the square root of a company’s market capitalization in performance attribution. The key condition is a particular error model: residual variance must rise in…

EquitiesStatisticsFactor investing
Quant Q&A

The document discusses missing quarterly Compustat inputs when calculating Tobin’s Q and cautions against replacing unavailable values with zero. Missingness can reflect the underlying data model: for example, current asset fields may not apply to banks and…

EquitiesStatisticsFactor investing
Quant Q&A

The document discusses how to compare two mutual fund portfolios when their estimated alphas are statistically insignificant, even though one appears to outperform the other. Its answer cautions that an apparent performance difference may reflect different…

EquitiesStatisticsFactor investing
Quant Q&A

The document sets out a proposed simulation of monthly stock returns using a one-factor model. Asset excess returns are described as a mispricing term plus factor exposure times factor excess returns, with an idiosyncratic noise vector. The scenario sets…

EquitiesFactor investingStatistics
Quant Q&A

The document addresses two questions about the Shanken correction for errors-in-variables in asset-pricing tests. First, it asks how the correction's covariance terms can be added when the factor covariance is a matrix, and whether multifactor models require…

StatisticsFactor investingRisk management
Quant Q&A

The document describes a portfolio construction approach that uses ordinal rankings instead of explicit expected return estimates. In a portfolio of sorts, the centroid of each ranked group supplies the inputs, while the optimization retains a…

Portfolio constructionFactor investingStatistics
Quant Q&A

The second step of the Fama–MacBeth procedure runs a separate cross-sectional regression for each time period. For each month, stock returns are the dependent variable and the factor beta estimates from the first-stage time-series regressions are the…

EquitiesFactor investingStatistics
Quant Q&A

The document compares two approaches to estimating factor returns: cross-sectional regression using asset returns and factor exposures, and sorting assets by a characteristic to form a long-short portfolio. The answer says these approaches do not necessarily…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document asks how the Fama–MacBeth procedure accounts for uncertainty in its final average coefficient. The procedure estimates regressions across periods and averages the resulting coefficients; the question is whether inference based on variation among…

StatisticsEquitiesFactor investing
Quant Q&A

The document outlines a common design for quantitative fundamental equity research. Investors select company measures spanning value, momentum, quality, and growth, rank stocks on those measures, and group them into deciles. They then choose a portfolio…

EquitiesFactor investingBacktestingPortfolio construction
Quant Q&A

The document contrasts a two-step cross-sectional asset-pricing regression with a proposed Fama-MacBeth procedure using daily returns and monthly estimates. In the conventional setup described, time-series regressions estimate each asset’s factor loadings,…

Factor investingStatisticsEquitiesBacktesting
Quant Q&A

The document explains why the Fama–French three-factor time-series model uses returns on size and value factor portfolios instead of inserting a company’s market capitalization directly into its return equation. The portfolio return acts as a…

EquitiesFactor investingStatistics
Quant Q&A

The document explains how to separate an industry factor’s returns from broad market movements when estimating security exposures. It describes a Gram–Schmidt-style adjustment: regress industry returns on market returns, subtract the market component using…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document considers whether a strong balance sheet, especially low debt or substantial cash, can give a company a durable competitive advantage. The proposed mechanism is financial flexibility: cash reserves may help a firm fund timely investments and…

EquitiesRisk managementFactor investing
Quant Q&A

The document distinguishes cross-sectional momentum (CSM), which ranks assets against peers, from time-series momentum (TSM), which measures each asset’s own absolute performance. The discussion presents CSM as useful for isolating relative, asset-specific…

MomentumFactor investingEquities
Quant Q&A

The document explains why the characteristic portfolio for a chosen asset characteristic is not constrained to have weights summing to one. In the cited construction, the portfolio minimizes variance subject to achieving a unit exposure to the…

Portfolio constructionRisk managementFactor investing
Quant Q&A

The document considers whether widespread index investing can push individual stocks away from fair value when index funds buy or sell entire baskets. It asks whether traders might exploit those distortions in the short run and who could benefit if passive…

EquitiesFactor investingArbitrageMarket microstructure