Quant Research

Quant Research glossary

Terms from the Quant Research notes, explained in plain language and as exactly as the subject allows. Each entry points back to the notes that use it. Terms that are specific to a course live in that course's own glossary.

Absorbing barrier

A level that a process cannot leave once it reaches it. For a bankroll it is zero, or the point at which a margin call or the investors force the strategy to stop. After the barrier is reached there is no later round in which the average can catch up, which is why the average across many parallel players can differ so much from the experience of one player.

See also: Risk of ruin, Gambler’s ruin, Ergodicity

Used in: When Does a Strategy That Works Also Survive?

Sources: Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Volume I (3rd ed.). Wiley, chapter XIV.

Adjusted Rand index · Also: ARI

A number that measures how much two ways of splitting the same items into groups agree, corrected for the agreement expected by chance. 1 means the two splits are identical, about 0 means no more agreement than random grouping would give. It does not require the groups to have the same names or the same number of groups.

See also: Community

Used in: From Correlation Matrices to Stock Networks

Sources: Hubert, L., & Arabie, P. (1985). Comparing partitions. Journal of Classification, 2(1), 193–218.

Antithetic variates · Also: mirror pairs, antithetic sampling

A variance-reduction method that pairs every random scenario with its mirror image (for example every up day turned into a down day of the same size) and averages the two. It helps when the mirror tends to move the result the other way, and helps little for one-sided events such as a crash.

See also: Variance reduction

Used in: How Many Simulations Are Enough?

Arithmetic and geometric return

The arithmetic return of several periods is their simple average. The geometric return is the constant per-period return that would give the same final result when the periods are compounded. With any variation in returns the geometric return is lower than the arithmetic one, and the gap grows with volatility.

See also: Compounding, Volatility drag, Log return

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return, When Does a Strategy That Works Also Survive?

Assortativity

The tendency of vertices in a network to link to vertices that are similar to them, for example stocks of the same sector linking to each other. It is measured on a scale where 1 means links only between similar vertices, 0 means no preference, and negative values mean links mostly between different ones.

See also: Graph (network), Community

Used in: From Correlation Matrices to Stock Networks

Sources: Newman, M. E. J. (2003). Mixing patterns in networks. Physical Review E, 67(2), 026126.

Betweenness centrality

A centrality measure that counts how often a vertex lies on the shortest paths between other pairs of vertices. A high value means the vertex is a bridge between parts of the network that would otherwise be far apart.

See also: Centrality, Vertex

Used in: From Correlation Matrices to Stock Networks

Sources: Freeman, L. C. (1977). A set of measures of centrality based on betweenness. Sociometry, 40(1), 35–41.

Block bootstrap · Also: bootstrap, moving-block bootstrap

A way to estimate how much a result would change with a different sample, by rebuilding it many times from the observed data drawn again with replacement. The block version draws runs of consecutive days rather than single days, so that short-range dependence over time is kept. It uses only observed data, and it measures sampling variation in this one history, not whether a result will hold in the future.

See also: Out-of-sample, Monte Carlo simulation

Used in: From Correlation Matrices to Stock Networks, How Many Simulations Are Enough?

Sources: Efron, B. (1979). Bootstrap methods: another look at the jackknife. The Annals of Statistics, 7(1), 1–26. Künsch, H. R. (1989). The jackknife and the bootstrap for general stationary observations. The Annals of Statistics, 17(3), 1217–1241.

Central limit theorem · Also: CLT

The result that the average of many independent draws with finite variance is approximately normally distributed around the true mean, with standard deviation σ/√N, whatever the shape of the original distribution. It is the basis of most confidence intervals and of the rule that the error of a simulation shrinks like 1/√N. For very skewed quantities or rare events the approximation needs larger N.

See also: Law of large numbers, Standard error, Confidence interval

Used in: How Many Simulations Are Enough?

Centrality

A number that tells how central a vertex is in a network. There is no single meaning of "central": degree, betweenness and eigenvector centrality answer different questions, so a result always depends on the measure chosen.

See also: Degree centrality, Betweenness centrality, Eigenvector centrality, Vertex

Used in: From Correlation Matrices to Stock Networks

Sources: Newman, M. E. J. (2018). Networks (2nd ed.). Oxford University Press, chapter 7.

Common random numbers

Comparing two variants (two plans, two parameter values) on exactly the same simulated scenarios instead of separate ones. The luck shared by both cancels in the difference, so a difference is estimated much more precisely for the same number of runs.

See also: Variance reduction

Used in: How Many Simulations Are Enough?

Community · Also: cluster

A group of vertices that are connected to each other more densely than to the rest of the network. In a stock network a community often resembles an industry sector or a shared source of risk, but it is found from the data and does not have to match official sector labels.

See also: Graph (network), Diversification

Used in: From Correlation Matrices to Stock Networks

Compounding

Applying each period's return to the value already reached, including earlier gains and losses, so the final value is the product of the growth factors (1 plus each return) and not their sum. It is why a 50% loss followed by a 50% gain does not bring you back to the start.

See also: Arithmetic and geometric return, Volatility drag

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return

Concave function

A function whose graph bends downward everywhere, like a dome: the chord between any two points of the graph lies on or below the graph (the formula below says this for every point of the chord). On a convex set, such as the set of valid portfolio weights, every local maximum of a concave function is a global maximum, so an uphill search cannot get stuck on a lower peak. The logarithm of the end wealth of a constant-rebalanced portfolio is concave in its weights.

