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

21,023 documents

Quant Q&A

The document explains how covariance-matrix inversion affects the standard mean-variance portfolio solution. In an eigenvector decomposition, each direction’s contribution is scaled by the reciprocal of its covariance eigenvalue. Consequently, directions…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document shows how to calculate a money-weighted rate of return for a pension fund with dated inflows and outflows. The method sets the future value equation to zero at the fund’s closing date, compounds the starting balance over twelve months, adjusts…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document discusses how to evaluate residuals when comparing time-series forecasts, including volatility forecasts from models such as GARCH. It recommends examining autocorrelation: if errors contain predictable structure, the model may be missing a…

StatisticsBacktestingVolatility
Quant Q&A

The document asks for the stochastic differential of an exponential built from an integral involving a diffusion process. The questioner applies Itô’s formula to the exponential, but assumes the integral has differential equal only to the integrand at the…

StatisticsDerivatives pricing
Quant Q&A

The document poses a conceptual question about the efficient market hypothesis (EMH): if prices reflect available information and investors are rational, why should prices change or investors expect returns? It considers three possibilities: no new…

StatisticsEquities
Quant Q&A

The document resolves a confusion between variance as a function of a probability parameter and portfolio variance as a function of asset weights. A Bernoulli variable’s variance can be concave in its probability parameter, but portfolio variance, expressed…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note derives the range of a common off-diagonal correlation that makes a matrix with unit diagonal entries a valid covariance or correlation matrix. It corrects a variance calculation: when summing pairwise covariances in the variance of a sum, each…

StatisticsPortfolio constructionRisk management
Quant Q&A

The note asks why a CAPM generalized method of moments specification does not add a separate moment equating the factor’s sample mean to its expected value. It explains that the cross-sectional pricing moments compare each asset’s expected excess return with…

Factor investingStatistics
Quant Q&A

The document asks what changed in Monte Carlo methods for pricing American options between 2005 and 2016, following earlier machine-learning work on optimal stopping. One answer argues that the period brought few groundbreaking Monte Carlo advances and that…

OptionsDerivatives pricingMachine learningStatistics
Quant Q&A

The document considers a finite-difference approximation to the Black–Scholes equation and asks how coefficient sign conditions can establish a maximum-norm bound. The proposed argument rewrites each value at one time level using the neighboring values and…

OptionsDerivatives pricingStatistics
Quant Q&A

The document introduces mean-variance portfolio optimization, including a minimum-variance portfolio and a variance-minimizing portfolio constrained to a target expected return. It then describes practical variations: long-only holdings, caps on individual…

Portfolio constructionRisk managementFixed incomeStatistics
Quant Q&A

The document discusses the economic meaning of the intercept, or alpha, in regression-based asset pricing models. In a return regression, the intercept represents the component of return not explained by the included factors when their returns are zero. For…

Factor investingStatisticsEquities
Quant Q&A

The document explains how to obtain a quantile of an exponentiated normally distributed variable. If the logarithm of a positive variable is normal, its quantile is found by taking the exponential of the corresponding normal quantile. Because the exponential…

StatisticsDerivatives pricing
Quant Q&A

The document raises a problem in simulation-based testing of investment strategies that use valuation measures such as price-to-book or dividend yield. A simulation that generates prices while retaining historical values for accounting variables may create…

EquitiesBacktestingStatistics
Quant Q&A

The document examines why selecting the top decile of S&P 500 stocks by price-to-earnings ratio can produce fewer names than an expected count. One proposed explanation is that some companies had negative earnings during the measurement period. Since the…

EquitiesFactor investingStatistics
Quant Q&A

The document asks for a route from beginner-level C++ to quantitative trading, from a learner who already programs professionally in Visual Basic and has trading experience. The response suggests starting with a general C++ text, then studying resources…

Machine learningDerivatives pricingStatistics
Quant Q&A

The document examines how the value of an inflation-linked payment can differ from expected inflation multiplied by a discount factor when inflation and interest rates are correlated. It presents a simplified convexity adjustment for a fixing paid after a…

Fixed incomeDerivatives pricingStatistics
Quant Q&A

The document examines limitations of variance as a portfolio risk measure, especially when return distributions are not well described by a stable normal model. One example compares two hypothetical single-stock portfolios with the same variance: one has…

Risk managementStatisticsVolatility
Quant Q&A

The document asks whether investors who understand asset pricing should hold only portfolios on the mean-variance efficient frontier. It presents a relation between an asset’s expected return, its volatility, its correlation with the stochastic discount…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how to maximize expected return for a portfolio subject to a limit on expected shortfall (ES), also called conditional value-at-risk. It describes an auxiliary function of portfolio weights and a threshold variable: the function is…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explains why spot forex historical data cannot be interpreted like exchange consolidated equity data. Spot foreign exchange is fragmented across dealers and electronic venues, so there is no single source that captures all quotes, orders,…

ForexMarket microstructureStatistics
Quant Q&A

The document applies Itô’s lemma to an exponential function of an integrated short rate under the Vasicek model. It derives the stochastic differential of the intermediate process, then uses its drift and diffusion terms to obtain the dynamics of the…

Fixed incomeDerivatives pricingStatistics
Quant Q&A

The document explains how the Lévy measure determines whether successive jump times and their gaps can be treated as discrete events. When the Lévy measure has finite total mass, jumps form a compound Poisson process, with rate equal to that total mass; the…

Statistics
Quant Q&A

The document considers how to compute an exponential moving average across a large universe without replaying every observation since each security began trading. It explains that the recursive form needs only the prior EMA, while the equivalent direct form…

EquitiesTechnical indicatorsStatistics