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 asks how to extend mean-variance optimization to a Fama-French factor framework. It describes returns as factor exposures multiplied by factor returns, plus asset-specific returns, and asks how to represent portfolio risk when several factors…

Factor investingPortfolio constructionRisk managementStatistics
Quant Q&A

The discussion considers whether growth in passive and index investing could weaken price discovery by reducing the capital devoted to researching securities and trading on mispricing. It distinguishes low-cost passive investing from exact index replication,…

EquitiesFactor investingPortfolio constructionMarket microstructure
Quant Q&A

The document explains how to calculate the price-to-earnings ratio of an equal-weighted equity index from the constituent stocks' P/E ratios. Its answer gives the harmonic mean: take the number of stocks and divide by the sum of the reciprocal constituent…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document poses a portfolio allocation problem for two assets with stated expected returns and equal volatility, asking how the choice might change when their correlation is positive one, zero, or negative one. It raises the idea that when correlation is…

Portfolio constructionRisk managementStatisticsPosition sizing
Quant Q&A

The document considers how to optimize a portfolio of foreign-currency equities when returns and risk are measured in an investor’s home currency. Its central suggestion is to model the investment as carrying both equity risk and currency risk, rather than…

Multi-assetEquitiesForexPortfolio construction
Quant Q&A

The document frames how to evaluate a portfolio policy that combines slow structural regime classification with faster detection of tactical instability. Its actions are Allocate, Reduce, and Abstain, with persistence rules intended to prevent short-lived…

Portfolio constructionRisk managementBacktestingStatistics
Quant Q&A

The document examines how to represent portfolio returns when combining several assets over multiple periods. It contrasts ordinary returns with log returns, using portfolio weights and interval returns to show why each is convenient along one dimension but…

Portfolio constructionStatisticsMulti-asset
Quant Q&A

The document describes an aftcast as evaluating portfolio paths from many historical start dates, using a long return history to examine retirement withdrawals. The questioner adjusts returns for inflation, compounds daily portfolio value, and subtracts a…

EquitiesBacktestingPortfolio constructionRisk management
Quant Q&A

The document considers how to project future profit and loss and drawdowns for trading strategies and portfolios. It raises several possible approaches: extrapolating a backtest, resampling its empirical returns, forecasting time-varying variance with GARCH…

BacktestingRisk managementStatisticsPortfolio construction
Quant Q&A

The document explains why portfolios optimized for variance and expected shortfall can have different weights, even when expected returns are equal. It decomposes a portfolio return distribution at a lower-tail quantile into tail and non-tail regions.…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explains two ways to represent equity risk when validating value-at-risk for a stock portfolio. One approach models shocks for each individual stock and applies them directly. Another models shocks to shared factors, such as a market or…

EquitiesRisk managementPortfolio construction
Quant Q&A

The document considers what investors should review before investing in a fund, pushing back on the idea that one metric—such as fees, turnover, or recent benchmark performance—can settle the decision. It highlights sources of downside risk including…

Risk managementPortfolio constructionDerivatives pricing
Quant Q&A

The discussion asks whether an asset pricing model can explain observed stock market anomalies and receive broad empirical support. The response does not provide a tested pricing model or a comparative review of empirical results. Instead, it outlines a…

EquitiesStatisticsPortfolio constructionPosition sizing
Quant Q&A

The document discusses fitting a Marchenko–Pastur (MP) eigenvalue distribution to a sample correlation matrix built from S&P 500 stock returns. It notes that a smoothed density plot can make the empirical and theoretical peak heights appear quite different…

EquitiesStatisticsPortfolio construction
Quant Q&A

The document addresses a Markowitz portfolio optimization problem with lower and upper bounds on each asset weight. It explains that ordinary componentwise upper and lower limits are linear constraints, so they can be included through Kuhn–Tucker conditions…

Portfolio constructionRisk managementStatistics
Quant Q&A

The discussion considers how to combine long/short momentum and mean-reversion strategies. It notes that simply normalizing each strategy’s signal and adding them is one possible approach, then emphasizes that momentum and reversion are relative to the asset…

MomentumMean reversionStatisticsPortfolio construction
Quant Q&A

The document asks how to combine a momentum signal whose strongest predictive power is at a three-month horizon with a valuation signal that works best over one year. It proposes scaling the valuation signal by dividing it by four when using both in a…

MomentumFactor investingPortfolio constructionStatistics
Quant Q&A

The document asks how to decompose an asset’s marginal contribution to portfolio Mahalanobis distance into volatility and correlation parts. It presents a contribution formula based on each asset’s return and the corresponding row of the inverse covariance…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document discusses how to calculate a Sharpe ratio when assets have different numbers of trading days or show repeated zero returns. Its answer recommends excluding days when the asset did not trade or the strategy had no position, then scaling the…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document considers how to allocate portfolio gains when investors contribute capital at different times and one partner later withdraws. Its example uses ETF purchases at different prices, raising the question of whether an early investor’s redemption…

Portfolio constructionRisk managementEquities
Quant Q&A

The document addresses why a researcher’s value-weighted CRSP returns may exceed a published market return. Its main diagnosis is a timing error in portfolio weights: monthly returns from the prior month-end to the current month-end must be weighted using…

EquitiesBacktestingPortfolio constructionStatistics
Quant Q&A

The document describes a proposed way to estimate investment home bias by comparing the share of a country's investors' equity capital invested domestically with that country's share of the global equity market. The questioner seeks annual investor…

EquitiesPortfolio constructionUS markets
Quant Q&A

The document explains why a portfolio variance or tracking-error variance calculated as a quadratic form can be negative: the input covariance matrix may fail to be positive semidefinite, so it is not a valid covariance matrix. A valid covariance matrix must…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explores how an investor’s risk aversion relates to preferences for skewness and kurtosis in portfolio choice. It points toward lower partial moments and conditional value at risk as frameworks that emphasize downside outcomes, and contrasts…

Portfolio constructionRisk managementStatisticsOptions