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
WonderTrader
14 documents
Alphalens
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 note considers whether an institution’s risk-aversion parameter can be inferred from observed trade profit and loss under a proposed power utility function. Its response cautions that utility is generally specified over wealth or consumption, rather than…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document shows how to calculate a Sortino ratio for a weighted portfolio. It first forms a portfolio return series by applying asset weights to each period’s returns. Given a target return, or minimum acceptable return, it computes downside deviation as…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document explains how to derive the correlation between two arithmetic baskets from the volatilities and pairwise correlations of their component assets. For two two-asset baskets, it first adds the four cross-basket covariances, expressing each…

Multi-assetStatisticsPortfolio construction
Quant Q&A

The document examines a claim that active portfolios collectively have lower risk-adjusted returns than a passive market portfolio. It presents a numerical example with a market holding and an independent active holding, then constructs two funds with…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document frames expected return estimation as a key input to Markowitz mean–variance portfolio optimization, where allocations balance expected return against variance according to an investor’s risk aversion. It asks what alternatives exist to…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document discusses the approximate relationship between information ratio, information coefficient, and breadth: IR is often expressed as IC multiplied by the square root of breadth. It cautions that this is a useful but imprecise framework and that…

StatisticsPortfolio constructionRisk management
Quant Q&A

The discussion explains convexity for a portfolio containing two zero-coupon bonds with different maturities. It derives portfolio convexity by taking the second derivative of total price with respect to yield and normalizing by portfolio price. The…

Fixed incomePortfolio constructionRisk management
Quant Q&A

The document considers what a third dimension could add to a mean-variance efficient-frontier visualization, whose familiar axes are portfolio volatility and expected return. It explains that these two statistics can describe the trade-off when returns are…

Portfolio constructionRisk managementStatistics
Quant Q&A

The note shows how to fill gaps in portfolio weight data between known rebalancing dates. The method treats the holdings established at the start of the period as fixed in share count until the next rebalance. Convert each starting weight into an invested…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document explains why an ISIN should not be treated as a unique identifier for a company. An ISIN identifies a financial instrument, and one issuer may have multiple instruments, including different equity classes or a depositary receipt representing…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document sets up Merton’s optimal portfolio allocation problem as a Hamilton–Jacobi–Bellman equation for an investor choosing a portfolio share between zero and one. It proposes discretizing that control and solving the value function with an implicit…

Portfolio constructionPosition sizingStatistics
Quant Q&A

The document asks why portfolios sorted by lagged maximum return show a significant spread between extreme groups while the Fama–MacBeth regression coefficient on that variable is not significant. The response notes that these results concern different…

EquitiesStatisticsFactor investingPortfolio construction
Quant Q&A

The discussion examines whether volatility exposure belongs in a portfolio as an asset class or is better understood as a risk factor. One view distinguishes volatility itself from the instruments that provide exposure, such as options and volatility…

VolatilityOptionsPortfolio constructionRisk management
Quant Q&A

The discussion clarifies the roles of variables in a factor return model. The question contrasts a familiar regression, where observed factor data are multiplied by estimated coefficients, with a formulation involving benchmark returns, pure factor portfolio…

Factor investingStatisticsPortfolio construction
Quant Q&A

The post examines whether a rise in the risk-free rate changes the efficiency of the market portfolio. Under CAPM, it rewrites expected returns so that higher-beta assets have lower expected returns and lower-beta assets have higher expected returns when the…

EquitiesFixed incomePortfolio constructionRisk management
Quant Q&A

The document explains how portfolio weights can be negative or exceed one when an optimization allows short selling and leverage. A negative weight represents a short position, while a weight above one represents exposure greater than the investor’s capital,…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document addresses how to weight a portfolio of long and short securities to remove directional exposure. Its proposed approach begins by defining the unwanted direction, often an equity index for an equity portfolio. Estimate each security’s beta to…

EquitiesPortfolio constructionRisk managementStatistics
Quant Q&A

The document points readers seeking to understand bullet and barbell bond positioning toward literature on yield-curve analysis, convexity bias, and methods for assigning portfolio weights. It names a detailed treatment by Antti Ilmanen and a Lehman Brothers…

Fixed incomePortfolio constructionStatistics
Quant Q&A

The document formulates the Markowitz minimum-variance portfolio for a target expected return, with weights summing to one. The question asks how to permit short selling while limiting the proceeds raised from short positions relative to initial wealth. The…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document presents a household allocation problem: each year, divide excess earnings between stock investment and mortgage prepayment, with uncertain stock returns and mortgage rates. Its code simulates correlated outcomes, tests allocations on a grid,…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document asks how to calculate a certain consumption equivalent for an agent with Epstein–Zin preferences. It first defines the idea under CRRA utility: find a fixed consumption level that gives the same lifetime value as a stochastic consumption stream.…

StatisticsPortfolio construction
Quant Q&A

The document considers bond portfolio optimization when some securities are mandatory and others are eligible candidates, while the final portfolio may need to meet a limit on the number of holdings. It recommends filtering ineligible bonds before continuous…

Fixed incomePortfolio construction
Quant Q&A

The document asks why expected return is often related linearly to risk and whether the Sharpe ratio or a variance-based value-added measure should guide portfolio choice. The answer connects linear expected excess returns to covariance with a stochastic…

Portfolio constructionRisk managementStatistics
Quant Q&A

The answer describes how bond portfolios can immunize a liability or another bond against interest-rate changes using duration and convexity. Given the ability to short, two bonds with different durations can match a target duration, while three…

Fixed incomeRisk managementPortfolio constructionDerivatives pricing