The graph of minus x squared from −1 to 2, an arch that opens downward; the chord between its two end points lies below the graph.

See also: Hill climbing, Gradient ascent, Constant-rebalanced portfolio

Used in: The Best Portfolio, Had We Known the Future

Confidence interval

A range computed from the data by a procedure that, over many repetitions, contains the true value a stated share of the time, for example 95%. A common form is the estimate plus or minus 1.96 standard errors. The 95% describes the procedure, not one particular interval: a given interval either contains the true value or does not.

See also: Standard error, Statistical power

Used in: How Many Simulations Are Enough?

Sources: Wilson, E. B. (1927). Probable inference, the law of succession, and statistical inference. Journal of the American Statistical Association, 22(158), 209–212. Brown, L. D., Cai, T. T., & DasGupta, A. (2001). Interval estimation for a binomial proportion. Statistical Science, 16(2), 101–133.

Constant-rebalanced portfolio · Also: fixed-weight portfolio, CRP

A portfolio that is rebalanced back to the same fixed weights at every step. With a weight vector w and asset returns r_t, its value after T periods is the product of (1 + w·r_t). Because the mixture is kept in place, it can grow faster than every asset in it when the assets do not move together (the diversification return). Thomas Cover's universal portfolio (1991) is a different object built on it: see that entry.

See also: Rebalancing, Universal portfolio, Volatility drag, Exponentiated gradient

Used in: The Best Portfolio, Had We Known the Future

Sources: Booth, D. G., & Fama, E. F. (1992). Diversification returns and asset contributions. Financial Analysts Journal, 48(3), 26–32.

Control variate

A variance-reduction method: simulate, alongside the quantity of interest, a related quantity whose exact answer is known, and correct the estimate by how far that known quantity missed in this run. The stronger the correlation between the two, the larger the gain.

See also: Variance reduction, Pearson correlation

Used in: How Many Simulations Are Enough?

Correlation distance

A way to turn a correlation ρ into a distance, so that more similar stocks are closer: d = √(2(1 − ρ)). Perfectly correlated stocks are at distance 0, uncorrelated stocks at about 1.41 and perfectly opposite stocks at 2. For standardized return series it equals the ordinary straight-line distance between them, scaled by the number of days, so it obeys the usual rules of distance.

See also: Pearson correlation, Minimum spanning tree (MST)

Used in: From Correlation Matrices to Stock Networks

Sources: Mantegna, R. N. (1999). Hierarchical structure in financial markets. The European Physical Journal B, 11, 193–197.

Covariance

A measure of how two quantities vary together: positive when they tend to be above or below their averages at the same time, negative when one tends to be high while the other is low. Pearson correlation is the covariance divided by the product of the two standard deviations, which puts it on a fixed scale from -1 to 1.

See also: Pearson correlation, Variance

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future

Daily rebalancing

Resetting a position at the end of every trading day so that its exposure is again the target multiple of the fund's current value. A daily leveraged ETF does this, which is why its multiple holds for one day and not for longer periods.

See also: Leveraged ETF, Path dependence

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return, How Many Simulations Are Enough?, The Best Portfolio, Had We Known the Future

Degree centrality

The number of edges attached to a vertex (in a weighted graph, often the sum of their weights). It is the simplest centrality measure: a stock with a high value is strongly connected to many others.

See also: Centrality, Edge

Used in: From Correlation Matrices to Stock Networks

Diversification

Holding assets that do not all move together, so that a loss in one is partly offset by the others and the whole portfolio is less risky than its parts. The number of assets is not the point: many assets that move together diversify little.

See also: Pearson correlation, Covariance, Community

Used in: From Correlation Matrices to Stock Networks

Sources: Markowitz, H. (1952). Portfolio selection. The Journal of Finance, 7(1), 77–91.

Drawdown

The fall from the highest value reached so far to the current value, usually as a percentage of that highest value. The maximum drawdown is the largest such fall over a period.

See also: Volatility

Used in: From Correlation Matrices to Stock Networks, Why 3× Daily Leverage Is Not 3× Long-Term Return, The Best Portfolio, Had We Known the Future

Drift

The average direction of change of a quantity over time, apart from its random ups and downs. In a model of a price it is the expected rate of growth, and it is separate from the volatility, which describes how widely the price moves around that growth.

See also: Volatility, Variance

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return

Edge · Also: link

A connection between two vertices of a graph. In a stock network an edge between two stocks says that their returns are related, and its weight can be a measure such as their correlation.

See also: Graph (network), Vertex, Edge threshold

Used in: From Correlation Matrices to Stock Networks

Edge threshold · Also: thresholding

A cut-off that keeps only the edges whose weight is above a chosen value, for example only pairs of stocks with correlation above 0.6. The choice is arbitrary to some degree and changes the shape of the network, so conclusions should be checked at several thresholds.

See also: Edge, Pearson correlation

Used in: From Correlation Matrices to Stock Networks

Effective number of independent bets · Also: effective number of bets

How many truly different stocks a basket holds. Stocks that move together behave almost like one stock, so a basket of 10 similar stocks spreads risk like a much smaller number of unrelated stocks. The effective number answers: how many stocks with no relation to each other would give a basket the same ups and downs (the same volatility)? If the stocks are unrelated, it equals the number of stocks; if they move as one, it is 1. For example, 8 stocks with an average correlation of 0.5 are worth about 1.8 unrelated stocks. The formula, for N stocks held in equal amounts, with equal volatility and average correlation ρ̄ between each two: N / (1 + (N − 1)ρ̄). A more precise version, which uses all the correlations rather than only their average, is called the participation ratio.

