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 document explains how an out-of-the-money put affects variance-covariance Value at Risk for a portfolio of stocks, bonds, an ETF, and an option. The method begins with market-factor volatilities and correlations, then combines factor sensitivities with…

Risk managementOptionsPortfolio constructionStatistics
Quant Q&A

The document compares two ways of combining the annualized returns of a two-asset portfolio. Weighting each asset’s annualized return assumes the portfolio weights are maintained over time through rebalancing. Weighting the assets’ cumulative returns instead…

Portfolio constructionStatisticsBacktesting
Quant Q&A

The document surveys the trade-offs involved in selecting an optimizer for portfolio allocation problems with multiple assets or risk factors, varied objectives, constraints, and simulation noise. It describes numerical search as a balance between…

Portfolio constructionRisk managementStatisticsBacktesting
Quant Q&A

The document distinguishes the CAPM relation for expected returns from a single-index model for realized returns. It asks whether CAPM alone can support the familiar division between systematic and diversifiable risk, since an expected-return equation does…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document explains how a portfolio can have lower variance than either of its component assets, even when one asset has higher standalone volatility. It uses a fully invested two-asset portfolio and derives the minimum-variance weight from the assets’…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document considers how to hedge an equity portfolio of acquisition targets when some deals pay part of the consideration in acquirer shares. It proposes estimating the portfolio’s index exposure by multiplying each acquirer’s dollar position by its beta…

EquitiesEvent-drivenRisk managementPortfolio construction
Quant Q&A

The document considers how to compare two optimized portfolios whose returns are positively skewed and have positive kurtosis. The author asks whether to estimate each portfolio's alpha against value-weighted and equally weighted benchmarks, or regress one…

StatisticsPortfolio constructionRisk managementBacktesting
Quant Q&A

The document shows how to extend the covariance matrix of underlying assets to include portfolios formed from those assets. It represents the asset returns or random variables as a vector X, the portfolio weights as a matrix W, and the portfolio variables as…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document considers whether to accept a new investment by comparing its expected return with its required return, calculated from the risk free rate, market risk premium, and beta. It notes that this comparison can address whether the investment is…

Portfolio constructionRisk managementEquities
Quant Q&A

The document outlines a way to analyze a portfolio’s style exposures by linking securities’ factor characteristics to subsequent returns. It proposes a cross-sectional regression across the investment universe, with next-period stock returns as the outcome…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document distinguishes factors as systematic sources of risk from signals that directly generate alpha. In response to questions about discovering and trading factors, it presents value, momentum, and quality as examples of factors identified through…

Factor investingPortfolio constructionRisk management
Quant Q&A

The note works through a 97.5% expected shortfall calculation for two independent bond portfolios. Each portfolio has two possible loss amounts, and independence lets the combined outcomes be enumerated: both portfolios incur the smaller loss, one incurs…

Fixed incomeRisk managementPortfolio constructionStatistics
Quant Q&A

The answer explains asset liability management through the example of a pension plan, where invested assets must support future benefit payments. Liability assumptions include the size and timing of payments, mortality, inflation, and potentially political…

Portfolio constructionRisk managementFixed income
Quant Q&A

The document asks how to extend a CAPM certainty-equivalent present-value formula to several priced risk factors. The proposed expression subtracts each factor’s price of risk multiplied by the cash flow’s covariance with that factor, then discounts the…

Factor investingPortfolio constructionStatistics
Quant Q&A

The document asks how to decide whether a portfolio consideration belongs inside an existing objective function or should be optimized as a separate objective. It starts with a conventional formulation that seeks higher expected return while controlling…

Portfolio constructionRisk managementEquitiesStatistics
Quant Q&A

The document discusses assets that can have positive expected returns while their deviations from those trends are negatively correlated. It distinguishes this pattern from pairs trading, which generally seeks to profit from relative performance, and frames…

Portfolio constructionRisk managementPairs tradingEquities
Quant Q&A

The discussion considers what risk information can be inferred from a portfolio snapshot containing prices, position values, share counts, and stock betas, but no time series. One response suggests using beta to approximate a stock’s volatility if market…

EquitiesStatisticsVolatilityPortfolio construction
Quant Q&A

The document describes a direct way to interpret a finite set of equally probable portfolio-return scenarios for Value at Risk. With 250 scenarios, sorting the outcomes from worst to best makes the 25th-worst outcome the 10% VaR under the convention…

Risk managementStatisticsPortfolio construction
Quant Q&A

The document explains how to calculate a portfolio’s cumulative return across several periods and why the calculation depends on whether the portfolio is rebalanced. For buy-and-hold, multiply each asset’s returns across periods, apply its initial portfolio…

Portfolio constructionStatistics
Quant Q&A

Mean-variance optimization is a general portfolio framework that evaluates portfolios by expected return and variance or standard deviation of returns. Under suitable distributional assumptions, it identifies efficient portfolios: those offering the best…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document poses an idealized optimization problem: given the historical prices of a small set of assets over a fixed interval, find the sequence of trades that maximizes terminal wealth from an initial cash amount. The investor may hold up to a limited…

EquitiesMulti-assetPortfolio constructionBacktesting
Quant Q&A

The document describes how to combine three asset return series into a portfolio index with fixed weights of 50%, 25%, and 25%. It recommends calculating each asset's simple percentage return, taking the weighted sum at each time step, adding one to obtain…

Portfolio constructionBacktestingMulti-asset
Quant Q&A

The document discusses how bid-ask spreads affect a minimum-variance portfolio of stock and options. It argues that transaction costs can shift the efficient frontier and change the optimal portfolio. For small trades, it offers an approximation based on the…

Portfolio constructionExecutionRisk managementOptions
Quant Q&A

The document raises a general problem in numerical optimization: an algorithm's output may not be the global maximum or minimum, especially when the objective is difficult and the search begins from an initial vector. It frames the issue using an…

StatisticsPortfolio construction