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 explains how to calculate an annual geometric return from a sequence of monthly simple returns and how to check two seemingly different methods. First, compound the monthly gross returns within each year, then take the geometric mean of the…

StatisticsPortfolio construction
Quant Q&A

The example distinguishes dollar-weighted return from time-weighted return when an investor changes the number of shares held during a multi-year investment. For dollar-weighted return, it translates purchases and liquidation into dated cash flows and…

EquitiesStatisticsPortfolio construction
Quant Q&A

A short position’s cash flows and liability can produce a marked value or P&L that crosses from negative to positive. Applying the ordinary percentage-change formula directly to that signed series can give a misleading result, so the discussion considers…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document explains a mismatch between an analytical mean-variance portfolio solution and a numerical optimizer. The portfolio objective combines covariance-based risk with expected return, while the weights must sum to one. An unconstrained formula that…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document sketches an early timeline for formal portfolio selection theory. It identifies Harry Markowitz’s 1952 work on mean-variance portfolio selection as a foundation of modern portfolio theory, emphasizing how diversification affects portfolio…

Portfolio constructionStatisticsFactor investing
Quant Q&A

The document explains how to choose portfolio weights so each stock contributes equally to total portfolio variance. It defines each asset’s contribution using its weighted variance plus its covariance interactions with other holdings, divided by total…

EquitiesRisk managementPortfolio constructionStatistics
Quant Q&A

The document outlines the two stages of Fama–MacBeth regression for testing whether factor exposures explain stock returns. First, time-series regressions estimate each security’s factor loadings. Then monthly cross-sectional regressions use those estimated…

Factor investingEquitiesStatisticsPortfolio construction
Quant Q&A

The document raises a basic accounting question about two definitions of net asset value: assets minus liabilities, and that net amount divided by the number of outstanding units. It asks which definition applies to a hedge fund and what outstanding units…

Portfolio constructionRisk management
Quant Q&A

The document considers whether entropy pooling can be used when returns have a nonlinear, time-varying drift. One answer says it can be applied to simulated log returns or resulting prices at the investor’s horizon, then used as input to portfolio…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document discusses how to choose the market weights and asset universe when calculating the Black–Litterman implied return prior. One response recommends selecting a representative benchmark, then using the portfolio securities’ weights within that…

Portfolio constructionEquitiesMulti-assetStatistics
Quant Q&A

The discussion explains why a pricing equation with an expectation of one can appear as an equation with an expectation of zero. For a payoff priced today, the Euler equation states that its price equals the expected discounted payoff under the real-world…

StatisticsPortfolio construction
Quant Q&A

The document explains why separate factor regressions for two portfolios do not establish that one has a higher alpha than the other. Each regression tests its own alpha against zero; comparing the estimates requires a statistical model that explicitly links…

Factor investingStatisticsPortfolio constructionRisk management
Quant Q&A

The document considers a portfolio optimization problem with a fully invested constraint and a risk-adjusted return constraint involving the square root of portfolio variance. It describes converting that square-root expression into a quadratic form, which…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents a simplified Basel Pillar 2 granularity adjustment that adds a concentration-sensitive component to capital assessment. Its formula combines squared exposure shares with exposure-level terms involving default probability, loss given…

Risk managementPortfolio constructionFixed incomeStatistics
Quant Q&A

The document explains a practical way to estimate a covariance matrix for a portfolio containing a stock and multiple calls on that stock, with a common maturity and different strikes. Rather than relying on historical return data, simulate the stock forward…

OptionsEquitiesPortfolio constructionStatistics
Quant Q&A

The document frames a multi-period funding problem: choose among borrowing sources to cover forecast cash shortfalls while minimizing interest expense. The example includes fixed-rate borrowing with a short maturity, a capped source available across a range…

Fixed incomeRisk managementPortfolio constructionStatistics
Quant Q&A

The document raises a portfolio-allocation problem for an algorithmic trader running several stock-market models that may generate signals at the same time. With a finite wallet, committing all capital to one model can prevent acting on another signal and…

EquitiesPortfolio constructionPosition sizingRisk management
Quant Q&A

The document discusses how to estimate the covariance matrix needed to construct a Markowitz efficient frontier. It names maximum-likelihood estimation from historical returns as a standard approach, then describes alternatives: shrinkage of the covariance…

Portfolio constructionStatisticsVolatilityRisk management
Quant Q&A

The document sketches a two-investment portfolio model inspired by a time-dependent Polya urn. The portfolio is split between two assets, and one asset is monitored at each step with probability proportional to its current portfolio weight. If the monitored…

Portfolio constructionEquitiesStatistics
Quant Q&A

The document outlines how to assess whether an ESG score behaves like a priced equity factor. It cautions that correlating ESG scores with established characteristics such as size or value does not establish a risk premium. Instead, it proposes sorting…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

The document explains why assets can receive large or small weights in a mean-variance portfolio. The allocation balances expected returns against portfolio variance, so an asset’s own risk and return matter, as do its correlations with the other holdings.…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document explains why combining two managers’ returns using fixed allocation weights each quarter can produce a misleading annual result. That calculation assumes the portfolio is restored to its target equity and fixed-income weights after every period.…

Portfolio constructionFixed incomeEquitiesStatistics
Quant Q&A

The document presents two ways to incorporate skewness into portfolio optimization alongside expected return and variance. One derives a third-moment term from a third-order Taylor approximation to a constant absolute risk aversion exponential utility…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document clarifies that a Sharpe ratio calculated from daily returns is a daily estimate, regardless of how many observations were used, and that converting it to a monthly or annual figure depends on the return interval. Under the usual…

StatisticsRisk managementPortfolio constructionBacktesting