See also: Diversification, Pearson correlation, Volatility

Used in: From Correlation Matrices to Stock Networks

Eigenvector centrality

A centrality measure in which a vertex is important when it is connected to other important vertices, not only to many vertices. It is computed from the network's adjacency matrix and is the idea behind Google's PageRank.

See also: Centrality, Degree centrality

Used in: From Correlation Matrices to Stock Networks

Sources: Bonacich, P. (1972). Factoring and weighting approaches to status scores and clique identification. Journal of Mathematical Sociology, 2(1), 113–120.

Equal-weight portfolio · Also: 1/N portfolio

A portfolio that puts the same share of money in each of its N assets, 1/N each, and returns to equal shares at every rebalance. It needs no estimates, which is why it is a hard benchmark for rules that estimate correlations or expected returns.

See also: Diversification, Minimum-variance portfolio

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future

Sources: DeMiguel, V., Garlappi, L., & Uppal, R. (2009). Optimal versus naive diversification: How inefficient is the 1/N portfolio strategy? The Review of Financial Studies, 22(5), 1915–1953.

Ergodicity

A process is ergodic if the average over time along one path equals the average across many parallel copies. Multiplicative wealth, where gains and losses are percentages of what one holds, is not ergodic: the average across investors can keep growing while the typical individual’s wealth shrinks. The distinction is the one between the arithmetic and the geometric return, and it is the reason a single investor should look at growth along time rather than at the average across investors.

See also: Arithmetic and geometric return, Absorbing barrier, Path dependence

Used in: When Does a Strategy That Works Also Survive?

Sources: Peters, O. (2019). The ergodicity problem in economics. Nature Physics, 15, 1216–1221.

Expected Shortfall · Also: ES, conditional Value at Risk, CVaR

The average outcome within the worst share of cases, for example the average loss on the worst 2.5% of days. It answers "how bad is it when it is bad?". Because it averages only the tail, a simulation needs many more runs to estimate it than to estimate an ordinary average.

See also: Value at Risk, Percentile

Used in: How Many Simulations Are Enough?

Exponentiated gradient · Also: multiplicative updates, multiplicative weights

A step rule for portfolio weights. For each asset it asks: would a little more weight here raise growth? If so, the asset's weight is multiplied by a factor above 1; if not, by a factor below 1; then all the weights are divided by their sum, so that they again add up to 100%. Because it multiplies instead of adding, a weight can shrink toward zero but never below it, and a small weight changes little in absolute terms. The first formula is the step, with step size η and the slope ∂g/∂wᵢ of the objective g; the second shows what it means: taking logarithms, it is an ordinary gradient step on the logarithm of each weight, followed by normalisation (Z is the sum in the denominator). Helmbold, Schapire, Singer and Warmuth (1998) introduced it for constant-rebalanced portfolios.

See also: Gradient ascent, Constant-rebalanced portfolio

Used in: The Best Portfolio, Had We Known the Future

Sources: Helmbold, D. P., Schapire, R. E., Singer, Y., & Warmuth, M. K. (1998). On-line portfolio selection using multiplicative updates. Mathematical Finance, 8(4), 325–347.

Fat tails

A distribution whose extreme values are far more frequent than the normal (bell-curve) distribution with the same mean and standard deviation allows. In daily US market returns since 1926, 51 days fell by more than 5 standard deviations, where a normal model expects one such day in about 10,000 years. A model calibrated on the typical days therefore underestimates the risk of the rare ones. Part of the gap comes from volatility that changes over time, but that does not remove it.

See also: Standard deviation, Skewness, Volatility, Expected Shortfall

Used in: When Does a Strategy That Works Also Survive?

Sources: Mandelbrot, B. (1963). The variation of certain speculative prices. The Journal of Business, 36(4), 394–419. Cont, R. (2001). Empirical properties of asset returns: stylized facts and statistical issues. Quantitative Finance, 1(2), 223–236.

First principal component · Also: principal component

The single direction in which a set of variables varies together the most. For stock returns it is usually close to "the whole market moving up or down", and the share of total variance it explains is a simple measure of how much the stocks move as one block.

See also: Variance, Pearson correlation

Used in: From Correlation Matrices to Stock Networks

Sources: Pearson, K. (1901). On lines and planes of closest fit to systems of points in space. Philosophical Magazine, 2(11), 559–572.

Funding liquidity (limits of arbitrage) · Also: limits of arbitrage

How easily a trader or fund can obtain and keep the money it needs to hold its positions: loans, margin and investors’ capital. When funding is withdrawn after losses, positions must be closed at bad prices, so a correct trade can fail. Shleifer and Vishny called this the limits of arbitrage: a manager who is right but whose investors withdraw after losses may have to close the trade precisely when it is most attractive. Brunnermeier and Pedersen showed how funding and market liquidity reinforce each other in a fall.

See also: Margin call, Risk of ruin, Short selling

Used in: When Does a Strategy That Works Also Survive?

Sources: Shleifer, A., & Vishny, R. W. (1997). The limits of arbitrage. The Journal of Finance, 52(1), 35–55. Brunnermeier, M. K., & Pedersen, L. H. (2009). Market liquidity and funding liquidity. The Review of Financial Studies, 22(6), 2201–2238.

Gambler’s ruin · Also: gambler’s ruin problem

