Skip to content
Menu
Finabase Learn

How Wall Street really works Lesson 4 of 14

Hedge funds and AI · Quants and high-frequency trading

What is quantitative investing? Signals, models and decay

What quant funds do, from signals and portfolio construction to risk models and execution, why most signals decay, and a worked example of a backtest that flatters.

On this page
  1. What quants actually do
  2. Two families of strategy
  3. The research loop
  4. Worked example: the best of 50 versions
  5. Why most signals decay
  6. Where quantitative investing fails
  7. How Finabase does it
  8. Frequently asked questions
  9. Summary
  10. Check your understanding
  11. Exercise

Quantitative investing means letting data and written rules decide what to buy, what to sell and how much, instead of an analyst's judgment about each company. A "quant" fund turns ideas about why prices move into numbers a computer can test, tests them on history, combines the survivors into a portfolio and lets software trade it. Some quant funds hold positions for months; others for seconds.

The approach has produced some of the best records in finance and some of its most sudden losses. This lesson walks through the four jobs inside a quant fund (signals, portfolio construction, risk models and execution), the two broad families of strategy, the research loop that produces them, and the reason most signals earn far less once they are traded than they did in the test. A worked example shows how picking the best of 50 versions of one idea turns a 1.2% edge into a backtest showing 6%.

What quants actually do

The word covers a wide range of firms, from academic-style factor managers to high-frequency market makers. What they share is a production line with four stations.

1. Signals. A signal is a number, calculated for every security, that is meant to predict its return relative to others. "Earnings yield", "return over the past twelve months excluding the last one", "how far this stock has moved away from its usual relationship with its sector" are all signals. A research team may keep hundreds. Each is usually weak on its own, right only slightly more often than chance, which is why quants combine many and trade them across many securities at once.

2. Portfolio construction. Signals become positions through an optimizer: buy the stocks with the best combined score, short or underweight the worst, and size each position so that no single name, industry or factor bet dominates. A market-neutral fund balances its long and short sides so that a rise or fall in the whole market barely moves it. That is the design behind much of long/short quant investing.

3. Risk models. A risk model estimates how each security moves with broad forces: the market, industries, interest rates, and factors such as size or momentum. It lets the fund see that, say, 40 apparently unrelated positions are all a bet on falling interest rates, and cut that exposure before it dominates the result. The model is only as good as the history it was estimated on.

4. Execution. A small edge disappears if trading costs eat it. Quant funds spend heavily on measuring the spread, slippage and the price impact of their own orders, and on algorithms that split large orders into small ones. The SEC staff's 2014 review of research on high-frequency trading draws the line clearly: an execution algorithm that slices an institution's large order and feeds it into the market over time is not high-frequency trading, because the position it builds is held far longer than the intraday horizons typical of HFT, even though both are run by computers.

Two families of strategy

Family What it bets on Holding period Main risk
Factor investing Characteristics that have earned a premium over decades, such as value, momentum, quality and low volatility Months to years Long dry spells; crowding into the same stocks
Statistical arbitrage Short-lived gaps between related prices: a stock and its sector, two similar companies, an ETF and its holdings, expected to close (often called mean reversion) Minutes to days The gap widens instead; costs; many funds holding the same trades
High-frequency strategies The spread and very short-term price moves, captured by speed Seconds or less Faster rivals; technology failures

Factor investing is the slow end. A factor is a characteristic shared by many stocks that has, on average, been rewarded. The lesson Factor investing: five factor funds against the S&P 500, tested tests five factor funds against the S&P 500 and explains where the factors came from, so this lesson does not repeat it. Factor strategies trade relatively little and can hold billions.

Statistical arbitrage ("stat arb") is the fast end of ordinary quant investing. A classic version is a pairs trade: two companies whose shares have moved together for years diverge, so the fund buys the laggard and shorts the leader, expecting them to converge. Modern versions run thousands of such bets at once across a whole market, each tiny, so that no single one matters. The edge per trade is small and the trades are many, which makes costs and speed central. The fastest end of all, high-frequency trading, is the subject of High-frequency trading explained: strategies, scale and rules.

The difference between a quant and a discretionary investor is not intelligence or data. It is that the quant writes the decision down completely enough for a machine to follow, which is the distinction drawn in Systematic vs discretionary trading: rules or judgment.

The research loop

Quant research is a loop that never ends:

  1. Idea. Start with a reason a price might be predictable: investors overreact to news, small companies are neglected, forced sellers push prices too far.
  2. Data. Gather the history needed to measure it, with care that every number was actually available on the date it is used. Using a revised earnings figure that was published months later is look-ahead bias.
  3. Test. Run the signal over one period of history (in sample), including realistic costs.
  4. Check. Run it, unchanged, over a period it has never seen (out of sample), and on other markets.
  5. Combine and trade. Add the survivors to the live portfolio at a small size.
  6. Monitor. Compare live results with the backtest, and retire signals that stop working.

The dangerous step is 3. A researcher who tries many versions of an idea, and keeps the best, has tested the luck of the best version as much as the idea. The lesson Overfitting and backtest bias: 4,094 rules tested on SPY shows this on 4,094 calendar rules applied to SPY. The example below shows the same trap from the side of a quant fund.

