Introduction to Quant Finance · Lesson 3
What quants do
Pricing, research and trading, risk and development: the question each kind of work asks, who does it, and the loop most of it runs on.
Know the basics? Read the lesson notesTwo people, one chart
Two people look at the same price chart of one share. The price has risen five days in a row.
Which one is working the way a quant works?
The answer is person 2. Quant is short for quantitative analyst: someone who uses numbers, statistics (methods for summing up data and judging what it shows) and computer code to make decisions about prices and risk. A quant doesn't need to know what happens tomorrow. The job is to measure what past data shows, say how sure that measurement is, and decide on it.
Four kinds of work
Quant jobs have many titles, but most of the work falls into four kinds. Each one answers its own question. Turn them over one at a time.
- Pricing: what is this contract worth?
Banks sell contracts (agreements to pay or deliver something later) whose value depends on a price, such as an option: the right, but not the duty, to buy or sell something at a set price by a set date. A pricing quant works out a fair price for it, one neither side expects to gain from on average, using a model: a set of equations for how prices move.
- Research and trading: is there a pattern worth acting on?
A researcher looks for a pattern in past prices and tests whether it holds after costs (what it costs to trade: fees and the gap between buying and selling prices) and could not just be luck. A pattern that passes can become a trading rule, often run by a computer.
- Risk: how much could we lose?
A risk quant measures how much everything the firm holds could lose on a bad day, sets limits on that loss, and checks them every day.
- Development: does it run, correctly and fast?
A quant developer builds the systems the others rely on: the price data, the backtests (a trading rule run over past prices to see what it would have done) and the programs that send orders.
They connect. Research finds a rule, development builds the system that runs it, risk sets how much it may lose, and pricing values the contracts it trades. At a small firm one person may do several of these; at a large one, each is a team.
Buy side and sell side
Finance splits firms into two sides. The sell side makes, sells and trades financial products for clients: mostly banks, on their trading desks (the teams that trade). The buy side invests money, its own or its clients'.
Which of the two is on the sell side?
On the sell side, quants mostly price contracts like this one, measure the desk's risk and help it trade. On the buy side, they mostly look for patterns worth investing in and decide how much money goes where.
Who else hires quants
Some firms trade with no outside clients at all. Guess first: which of these trades only its own money?
The answer is the proprietary trading firm. So the employers of quants, by type:
- banks, on the sell side: pricing, risk and trading desks;
- firms that invest savings for clients (asset managers) and private funds for large investors (hedge funds), on the buy side: research and portfolio teams;
- proprietary trading firms, some of them market makers: firms always ready to buy and to sell, earning the small gap between their two prices;
- the exchanges and software companies that serve all of them.
Many smaller firms do the same work. A proprietary trading firm is not the same as the “prop firm” evaluations sold for a fee to individual traders (the Rules as risk limits lesson).
Whose job is it?
Six made-up tasks from a quant team's week. For each, pick the kind of work it belongs to. A wrong pick can be changed.
Check whether a trading signal (a pattern that says when to trade) still pays after costs
Research and trading: is this pattern worth acting on once trading costs are paid?
Work out a fair price for an option a client wants to buy
Pricing: what is this contract worth?
Estimate how much the firm could lose on its worst day in 100
Risk: how much could we lose on a bad day?
Make a backtest run 10 times faster
Development: the backtest is a system others rely on, and speed is part of building it.
Check that a model's prices match the prices clients actually pay
Pricing: checking the pricing model is part of pricing. It sounds like research, but the question is what contracts are worth.
Set how much one trading desk may lose in a day
Risk: limits on losses are the risk team's work.
All six placed.
Real jobs mix these: a researcher writes code, a developer checks prices. The four kinds are a map, not walls.
One loop
Whatever the kind, most quant work runs one loop of four stages. Tap them in the order you would do them.
The loop
The order: question, data, test, decision. Then the decision raises the next question.
If you took the first two lessons, you have run it twice. In Expectancy: does a strategy that wins 9 trades in 10 make money? The data were its win rate and the sizes of its wins and losses; the test, many simulated accounts; the decision, judge a strategy by its average result per trade, not by how often it wins. In Random walks, coin flips added up drew the same trends as price charts, so the decision was: a trend on its own is not evidence.
The other kinds run it too, with other questions. Pricing: does the model's price match prices clients actually pay? Risk: would today's limit have held on the worst past days? Development: is the new code faster, and does it give the same answers?
One made-up morning
Here is the loop on one task from the sorter. Question: does a trading signal still pay after costs? Data: its backtest, the trades the signal would have made in the past. R is a unit of money, the same on every trade, like €10: a win of +1.2R is €12.
Guess before the test: over the 400 trades, after costs, does it make money or lose it?
The test
The test adds up the 400 trades in the order they came: one line before costs, one after. Press play.
The made-up backtest, 400 trades
Running total in R. Upper line: before costs. Lower line: after costs of 0.08R a trade.
It loses money: −12R after costs, though it made +20R before them.
The reason is the one line from the Expectancy lesson: the average result per trade, called its expectancy, is the win rate (the share of trades that win) × the average win − the loss rate (the share that lose) × the average loss. Here 0.5 × 1.2R − 0.5 × 1.1R = 0.60R − 0.55R = +0.05R a trade before costs. Costs take 0.08R a trade, which leaves −0.03R. Over 400 trades: 400 × 0.05R = +20R before costs, 400 × −0.03R = −12R after.
Decision: as it stands, the signal doesn't pay. The next question might be whether some version of it makes more per trade than it costs. A real backtest only estimates its average, and 400 trades leave room for luck (the Sample size lesson).
Expected value after costs
A test of a trading rule often comes down to one number: its expected value per trade (its expectancy, the average result per trade) after transaction costs (everything paid to trade: fees and the gap between the price wanted and the price got). The rule pays on average only if that number is above zero, which happens exactly when the cost per trade is smaller than the expected value before costs. Over n trades the total is about n times it (≈ because real results vary around the average).
- p
- the win rate, as a share (0.5 for 50%); 1 − p is the loss rate
- W
- the average win, in R
- L
- the average loss, in R, as a positive size (1.1, not −1.1)
- c
- the cost per trade, in R
- Enet
- the expected value per trade after costs, in R
- n
- the number of trades
The morning's signal: p = 0.5, W = 1.2R, L = 1.1R, c = 0.08R. Before costs, 0.5 × 1.2R − 0.5 × 1.1R = +0.05R. Enet = +0.05R − 0.08R = −0.03R. Over n = 400 trades, n × Enet = −12R, where the lower line ended. It would pay only with costs below 0.05R a trade.
- p, W and L come from enough trades to trust (the Sample size lesson);
- c is what trading really costs (the Costs lesson);
- the rule was not picked as the best of many tries on the same data (the best of many is often just the luckiest).
A short or hand-picked test can show Enet above zero by luck alone (the Best of many lesson). A number above zero earns a rule more testing, not a verdict that it works.
What is its expected value per trade after costs, in R?
Hint: p × W − (1 − p) × L − c, with p = 0.4 and 1 − p = 0.6.
A pension firm's team
Which side is the firm on, and what kind of work does that team do?
A colleague's backtest
About how much does it make over the 1,000 trades after costs, in R?
Hint: first Enet = p × W − (1 − p) × L − c, with 1 − p = 0.55. Then multiply by n = 1,000.
Three Fridays
Which stage of the loop did they skip?
Lesson done
A quant uses numbers, statistics and code to make decisions about prices and risk. The work comes in four kinds, pricing, research and trading, risk and development, done at banks on the sell side, at investors on the buy side and at firms that trade their own money. Much of it runs one loop: question, data, test, decision. For a trading rule, the test often comes down to its expected value per trade after costs, which is only as good as the trades it was measured on.
Later parts of this course, and later courses (some still being written), build the tools for each kind of work; the course list shows them.
This is a free course, not a qualification. It teaches ideas that quant interviews and jobs use, but it is not accredited, it is not a substitute for a degree, and it won't get anyone a job by itself. Firms hire on their own criteria, which can include degrees, interviews and experience, and those criteria differ between firms and change. Neither this course nor QuantWright has any connection with any employer.
Key ideas
- Quant
- short for quantitative analyst: someone who uses numbers, statistics and code to make decisions about prices and risk
- Pricing
- working out what a contract, such as an option, is worth
- Research and trading
- finding patterns in data and testing whether they are worth acting on after costs
- Risk
- measuring how much a firm's holdings could lose, and setting limits on it
- Development
- building the systems: data, backtests and the programs that send orders
- Sell side / buy side
- firms that make, sell and trade financial products for clients (mostly banks) / firms that invest money (asset managers, hedge funds)
- Proprietary trading firm
- a firm that trades only its own money, with no outside clients; not the retail “prop firm” evaluations
- The research loop
- question, data, test, decision; the decision raises the next question
- Expected value after costs
- the average result per trade once the cost of every trade is taken off
Enet = p × W − (1 − p) × L − c
total ≈ n × Enet