The classical problem of a gambler who bets one unit at a time, with a fixed chance p of winning each bet, starting with a units and stopping at 0 (ruin) or at a target of b units. In a fair game the chance of ruin is 1 − a/b; otherwise, with ρ = (1 − p)/p, it is (ρ^a − ρ^b)/(1 − ρ^b). Even a small disadvantage makes ruin almost certain against a large target, and against unlimited funds a gambler who plays long enough is ruined with certainty, even in a fair game.

See also: Risk of ruin, Martingale, Absorbing barrier

Used in: When Does a Strategy That Works Also Survive?

Sources: Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Volume I (3rd ed.). Wiley, chapter XIV.

Gradient ascent · Also: gradient descent, steepest ascent

A method for finding the maximum of a function by stepping again and again in the direction where it rises fastest, the gradient (the vector of slopes in every coordinate). Each step moves by the step size times the gradient, so steps are long where the function is steep or the step size is large, and short near the top; choosing the step size is part of the method. Gradient descent, also called the method of steepest descent, is the same method aimed at a minimum. When the choices are constrained, as portfolio weights are (none negative, summing to 1), each step is followed by a projection back onto the allowed set, or replaced by a step that stays inside it.

See also: Objective function, Exponentiated gradient, Hill climbing, Concave function

Used in: The Best Portfolio, Had We Known the Future

Graph (network) · Also: network

A set of vertices together with a set of edges that connect pairs of them. In a weighted graph each edge has a number, its weight. In this glossary the words graph and network mean the same thing.

See also: Vertex, Edge, Social network analysis (SNA)

Used in: From Correlation Matrices to Stock Networks

Hierarchical risk parity (HRP) · Also: HRP

A portfolio rule that first orders the assets into a tree of similar groups using their correlations, and then splits the money down the tree so that groups with lower risk get more. It avoids inverting the covariance matrix, which makes it less sensitive to estimation noise than classical optimization.

See also: Covariance, Minimum-variance portfolio, Diversification

Used in: From Correlation Matrices to Stock Networks

Sources: López de Prado, M. (2016). Building diversified portfolios that outperform out of sample. The Journal of Portfolio Management, 42(4), 59–69.

Hill climbing · Also: local search, greedy search

A search that, from the current point, evaluates a set of nearby points and moves to the best of them, repeating until no neighbour is better. It needs no formula for the slope, only the value of the objective at each candidate. Its known weakness is that it stops at the first peak it reaches, which may be a local maximum lower than the best one; random moves, several starting points, or simulated annealing are the usual remedies.

See also: Gradient ascent, Simulated annealing, Concave function

Used in: The Best Portfolio, Had We Known the Future

Importance sampling

A variance-reduction method for rare events: simulate from a deliberately altered distribution in which the event is common, then weight each run by how much more likely it is under the real distribution than under the altered one. It can cut the required runs by orders of magnitude; a badly chosen alteration gives a few huge weights and a confidently wrong answer.

See also: Variance reduction

Used in: How Many Simulations Are Enough?

In-sample · Also: in sample

Data that was used to build, choose or tune a method, and results measured on that same data. In-sample results are optimistic by construction, because the method was chosen to look good on them; the honest measure is the result out of sample.

See also: Out-of-sample, Overfitting, Walk-forward test

Used in: The Best Portfolio, Had We Known the Future

Jaccard index

A measure of overlap between two sets: the number of items in both, divided by the number of items in either. Two networks with 202 links each that share 120 links have a Jaccard index of 120 / 284 ≈ 0.42, even though each shares 59% of its own links with the other.

See also: Edge

Used in: From Correlation Matrices to Stock Networks

Sources: Jaccard, P. (1912). The distribution of the flora in the alpine zone. New Phytologist, 11(2), 37–50.

Kelly criterion

A rule for choosing how much to stake that maximizes the long-run growth rate of capital. In a simple continuous model with expected return μ, borrowing rate r and volatility σ, the growth-optimal leverage is (μ − r)/σ². John Kelly derived it in 1956 for a gambler with an edge. Because the expected return is hard to estimate and the optimal leverage is proportional to it, practitioners usually take a fraction, often half: growth falls little, while the damage from overestimating the edge falls a lot. Beyond twice the Kelly leverage the long-run growth drops below the borrowing rate.

See also: Volatility drag, Arithmetic and geometric return, Leveraged ETF

Used in: When Does a Strategy That Works Also Survive?

Sources: Kelly, J. L., Jr. (1956). A new interpretation of information rate. Bell System Technical Journal, 35(4), 917–926. Thorp, E. O. (2006). The Kelly criterion in blackjack, sports betting and the stock market. In S. A. Zenios & W. T. Ziemba (Eds.), Handbook of Asset and Liability Management, Volume 1. Elsevier.

Law of large numbers

The result that the average of many independent draws from the same distribution gets closer and closer to the true mean as the number of draws grows. It is why a simulation converges to the right answer, but it says nothing about how fast; that is the job of the central limit theorem.

See also: Central limit theorem, Monte Carlo simulation

Used in: How Many Simulations Are Enough?

Leveraged ETF

An exchange-traded fund (ETF: a fund whose shares trade on an exchange like a stock) that aims to deliver a multiple, for example 3 times, of an index's return for each single day. Because it resets every day, its return over longer periods is not that multiple of the index's return over the same periods.

See also: Daily rebalancing, Volatility drag, Tracking error

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return, When Does a Strategy That Works Also Survive?, The Best Portfolio, Had We Known the Future

