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
Lumibot strategies
7 documents
QuantRocket
7 documents
Awesome Quant
1 documents

Search the library

5,922 documents

Quant Q&A

The note outlines two main decisions when building corporate bond yield curves: how to group securities into curve subsets and how to fit a curve to each subset. Grouping can reflect credit quality, sector, issuer, currency, coupon type, seniority, or other…

Fixed incomeStatisticsPortfolio construction
Quant Q&A

The document models a pension fund as the accumulated value of periodic contributions, where income grows continuously and each contribution earns a continuously compounded return until the valuation date. It derives sensitivities of the fund value to the…

StatisticsPortfolio constructionPosition sizing
Quant Q&A

The document derives the fully invested tangency portfolio from the unconstrained mean-variance solution. Maximizing expected excess return minus a risk-aversion-weighted variance penalty yields weights proportional to the inverse covariance matrix…

Portfolio constructionStatisticsRisk management
Quant Q&A

The document explains how covariance and correlation matrices can both support generation of correlated normal samples through Cholesky factorization. Using the covariance matrix applies the variables’ scales directly; using the correlation matrix requires…

StatisticsRisk managementPortfolio construction
Quant Q&A

The document considers a portfolio that invests one unit in each of several stocks whose future prices are modeled as independent squared standard normal variables. Since each squared standard normal variable has a chi-square distribution with one degree of…

EquitiesPortfolio constructionStatistics
Quant Q&A

The document asks how to calculate daily returns and weights for a stock portfolio that rebalances monthly, using a ranked-beta strategy as context. It distinguishes the weights assigned at the start of a month from the weights that result after the stocks…

EquitiesPortfolio constructionBacktestingPosition sizing
Quant Q&A

The document explains how Johansen trace-test statistics and critical values indicate the number of cointegrating relationships among three instruments. In the example, the null of no cointegration is rejected, while the next rank null is not, which points…

StatisticsMean reversionPortfolio construction
Quant Q&A

The document explains how to interpret principal component analysis applied to a matrix of asset returns. Selecting the leading eigenvectors creates a lower-dimensional representation: multiplying the original observations by those vectors produces component…

StatisticsPortfolio constructionEquities
Quant Q&A

The document asks what numeraire corresponds to the real-world probability measure and presents answers for both a simple stock-and-cash model and a broader factor-based setting. In the Black–Scholes geometric Brownian motion example, a change-of-measure…

StatisticsRisk managementPortfolio constructionDerivatives pricing
Quant Q&A

The note explains why dividing one negative portfolio value by another can produce a return sign that conflicts with the economic result. Its example starts with a short position that makes the securities value negative, then shows the liability shrinking as…

EquitiesRisk managementPortfolio construction
Quant Q&A

The document poses a mathematical finance question about a market with one risk-free asset and several risky assets. It defines arbitrage in terms of a portfolio with nonpositive initial cost and a nonnegative payoff that is sometimes positive, and defines…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document explains how to calculate parametric Value-at-Risk for a portfolio holding equities and a correlated short futures position. Its central point is that portfolio volatility and exposure must use the same normalization. Using the net market value…

EquitiesFuturesVolatilityRisk management
Quant Q&A

The document shows how to calculate a portfolio’s one-year expected credit loss when it contains bonds with different ratings, default probabilities, and recovery rates. For each bond group, it multiplies exposure at default by probability of default and…

Fixed incomeRisk managementPortfolio construction
Quant Q&A

The document considers whether stocks must be sorted into portfolios when estimating Fama–French factor models. With only three companies available, the accepted answer recommends running separate regressions on each stock’s excess returns using the factor…

EquitiesFactor investingStatisticsPortfolio construction
Quant Q&A

Factor models explain shared movements across assets with a smaller set of common drivers. Because stocks often move together, treating their returns as independent can overstate the diversification benefit in a portfolio. A factor representation captures…

Factor investingPortfolio constructionRisk managementStatistics
Quant Q&A

The document explains a two-step Bloomberg workflow for retrieving an index’s members and then collecting return data for those securities. It says there is no single field that returns constituents together with their data: first request the member list,…

EquitiesPortfolio constructionBacktesting
Quant Q&A

The document contrasts two stylized betting approaches. A convergent strategy increases exposure after losses and takes gains after wins, producing frequent small gains alongside the possibility of a very large loss. A divergent strategy increases exposure…

Risk managementPortfolio constructionOptionsStatistics
Quant Q&A

The document asks how to assess uncertainty in an estimated information ratio based on portfolio returns relative to a benchmark. It explains that the information ratio resembles a t-statistic and can be used to test whether average active returns differ…

StatisticsPortfolio constructionRisk management
Quant Q&A

The document examines a proposed rule for deciding whether to add an asset to a portfolio. The rule compares the candidate asset’s expected return per unit of volatility with the existing portfolio’s corresponding ratio, adjusted by their return correlation.…

Portfolio constructionRisk managementStatistics
Quant Q&A

The document develops a two-asset quadratic hedging example for returns that are negatively correlated and may have different volatilities. Assuming zero expected returns, it writes portfolio risk as the variance of a weighted combination of the two returns,…

Portfolio constructionRisk managementPosition sizingStatistics
Quant Q&A

The document is a literature guide for studying Bayesian methods in portfolio management. It responds to a reader who finds the mathematical treatment in an early Bayesian regression paper difficult and is looking for a suitable learning path, especially one…

Portfolio constructionStatisticsMachine learning
Quant Q&A

The document explains how to calculate an external cash inflow that moves a portfolio toward target weights without selling overweight holdings. It distinguishes this approach from conventional rebalancing, where assets above target are sold to fund…

Portfolio constructionPosition sizingRisk management
Quant Q&A

The document addresses a learner seeking a small, detailed Black-Litterman portfolio example that can be worked through by hand. It points to a step-by-step guide as a resource for understanding the model, rather than presenting the calculations directly. No…

Portfolio constructionStatistics
Quant Q&A

The document asks how to turn estimated coefficients from a three-asset cointegration relation into dollar allocations for a mean-reversion trade. Its example models the log price of one security as a linear combination of the other two log prices, then…

EquitiesMean reversionPairs tradingPortfolio construction