Worked example: the best of 50 versions

Suppose a researcher has a genuinely good idea. Every one of 50 versions of the signal (different lookback lengths, different ways to rank stocks) has the same real edge: 1.2% a year of excess return, before costs. The researcher cannot see that edge directly. Each month's result also contains noise with a standard deviation of 2%, about 6.9% a year, which is ordinary for a long/short stock portfolio. The researcher backtests all 50 over ten years, keeps the one with the best record, and starts trading it. Once traded, the edge halves to 0.6% a year, an assumption that stands in for competitors finding the same idea.

The best of 50 invented signal variants: backtest, then live $0.8 $1.0 $1.2 $1.4 $1.6 $1.8 $2.0 0y 5y 10y 15y Research ends, trading starts Chosen variant (in sample to year 10, then live) Its true edge: 1.2% a year, then 0.6% $1.78 $1.87 Years (invented monthly returns, no trading costs)
One invented research project: 50 variants with the same true edge (1.2% a year, then 0.6% once live) plus 2% monthly noise; the variant with the best 10-year backtest is traded for five years. No trading costs. Finabase calculation.

In this one run, the chosen variant's backtest averaged 6.04% a year and turned $1 into $1.78 in ten years. Its true edge would have turned $1 into only $1.13. The difference is luck that the selection step collected. Once live, it averaged 1.29% a year and reached $1.87 by year 15, better than its true edge in those five years, but nothing like the backtest.

One run proves little, so the calculation repeats the whole project 10,000 times.

The chosen variant across 10,000 invented research projects Its backtest (10 years) 6.1% Its true edge in the backtest 1.2% Its true edge once live 0.6% What it earned live (5 years) 0.6% Average yearly excess return (average monthly × 12). Invented data; no trading costs.
Average yearly excess return of the chosen variant, before and after it starts trading, across 10,000 invented projects. Finabase calculation; no trading costs.

Two lessons follow. First, a backtest result means little without the number of versions tried, which is why serious quant firms record every test, not only the winners. Second, even a real edge is hard to see. The true edge here has a Sharpe ratio of 0.17 in the backtest years. Telling it apart from zero at the usual statistical standard (a t-statistic of 2) would take about 133 years of returns, because the t-statistic grows only with the square root of time.

Why most signals decay

Signals rarely stop working overnight. They fade, for several reasons explored in Why trading strategies stop working:

  • Some were never real. As the worked example shows, a search across many versions finds luck. Luck does not repeat.
  • Others find them. An idea published in a journal, or discovered independently by many funds, is traded until the prices it predicted move before it can be acted on.
  • Costs. A signal that turns over the whole portfolio every week can show a large gross edge and a small net one. A signal that works best in small, thinly traded stocks meets the highest trading costs exactly where it looks strongest.
  • Capacity. A short-term edge can only absorb so much money before the fund's own trades move prices against it. The record of Renaissance Technologies' closed Medallion Fund, set against its ordinary public funds, is the best-known illustration (Jim Simons and Renaissance Technologies: the Medallion Fund record).
  • The market changes. Decimal prices, electronic trading and new rules changed which short-term patterns could be traded at all.

Where quantitative investing fails

Crowding and the August 2007 "quant quake". During the week of August 6, 2007, a number of high-profile quantitative long/short equity funds suffered what Khandani and Lo describe as unprecedented losses, followed by a sharp rebound on August 10. Their hypothesis is that one or more large funds holding similar market-neutral positions sold quickly, possibly because of margin calls or a decision to cut risk; the falling prices then hurt everyone holding the same trades, triggering further selling through stop-loss and deleveraging rules. They argue that the quantitative nature of the strategies was incidental: the losses came from many funds owning similar portfolios at the same time.

Leverage. Market-neutral portfolios have low volatility, so funds borrow to make the returns worth having. Leverage turns a small, crowded loss into a large one. Long-Term Capital Management (1998): how leverage sank a genius fund is the classic case from fixed income.

Model risk. A risk model estimated on calm years can understate how closely positions move together in a crisis. The model says the portfolio is diversified at exactly the moment it is not.

Overfitting dressed as research. The more data and computing power a team has, the more versions it can test, and the more impressive the best one will look by chance.

How Finabase does it

Finabase does not run a quant fund, manage money or trade for anyone. Two of its research tools let you see quantitative ideas at work, with their limits stated:

  • Trend Score (/trendscore) ranks the S&P 100, or any watchlist, with a seven-factor trend model, and you can change the factor weights or choose custom ones. Its historical snapshot setting shows the ranking as of 5, 21 or 63 trading days ago, a small out-of-sample check on whether yesterday's high scores held up. Rank stocks by trend quality with Finabase Trend Score explains the factors. A score describes the past trend, not a forecast.
  • Backtest (/backtest) trades the signals of the indicators and candlestick patterns you switch on, over a range you choose, with $10,000 per signal and no trading costs (Backtest indicator signals and rule-based strategies on Finabase). Every parameter change and re-run is one more version tried, the trap in the worked example above. The tool does not count your tries for you.