Sources: Cheng, M., & Madhavan, A. (2009). The dynamics of leveraged and inverse exchange-traded funds. Journal of Investment Management, 7(4), 43–62.

Log return · Also: logarithmic return

The natural logarithm of the ratio between the end and start values of a period. Log returns of consecutive periods add up to the log return of the whole stretch, which makes them convenient for analysis. For small changes they are close to ordinary percentage returns.

See also: Arithmetic and geometric return, Compounding

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return

Maintenance margin

The minimum share of a leveraged position’s value that must be the investor’s own equity after the position has been opened. US margin accounts require at least 25% for long positions under FINRA rules, and brokers often require more; for short positions it is higher. With equity E and position value P, a margin call occurs when E/P falls below it. The initial margin is the larger share needed to open the position (50% under Regulation T, which limits ordinary margin leverage to 2×).

See also: Margin call, Short selling, Leveraged ETF

Used in: When Does a Strategy That Works Also Survive?

Sources: FINRA Rule 4210. Margin Requirements. Financial Industry Regulatory Authority.

Margin call

A demand from a lender or broker that the investor add money or reduce the position because the equity in the account has fallen below the required minimum (the maintenance margin). If the investor does not or cannot, the position is sold, usually after a fall. A margin call turns a temporary loss into a permanent one: a position that was sold cannot take part in a later recovery.

See also: Maintenance margin, Funding liquidity (limits of arbitrage), Leveraged ETF

Used in: When Does a Strategy That Works Also Survive?

Sources: Brunnermeier, M. K., & Pedersen, L. H. (2009). Market liquidity and funding liquidity. The Review of Financial Studies, 22(6), 2201–2238.

Market regime

A period in which the market behaves in a recognizably different way from another period, for example calm and rising versus turbulent and falling. Relationships such as correlations often change between regimes, which is one reason a result found in one period may not hold in another.

See also: Out-of-sample, Pearson correlation

Used in: From Correlation Matrices to Stock Networks

Martingale · Also: martingale betting system, doubling system

Two meanings that share a name. In probability, a martingale is a sequence of values whose expected next value, given everything seen so far, equals the current value; the bankroll in a fair game is the standard example. As a betting system, a martingale means doubling the bet after every loss, so that the first win recovers all earlier losses and leaves a profit of one unit. The system wins small amounts almost always and loses a large amount rarely. Because the bankroll of a fair game is a martingale in the first sense, no betting system changes its average.

See also: Optional stopping theorem, Gambler’s ruin, Risk of ruin

Used in: When Does a Strategy That Works Also Survive?

Sources: Williams, D. (1991). Probability with Martingales. Cambridge University Press.

Minimum spanning tree (MST) · Also: MST

The set of links that connects all vertices of a network with the smallest possible total length and no loops. With N vertices it always has exactly N − 1 links and exactly one path between any two vertices. These are properties of every tree, so they are not findings about the data.

See also: Graph (network), Correlation distance, Planar maximally filtered graph (PMFG), Steiner tree

Used in: From Correlation Matrices to Stock Networks

Sources: Kruskal, J. B. (1956). On the shortest spanning subtree of a graph and the traveling salesman problem. Proceedings of the American Mathematical Society, 7(1), 48–50. Mantegna, R. N. (1999). Hierarchical structure in financial markets. The European Physical Journal B, 11, 193–197.

Minimum-variance portfolio · Also: shrinkage minimum variance

The portfolio whose estimated variance of returns is the smallest possible, given the estimated covariance matrix and the constraints (here: no short positions). Because a sample covariance matrix of many stocks is noisy, it is often first "shrunk" toward a simpler matrix, which makes the weights more stable.

See also: Covariance, Variance, Equal-weight portfolio

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future

Sources: Ledoit, O., & Wolf, M. (2004). Honey, I shrunk the sample covariance matrix. The Journal of Portfolio Management, 30(4), 110–119.

Monte Carlo simulation

Studying a quantity by generating a large number of random scenarios from a stated model and looking at the distribution of the results. It answers "what could happen under this model", not "what did happen"; it is not a substitute for observed data.

See also: Volatility drag, Path dependence

Used in: From Correlation Matrices to Stock Networks, Why 3× Daily Leverage Is Not 3× Long-Term Return, How Many Simulations Are Enough?

Objective function · Also: objective, target function

The quantity an optimization tries to make as large (or as small) as possible, written as a function of the choices being made. For a portfolio the choices are the weights, and the objective can be end wealth, growth, the Sharpe ratio, minus the variance, or minus the number of losing months. The choice of objective often matters more than the method used to optimize it.

See also: Gradient ascent, Hill climbing, Overfitting

Used in: The Best Portfolio, Had We Known the Future

Optional stopping theorem

A result about martingales: if a martingale is stopped at a time chosen by a rule that cannot see the future, and the stopping time and the values involved are suitably bounded, the expected value at the stopping time equals the starting value. For a fair game it means that no rule for when to bet more and when to quit can create an average gain; a rule can only move probability between small and large outcomes. The bounds matter: with unlimited credit and unlimited time a doubling system does win with certainty, which is why it would need an infinite bankroll.

See also: Martingale, Gambler’s ruin

Used in: When Does a Strategy That Works Also Survive?

Sources: Williams, D. (1991). Probability with Martingales. Cambridge University Press, chapter 10.

Out-of-sample · Also: out of sample

