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 exchange concerns a derivation connecting a stochastic discount factor (SDF) to a one-factor expected-return relation. The setup defines the SDF as one minus a traded tangency-portfolio return, then asks how the no-arbitrage pricing equation yields the…

Factor investingStatisticsPortfolio construction
Quant Q&A

The document considers an equal-weighted composite of regional equity indexes that have different market holidays. It asks how to handle dates when one region has no observation, noting that simply removing the unavailable index and recalculating the weights…

Multi-assetEquitiesStatisticsPortfolio construction
Quant Q&A

The document asks whether the information in a large covariance matrix can be represented by a scalar or another compact measure. It points to the matrix’s growth with the number of assets and the resulting dimensionality burden in portfolio analysis. It…

StatisticsPortfolio construction
Quant Q&A

The document asks whether return distributions and models are unaffected when the same observations are reordered. A shuffle preserves the full-sample mean and volatility, but can change serial dependence and the statistics observed in subsets of the sample.…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document explores how to use an equity alpha signal that sorts stocks into forecast-return groups, where average realized returns rise across the groups and lower-return groups also show lower realized volatility. It asks whether option positions, such…

EquitiesOptionsVolatilityPortfolio construction
Quant Q&A

The discussion explains why low-eigenvalue directions of a covariance matrix can produce low portfolio variance. Expressing weights in the covariance matrix’s eigenbasis makes variance a sum of squared coordinates, each scaled by its eigenvalue. Under a…

StatisticsPortfolio constructionRisk management
Quant Q&A

Bond duration summarizes how sensitive a bond’s price is to changes in yield. It provides a quick way to compare the interest rate risk of plain fixed-coupon bonds and to estimate price changes without repricing every bond. Modified duration expresses…

Fixed incomeRisk managementPortfolio constructionStatistics
Quant Q&A

The document asks how to calculate monthly returns for a Jegadeesh and Titman style momentum strategy with overlapping portfolios. Each month, a new tranche is formed and held alongside earlier tranches that have not yet reached the end of their holding…

EquitiesMomentumPortfolio constructionBacktesting
Quant Q&A

The document explains how to describe performance and risk for a portfolio with equal-sized long and short positions, whose net initial investment is zero. It distinguishes a simplified research convention from an investor-level account that includes the…

StatisticsRisk managementPortfolio constructionArbitrage
Quant Q&A

The question asks whether monthly portfolio and benchmark returns should be adjusted for differences in month length when estimating annual excess returns, correlations, and CAPM betas. One response suggests normalizing by trading days where possible.…

StatisticsFactor investingPortfolio construction
Quant Q&A

The document explains that a portfolio’s estimated beta depends on which market return series is used. Regressing the current portfolio holdings against the S&P 500’s realized historical returns measures their relationship to the index as it actually changed…

EquitiesStatisticsRisk managementPortfolio construction
Quant Q&A

The document explains two limitations of Value-at-Risk. VaR reports a loss threshold at a chosen confidence level, but it does not describe the size or shape of losses beyond that threshold. For distributions with heavy or long tails, that omission can…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document outlines a proposed method for constructing a factor-mimicking portfolio whose returns are strongly related to aggregate consumption growth, following the consumption-oriented CAPM literature. It describes calculating quarterly log consumption…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document asks whether portfolio optimization can avoid using empirical estimates such as historical returns and volatility. Its brief response points to unsupervised learning as a way to investigate relationships among assets, including correlation-like…

Machine learningPortfolio constructionStatistics
Quant Q&A

The document considers doubling exposure to a diversified permanent-portfolio variant holding equities, long-term government bonds, gold, and real estate. Its proposed construction uses deep in-the-money call options intended to have deltas near one, with…

Multi-assetOptionsPortfolio constructionRisk management
Quant Q&A

The discussion explains that Bayesian versions of Fama-French or Carhart factor models can be approached as Bayesian regression. It recommends learning Markov chain Monte Carlo and Gibbs sampling, while noting that Hamiltonian Monte Carlo software can reduce…

Factor investingStatisticsMachine learningPortfolio construction
Quant Q&A

The discussion considers how to model a portfolio exposed to several equity indices, including broad-market, small-cap, and financial-sector benchmarks. One reply suggests estimating each stock’s historical correlations to the indices, assigning it to the…

EquitiesStatisticsPortfolio constructionBacktesting
Quant Q&A

The document asks how to construct a fair buy-and-hold comparison for a strategy that accumulates shares over several days, sells the accumulated position, and later repeats the process with a different trade size. The central challenge is that the…

BacktestingPosition sizingEquitiesPortfolio construction
Quant Q&A

Value at Risk (VaR) is generally not additive: a portfolio’s VaR cannot usually be found by summing the standalone VaRs of its holdings. For two independent, normally distributed asset returns with zero means, the document derives portfolio risk by adding…

CommoditiesRisk managementPortfolio constructionStatistics
Quant Q&A

The document surveys how quantitative investors may use machine learning and data, including for estimating fair value, setting trading quotes, and researching stock signals. One response frames high-frequency firms as liquidity providers: models can…

Machine learningEquitiesBacktestingStatistics
Quant Q&A

The document explains why a manual portfolio-rebalancing calculation may disagree with a portfolio-return package: weights are dated at the end of a period and apply to the next period's returns. In the example, weights recorded at one month-end are used to…

Portfolio constructionBacktestingEquities
Quant Q&A

This document addresses an apparent conflict between the conventional discounted-cash-flow price of a coupon bond and the martingale condition for its price relative to a bank-account numeraire. The key distinction is between the bond’s quoted price and the…

Fixed incomeDerivatives pricingPortfolio construction
Quant Q&A

The document explains how to compute a maximum diversification portfolio using only risky assets. Given a nonsingular covariance matrix, the procedure takes its inverse, multiplies it by the vector of asset volatilities, and normalizes the resulting weights…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document asks how estimated factor exposures can guide weights across a universe of securities. Its answer describes a high-minus-low construction: rank assets on a selected factor, form upper and lower groups, and take opposing positions in those…

Factor investingPortfolio constructionEquitiesPosition sizing