Quantitative finance in ten ideas
On this page
- Before the ideas: who pays for quantitative finance
- 1. Returns compound
- 2. Risk, and three ratios that divide by it
- 3. Diversification: correlation decides what cancels
- 4. Beta is a slope, alpha is what is left
- 5. Portfolio optimisation takes its inputs literally
- 6. Valuation: price is observed, value is estimated
- 7. Prices are hard to beat
- 8. Execution: every trade has a cost
- 9. Data lies in known ways
- 10. A strategy is a chain, judged net at the end
This is the map of the series: the core ideas of quantitative finance, one short section each, in the order each one needs the one before it. Each section says what the idea is and why it matters, then links to the post that works it through with formulas, worked numbers and code. The examples use daily prices from 2020 to 2025 for five tickers (trading symbols): SPY, a fund that tracks the US stock market, three stocks (NVDA, GS, XOM), and GLD, a fund that tracks gold. Read this page to see the whole shape, then go to the post for the idea you need.
Three things do most of the work:
Returns multiply, they do not add. Risk grows with the square root of time, not with time. And when testing a strategy on past data (a backtestTesting a trading strategy by simulating how it would have traded over some past period.), ask of every number when it was known.
The ten ideas at a glance, grouped by the job each one does (the grouping is mine; the numbers are the sections below):
Before the ideas: who pays for quantitative finance
Quantitative finance is easiest to picture through the people who pay for it. A hedge fundA pool of money from accredited investors, wealthy individuals and institutions assumed able to protect their own interests. is a lightly regulated pool of money whose manager is paid mostly on performance, classically “2 and 20”: 2% of the money every year, plus 20% of the gain. On a 10% year that is 4 of the 10 points, 40% of the gain, and the 2% is charged in losing years too. A fee that large only makes sense if the fund offers something an index cannot, usually steadier returns rather than higher ones. That incentive shapes everything the fund does. Full post: What is quantitative finance?.
1. Returns compound
Returns multiply, they do not add, because each period starts from where the last one ended. Go up 10% and then down 10% and you do not break even: 100 becomes 110, then 99. The same fact explains why losses hurt more than they look: after a 50% fall you need a 100% gain to get back. Risk, measured as volatilityHow much an asset's price spikes and dips; most often measured as the standard deviation of its per-period returns. (how much returns swing), grows more slowly than time, with its square root. A year has about 252 trading days, and the square root of 252 is about 16, so a year’s volatility is about 16 times a day’s, not 252 times. Full post: Returns compound: multiply, never add.
2. Risk, and three ratios that divide by it
A return means little until you know how much risk was taken to earn it. The Sharpe ratioReturn above the risk-free rate divided by the standard deviation of the portfolio's return: reward per unit of risk. divides the return above what a risk-free deposit pays by how much the returns swing. SortinoA risk-adjusted score that looks only at the downside, unlike the Sharpe ratio, which treats upward and downward swings the same. counts only the downward swings, because investors do not mind surprises upward. The information ratioLike the Sharpe ratio: the average excess return per period divided by the standard deviation of that excess return. measures against a benchmarkThe yardstick a strategy's returns are compared against, usually the market index that the traded securities belong to. instead, for a manager whose job is to beat an index. DrawdownHow far a portfolio's current value sits below the highest value it has reached so far. covers what the ratios miss: how far the money fell from its peak, and how long it took to recover. Full post: Sharpe, Sortino and information ratio.
3. Diversification: correlation decides what cancels
Owning many assets lowers risk only if they do not all move together. CorrelationCovariance rescaled into a measure that always lies between minus one and one. measures how much they move together: the less they do, the more one’s bad day is offset by another’s good day. DiversificationNot putting all your eggs in one basket: holding several asset classes and several securities within each class. changes the risk, never the expected return (the average you expect to earn), which stays the weighted averageAn average in which each value counts in proportion to its weight, instead of every value counting the same. of the holdings. Its weakness is timing: in the 2020 crash the four equity tickers (SPY, NVDA, GS, XOM) suddenly moved together, so the protection shrank exactly when it was needed. Full post: Covariance and correlation.
4. Beta is a slope, alpha is what is left
Plot a stock’s daily returnsThe percentage change in price from one day to the next: today's price divided by yesterday's, minus one. against the market’s (here, SPY’s) and fit a straight line through them. BetaA stock's price swings relative to the market: a beta of 1.5 means it rises and falls about 1.5 times as much as the market. is the slope: how much of the market’s move the stock carries. NVDA’s beta against SPY was about 1.80, so on a day the market moved 1%, NVDA tended to move about 1.80%. AlphaThe part of a stock's return over and above the market's, left after the market's share is taken out; the intercept of the regression line. is what is left over once that market exposure is accounted for, the part that might be skill. Knowing beta also tells you how much of the market to sell to hedge a position. Full post: Beta and alpha.
5. Portfolio optimisation takes its inputs literally
An optimiser picks the mix of assets with the best return for the risk, using estimates of each asset’s return and how the assets move together. The maths is exact; the estimates are not. The optimiser cannot tell a real edge from a lucky stretch, so it piles into whatever happened to look best in the data it saw, and the “optimal” mix often disappoints on the next period. In this series’ data it put 100% into NVDA, and NVDA’s 2024 run then paid it +320.6% against +118.2% for equal weights; in three of the five single years the chosen mix lost to equal weights. Limits such as “no short sellingBorrowing an asset and selling it, expecting its price to drop so you can buy it back cheaper and return it to the lender.” (no betting on a fall by selling borrowed shares) and “no more than a set share in one asset” are what turn its answer into a portfolio you would actually hold. Full post: Portfolio optimisation.
6. Valuation: price is observed, value is estimated
The price of a share is a fact you can look up; its value is an estimate of all the cash it will pay in the future, each payment shrunk because money later is worth less than money now. That estimate is very sensitive: small changes in the assumed growth rate or the rate used to shrink future cash move the value a lot. This is why two careful analysts can disagree, and why investors want a margin of safetyBuying only stocks whose price is well below your own estimate of their true value., a price well below their estimate of value. Full post: Value is an estimate.
7. Prices are hard to beat
Prices react quickly to information, so a pattern everyone can see is usually already in the price. Small patterns do exist: SPY tended to bounce slightly after a down day. But a rule that traded on that bounce looked good before costs and lost nearly everything after them. The deeper trap is a strategy that wins small almost every time and loses everything occasionally: it feels like skill for a long while, and its average is still a loss. Full post: Why prices are hard to beat.
8. Execution: every trade has a cost
A trading idea earns money only after the costs of trading it. Buyers pay the higher price sellers ask, sellers get the lower price buyers bid, large orders push the price against themselves, and short sellers pay to borrow shares. Each cost is small, but a rule that trades often pays it hundreds of times. In the series, a rule that traded almost every day made 6.9% over 2020 to 2025 before costs; at 0.5% per trade it lost 97.5%. A rule that traded only 11 times in those years kept most of its gain. Full post: What a trade really costs.
9. Data lies in known ways
Many impressive backtests are data errors, and the common ones have names. SurvivorshipPrice data that leaves out stocks that went bankrupt, delisted or merged, so only survivors remain and backtests look better than reality.: the companies that failed were dropped from the data, so the past looks rosier. Look-aheadA backtest error: the strategy uses information that was only available after the moment the trade was made.: the test used a number before it was known. Multiple testing: try enough random signals and some will look like real ones by luck alone. Unadjusted prices: a stock splitDividing each old share into several new ones; the company's value is unchanged, so each share is worth proportionately less. looks like a crash. Each has a known fix, and the post shows them one by one. Full post: Data that lies.
10. A strategy is a chain, judged net at the end
A strategy is a chain of steps: an idea, the data, the trading signal, how much to trade, how the trades are executed, what they cost, and how the result is judged. A mistake in any step can quietly break the result, so judge the strategy by its final profit after costs, compared with simply holding the market, not by how good the signal looked at the start. The Engineering series builds this chain in Python. Full post: Backtesting in Python.