Data that was not used to build or tune a method. A method is tested out-of-sample when it is judged on such data, which shows whether it generalizes or only fits the particular period it was developed on.

See also: Market regime

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future

Also in a course: Overfitting (Introduction to Data Science glossary)

Overfitting · Also: backtest overfitting

Fitting a rule so closely to the data used to build it that it captures the chance features of that sample along with the real ones. An overfitted rule looks excellent in sample and does worse out of sample. The more rules or settings a search tries on the same data, the larger the gap tends to be; testing on data the search never saw is the basic check.

See also: In-sample, Out-of-sample, Walk-forward test, Shrinkage

Used in: The Best Portfolio, Had We Known the Future

Also in a course: Overfitting (Introduction to Data Science glossary)

Sources: Bailey, D. H., Borwein, J. M., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-mathematics and financial charlatanism: The effects of backtest overfitting on out-of-sample performance. Notices of the American Mathematical Society, 61(5), 458–471.

Path dependence

Fitting a rule so closely to the data used to build it that it captures the chance features of that sample along with the real ones. An overfitted rule looks excellent in sample and does worse out of sample. Two common routes lead there: a model with too many parameters for the amount of data, which can bend to fit almost any sample; and too much fitting, such as training for too long or searching through too many rules and settings on the same data, until the model follows the noise and the rare cases instead of the trend. Testing on data the search never saw is the basic defence.

See also: Daily rebalancing, Volatility drag, Compounding

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return

Sources: Avellaneda, M., & Zhang, S. (2010). Path-dependence of leveraged ETF returns. SIAM Journal on Financial Mathematics, 1(1), 586–603.

Pearson correlation · Also: correlation

A number between -1 and 1 that measures how closely two quantities move together in a straight-line pattern: 1 means they rise and fall together perfectly, -1 that one rises when the other falls, 0 that there is no linear relationship. It does not capture non-linear dependence, it can change through time, and it does not show that one thing causes the other.

See also: Covariance, Out-of-sample

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future

Sources: Pearson, K. (1895). Notes on regression and inheritance in the case of two parents. Proceedings of the Royal Society of London, 58, 240–242.

Percentile · Also: quantile

The value below which a given share of outcomes falls. The 10th percentile of final balances is the level that the worst 10% of outcomes end below. The general name, for any share between 0 and 1, is a quantile. Percentiles far in a tail are estimated from few observations and are noisy.

See also: Value at Risk, Expected Shortfall

Used in: How Many Simulations Are Enough?

Planar maximally filtered graph (PMFG) · Also: PMFG

A network built by adding the strongest links one by one, keeping a link only if the network can still be drawn on a flat sheet without crossing lines. With N vertices it keeps 3(N − 2) links, contains the minimum spanning tree, and allows loops and triangles. Planarity is a rule of the construction, not a property of the market.

See also: Minimum spanning tree (MST), Edge threshold, Graph (network)

Used in: From Correlation Matrices to Stock Networks

Sources: Tumminello, M., Aste, T., Di Matteo, T., & Mantegna, R. N. (2005). A tool for filtering information in complex systems. PNAS, 102(30), 10421–10426.

Random seed · Also: seed

The starting value of a pseudo-random number generator. The same seed reproduces exactly the same "random" numbers, which makes a simulation repeatable; a different seed gives an independent-looking run, which is a cheap way to check that a result does not depend on luck.

See also: Monte Carlo simulation

Used in: How Many Simulations Are Enough?

Rank correlation (Spearman, Kendall) · Also: Spearman correlation, Kendall correlation

Correlation computed from the order of the values rather than the values themselves, so a few extreme days weigh less. Spearman correlation is the Pearson correlation of the ranks; Kendall correlation counts how often two series move in the same direction between pairs of days. They measure related but different things from Pearson correlation.

See also: Pearson correlation

Used in: From Correlation Matrices to Stock Networks

Sources: Spearman, C. (1904). The proof and measurement of association between two things. The American Journal of Psychology, 15(1), 72–101. Kendall, M. G. (1938). A new measure of rank correlation. Biometrika, 30(1–2), 81–93.

Realized volatility

The volatility actually observed in past data: the standard deviation of the returns in a window, usually scaled to a yearly figure so that windows of different lengths can be compared. It describes what happened, as opposed to a forecast.

See also: Volatility, Standard deviation

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return

Rebalancing · Also: portfolio rebalancing

Trading a portfolio back to the split it was given in advance. For example, a portfolio set at 60% stocks and 40% bonds may drift to 70/30 after stocks rise; rebalancing sells some stocks and buys bonds until it is back at 60/40. It can be done on a calendar (every month, every year) or only when some part drifts further from its target than a set limit. Either way it sells what has risen relative to the rest and buys what has fallen. Every trade costs money and, in a taxable account, may realize gains.

See also: Constant-rebalanced portfolio, Equal-weight portfolio, Turnover

Used in: The Best Portfolio, Had We Known the Future

Risk of ruin · Also: probability of ruin

The probability that a strategy, a trader or a fund reaches a point from which it cannot continue: the capital is gone, or a rule such as a margin call forces it to stop. It is a property of the path, not of the average. A strategy with a positive average can have a high risk of ruin, because once the floor is reached no later gain can make up for it. In the simplest model, betting one unit at a time, it is the gambler’s ruin probability.

See also: Gambler’s ruin, Absorbing barrier, Margin call, Path dependence

Used in: When Does a Strategy That Works Also Survive?