Frequently asked questions

What does a quant do?

A quant builds and tests mathematical models that predict returns or control risk, and writes them as rules a computer can trade. In a fund, quants split into researchers who look for signals, portfolio and risk specialists, and engineers who build the trading systems.

Is quantitative investing the same as algorithmic trading?

No. Quantitative investing is about deciding what to own with models. Algorithmic trading is about how orders are placed, and many traditional fund managers use algorithms to execute decisions made by people. High-frequency trading is one kind of algorithmic trading.

Do quant funds beat the market?

Some have, for long periods, and many have not. There is no public, unbiased record of all quant funds, and hedge fund databases rely on voluntary reporting. A few firms with exceptional records do not take outside money for their best strategies.

Why do quant strategies stop working?

Because the edge was partly luck, because other investors find and trade the same pattern, because trading costs and crowding absorb what is left, or because the market's structure changes. Most signals fade gradually rather than failing at once.

Can an individual investor invest quantitatively?

Yes, in the sense of following written, tested rules, and factor funds package some quant ideas for the public. The same traps apply: count the versions you test, include costs, and judge a rule on data it was not built from.

Summary

Quantitative investing replaces case-by-case judgment with signals, a portfolio optimizer, a risk model and low-cost execution, all written down so that a computer can run them. Its edges are small and noisy, so the research loop matters more than any single idea: test out of sample, include costs and count every version tried. In the worked example, choosing the best of 50 versions of a real 1.2% edge produced a backtest averaging 6.1% a year and a live result of 0.6%. Signals decay as others find them, and funds holding similar positions can lose together, as they did in August 2007.

Check your understanding

4 questions on this lesson. Each answer comes with the reason, and nothing is scored.

  1. A researcher tests 50 versions of a signal over ten years and reports only the best one, which earned 6% a year. What is the most likely reason it then earns far less once traded?

    1. Much of the 6% was luck that the selection step picked up, and luck does not repeat
    2. Signals always stop working the day trading starts
    3. Backtests are calculated without dividends, so live returns are always lower
    Show the answer

    A. Much of the 6% was luck that the selection step picked up, and luck does not repeat Choosing the best of many noisy results selects the version that was luckiest in that period. In the lesson’s example every version had a true edge of 1.2% a year, yet the winner’s backtests averaged about 6.1%; once traded they earned about 0.6%, their true edge after decay.

  2. What is the job of a risk model in a quant fund?

    1. To pick which stocks will rise next month
    2. To estimate how positions move with broad forces such as the market, industries and factors, so hidden common bets can be measured and limited
    3. To decide which exchange receives each order
    Show the answer

    B. To estimate how positions move with broad forces such as the market, industries and factors, so hidden common bets can be measured and limited Signals choose positions; the risk model shows what the portfolio is really exposed to. Forty apparently unrelated stocks can all be one bet on interest rates or on a factor, and the model lets the fund see and cap that before it dominates results.

  3. Which of these is a statistical arbitrage trade?

    1. Buying a basket of cheap stocks and holding it for five years
    2. Buying a stock that has fallen behind a closely related one and shorting the leader, expecting the gap to close
    3. Buying an index fund every month
    Show the answer

    B. Buying a stock that has fallen behind a closely related one and shorting the leader, expecting the gap to close Statistical arbitrage bets that short-lived gaps between related prices will close. A pairs trade is the classic version; modern funds run thousands of such small bets at once. Holding cheap stocks for years is closer to a value factor strategy.

  4. According to Khandani and Lo, what drove the losses at quantitative long/short funds in August 2007?

    1. A computer error at one exchange
    2. Rapid selling by one or more large funds holding similar positions, which hurt every fund with the same trades
    3. A sudden crash in the overall stock market
    Show the answer

    B. Rapid selling by one or more large funds holding similar positions, which hurt every fund with the same trades Their hypothesis is a fire sale: one or more sizable market-neutral portfolios were unwound quickly, and the price moves hit other funds holding similar positions, triggering more selling. The overall market moved little. Crowding, not the use of computers, was the problem.

Exercise

One task to do in Finabase. Nothing is graded or saved.

Open Backtest, choose one stock and one indicator, and run it. Change one setting and run it again, five times in all, writing down each result. Mark the best run, and count how many versions you tried to find it.

Open Backtest
What you should find

The best of your five runs looks better than a typical one partly by luck. It is the lesson’s best-of-50 trap on a small scale: there the winning backtests averaged about 6.1% a year against a true edge of 1.2%, and earned about 0.6% once traded. The tool does not count your tries and ignores trading costs, so the honest record is all five runs, not the winner.

Sources and further reading

  1. Amir E. Khandani and Andrew W. Lo, "What Happened to the Quants in August 2007?" (MIT working paper, September 20, 2007)
  2. SEC Division of Trading and Markets staff — Equity Market Structure Literature Review, Part II: High Frequency Trading (March 18, 2014), section I.A (execution algorithms are not HFT)
  3. Finabase calculation: 50 invented signal variants with stated edge and noise, 10,000 simulated research projects (scripts/learn/figures/professional-investing-quant-a.ts)