Sources: Feller, W. (1968). An Introduction to Probability Theory and Its Applications, Volume I (3rd ed.). Wiley, chapter XIV.

Sharpe ratio

A reward-to-risk ratio: the average return above the risk-free rate divided by the volatility of returns, usually annualized, that is, the return earned per unit of risk taken (in the formula, r̄ is the average return, r_f the risk-free rate and σ the volatility). A ratio of 0.5 means that the average yearly excess return is half of one yearly standard deviation. It treats gains and losses alike and says nothing about fat tails or the size of the worst fall, and like any average it is estimated with considerable error from a few years of data.

See also: Volatility, Drawdown, Standard deviation

Used in: The Best Portfolio, Had We Known the Future

Sources: Sharpe, W. F. (1966). Mutual fund performance. The Journal of Business, 39(1), 119–138.

Short selling · Also: short sale, shorting

Selling a security one does not own, by borrowing it, in order to buy it back later, ideally cheaper. The profit is the fall in the price and the loss is the rise. Because a price can rise without limit, the loss is not bounded by the amount invested, and the short seller pays the dividends of the borrowed shares. The broker therefore demands margin, and a position can be closed by a margin call before the forecast is proven right.

See also: Margin call, Maintenance margin, Funding liquidity (limits of arbitrage)

Used in: When Does a Strategy That Works Also Survive?, The Best Portfolio, Had We Known the Future

Short straddle

Selling both a call option and a put option with the same strike price and expiry date. The seller collects both premiums and keeps them if the price ends close to the strike, so the position earns a small amount in calm markets. A large move in either direction produces a loss that grows with the size of the move, without a limit on the upside. It is a typical way of selling the tail.

See also: Skewness, Fat tails, Risk of ruin

Used in: When Does a Strategy That Works Also Survive?

Sources: Hull, J. C. Options, Futures, and Other Derivatives (multiple editions). Pearson.

Shrinkage · Also: shrinkage estimator

Pulling a noisy estimate part of the way toward a simple, stable target, for example averaging optimized portfolio weights with equal weights, or a sample covariance matrix with a structured one. The result is slightly biased but much less variable, and on new data it is usually more accurate than the raw estimate.

See also: Equal-weight portfolio, Overfitting, Covariance

Used in: The Best Portfolio, Had We Known the Future

Sources: Ledoit, O., & Wolf, M. (2004). Honey, I shrunk the sample covariance matrix. The Journal of Portfolio Management, 30(4), 110–119.

Simulated annealing

A search that sometimes accepts a worse point on purpose, to escape local maxima. A step that lowers the objective is accepted with a probability that shrinks as the search proceeds (the "temperature" is lowered), so the search explores widely at first and settles later; the best point seen is kept. The name comes from annealing in metallurgy, where slow cooling lets a metal reach a low-energy state.

See also: Hill climbing

Used in: The Best Portfolio, Had We Known the Future

Sources: Kirkpatrick, S., Gelatt, C. D., & Vecchi, M. P. (1983). Optimization by simulated annealing. Science, 220(4598), 671–680.

Skewness · Also: skew

A measure of how lopsided a distribution is. With positive skew the long tail lies on the side of large gains: many small losses and a rare large gain, as in buying insurance or a long position in options. With negative skew the long tail lies on the side of large losses: many small gains and a rare large loss, as in selling insurance or options, the doubling game or a short straddle. The average and the standard deviation do not reveal it.

See also: Fat tails, Standard deviation, Short straddle

Used in: When Does a Strategy That Works Also Survive?

Sources: Joanes, D. N., & Gill, C. A. (1998). Comparing measures of sample skewness and kurtosis. Journal of the Royal Statistical Society: Series D (The Statistician), 47(1), 183–189.

Social network analysis (SNA) · Also: SNA

A set of methods for studying a system through its connections: who or what is linked to whom, which elements are central, and which groups form. It started with human relationships, but the same mathematics applies to any set of related objects, such as stocks.

See also: Graph (network), Centrality, Community

Used in: From Correlation Matrices to Stock Networks

Also in a course: SNA (Introduction to Data Science glossary)

Standard deviation

The typical distance of values from their average: the square root of the variance. It is in the same units as the data, which makes it easier to read than the variance. For returns it is the usual measure of volatility.

See also: Variance, Volatility

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return, How Many Simulations Are Enough?, When Does a Strategy That Works Also Survive?, The Best Portfolio, Had We Known the Future

Standard error

The standard deviation of an estimate: how much the estimate itself would vary if the whole sample or simulation were repeated. For an average of N independent values with standard deviation σ it is σ/√N, so it shrinks with the square root of the sample size: four times the data halves it.

See also: Standard deviation, Confidence interval, Central limit theorem

Used in: How Many Simulations Are Enough?

Statistical power · Also: power

The probability that a study or simulation detects an effect that is really there, for example a real difference between two probabilities. With 80% power, a true effect of the stated size is missed one time in five. More data, or less noise, raises the power.

See also: Confidence interval

Used in: How Many Simulations Are Enough?

Steiner tree

The cheapest tree that connects a chosen subset of vertices (the terminals). Unlike a minimum spanning tree it does not have to reach every vertex, but it may pass through other vertices if that shortens the total. Finding it exactly is hard in general, but it is practical for a handful of terminals.

See also: Minimum spanning tree (MST), Graph (network)

Used in: From Correlation Matrices to Stock Networks

Sources: Dreyfus, S. E., & Wagner, R. A. (1971). The Steiner problem in graphs. Networks, 1(3), 195–207.

Survivorship bias

The distortion that appears when a study keeps only the items that survived to the end of the period, for example stocks that stayed in an index for twenty years. The survivors tend to have done better than those that dropped out, so averages computed on them, especially of returns, look better than what an investor could have achieved at the time.

See also: Out-of-sample

Used in: From Correlation Matrices to Stock Networks, How Many Simulations Are Enough?, The Best Portfolio, Had We Known the Future

Sources: Brown, S. J., Goetzmann, W., Ibbotson, R. G., & Ross, S. A. (1992). Survivorship bias in performance studies. The Review of Financial Studies, 5(4), 553–580.

Ticker · Also: ticker symbol

The short code that identifies a traded security on an exchange, for example QQQ for an ETF that follows the Nasdaq-100 index.

Used in: From Correlation Matrices to Stock Networks

Also in a course: Ticker symbol (Introduction to Data Science glossary)

Tracking error

How closely a fund follows the return it is supposed to deliver. The difference between the two returns in a period is the tracking difference (it comes from fees, trading costs, financing and the way the fund is built); the tracking error is usually the standard deviation of those differences. It is not the same as the gap between a daily leveraged fund's long-run return and the stated multiple of the index's long-run return: a fund that hits its daily target exactly has zero tracking error and still shows that gap, which comes from compounding.

See also: Leveraged ETF, Standard deviation, Compounding

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return

Turnover

How much of a portfolio is bought and sold over a period, usually as a share of its value per year. A turnover of 100% means trades equal in size to the whole portfolio. High turnover raises trading costs, which is why a rule that looks good before costs can look worse after them.

See also: Walk-forward test

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future

Universal portfolio · Also: Cover's universal portfolio

A rule proposed by Thomas Cover (1991) for investing without knowing in advance which fixed weights will turn out best. Picture many investors, each holding one constant-rebalanced portfolio with different fixed weights, and split the money equally among all of them at the start. Each grows at its own pace, so after a while the money sits mostly with those that did well. The universal portfolio holds that combined position: its weight in each asset is the average of all the fixed weights, counting each in proportion to the money it has made so far. Cover proved that in the long run its growth comes arbitrarily close to that of the best fixed weights chosen in hindsight, without any statistical assumption about the returns. It is the rule that chooses among constant-rebalanced portfolios, not one of them.

See also: Constant-rebalanced portfolio, Exponentiated gradient

Used in: The Best Portfolio, Had We Known the Future

Sources: Cover, T. M. (1991). Universal portfolios. Mathematical Finance, 1(1), 1–29.

Value at Risk · Also: VaR

A percentile of the loss distribution over a fixed horizon: a 99% one-day VaR is the loss that is exceeded on only 1% of days. It says where the bad tail starts, not how bad the tail is beyond that point; Expected Shortfall answers the second question.

See also: Percentile, Expected Shortfall, Drawdown

Used in: How Many Simulations Are Enough?

Variance

The average of the squared distances of values from their average. Squaring makes every deviation count as a positive amount and gives large deviations more weight. Its square root is the standard deviation.

See also: Standard deviation, Covariance

Used in: From Correlation Matrices to Stock Networks, Why 3× Daily Leverage Is Not 3× Long-Term Return

Variance reduction

Methods that make each simulation run more informative, so that a target precision is reached with fewer runs. They lower the spread of what each run contributes instead of adding runs. Common examples are mirror pairs (antithetic variates), control variates, importance sampling and common random numbers.

See also: Antithetic variates, Control variate, Importance sampling, Common random numbers

Used in: How Many Simulations Are Enough?

Sources: Glasserman, P. (2003). Monte Carlo Methods in Financial Engineering. Springer.

Vertex · Also: node

A point of a graph, the thing that is connected. In a stock network each stock is a vertex. Vertex and node are two names for the same thing; texts differ in which they prefer.

See also: Graph (network), Edge

Used in: From Correlation Matrices to Stock Networks

Volatility

How widely the returns of an asset vary around their average. It is commonly measured by the standard deviation of returns and quoted per year. High volatility means large ups and downs; it says nothing about direction.

See also: Standard deviation, Realized volatility, Drift

Used in: From Correlation Matrices to Stock Networks, Why 3× Daily Leverage Is Not 3× Long-Term Return, How Many Simulations Are Enough?, The Best Portfolio, Had We Known the Future

Volatility drag

The loss of long-run growth caused by volatility under compounding: for the same average return, the more the returns vary, the lower the compounded result. Leveraging amplifies the effect, because it multiplies the variation by more than it multiplies the average.

See also: Compounding, Arithmetic and geometric return, Volatility, Path dependence

Used in: Why 3× Daily Leverage Is Not 3× Long-Term Return, When Does a Strategy That Works Also Survive?, The Best Portfolio, Had We Known the Future

Sources: Avellaneda, M., & Zhang, S. (2010). Path-dependence of leveraged ETF returns. SIAM Journal on Financial Mathematics, 1(1), 586–603.

Walk-forward test · Also: walk-forward

A historical test of a rule in which every decision uses only data available at the time: at each step the rule is estimated on the past window, applied to the next period, and then the window moves forward. It avoids using the future by accident, but it is still one path through one history.

See also: Out-of-sample, Turnover

Used in: From Correlation Matrices to Stock Networks, The Best Portfolio, Had We Known the Future