Act V · Portfolios, Strategies and the Firm
Part 34 of 43Inside a Quant Firm
How long does a portfolio manager's seat last, and what does the answer say about how quant firms are built?
The industry part. Six ways to be a quant firm are laid out from the public record: the multi-manager platform, the single research engine, the market maker, the systematic asset manager, the bank desk, the proprietary shop. What they have disclosed about themselves is collected and read carefully. The pod model is examined as a mechanism: capital, a risk limit, a drawdown stop, a payout. The stop turns out to have an exact theory (how long a manager of a given skill survives), and the part derives it and asks what the stop actually selects for. Technology, surveillance, the interview and founding stories complete the picture.
What you need. Parts 26 and 31 for the research chapter; most chapters need nothing.
What you will be able to do
Undergraduate
- Describe the main business models of quant firms and how each earns its money.
- Explain how a pod is allocated capital and stopped.
Master's
- Compute the expected time to a drawdown stop for a given Sharpe ratio, and the P&L distribution at the stop.
- Model a platform of pods: netting, pass-through costs, the effect of correlation between managers.
PhD
- Derive the law of the drawdown stopping time for Brownian motion with drift (Taylor; Lehoczky) and the exponential law of the peak at the stop.
Industry
- Prepare for the interview: probability, market-making games, mental arithmetic, a research discussion; read a regulatory case with its allegations labelled as such.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Undergraduate 21 min · Master's 51 min · PhD 59 min · Industry 47 min.
- 0How long a seat lastsUndergraduate3 min
- 1Six ways to be a quant firmUndergraduate4 min
- 2What the firms have disclosedIndustry5 min
- 3The pod modelUndergraduate5 min
- 4From idea to capitalIndustry4 min
- 5Risk at the level of the firmIndustry4 min
- 6TechnologyIndustry4 min
- 7Surveillance and the casesIndustry4 min
- 8The interviewUndergraduate4 min
- 9Founding stories, as told in publicIndustry3 min
- 10Do drawdown stops help?Master's4 min
- 11Rule 34: the firmIndustry3 min
- For the researcher: how long a seat lasts, exactlyPhD8 min
- Recap, desk questions, problemsAll tracks5 min
Also on this page: Lecture · Key results · Try it · Lab · Problems · Reading · 中文 · Build the film.
Lecture
The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.
How long a seat lastsUndergraduate3 min
Inside a quant firm: how the firms that run these strategies are built, paid, governed and policed, and the arithmetic that decides how long a trader keeps their seat.
Consider a stipulated manager with constant arithmetic Brownian profit, known annual Sharpe one and annual volatility ten percent of initial capital. The running maximum includes zero. A continuously monitored drawdown of five percent stops the full book. This fixed-seed daily path illustrates the rule, with discrete overshoot. Under the continuous model, the exact expected stopping time is 4.3 months. That is a conditional mathematical lifetime, not a forecast for an actual manager or a guarantee about a platform's contract.
Three distinctions guide this lesson. Virtu's 2014 filing reported one losing day in twelve hundred and thirty-eight. A Gaussian daily model maps that frequency to ratio 3.15; square-root annualization additionally assumes independent, stable daily variance. A loss count alone does not identify trading skill. For a known Brownian Sharpe-one process, these two continuous stop depths give means 4.3 months and 2.2 years. The chosen platform simulation gives investor ratios 1.19 without stops and 1.90 with them. Selection, exposure, free replacement and payout accounting all affect that comparison.
Where this sits. Parts thirty to thirty-three built portfolios, risk models and strategies. This part steps back to the firm that runs them: its business model, its capital, its risk limits, its technology, its compliance desk, and the people it hires. It uses Part eight's drawdown control, Part twenty-six's multiple testing and Part thirty-one's capacity.
The firms, by founding date, from the public record. Princeton/Newport in 1969; Renaissance in 1982; D. E. Shaw in 1988; Millennium in 1989. Citadel in 1990; AQR in 1998; Jane Street in 2000; Two Sigma in 2001; Virtu in 2008. And the firm's other history: Knight Capital's forty-five minutes in 2012, the spoofing cases, and the rules that followed.
The plan: six business models; what firms have disclosed and what it implies; the pod model, simulated; how an idea becomes capital; risk at the level of the firm; technology; surveillance and the cases; the interview; the founding stories, as told in public; whether drawdown stops help on real premia; and an exact formula for how long a manager keeps their seat.
This part proposes a firm-level checklist for the educational House: independent limits, authority to stop, records and review. The chart describes responsibilities; it does not establish that a trading or surveillance system has been implemented or that a strategy is approved.
1Six ways to be a quant firmUndergraduate4 min
Every quant firm answers three questions: whose money it trades, what edge it sells, and who is paid when it works. Six answers cover most of the industry.
The economics in one line. Profit is edge times capacity, less costs, and Part thirty-one showed that capacity is finite. A firm that trades its own capital keeps all the profit and bears all the risk. A firm that trades investors' capital is paid fees, a share of assets and of profits, and that changes how large it wants to be.
First, proprietary trading firms. Jane Street, Hudson River Trading, Jump Trading and XTX Markets trade their partners' own capital across thousands of instruments, mostly by quoting prices and by predicting the next few seconds or minutes. What they sell is immediacy, Part thirty-three's word: a price for anyone who wants to trade now. They keep the spread, less what better-informed traders take from them, less the exchange's fees. Part thirty-eight builds the model.
Second, the market makers, overlapping with the first. Citadel Securities, Virtu and Optiver make markets on exchanges, and some execute retail orders that brokers route to them. Virtu is listed, so its revenue and its trading days are in public filings; Chapter two reads one of them. Most of the rest disclose only through bond offerings, court cases and regulators' orders.
One part of the market-making business deserves its own card. In the United States, wholesale market makers pay retail brokers for their customers' orders. Retail orders are less likely to be informed, so they are cheaper to trade against, and the payment lets brokers offer trading without commission. The conflict: the broker owes its customer the best execution, while being paid by the firm that fills the order, and the payments must be disclosed. Elsewhere the answer differs: Britain's regulator treated the practice as incompatible with its rules from 2012, and the European Union agreed to phase it out by mid-2026.
Third, the multi-manager platforms. Millennium, Citadel, Balyasny and Point72 run hundreds of independent teams, called pods, each with its own capital, its own risk limits and its own drawdown stops, under one central risk desk. As reported, many charge investors pass-through fees: the platform's costs, including what it pays its teams, are charged to the fund, with a performance fee on top. Chapter three simulates what that leaves for the investors.
Fourth, the systematic funds. Renaissance, D. E. Shaw, AQR, Two Sigma and Man Group's AHL run one research process across many models and asset classes. They span the range of this series: fast statistical arbitrage, slower factor and trend books. Their fees span it too, from a few tenths of a percent for a factor fund to the five percent of assets and forty-four percent of profits reported for Renaissance's Medallion.
Fifth, the banks. Banks still make electronic markets and sell quantitative index strategies to clients, but the Volcker rule restricted their proprietary trading, and several prop groups left, Morgan Stanley's PDT in 2012 among them. A bank's balance sheet is cheap to fund but heavily regulated, and Part twenty-one's capital rules put a price on every position, so the banks kept the client business and the independent firms took the risk.
Sixth, China's quant private funds. Privately offered funds trading A-shares, index futures and commodities, many founded in the 2010s, the largest managing tens of billions of yuan, as reported, and selling index enhancement: beating the CSI 500 or 1000 index. They work under different constraints: next-day settlement, limited shorting, daily price limits, and, after the small-cap drawdown of February 2024 from Part twenty-nine, new limits on high-frequency and direct market access trading, as reported.
Side by side. Whose capital, what edge, and how long a position lasts. The rest of the part is about the machinery common to all six: how capital is given to traders and taken away, how ideas become capital, and how the firm keeps its traders inside the rules.
Pause and predict. At ten percent gross, compare a two-percent capital fee then twenty percent of remaining profit with six-percent costs then the same profit share. Assume positive eligible profit and one period. Which investor return is higher?
2What the firms have disclosedIndustry5 min
Quant firms are private about their methods, but not silent: listed firms file accounts, private ones borrow money and must show lenders their numbers, and books and court cases fill in the rest. One number from a filing can say a lot.
The number. In 2014 the market maker Virtu Financial filed to list its shares. Its registration statement reported that from 2009 to 2013 it had lost money on one trading day out of one thousand two hundred and thirty-eight, and credited its risk management and technology. The press treated it as a sensation. What does it actually imply?
Condition on a Gaussian daily profit distribution. Its loss probability is Phi of minus the daily mean-to-standard-deviation ratio. Plugging in the reported frequency gives 3.15. Multiplication by root two hundred and fifty-two gives about 50 only under the daily independence and variance assumptions. The original one-sided binomial upper confidence bound is 0.0038; under iid Bernoulli loss indicators and the same Gaussian model it gives a lower daily ratio 2.67. These are model-conditional calculations from a selected disclosure, not measured investable annual returns.
Distributional shape matters. In the specified finite-variance Student-t location-scale families, the same loss probability maps to daily ratios 5.37 and 6.34. That comparison does not make the Gaussian answer a universal lower bound. Stipulate a payoff of plus one most days, and minus two thousand with probability one over twelve hundred and thirty-eight. Its mean is negative despite the same rare-loss probability. This is a mathematical counterexample, not a description of Virtu's returns. We need loss magnitudes and a distributional model.
A possible aggregation model, not an inference about the firm. Each independent trade has edge divided by noise point zero one. An even-money coin with that ratio has win probability approximately fifty point five percent; the cached simulation instead uses Normal aggregate profits. In its twenty thousand simulated days, a hundred trades lose on 47 percent of days, ten thousand on 16 percent, and a hundred thousand on 0.05 percent. These frequencies have Monte Carlo variation. For independent equal-risk trades, the aggregate ratio is the per-trade ratio times root N. A disclosure does not establish those assumptions or reveal the actual firm's strategy.
Under the independent equal-risk model, solve N equals the daily ratio over the per-trade ratio, squared. At per-trade ratio point zero five the target needs about four thousand trades; at point zero one, about a hundred thousand. Positive net covariance raises aggregate variance and increases the required count at fixed edge. Negative covariance can lower it. Heterogeneous risk, costs, dependence and capacity can all change the calculation; this table does not estimate actual independent trades at a firm.
The comparison also needs a model. Under iid Gaussian daily returns with annual Sharpe two, about 45 percent of days lose. The annual Sharpe alone does not imply that frequency without the distribution and time assumptions. Trading capacity and order flow limit dollar profit; doubling capital need not double opportunities. Definitions of trading profit, operating costs and investor returns differ. Read the filing's accounting scope before comparing a market maker with a fund.
A private firm's numbers reach the public when it borrows. Bloomberg reported in 2024 that documents prepared for a Jane Street bond sale showed net trading revenue of about ten point six billion dollars for 2023, and later reports put 2024 near twenty billion. These are the press's readings of offering documents, and the firm is private; they show the scale of the business of selling immediacy.
And the most famous number. Gregory Zuckerman's book on Renaissance reported that the Medallion fund averaged about sixty-six percent a year before fees and thirty-nine percent after them, from 1988 to 2018. Those are arithmetic averages of yearly returns, on a fund that was kept small and, since the mid-2000s, open only to the firm's own employees: Part thirty-one's capacity, chosen.
Use a stipulated single-period fee example. Charge management fee m on capital, then performance fee p on the remaining positive profit. At gross sixty-six percent, m five percent and p forty-four percent, net is 34.16 percent. That arithmetic does not reproduce or validate the reported thirty-nine percent historical average. Reconciliation needs year-by-year returns, fees, timing and high-water-mark conventions. With constant affine positive-profit fees, averaging itself commutes with the formula; historical fee changes and nonlinear rules need separate data.
How to read the public record. Turn each disclosed number into a statistic, with a model and a sample. Ask what it excludes: fixed costs, fees, the years before the record, and the funds that closed. And separate the firm from the fund: the firm's profit includes its fees, the investor's return is after them.
Pause and predict. A firm reports five losing days in twelve hundred and fifty. Under a Gaussian daily model, compute the implied daily mean-to-standard-deviation ratio and its iid annualization. What can the count alone not tell us?
3The pod modelUndergraduate5 min
A multi-manager platform combines teams, shared financing and firm-level risk decisions. We use a stipulated simulation to examine drawdown rules, replacement and compensation. Its arithmetic is informative under its assumptions; it does not calibrate a real platform.
The structure. A pod combines a manager, analysts and a risk budget; mandates vary. The centre may provide capital, financing, execution, measurement and shared hedges. The firm owns the sum of positions and their covariance. Many teams do not automatically create independent edges: shared factors, crowded exits and funding can concentrate risk.
A dated reported example. The Wall Street Journal reported in 2024 that at Millennium a five-percent drawdown could lead to halved capital and seven and a half percent to departure. Treat this as a historical reported description, not a universal or current contract. The simulation borrows those numerical thresholds, with its own explicit monthly monitoring and replacement rules.
A simplified proportional exposure calculation. Specify strategy volatility per unit exposure using the same capital denominator as the risk budget, and assume linear scaling. A billion dollars of capital, a five-percent annual risk budget and eight-percent strategy volatility then imply a scale of five eighths, or six hundred and twenty-five million dollars in that normalization. This is not a capacity estimate or a universal gross-notional rule. A seven-and-a-half-percent stop is one and a half annual volatility units deep. Known drift, monitoring and the time unit also enter its model lifetime.
A single-period fee illustration. Fifteen percent gross, a two-percent capital fee, then twenty percent of remaining profit leaves 10.4 percent. Replace that capital fee with stipulated six-percent pass-through costs and the same profit share: 7.2 percent remains. Assume positive eligible profit and no high-water mark or timing effects. At equal gross returns the larger cost reduces investor return. A platform would need other advantages to offset it; stops cannot guarantee a high or steady gross return.
The chosen simulation is not a real firm's record. Two hundred slots run for thirty years. Skill is either a fixed point five for every hire or an independent Normal draw with mean and standard deviation point five. Monthly arithmetic profit is observed before halving or firing; replacement is immediate, free and independently drawn. Positive calendar-year profit is paid at twenty percent, without a high-water mark or clawback. Firing resets that slot's running profit and payout accumulator. The common shock has correlation point one; year-end exposure restoration is another chosen rule.
The heterogeneous-skill case averages eight fixed simulation seeds. At ten-percent annual volatility, about 37 percent of slots are replaced per year; at five percent, 7 percent. Investor annual-return Sharpe averages 1.90 with the five-percent rule, versus 1.19 without stops. The displayed uncertainty is the across-seed standard deviation with population normalization divided by root eight, not a real-market confidence interval. Selection, time-varying exposure, free replacement and payout resets all contribute; this comparison does not isolate one cause.
Selection is visible within the stipulated model. Fired managers have average latent Sharpe 0.34, below the hiring mean point five. The final seated average is 0.83, versus 0.49 without stops. These latent quantities are known to the simulator, not observed as true skill in practice. A stopping rule becomes a statistical test only after specifying its null, alternative, deadline and rejection rule. The research panel gives simulated stop probabilities, not an exact calibrated live-manager skill test.
Now every hire has the same stipulated skill. The drawdown rules still change exposure and payouts, despite no skill differences to select. The cached investor ratios are 1.30 with stops and 1.23 without. The stopped estimate is higher here; it does not show that stops cost a little. Each row's across-seed uncertainty is descriptive. We do not have a paired-difference uncertainty estimate, and cannot attribute this difference to manager selection.
And a cost the headline hides. Each pod is paid on its own profit, and a losing pod pays nothing back. The investors own the sum, losers included. So the share of the platform's profit paid out is 25 percent, not twenty: netting risk. The investors have written a call option to every pod. Part two priced the same call in a single fund's performance fee.
The people. Platforms compete for teams with guaranteed pay and capital, because a team's track record walks out of the door every evening. Firms protect strategies with non-compete clauses and garden leave, and with the courts: in 2024 Jane Street sued Millennium and two former traders over an Indian options strategy, and the case was settled later that year, as reported. And many pods in one sector end up holding similar positions, so the centre measures the overlap and hedges it: a crowd inside one firm is still a crowd.
Pause and predict. Two pods each have one hundred units of capital. One earns ten and the other loses ten. A bonus pays twenty percent of each positive profit. Find total bonus, investor profit and investor return on two hundred capital. Is bonus divided by gross profit defined?
4From idea to capitalIndustry4 min
A research firm needs a process for deciding which ideas deserve further study and, eventually, carefully controlled capital. We describe review, accounting, incubation and an illustrative Bayesian ramp. This review does not open the House sealed-result regression or claim that the complete live process has been implemented.
The pipeline, as quant firms describe it. An idea; the data to test it; a backtest; a review by people who did not build it. Then incubation, trading small; capital; monitoring; and, eventually, retirement. Most ideas stop at the backtest or the review, and a firm is judged by how few bad ideas get past them.
What a review asks, collected from this series. How many trials did it take to find? Is it after costs, at the size the firm would run it? Why should it work, and who pays? And what does it add to what the firm already holds? A strategy can pass the first three and still be rejected for the last.
Keep a search record before selecting a book. The unchanged registration metadata contains twenty-three thousand five hundred and fifty-two trials through this part; this review adds none. A count is not an effective number of independent tests. Shared data and modeling choices create dependence, and unlogged variants cannot be recovered from a winning result. We do not open or regress sealed strategy outcomes here. The process lesson is an evaluation protocol, not a new investment verdict.
An evaluation starts with the information clock and the ledger. State when a datum becomes available, when a position can be chosen, and the earliest executable price. A fitted residual is not itself a self-financing portfolio. Reconstruct positions, financing, borrow, fees and impact on every leg. Separate exploratory research from a specified later evaluation, and report uncertainty and selection. These requirements are proposed review criteria. No stored sealed result is opened to fill this panel.
Incubation checks implementation as well as statistics. Small live positions can reveal fills, financing, delayed or revised data and impact that a simulation misses. Under an iid low-Sharpe approximation, six months gives a Sharpe standard error around 1.4; that is weak precision, not an impossibility theorem for every test. Operational consistency is necessary but does not prove an enduring premium. Any progression in size needs specified evidence, limits and stop conditions.
Here is a chosen Bayesian illustration. True annual Sharpe has a normal prior centered at zero, and the estimated ratio has a normal likelihood with variance one over T. The latter is an iid low-Sharpe approximation. Posterior mean equals the measured ratio times T tau squared over one plus T tau squared. With prior spread one half, the weights are one fifth after one year, one half after four, and about five sevenths after ten. Proportional sizing needs comparable fixed risk and a stated objective; financing, caps, covariance, selection and prior calibration remain separate.
Retirement needs a specified decision rule. Edges can decay through competition, structural change or costs, but not every strategy in this series has a demonstrated live decay. A posterior comparison is conditional on its prior and likelihood; covariance, financing and opportunity cost also matter for capital allocation. Retired ideas remain in the search log. These are proposed governance practices, not claims that a live process has been implemented.
Pause and predict. Use the stated Normal prior with spread one half and the chosen likelihood variance one over T. If observed Sharpe is two, what are the posterior means after one and four years? This is a conditional illustration, not a validated allocation rule.
5Risk at the level of the firmIndustry4 min
A desk's risk model, from Part thirty-one, measures a book. A firm's risk function has a harder job: to add up every book, to find the losses no model sees, and to be able to stop trading in seconds.
Four layers. Pre-trade checks on every order, in microseconds, before it leaves the firm. Intraday: every desk's positions and profit in one place, live. End of day: Part thirty-one's factor model on the whole firm, plus stress tests and liquidity. And governance: who may override a limit, and who must be told. Limits mean nothing without someone independent of the trader to enforce them.
The limits a desk lives under. A volatility budget from the risk model; gross and net exposure; factor betas, the risks a pod is not paid to hold; concentration in any one name or counterparty; liquidity, in days to exit; and the drawdown rule of Chapter three. Each is a number the trader can see and the risk desk can enforce.
Liquidity has a clock and a cost convention. With constant daily volume and fixed participation, days to exit equal position divided by participation times average daily volume. Fifty million dollars, twenty million dollars a day, ten-percent participation: 25 trading days, not six. A stipulated per-day clip model with coefficient one gives daily volatility two percent times root point one, or 63.25 basis points. Treating that as an average across days requires impact-reset assumptions. It is not a calibrated full twenty-five-day block liquidation cost; total-order volume, impact decay, funding and execution need separate modeling.
Stress tests find the losses the model does not. Historical: replay today's book through 1987, August 2007, the autumn of 2008, March 2020 and 2022. Hypothetical: a factor moving five deviations, correlations going to one, a counterparty failing. And reverse: start from the loss that would end the firm, and ask what would have to happen to cause it.
This is an equal-weight return calculation. For N equal-capital desks with identical return volatility sigma, average their returns with weight one over N. Its volatility is sigma times the square root of rho plus one minus rho over N. The unnormalized dollar sum has a different scale. With fifty desks and chosen correlation point zero five, the multiplier is 0.26. Changing correlation to point four while holding marginal volatility and weights fixed makes it 0.64, a factor 2.44. This is a stipulated stress scenario, not a claim that every crisis has those correlations.
The case every risk desk studies. On the first of August 2012, a software deployment at Knight Capital left old, unused code active on one of eight servers. When the market opened it sent millions of unintended orders, and in about forty-five minutes the firm built positions that cost it more than four hundred and sixty million dollars, according to the SEC's order, which found its controls inadequate under the market access rule. Within days the firm needed rescue capital, and it was later taken over.
Controls can limit the damage from malfunctioning systems; this is not a proof of a counterfactual outcome. Price collars reject some implausible orders. Size and message-rate caps can constrain runaway activity if they cover the relevant paths. Credit and exposure controls require complete aggregation and enforcement; the SEC market-access rule sets obligations. A tested kill mechanism needs authority, coverage and operational readiness. Listing these controls does not guarantee they would have prevented Knight's loss or establish that our educational House operates them.
The other side of the trade. In March 2021 the family office Archegos held very large, concentrated stock positions through swaps with several banks, and none of them saw the whole. When the stocks fell it could not meet its margin calls, and the banks that sold slowest lost the most; Credit Suisse reported a loss of about five and a half billion dollars. A firm's risk includes its counterparties' concentration, which it cannot see, only ask about.
Pause and predict. Keep the position, participation fraction and impact coefficient fixed. If daily volume halves and volatility doubles, how do exit days and the stipulated daily clip cost change? A different child-order constraint would be a different problem.
6TechnologyIndustry4 min
A quant firm is a software company that happens to trade. What it builds depends on its horizon: a fund rebalancing monthly needs clean data and careful research code; a market maker needs every microsecond.
The stack. Data, stored point in time, so the firm can say what it knew and when. Research: notebooks, clusters and GPUs, with every trial logged. Production, ideally the same code as research, because a strategy reimplemented for production is a different strategy. And execution: gateways, Chapter five's checks, and the connections to the exchanges.
Languages, from the public record. Jane Street writes its systems in OCaml, and Yaron Minsky explained why in 2011: a strict type system catches errors before they cost money. Where latency decides who gets the trade, firms write C++ close to the hardware, bypass the operating system's network stack, and put logic on programmable chips. And most research is Python on compiled libraries, like this series; the hard part is getting it to production unchanged.
Data. A day of American equity quotes and trades runs to billions of messages, time-stamped to the microsecond. They are stored by column, so a question about one field over a year reads only that field: Kx's kdb+ is the classic example. And every value is stored with the time it became known, so restated accounts and revised numbers never leak into a backtest.
Physical latency has a lower bound. The chosen endpoint distance is 1185 kilometres between the Chicago and New Jersey trading regions. Straight-line propagation in vacuum takes 3.95 milliseconds; this excludes processing and routing. The specified refractive index gives at least 5.8 milliseconds in glass for the same path length. Real routes are longer and involve equipment, queues, reliability and weather constraints. Straighter fibre and microwave links illustrate the incentive to save time, not a claim that practical latency has reached the physical floor.
Inside the exchange's building. Exchanges rent space beside their matching engines, with equal cable lengths to every customer. Speed is worth paying for because a market maker whose quote is stale when news arrives gets picked off: speed is protection as much as attack. And critics, Eric Budish, Peter Cramton and John Shim, argued that continuous markets reward tiny speed advantages wastefully, and proposed auctions held many times a second instead. Part thirty-eight returns to this.
Research computing. Clusters of processors for backtests, which run in parallel trivially, and GPUs for networks. A good research platform records each trial completely: the code, the version of the data, the parameters and the result. And the lesson of Part twenty-nine, at the scale of a firm: cheaper trials mean more of them, and a higher bar for every result.
Reproducibility requires a record of inputs and execution. The unchanged public-data manifest currently has 28109 entries. For this part, only two approved public monthly keys were read and verified by the five unchanged ordinary calculations. Presentation loading now checks the exact restored cache hashes, and excluded sealed-result prefixes are rejected before cache access. A cached value, a historical quotation and a stipulated mathematical example have different provenance. Digest checks detect byte changes; they do not prove economic validity. No refresh, new market trial or sealed-outcome analysis is performed here.
Pause and predict. A link saves three milliseconds. In a chosen first-arrival contest, each captured dollar has gross edge half a basis point. Express gross value in captured notional. What additional inputs are required to price the link?
7Surveillance and the casesIndustry4 min
Automated orders can create legal and operational problems. We review dated public cases and a proposed surveillance function. Order records and alerts support investigation; a diagram does not establish universal regulatory visibility or a deployed compliance system.
The abuses an algorithm can commit. Spoofing: placing orders you intend to cancel before they trade, made explicitly illegal in American futures markets by the Dodd-Frank Act. Layering: many such orders, stacked at several prices, to suggest pressure on one side while you trade on the other. Marking the close: trading to move a price that contracts settle on. And wash trades: trading with yourself to fake volume.
What it looks like in the order book. Bids on the left, offers on the right. A layering trader stacks large bids below the market, which look like demand. Buyers, reading the book, raise their prices, and the trader sells to them. Then the large bids are cancelled, never having been meant to trade. The pattern is the signature surveillance looks for: large orders, quickly cancelled, opposite to the trader's executions.
The cases, from court records. Navinder Sarao, a trader working from his parents' home near London, was charged in the United States in 2015 with spoofing the E-mini futures, including on the day of the 2010 flash crash. He pleaded guilty in 2016, cooperated, and in 2020 was sentenced to a year of home confinement. Regulators have not said his orders caused the crash; the charge was the spoofing.
And at the largest scale. In September 2020, J.P. Morgan agreed to pay about nine hundred and twenty million dollars to three American agencies to resolve spoofing by traders on its precious-metals and Treasury desks over about eight years. Several of the traders were later convicted at trial. Spoofing is not a small-trader's crime.
Who watches. In American equities and options, the SEC's Consolidated Audit Trail records the whole life of every order, by customer, with reporting since 2020. Each exchange watches its own book. And the firm is expected to catch its own traders and algorithms first, which is the compliance desk this part adds to the House.
A cancellation ratio alone cannot establish spoofing. Legitimate market making often cancels many quotes as conditions change. Repeated large orders, their placement and cancellation, executions on the other side, market context and communications can motivate investigation of intent. The pattern is neither a legal finding nor a calibrated probability of guilt. Review the complete record, alternative explanations and applicable rules. An alert requires assessment, and enforcement conclusions belong to the competent authorities.
A dated and contested example. SEBI's July 2025 interim order alleged index manipulation by Jane Street entities on options-expiry days and imposed restrictions and an impounding direction. The firm disputed the allegations; contemporary reports described a deposit and permission to resume trading. This panel recounts that historical interim record. It does not verify subsequent proceedings or assert the current legal outcome. The general question is how settlement-sensitive trading should be documented, reviewed and assessed under the relevant rules.
A proposed compliance responsibility for the educational House. Review strategies, markets and controls before any authorized trading. Define order retention, alert handling, escalation and investigation records. Give the function independence, access and authority appropriate to the firm. These are design criteria. The lesson does not implement surveillance, certify legal compliance or authorize deployment.
Pause and predict. A market maker cancels ninety-eight percent of submitted quotes. Why is that alone insufficient to establish spoofing? What order patterns and contextual evidence would warrant investigation, and what remains to be shown?
8The interviewUndergraduate4 min
Quant firms hire by testing, and the tests are public knowledge: probability, expected value, estimation under pressure, making markets, and code. Each tests a skill the job uses every day. Here is a mock interview, with the answers computed.
What is tested. Probability, answered exactly and quickly, usually by symmetry. Expected value and sizing, because prices are expectations and bets are sized. Making markets: quoting, updating on the trade, managing what you end up holding. And code, correct first and then fast.
Question one. Roll two dice; what is the expected value of the larger? The maximum is at most k when both dice are, so its distribution is a difference of squares. The expectation is one hundred and sixty-one over thirty-six, about 4.47. And the check: more than one die's three and a half, less than six. The interviewer is listening for the method and the check, not the arithmetic.
Question two uses independent fair dice, a risk-neutral payoff and one unit without fees or inventory costs. The sum of three dice has expectation ten and a half. Its standard deviation is 2.96; risk tolerance and wealth would determine size. At ten bid and eleven offered, either side has expected half-point revenue only if trade direction conveys no information about the dice. Information changes the conditional fair value.
Now suppose it is revealed that one specified die is six and the other two remain independent and fair. Conditional expected payoff is thirteen. Selling at eleven then loses two in conditional expectation. This illustrates adverse selection. A buy without that revelation requires a model of informed and uninformed order flow before it determines a posterior price or spread. Raising quotes after every buy is not a model-free theorem.
Question three uses a fair independent coin. First head on toss n pays two to the n. Each possible n contributes one dollar, so the uncapped expectation diverges. Cap the payoff at exactly two to the thirty, about one point zero seven four billion dollars. The first thirty terms contribute thirty dollars and the remaining tail one, giving exactly 31 dollars. That is a risk-neutral expectation for an enforceable specified payoff, not a utility-based ticket price or a guarantee that a counterparty can pay.
Question four assumes a known iid win probability point six, even-money payoffs and a fixed fraction of current positive wealth. Maximizing expected log growth gives Kelly fraction 0.2. Its log growth is 0.02014 per bet. At twice Kelly, the fraction is point four and log growth is -0.00245. By the law of large numbers, wealth tends to zero asymptotically in this model. Each finite-time multiplier remains positive, so this is not exact finite-time ruin. Uncertain odds, constraints and other risks require separate sizing judgments.
Question five, code. Compute maximum drawdown from cumulative simple-return wealth in one pass. The displayed unchanged function compounds returns, keeps the running wealth peak, and finds the worst proportional fall. It requires a meaningful positive wealth path for this interpretation. This differs from the arithmetic cumulative-return drawdown used by the research stop in Chapter ten; the two conventions must not be interchanged.
Question six is an explicit order-of-magnitude illustration. Choose twelve billion shares per day; this is an input assumption, not a measured current volume. Choose one firm's share as one fifth and one hundred shares per trade. Division gives 24 million trades per day. Changing those inputs changes the answer. A count says nothing by itself about independence or effective breadth, so this estimate cannot verify a disclosed Sharpe ratio.
How to prepare. The classic books: Mosteller's fifty challenging problems, Crack's Heard on the Street, and Zhou's practical guide. Say the approach, compute, then check against a bound or a special case; in a market game, say what each trade tells you. What is really tested is calm reasoning under uncertainty with a clock running, which is also the job.
Pause and predict. Roll a fair die and optionally reroll once, keeping the independent second result. With no fee and a risk-neutral payoff, derive the optimal threshold and expected payoff.
9Founding stories, as told in publicIndustry3 min
The founding stories of quant firms are retold so often that they have become a genre. Here they are as the founders and their biographers have told them in public, and what they have in common.
Two mathematicians. Edward Thorp published a book on beating blackjack in 1962 and one on hedging warrants in 1967, then ran a fund on the same mathematics, as he tells it in his memoir. James Simons, a geometer and former codebreaker who chaired the mathematics department at Stony Brook, started trading in 1978 and named his firm Renaissance in 1982. It hired mathematicians, physicists and speech-recognition researchers, and, famously, almost no one from Wall Street.
Two founders from computing and from trading. David Shaw, a computer scientist from Columbia who worked on parallel machines, joined Morgan Stanley's quantitative group in 1986 and founded his own firm two years later. Kenneth Griffin traded convertible bonds from his university dormitory from 1987, as widely reported, founded Citadel in 1990, and added the market maker Citadel Securities in 2002.
And two that defined business models. Jane Street was founded in 2000 by a small group of traders, several from Susquehanna International Group, as reported, and grew as a market maker in exchange-traded funds. Millennium was founded by Israel Englander in 1989, as reported with about thirty-five million dollars, and grew into Chapter three's platform.
And the next generation, founded by alumni. AQR, founded in 1998 by Clifford Asness and colleagues from Goldman Sachs's asset management arm, built its business partly on publishing research: the factor and trend series this series used in Parts twenty-four and thirty-two are theirs. Two Sigma was founded in 2001 by John Overdeck, a D. E. Shaw alumnus, and David Siegel, a computer scientist, as reported. Each generation of firms was founded by the last one's employees.
What the stories share. A method from outside finance: probability, coding theory, parallel computing. A market that was slow: warrants, convertibles, exchange-traded funds, pairs, where prices were set by rule of thumb. And survivorship: we hear the stories of the firms that lasted. The many that tried the same and closed do not write memoirs, which is Part twenty-six's lesson applied to founders.
And culture. Some firms describe pooled research and shared pay as their defence against secrecy between teams; the platforms choose the opposite, independent pods. Strategies leak with people, so firms guard both, and the cost is that almost nothing they learn is published. And the pressure to show a good backtest is the same inside a firm as in a journal. The defence is Chapter four's review, not virtue.
Pause and predict. A thousand hypothetical firms each survive each year with probability one half, independently across years. What is the expected number surviving ten years? Does that guarantee one survivor or prove the survivors had skill?
10Do drawdown stops help?Master's4 min
Chapter ten revisits an existing research calculation on six Kenneth French factors and six stop rules. No new market trial is run. We compare the cached research sample with a descriptive shuffle reference and an iid mathematical calculation. Neither establishes a universal stop benefit, a causal mechanism or a deployable after-cost strategy.
Read the exact convention. Six factor proxies use thirty-six prior finite monthly observations for volatility scaling; removing missing values can compress the clock. The research sample begins July 1966 and ends December 2020, with uncapped leverage and no trading, funding or borrowing costs. Drawdown is in arithmetic cumulative returns. The whole breach-period loss is included; exactly the next w observations are skipped with zero cash return, then the peak restarts. This differs from a compounded-wealth drawdown. Six rules across six factors reuse one sample: thirty-six dependent research comparisons.
The iid exposure calculation has an extra variance term. Let a predictable on-off indicator be independent of the current iid return, with stationary on probability p, and assign cash zero return. Mean becomes p mu. Variance is p sigma squared plus p times one minus p times mu squared. The exact marginal per-period ratio is root p times the original ratio, divided by root one plus one minus p times the original ratio squared. Root p alone is a low-mean approximation. It lowers a positive ratio; a negative one becomes less negative. Serial exposure dependence can alter long-run variance, so annualization needs more care. Shuffling the already scaled factor is a descriptive reference, not a general calibrated iid experiment.
One existing rule uses an arithmetic fifteen-percent barrier and twelve observations out. Value's sample ratio changes from 0.20 to 0.28; momentum changes from 0.60 to 0.56. The shuffled column is baseline ratio plus the mean change across two hundred shuffles, with their standard deviation. That spread is not a confidence interval for future performance. Shared data, scaling, the chosen rule, finite shuffles and omitted costs limit what we can conclude.
The heatmap shows all thirty-six dependent research comparisons. Each cell subtracts the average shuffle change from the observed stop change. 12 exceed two shuffle standard deviations positively and 0 negatively. The star is a descriptive threshold, not a calibrated or multiple-testing-adjusted p-value. Patterns across factors suggest questions about timing and dependence; this display does not prove persistent losses caused the difference or establish a universal stop policy.
Possible mechanisms require further evidence. Slow drawdown episodes in value or profitability could make a delayed exit useful during some periods. This reused sample does not prove conditional predictability. Sudden momentum reversals and rebounds can make exits miss recoveries; costs and timing matter. A stop changes exposure based on the past. Whether that helps future investor outcomes depends on return dependence, financing, costs, objectives and selection. The cached comparison alone cannot settle that question.
Selection remains. Choosing each factor's best stop after examining thirty-six results would add selection bias. Dependence means thirty-six is not an effective independent test count. A known latent skill in a simulation differs from an uncertain future factor premium in data. Neither is guaranteed in practice. The historical registration metadata already includes this research. This review performs no new market trial, updates no registry, opens no sealed strategy result and adds no stop to an approved live book.
Pause and predict. With annual Sharpe point six and a stationary on fraction three quarters, apply the low-mean iid exposure approximation. Then identify the extra term in the exact marginal per-period formula and the assumptions needed to annualize.
11Rule 34: the firmIndustry3 min
The proposed firm-level checklist separates mathematical tools from operational controls. Limits, independent authority, records and review matter, but the small functions shown here are not a deployed trading, risk or surveillance system. This lesson authorizes no live strategy.
The first sheet separates models and evidence. Under a Gaussian daily model, the disclosed loss frequency maps to ratio 3.15; square-root annualization also needs its assumptions. A known Brownian Sharpe-one process has mean stop times 0.36 and 2.19 years at these two barriers. The chosen heterogeneous-skill simulation gives investor ratios 1.90 and 1.19; its replacement and payout accounting matter. The prior shrink factor is stipulated. Value's factor-stop comparison reuses research data and is before costs. None of these rows is a sealed strategy verdict or a live-firm calibration.
The research chapter's formulas, in eight lines. The expected time to a drawdown stop: sigma squared over two mu squared, times e to the a, minus one, minus a, where a is twice the drift times the stop over the variance. And the expected peak before the stop: sigma squared over two mu, times e to the a minus one. Both fall back to the driftless case when the manager has no skill.
The unchanged arithmetic stop includes the whole breach-period return. It then skips exactly the next wait observations and restarts with a fresh arithmetic peak. That is distinct from drawdown in compounded wealth. Cash is assigned zero return, and costs and execution constraints are absent. The example code defines this research calculation; it does not implement every practical stop a firm might need.
The platform code applies monthly arithmetic returns with a common shock, then updates drawdowns, scales positions and replaces fired managers with new independent skill draws. Replacement is immediate and frictionless. It resets the fired manager's running state and calendar-year payout accumulator; that accounting choice affects investor comparisons. Year-end restoration and positive-year payouts are additional rules, not consequences of the Brownian theorem.
The code illustrates known-parameter stopping mathematics, grid monitoring, an arithmetic research stop and a stipulated payout model. The compliance desk on this chart is a proposed responsibility. Our firm-level checklist asks for independent limits, explicit funding and liquidity assumptions, pre-trade controls, authority to halt, complete records and staged evaluation. A diagram and a pure numerical module do not establish a functioning control system, legal compliance or permission to trade.
The rule against three cases. A platform pitching a Sharpe ratio of three: ask how many pods were closed, whether their losses are in the record, and what share of gross profit the pods were paid. A manager stopped out at seven and a half percent: ask how deep that was in volatilities. And an algorithm that went live on Friday: ask for its checks, its credit limit, and who holds the kill switch.
For the researcher: how long a seat lasts, exactlyPhD8 min
For the researcher. We derive the continuous drawdown-stop formula for arithmetic Brownian profit with known constant parameters. Its peak at the stop is exponential; the stopping time generally is not. Grid simulations and deadline probabilities have different monitoring and uncertainty conventions. These conditional results do not forecast an actual manager's tenure.
Specify the model and units. X starts at zero and is arithmetic cumulative profit, mu t plus sigma W t, with known constant real mu and positive sigma. This is not compounded wealth. The maximum includes time zero, and drawdown is peak minus profit. For positive fixed d, stop at the first continuous drawdown of d. S equals mu over sigma, with units inverse root time; delta equals d over sigma, with units root time. Their product is dimensionless. Numerical annual conventions make the resulting time a number of years.
Use a bounded candidate before assuming the expected time exists. Drawdown is reflected Brownian motion with drift minus mu on the interval from zero to d, killed at d. Solve for a nonnegative twice-differentiable function f on this compact interval. Its generator equals minus one, f at d is zero, and f prime at zero is zero. Ito's formula stopped at the smaller of t and tau cancels the reflection term, and gives expected truncated time at most f of y. Hence the expected stopping time is finite. Taking the limit then identifies f as that expectation.
For nonzero mu, solve the first-order equation for f prime. The reflecting boundary gives one minus the exponential of two mu y over sigma squared, divided by mu. This derivative is nonpositive for either sign of mu. Integrate backwards from f at d equal zero. The bounded nonnegative solution at zero is sigma squared over two mu squared times e to the a minus one minus a. Here a is two mu d over sigma squared, or two S delta. It determines dimensionless shape; the prefactor carries time. Expanding the exponential gives d squared over sigma squared when mu tends to zero.
The exponential law concerns the peak. Until the peak rises by epsilon, the moving drawdown boundary lies between minus d and epsilon minus d. Fixed-boundary scale-function hitting probabilities sandwich the stop probability and yield the same first-order rate lambda times epsilon. Do not identify a moving boundary with a fixed one for finite epsilon. Strong Markov and translation invariance at successive peak levels make peak survival multiplicative and continuous, hence exponential with rate lambda; at zero drift the rate is one over d. Continuity gives terminal profit equal to peak minus d. The finite mean time already proved makes stopped Brownian motion bounded in second moment. Its terminal mean is zero, so expected profit equals drift times expected time. The stopping time itself is generally not exponential.
The classical drawdown theorem applies to the specified continuous arithmetic Brownian model. For nonzero S, mean time is e to two S delta minus one minus two S delta, divided by two S squared. The peak has the exponential law and the mean displayed here. At zero drift, the limits are delta squared for time and d for peak. The leading exponential time expression requires large positive S delta, not just positive drift. Annual numerical inputs produce years. These known-parameter results omit estimation, changing exposure, jumps, fees and execution.
Evaluate the exact formula under annual numerical conventions. At S one and delta point five, mean time is 0.36 years; at S two it is 0.55. At delta one the corresponding means are 2.19 and 6.20; at delta two, 25 and 371. Both drift and depth matter, and very large values make finite-horizon simulation difficult. This grid does not prove that depth universally matters more than skill.
These are limiting regimes, not a partition by sign alone. When S delta is strongly negative, the leading time is delta divided by absolute S. A small negative drift still needs the full formula. At exactly zero drift the time is delta squared. For large positive S delta, the leading term is the exponential divided by two S squared. The smooth exact expression connects all three cases. No sharp classification of an unknown manager follows from a finite path.
The cached six thousand grid-monitored paths have stop times from about point zero eight to nineteen point nine five years; all are shown over zero to twenty without clipping the tail. The continuous known-parameter mean is 2.19 years. The cached mean is 2.48, median 1.76, and about 16 percent exceed twice the continuous mean. Grid monitoring delays detection; sampling variation also matters. This is a stopping-time histogram, not the exponential peak law, and we do not claim an exact exponential time distribution. The general simulation helper excludes nonstoppers from reported stop-time means, so other parameter choices require censoring review.
The unchanged simulation uses four thousand paths per grid. At S one and delta one, daily monitoring gives 2.70 years versus continuous mean 2.19. Combining daily and eighth-day grids using a chosen square-root-step extrapolation gives 2.20. The grids have independent seeds and there are no Monte Carlo error bars here. Extrapolation is heuristic, not a proven error bound; deviations are not uniformly tiny. Every selected fine-grid row stopped by its horizon, but the general helper omits survivors from its means. High drift or deep barriers can produce severe censoring.
These are simulated three-year stop frequencies, with all original six thousand paths retained in each probability denominator. At depth one, the S zero frequency is 95 percent and S one is 67 percent. At depth one point five they become 72 and 24 percent. To call these errors and power, specify for example a simple null S one, alternative S zero, and reject the null when stopped by three years. A deeper barrier lowers both rejection probabilities. It is not automatically a sharper test at equal significance.
Fix a simple null of S one, alternative S zero, and rejection on stopping within three years. Under that convention, firing under the null is type one error; retaining the alternative is type two error. A deeper barrier trades lower false rejection for lower power at the same deadline. An equal-significance comparison requires calibration, and unknown composite skill needs more work. Stop depth, volatility, horizon, costs and the decision objective all matter. A changed risk budget also changes the experiment; these frequencies alone do not establish an optimal live policy.
Under the known Brownian arithmetic-profit model, finite mean stopping time permits Wald's identity. Expected terminal profit equals mu times expected time. At S one and delta point five it is 0.36 annual-volatility units; at delta one point five, 8.04. These are stopped arithmetic profits before costs, not annual investor returns or a complete value objective. Deeper stops retain both favorable and unfavorable drifts longer; replacement, capital, risk and learning determine a platform's decision.
Where this sits. Howard Taylor and John Lehoczky solved the stopped-at-a-drawdown problem in the 1970s. Sanford Grossman and Zhongquan Zhou found how an investor who must never fall below a fraction of the peak should invest: Part eight's floor. And Malik Magdon-Ismail and co-authors computed the expected maximum drawdown over a fixed horizon, the other question a manager asks.
Three extensions lie beyond this derivation. Unknown skill requires a specified prior, observation model, objective and cost of waiting before optimizing a boundary. A manager who changes exposure in response to a stop changes the stochastic model and incentives. Dependent returns, regimes, jumps and implementation costs need their own analysis. This lesson solves none of these extensions and does not claim that every version is globally unsolved.
Pause and predict. Under the known continuous Brownian arithmetic-profit model, annual Sharpe is one point five, volatility four percent and stop six percent of initial capital. Compute delta, expected time and expected terminal profit before costs.
Recap, desk questions, problemsAll tracks5 min
Part thirty-four in fourteen lines. Six illustrative business models distinguish capital, customers and the claimed source of revenue. A loss-day count implies a mean-to-volatility ratio only under a specified distribution; it does not identify real trading skill. Reported firm statistics need consistent fees and denominators. The chosen platform simulation includes selection, exposure and payout rules, and is not calibrated evidence about a real firm. Review requires a search record, information clock, executable cash ledger and uncertainty. Independent limits and authority to halt are proposed controls, not a guaranteed operating system.
Technology faces physical latency floors as well as routing and operational constraints. Surveillance requires context and evidence; high cancellation alone is not proof of manipulation. Interview calculations state their probability and capital assumptions. Founding stories are selected histories. The factor-stop exercise uses dependent research comparisons and a descriptive shuffle reference, without costs. The proposed firm checklist does not approve deployment. Finally, the Brownian drawdown theorem is exact for known constant parameters and continuous arithmetic profit; the exponential law concerns the peak, while grid stop times need separate monitoring and censoring qualifications.
Six desk questions, with assumptions stated. A loss-day count maps to an implied ratio under a specified distribution; it cannot identify skill by itself. A known Brownian Sharpe-one process reaches a half-volatility continuous drawdown in about four point three months on average. A platform may use stops for risk and learning, but its simulation also changes exposure, replacement and compensation. It is not a calibrated universal skill test.
Netting risk means paying positive pods while investors also bear the losers. Pre-trade limits and a tested halt mechanism are controls intended to constrain malfunction; their effectiveness is not a guaranteed counterfactual. A high cancellation rate alone does not establish spoofing. Placement, cancellation, opposite-side fills, context and communications may support investigation, with legal conclusions requiring more evidence.
The chapter pause answers use their stated inputs. At ten percent gross, the simple fee formulas leave 6.4 and 3.2 percent; the separate problem-set question uses fifteen percent gross. Five losses in twelve hundred and fifty maps to Gaussian daily ratio 2.65; annualization to about 42 also needs iid variance assumptions. For two pods with capital one hundred each, profits plus ten and minus ten cancel. A twenty-percent positive-profit bonus is two currency units. Investors lose two, or one percent of two hundred. Bonus divided by zero gross profit is undefined.
In the chosen Gaussian likelihood with prior standard deviation one half and observed Sharpe two, posterior means are point four after one year and one after four. At fixed position and participation, halved daily volume doubles exit days; doubled volatility doubles the stipulated daily clip cost. Holding child size fixed would give a different answer. A three-millisecond advantage captures the edge only under a chosen first-arrival competition model. Half a basis point times captured notional gives gross value; costs, opponents, reliability and fill probability are still needed.
Cancellation alone does not establish intent; investigate the complete context. With fair dice, reroll one, two or three and retain four, five or six: expectation 4.25. Independent annual survival at one half gives expected survivors 0.9766, without guaranteeing one or demonstrating skill. The low-mean iid exposure approximation gives 0.52; the exact marginal formula includes the extra variance term. Under known continuous Brownian assumptions, S one point five and delta one point five give about 18.78 years; expected arithmetic profit is mu times that mean time.
Six basic problems state their inputs: the Gaussian loss-frequency calculation, one-period fees, two-pod capital accounting, the chosen Normal posterior, liquidity at fixed participation and a fair-die reroll. Derive each result and state its limits. Full solutions in English and Chinese are in the notes.
Four advanced problems extend the calculation: the maximum of two K-sided dice, the complete tail of a capped St. Petersburg game, Kelly and asymptotic log growth, and the exact marginal ratio under predictable iid exposure. Specify the probability model before interpreting the answer.
Two qualifying problems prove the finite-mean reflected drawdown formula and the exponential peak law. The first must justify finiteness before identifying the candidate solution. The second must handle the moving boundary and justify Wald's identity. State continuity, known parameters, positive volatility and positive barrier throughout.
Where this comes back. Part thirty-five maps who trades with whom. Part thirty-seven measures what a trade costs. Part thirty-eight is market making, the theory behind the dice game. And Part forty-one returns to regulation and crises.
References distinguish mathematical sources, dated filings and legal records, books and attributed press reports. The numerical panels use the five unchanged verified ordinary calculations or explicit stipulated arithmetic. Historical quotations retain their source and date; this review does not independently verify current firm statistics or subsequent legal outcomes. No sealed strategy outcome is used.
The House now has a proposed firm-level checklist: independent limits, authority to halt, explicit accounting and records of the search. A chart and numerical functions do not create an operating trading or compliance system. Next is market microstructure. Part thirty-five studies who trades with whom, through which venues, and which order and information assumptions determine costs.
Where it goes next. The other side of these firms' trades is the subject of Act VI.
Key results
The part's results in one place, for revision.
Try it
Lab 34 · How long does a portfolio manager's seat last?
A pod is closed when it falls a fixed number of volatilities below its peak. Compute the expected time to the stop for managers of different skill, check it by simulation, and ask what the stop selects for.
python -m videos.quant.labs 34
needs numpy, scipy, matplotlib, numba · download lab34.py ·
source on GitHubSharpe -0.5 expected years to the stop: formula 0.74 watched daily 0.83 simulated daily 0.84
Sharpe +0.0 expected years to the stop: formula 1.00 watched daily 1.15 simulated daily 1.17
Sharpe +0.5 expected years to the stop: formula 1.44 watched daily 1.70 simulated daily 1.69
Sharpe +1.0 expected years to the stop: formula 2.19 watched daily 2.71 simulated daily 2.79
Sharpe +1.5 expected years to the stop: formula 3.57 watched daily 4.63 simulated daily 4.58
Sharpe +2.0 expected years to the stop: formula 6.20 watched daily 8.49 simulated daily 8.43
Peak P&L when stopped, Sharpe 1 3.19 volatilities above the start
Everyone is stopped eventually; skill only stretches the time. A zero-skill manager lasts a year, a Sharpe-2 manager six: the stop tells the two apart slowly.
The code (57 lines; it asserts its own result)
"""Lab 34: how long a seat lasts: the drawdown stop, by formula and by simulation."""
import numpy as np
from videos.quant import labs
from explainer.quant.house import firm
TITLE = "How long does a portfolio manager's seat last?"
GOAL = ("A pod is closed when it falls a fixed number of volatilities below its peak. Compute the expected time to "
"the stop for managers of different skill, check it by simulation, and ask what the stop selects for.")
TASKS = [
"Halve the stop to 0.5 volatilities. How long does a Sharpe-1 manager last now, and a Sharpe-0?",
"Use firm.platform to run 100 pods for ten years. What share of the firm's P&L comes from the top decile?",
"A manager is stopped after three years. What is the posterior that their Sharpe ratio is above 1?",
]
def run(seed=0):
delta = 1.0 # the stop: one annual volatility below the high-water mark
sharpes = np.array([-0.5, 0.0, 0.5, 1.0, 1.5, 2.0])
lab, sims = labs.Lab(), []
# watched once a day, the peak is seen late and the breach is seen late: the stop behaves like a deeper one
# (the Broadie-Glasserman-Kou shift of Lab 15, applied twice)
daily = delta + 2 * 0.5826 * np.sqrt(1 / 252)
for S in sharpes:
out = firm.simulate_stop(S, 1.0, delta, n=3000, horizon=200.0, seed=seed)
th = firm.stop_time_sharpe(S, delta) if S != 0 else delta ** 2
th_daily = firm.stop_time_sharpe(S, daily) if S != 0 else daily ** 2
sims.append(out["tau"])
lab.row(f"Sharpe {S:+.1f}", f"expected years to the stop: formula {th:5.2f} watched daily {th_daily:5.2f} "
f"simulated daily {out['tau']:5.2f}")
assert out["stopped"] > 0.99 and abs(out["tau"] - th_daily) < 0.08 * th_daily + 0.03
lab.row("Peak P&L when stopped, Sharpe 1", f"{firm.peak_at_stop(1.0, 1.0, delta):.2f} volatilities above the start")
lab.note = ("Everyone is stopped eventually; skill only stretches the time. A zero-skill manager lasts a year, "
"a Sharpe-2 manager six: the stop tells the two apart slowly.")
fig, ax = labs.figure(2, size=(11, 4.2))
rng = np.random.default_rng(seed)
t = np.arange(0, 6, 1 / 252)
for i, (S, c) in enumerate(((0.0, labs.LOSS), (1.0, labs.P), (2.0, labs.GAIN))):
for _ in range(4):
x = np.cumsum(S / 252 + rng.standard_normal(t.size) / np.sqrt(252))
dd = np.maximum.accumulate(x) - x
stop = np.argmax(dd >= delta) if (dd >= delta).any() else t.size - 1
ax[0].plot(t[:stop + 1], x[:stop + 1], color=c, lw=0.9, alpha=0.9, label=f"Sharpe {S:.0f}" if _ == 0 else None)
if stop < t.size - 1:
ax[0].plot(t[stop], x[stop], "x", color=c, ms=7)
ax[0].set(title="P&L paths, closed one volatility below the peak", xlabel="years", ylabel="P&L, annual volatilities")
ax[0].legend(fontsize=8)
grid = np.linspace(-0.6, 2.2, 100)
ax[1].semilogy(grid, [firm.stop_time_sharpe(s, delta) if abs(s) > 1e-9 else delta ** 2 for s in grid], color=labs.P,
label="(e^{2S d} - 1 - 2S d) / (2 S^2)")
ax[1].semilogy(sharpes, sims, "o", color=labs.SPOT, label="simulated")
ax[1].set(title="Expected years until the stop", xlabel="the manager's true Sharpe ratio")
ax[1].legend(fontsize=8)
lab.fig = fig
return lab
Now change it
- Halve the stop to 0.5 volatilities. How long does a Sharpe-1 manager last now, and a Sharpe-0?
- Use firm.platform to run 100 pods for ten years. What share of the firm's P&L comes from the top decile?
- A manager is stopped after three years. What is the posterior that their Sharpe ratio is above 1?
Problems, with solutions
Try each problem before opening its solution; the last two of each set are at qualifying-exam level.
Problems and complete solutions — English
Basic 1 — Loss-frequency inversion
Question. Five losses in 1,250 days: find the Gaussian-implied daily ratio and iid annualization. What does the count fail to identify?
Solution
Set p̂=5/1250=0.004. If daily profit is N(μ,σ²), σ>0, then p=Φ(−μ/σ); the plug-in ratio is s=−Φ⁻¹(0.004)=2.65207. Under independent stable daily returns and 252 trading days, S=√252 s=42.1003. These are conditional plug-in values, without an estimation confidence interval here. The count omits magnitudes; the stipulated +1/−2000 counterexample above can have the same rare-loss probability and negative mean. Neither actual ratio, net investor return nor skill is identified without additional distributional and accounting information. Dependent loss indicators invalidate an ordinary iid binomial interpretation.
Basic 2 — Two fee structures
Question. For 15% gross, compare 2% then 20% with 6% costs then 20%, assuming eligible profit remains positive.
Solution
On initial capital 100, the first pays capital fee 2 and profit fee 0.2(15−2)=2.6, leaving 10.4%. The second charges costs 6 and profit fee 0.2(15−6)=1.8, leaving 7.2%. The difference is 3.2 percentage points. This chosen positive-profit one-period arithmetic excludes high-water marks, timing, financing and different gross returns. The chapter pause uses 10% gross, giving 6.4% and 3.2%; it is a separate input, not a conflicting solution.
Basic 3 — Netting and capital denominators
Question. Two pods have capital 100 each and profits +10 and −10. Each positive profit pays a 20% bonus. Find total bonus, investor profit, investor return and bonus/gross profit.
Solution
Gross profit is 10−10=0 currency units. Bonus B=0.2[max(10,0)+max(−10,0)]=2. Net investor profit is −2, and on total capital 200, net return is −1%. The bonus divided by gross profit is 2/0 and is undefined, not an infinite percentage or a 2% return on combined capital. With positive aggregate gross profit, separate positive-pod bonuses can consume more than the headline share; that comparison needs a nonzero denominator. This specified one-period bonus has no clawback.
Basic 4 — Chosen Gaussian posterior
Question. S∼N(0,τ²), τ=0.5, and Ŝₜ|S∼N(S,1/T). Find the posterior for Ŝₜ=2 at T=1 and T=4.
Solution
Multiplying prior and likelihood gives precision τ⁻²+T=4+T and posterior mean T Ŝ/(4+T), variance 1/(4+T). Thus T=1 gives mean 0.4, variance 0.2; T=4 gives mean 1, variance 0.125. These follow by completing the square in −[4S²+T(S−Ŝ)²]/2. The observation model is a chosen low-Sharpe iid approximation, not exact inference from arbitrary dependent returns. A prior needs calibration; selection, covariance, financing and risk constraints prevent interpreting the posterior mean alone as a full capital decision.
Basic 5 — Liquidity under a specified constraint
Question. Hold position Q, participation q and coefficient Y fixed. Daily volume halves and daily volatility doubles. Compare exit days and daily clip cost.
Solution
With constant volume, D=Q/(q ADV), hence D′=Q/(q ADV/2)=2D. The stipulated daily clip cost is c=Yσ√q, so c′=Y(2σ)√q=2c. For Q=5 ADV₀, initial days are 5/q and crisis days 10/q. The separate $50m/$20m/10% example is 25 days initially. If daily child size instead stays fixed, q doubles as ADV halves and the model cost becomes 2√2 c, while days remain unchanged at Q/child size, provided the participation is feasible. Neither convention alone calibrates the full impact of a multi-day liquidation.
Basic 6 — One reroll
Question. A fair independent die can be rerolled once, keeping the second roll. Derive the optimal risk-neutral policy and expectation, without fees.
Solution
The forced final roll has value E[D]=3.5. After seeing k on the first roll, keeping pays k and rerolling has conditional expectation 3.5, so reroll 1,2,3 and keep 4,5,6. The initial expectation is [3(3.5)+4+5+6]/6=25.5/6=**4.25**. This also equals E[max(D,3.5)]. It lies above the one-roll value and below six. A fee or nonlinear utility changes the threshold.
Advanced 7 — Maximum of two K-sided dice
Question. Derive the distribution and mean of the maximum M of two independent fair K-sided dice, and evaluate K=6.
Solution
For k=1,…,K, P(M≤k)=(k/K)², so P(M=k)=[k²−(k−1)²]/K²=(2k−1)/K²; these probabilities sum to one. Then
E[M]=(2Σk²−Σk)/K²=(K+1)(4K−1)/(6K).
Use Σk=K(K+1)/2 and Σk²=K(K+1)(2K+1)/6. At K=6 the mean is 161/36≈4.47222, between 3.5 and six and nearer 3.5. The tail-sum check gives Σ(k=1…K)[1−((k−1)/K)²], the same expression. Independence and equally likely faces are essential for the squared CDF; this is a payoff expectation, not a market quote with costs or inventory risk.
Advanced 8 — A complete capped St. Petersburg tail
Question. For a fair independent coin, first head on toss N pays min(2ᴺ,2²⁰). Find the expectation and generalize to integer m≥1.
Solution
P(N=n)=2⁻ⁿ. For n≤m each term is one, contributing m. For n>m the payout is 2ᵐ and the total probability is 2⁻ᵐ, contributing one more. Therefore E[min(2ᴺ,2ᵐ)]=**m+1**, and the requested m=20 gives $21. Dropping the infinite capped tail incorrectly gives $20. The interview uses m=30, an exact cap $1,073,741,824 and expectation $31. The uncapped expectation diverges, but a risk-neutral expectation does not determine the price a risk-averse, capital-constrained person would pay, nor guarantee enforceability or counterparty resources.
Advanced 9 — Kelly and long-run wealth
Question. Known iid even-money win probability p=0.55; derive Kelly, its growth, twice-Kelly growth and the asymptotic wealth conclusion.
Solution
For a fixed fraction f with |f|<1, g(f)=p ln(1+f)+(1−p)ln(1−f). Its derivative is p/(1+f)−(1−p)/(1−f); setting zero gives f=2p−1=0.1*. The second derivative is strictly negative, so this is the unique interior maximizer. Numerically g(0.1)=**0.00500837** per bet and g(0.2)=**−0.000137742**. With W₀>0, the iid strong law gives (ln Wₙ−ln W₀)/n→g(f). Thus the twice-Kelly wealth tends to zero almost surely in this specified model. Every finite-time wealth multiplier 1±0.2 is positive: this is not finite-time exact ruin. At Kelly the almost-sure long-run log-growth rate is positive. Finite paths may still lose substantially, and uncertain p or correlated bets require separate analysis. The interview's p=0.60 instead gives f*=0.20 and different growth numbers.
Advanced 10 — Exact marginal ratio of an on/off strategy
Question. Let R be iid with mean μ, variance σ²>0, and predictable Z∈{0,1} independent of the current R, with stationary P(Z=1)=p. Cash returns zero. Derive the marginal ratio for Y=ZR and the low-mean annual approximation at p=0.75, S=0.6.
Solution
E[Y]=pμ and E[Y²]=p(σ²+μ²). Subtracting p²μ² gives Var(Y)=pσ²+p(1−p)μ². For p>0 and per-period s=μ/σ,
sY = √p s / √[1+(1−p)s²].
For small |s| this is approximately √p s. If ordinary square-root annualization with m periods applies, s=S/√m gives annual marginal ratio √p S/√[1+(1−p)S²/m]. The low-mean approximation is 0.6√0.75≈0.519615; with m=12, the formula gives approximately 0.51768. Positive S is reduced under these assumptions; negative S becomes less negative. At p=0, Y is identically zero and its ratio is undefined, not obtained by dividing zero variance. Predictable exposure can create serial dependence, particularly with nonzero mean, so annual long-run variance need not equal m times the marginal variance. Shuffling an already scaled factor is not proof that these idealized conditions hold.
Qualifying 11 — Finite mean and the reflected ODE
Question. Prove the continuous Brownian drawdown-time formula with its assumptions and zero-drift limit, justifying finite expectation.
Solution
Let Xₜ=μt+σWₜ, X₀=0, known μ∈ℝ, σ>0, d>0; M includes zero and D=M−X. Stop at τ=inf{t:Dₜ≥d}. The reflected process satisfies dD=−μdt−σdW+dM; its regulator grows only at D=0. Seek a C² function on [0,d] satisfying
(σ²/2)f″−μf′=−1, f(d)=0, f′(0)=0.
For μ≠0 put κ=2μ/σ². The slope equation yields f′(y)=(1−eᵏʸ)/μ≤0. Integrating backwards from d gives
f(y)=σ²[eᵏᵈ−eᵏʸ]/(2μ²)−(d−y)/μ.
This is bounded and nonnegative on the compact interval. For μ=0 use f(y)=(d²−y²)/σ², with the same properties. Apply Itô's formula up to t∧τ. The regulator term vanishes because f′(0)=0; the stochastic integral has mean zero since f′ is bounded and the time is bounded. Therefore
E[f(Dₜ∧τ)]=f(y)−E[t∧τ], so E[t∧τ]≤f(y).
Monotone convergence proves Eτ≤f(y)<∞, hence τ is finite almost surely. Now f(Dₜ∧τ)→f(d)=0 and bounded convergence gives Eᵧτ=f(y). At y=0 this is
Eτ=σ²(eᵃ−1−a)/(2μ²), a=2μd/σ².
Expand eᵃ−1−a=a²/2+O(a³) to obtain the limit d²/σ² as μ→0. Equivalently, for S=μ/σ and δ=d/σ the nonzero-drift expression is (e²ˢᵟ−1−2Sδ)/(2S²). S has units time⁻¹ᐟ² and δ time¹ᐟ², making the result a time. Grid monitoring, jumps, changing parameters or compounded wealth require different arguments; a simulation is not the finiteness proof.
Qualifying 12 — Exponential peak, moving boundary and Wald
Question. Prove the exponential peak law, distinguish level-hit and terminal-profit probabilities, and justify expected terminal profit.
Solution
Start at a new maximum zero. Until X first reaches ε>0, the running maximum lies in [0,ε), so the moving stop boundary M−d lies between −d and ε−d. For ε<d, the probability q(ε) of stopping before reaching ε is bounded below by hitting fixed −d before ε and above by hitting fixed ε−d before ε. Use the increasing scale function
s(x)=∫₀ˣ exp(−κu)du, κ=2μ/σ², with s(x)=x at μ=0.
The fixed-lower-boundary probability for ℓ<0 is [s(ε)−s(0)]/[s(ε)−s(ℓ)]. At ℓ=−d and ℓ=ε−d, numerator is ε+O(ε²), and both denominators tend to (eᵏᵈ−1)/κ. Thus the sandwich gives
q(ε)=λε+o(ε), λ=κ/(eᵏᵈ−1)>0; at μ=0, λ=1/d.
This is a first-order argument; a finite moving boundary is not identical to a fixed one. Write H(x)=P(Mτ≥x). At the first hit of a new peak x, translation invariance and the strong Markov property give H(x+y)=H(x)H(y) for x,y≥0. The local expansion H(ε)=1−λε+o(ε) and H(0)=1 give H(x)=e⁻λˣ, so Mτ is exponential with mean 1/λ.
Consequently the chance of reaching profit level x≥0 before the stop is e⁻λˣ. By continuity Xτ=Mτ−d, so terminal profit ≥z has probability e⁻λ⁽ᶻ⁺ᵈ⁾ for z≥−d, and one below −d. These are different events and neither says τ is exponential.
Part 11 proved Eτ<∞. The stopped Brownian family has E[Wₜ∧τ²]=E[t∧τ]≤Eτ; Itô isometry gives L² convergence to Wτ since E[(Wτ−Wₜ∧τ)²]=E[τ−t∧τ]→0. Hence E[Wτ]=0 and E[Xτ]=μEτ. Also E[Xτ]=1/λ−d. Substitution agrees with the time formula; at μ=0 both sides are zero. This justifies Wald rather than assuming optional stopping at an arbitrary unbounded time.
Reading and notes
The part's papers
from READING.md
- Virtu Financial (2014). Form S-1 Registration Statement.
- Minsky, Y. (2011). "OCaml for the masses." ACM Queue.
- Agarwal, V., Mullally, K., Naik, N. (2015). "The economics and finance of hedge funds: a review of the academic literature." Foundations and Trends in Finance.
- Getmansky, M., Lee, P., Lo, A. W. (2015). "Hedge funds: a dynamic industry in transition." Annual Review of Financial Economics.
- Ben-David, I., Franzoni, F., Moussawi, R. (2012). "Hedge fund stock trading in the financial crisis of 2007–2009." RFS.
- CFTC (2020). Order in the matter of JPMorgan Chase & Co. (spoofing in precious metals and Treasury futures); U.S. v. Sarao (2015–2020).
- SEBI (2025). Interim order on the Jane Street group (allegations, contested).
- Jane Street debt-offering documents as reported by Bloomberg (2024: 2023 net trading revenue about $10.6bn).
- The industry library (Section 3).
- Taylor, H. M. (1975). "A stopped Brownian motion formula." Annals of Probability.
- Lehoczky, J. (1977). "Formulas for stopped diffusion processes with stopping times based on the maximum." Annals of Probability.
- Grossman, S., Zhou, Z. (1993). "Optimal investment strategies for controlling drawdowns." Mathematical Finance.
- Magdon-Ismail, M., Atiya, A., Pratap, A., Abu-Mostafa, Y. (2004). "On the maximum drawdown of a Brownian motion." J. Applied Probability.
- Budish, E., Cramton, P., Shim, J. (2015). "The high-frequency trading arms race." QJE.
- SEC (2013). Order in the matter of Knight Capital Americas LLC; SEC Rule 15c3-5 (2010); SEC Rule 613 (CAT).
Data, scope and reproducibilityEvidence and computation boundaries
Five unchanged ordinary calculations (virtu, theory, power, platform, stops) were each restored successfully once under an audited public-input barrier. The two French monthly source keys were verified without refresh; the factor calculation subsequently masks to December 2020. The house calculation is excluded: it would read sealed strategy outcomes and regress them against research results. Presentation loading rejects house, envelope, track and holdout prefixes before cache access, permits only the five ordinary names, and verifies their restored cache hashes. Missing or changed caches fail closed. Rendering cannot restore them automatically.
No financial algorithm, protected registry, sealed strategy payload or stored holdout result is changed or consulted. This review adds no market trials. Unchanged registration metadata contains 23,552 trials through Part 34, and 23,562 globally. Trial count is not an effective independent test count. Historical research comparisons are dependent and selected; their existence is not deployment approval.
Public source closures, actual original invocations and hash checks are recorded in the Part 34 QA evidence. Presentation approvals require fresh bilingual construction, actual image inspection, final motion review and audio checks against the final included source. A diagnostic pass or CPU speech sample does not certify pronunciation or full continuous production listening.
Data, scope and reproducibilityCalculations, definitions and limits
-
Disclosed loss frequency: a Gaussian daily model maps one loss in 1,238 to daily mean/standard deviation 3.1531. Multiplication by √252 gives 50.0538 only under the time-independence and stable-variance assumptions. The original one-sided 95% binomial upper loss-probability bound is 0.0038261, implying 2.6670 daily / 42.3380 annualized under the same models. Specified finite-variance t(4) and t(3) location-scale alternatives give 5.3676 and 6.3420 daily. These three families do not establish a universal bound. Stipulate +1 with probability 1237/1238 and −2000 otherwise: the same loss probability has negative mean. A count alone identifies neither return magnitudes, ratio nor skill.
-
Independent trade aggregation: for equal-risk independent trades, s=r√N. The cached 20,000-day Gaussian illustrations use per-trade ratio 0.01; their empirical loss frequencies have sampling error. An even-money coin with that ratio has win probability
(1+0.01/sqrt(1+0.01²))/2 ≈ 50.5%. Positive net covariance increases variance at fixed marginal risk; negative covariance can reduce it. Counting trades does not measure independence or capacity. -
Fees: the stipulated positive-profit single-period rule is
(g−m)(1−p). At g=66%, m=5%, p=44%, it gives 34.16%. It does not reconcile reported historical 66%/39% averages: annual data, fee history, bases, high-water marks and timing are required. With constant affine positive-profit fees, averaging commutes with the formula. Historical quotations remain attributed rather than newly validated. -
Platform simulation: 200 slots, 30 years, eight seeds, monthly arithmetic profit, chosen correlation 0.1, either latent skill N(0.5,0.5²) or constant 0.5. Stops act after the month's return, hiring is immediate and free, and new skill draws are independent. Firing resets running state and the calendar-year payout accumulator. Positive-year bonuses have no high-water mark or clawback; exposure restores at year end. The heterogeneous 5%-volatility investor ratios are 1.8951 with stops / 1.1872 without; identical skill gives 1.3011 / 1.2334, not a small cost from stopping. Selection, exposure, replacement and compensation all change. Displayed seed uncertainty is population-normalized across-seed SD/√8, not paired-difference uncertainty or a market confidence interval. Ratios of aggregate rows need not equal averages of run-level ratios.
-
Review and ramp: information availability must precede positions and executable prices. Reconstruct every cash, funding, borrow, fee and impact leg. The chosen prior N(0,0.5²) and Gaussian likelihood variance 1/T give shrink weights 0.2, 0.5 and 0.7143 after 1, 4 and 10 years. The likelihood is an iid low-Sharpe approximation. A posterior mean is not a complete allocation policy; covariance, risk, financing, selection, objectives and constraints remain separate.
-
Liquidity: a $50m position, $20m daily volume and 10% participation take 25 trading days. The stipulated daily clip model
c=Y σ sqrt(q), with Y=1 and daily σ=2%, gives 63.2456 bp. Interpreting it across many days needs impact-reset assumptions. It is not calibrated total block impact. Fixed participation and fixed child size imply different crisis comparisons. -
Technology and surveillance: the chosen 1,185 km route implies roughly 3.95 ms in vacuum / 5.81 ms in fibre before route length, equipment and queuing. Speed value requires an opportunity and competition model. High cancellation alone does not establish spoofing: order placement, size, cancellation, opposite-side fills, communications and context require investigation. SEBI's July 2025 interim allegations and contemporary reports are a dated contested record, without a claimed current outcome. The Knight control discussion is a design rationale, not a proven counterfactual prevention guarantee.
-
Factor stops: six factors × six rules reuse July 1966–December 2020 research observations. Thirty-six prior finite observations scale volatility; removing missing values can compress time, and leverage is uncapped.
apply_stopuses arithmetic cumulative return drawdown, includes the full breach return, skips exactly the next wait observations with zero cash return and resets the peak. It differs from compounded-wealth drawdown. Costs, funding and execution are absent. At 15%/12 observations out, HML changes 0.1997→0.2752 and UMD 0.6034→0.5576. Two hundred shuffles per rule give descriptive reference means and SDs. Stars beyond two shuffle SDs are not calibrated or selection-adjusted p-values, causal evidence or a universal stop rule. -
Brownian stops: Xₜ=μt+σWₜ is arithmetic cumulative profit, X₀=0, μ known real, σ>0 and d>0, with continuous monitoring and Mₜ=max₀≤s≤t Xₛ. S=μ/σ has units time⁻¹ᐟ² and δ=d/σ time¹ᐟ². The dimensionless shape a=2Sδ does not determine the absolute time scale alone. For μ≠0,
Eτ = σ²(eᵃ−1−a)/(2μ²) = (e²ˢᵟ−1−2Sδ)/(2S²),Mτ ~ Exp(λ),λ=(2μ/σ²)/(eᵃ−1),E[Xτ]=E[Mτ]−d=μEτ.At zero drift, Eτ=d²/σ² and λ=1/d. Strong negative Sδ gives leading time δ/|S|; large positive Sδ gives e²ˢᵟ/(2S²). Sign alone does not justify either approximation. At S=1, δ=0.5 the mean is 0.35914 years / 4.3097 months; at δ=1 it is 2.19453 years. The exponential law concerns the peak, not the stopping time.
-
Monitoring and simulation: all 6,000 cached histogram stop times appear over 0–20 years without tail clipping; maximum 19.9464, mean 2.48273 and median 1.75942. Daily and eighth-day runs use independent seeds; square-root-step extrapolation is heuristic without error bars or a uniform accuracy bound. All six selected fine-grid rows stop by their horizon, but the general helper excludes nonstoppers from its reported means. Other parameters can have severe censoring. Deadline stop probabilities keep all original paths in their denominator. Labeling these as error and power requires a specified null, alternative, rejection rule and deadline; a deeper barrier reduces both rejection frequencies and is not automatically a sharper equal-significance test.
Chapter notesChapter question checks / 章节暂停题补充
The speed question needs captured notional and a first-arrival contest; 3 ms alone is not a dollar value. Cancellation at 98% is an investigation prompt, not a legal finding. For 1,000 firms with independent annual survival 1/2, the expected ten-year survivors are 1000/2¹⁰=0.9765625. Cross-firm independence is unnecessary for that expectation, but necessary for a binomial count law; expectation does not guarantee one survivor or establish skill. Three independent fair dice have expectation 10.5 and SD √(105/12)≈2.958. Revealing one specified die is six gives conditional value 13, hence selling at 11 loses 2 in conditional expectation; a buy alone requires an order-flow information model.
For the research pause, S=1.5, annual σ=0.04, d=0.06 give δ=1.5, μ=0.06 and a=4.5. Thus Eτ=(e⁴⋅⁵−5.5)/4.5=18.7816 years, and E[Xτ]=0.06Eτ=1.12690, or 112.690% of initial capital in arithmetic profit before costs. This unbounded-time arithmetic model has no bankruptcy, financing or compounding constraint; it is not an attainable fixed-horizon investor return.
速度题需要被抢先捕获的名义金额及竞争模型,3 毫秒本身不是美元价值。98% 撤单率不能单独构成违法认定。1,000 家企业每年独立以 1/2 概率生存,十年幸存者的期望为 0.9765625;求期望无需企业间独立,但二项计数分布需要,且期望不保证恰有一家,也不证明技能。三个独立公平骰子之和均值 10.5、标准差约 2.958;透露指定一颗为 6 后条件均值为 13,在 11 卖出条件期望亏 2;仅观察买单则需订单信息模型。
研究暂停题给 S=1.5、年波动 0.04、回撤 0.06,得 δ=1.5、μ=0.06、a=4.5,故平均停止时间 18.7816 年,平均算术利润 1.12690 倍初始资本。这是不限制期限、无破产和融资约束的算术模型,不是可实现的固定期限复利投资回报。
Review log of the earlier QA passes on this part: docs/qa/quant/part34.md.
中文讲义
本讲的中文说明、交易台问题与习题解答(与英文版对应)。
Problems, with worked solutions习题与完整解答 — 中文
基础 1 — 亏损频率反演
题目。 1,250 天有 5 天亏损。在日利润为正态分布的模型下,求隐含日均值与标准差之比及独立同分布条件下的年化值;说明计数无法识别什么。
解答
样本频率 p̂=5/1250=0.004。若日利润为 N(μ,σ²),σ>0,则 p=Φ(−μ/σ),代入频率得到 s=−Φ⁻¹(0.004)=2.65207。若每日独立、方差稳定且一年有 252 个交易日,则 S=√252 s=42.1003。这是附带模型条件的代入估计,此处没有给出估计区间。计数不含损益幅度:以 1237/1238 的概率赚 1、其余情况亏 2000 的指定反例,亏损虽少,均值仍为负。因此仅凭计数不能识别真实比率、投资者净回报或技能。亏损指标若有依赖,普通独立伯努利二项解释也不成立。
基础 2 — 两种收费方式
题目。 指定毛收益 15%,比较先收资本的 2% 再收剩余正利润的 20%,与先扣 6% 成本再收 20%;假设收费利润为正。
解答
以初始资本 100 计,第一种管理费为 2,业绩费为 0.2(15−2)=2.6,投资者留下 10.4%。第二种成本为 6,业绩费为 0.2(15−6)=1.8,留下 7.2%,相差 3.2 个百分点。这是单期指定算术,未计高水位、时点、融资及不同毛回报。章节暂停题另用 10% 毛收益,答案为 6.4% 和 3.2%;两题输入不同,不应混用。
基础 3 — 抵销风险与资本分母
题目。 两个团队各有资本 100,利润分别为 +10、−10;每个正利润支付 20% 奖金。求奖金总额、投资者利润、总资本回报及奖金占毛利润的比率。
解答
毛利润为 10−10=0。奖金 B=0.2[max(10,0)+max(−10,0)]=2 个货币单位。投资者净利润为 −2;总资本为 200,所以回报为 −1%。奖金除以毛利润是 2/0,没有定义,不是无穷百分比,也不是总资本回报 −2%。若合计毛利润为正,单独支付赢家的奖金占比可能高于名义费率,但必须先检查分母非零。本题单期奖金没有追回条款。
基础 4 — 指定正态后验
题目。 先验 S∼N(0,τ²),τ=0.5;似然 Ŝₜ|S∼N(S,1/T)。当观测比率为 2,分别求 T=1、4 的后验。
解答
把指数项 −[4S²+T(S−Ŝ)²]/2 配方,得到后验精度 4+T,均值 T Ŝ/(4+T),方差 1/(4+T)。因此一年后 均值 0.4、方差 0.2;四年后 均值 1、方差 0.125。似然是指定的低夏普、独立同分布近似,不是任意相关收益下的精确推断。先验校准、选择偏差、协方差、融资及风险约束仍需分析;后验均值本身不是完整资本分配规则。
基础 5 — 指定约束下的流动性
题目。 固定持仓 Q、成交参与率 q 和系数 Y。日成交量减半、日波动翻倍,退出天数和指定日子单成本如何变化?
解答
在每日成交量恒定的假设下 D=Q/(q ADV),故 D′=Q/(q ADV/2)=2D。日子单模型 c=Yσ√q 给出 c′=Y(2σ)√q=2c。若 Q=5 ADV₀,最初为 5/q 天,危机时为 10/q 天。另一个 5,000 万持仓、2,000 万日成交量、10% 参与率的例子最初需 25 天。若改为固定每日子单数量,成交量减半使参与率翻倍,成本变为 2√2 c,而退出天数仍为 Q/子单数量;还须检查参与率可行性。两种约束不同,均不能单独校准多日整笔清算的全部冲击。
基础 6 — 一次重掷
题目。 公平骰子允许重掷一次,第二次必须接受;无费用且风险中性。求最优策略与期望。
解答
强制最后一次的期望为 3.5。看到第一次点数 k 后,保留得到 k,独立重掷期望为 3.5。因此 1、2、3 重掷,4、5、6 保留。总期望为 [3×3.5+4+5+6]/6=**4.25**,也等于 E[max(D,3.5)]。答案高于一次掷骰的 3.5,低于 6。加入费用或非线性效用会改变门槛。
进阶 7 — 两个 K 面骰子的最大值
题目。 两个独立公平 K 面骰子的最大值为 M,求分布与均值,并计算 K=6。
解答
对 k=1,…,K,P(M≤k)=(k/K)²,差分得 P(M=k)=(2k−1)/K²;概率和为 1。利用整数求和公式,
E[M]=(2Σk²−Σk)/K²=(K+1)(4K−1)/(6K)。
其中 Σk=K(K+1)/2,Σk²=K(K+1)(2K+1)/6。K=6 时为 161/36≈4.47222,在 3.5 与 6 之间,而且更接近 3.5。也可用尾和 Σ(k=1…K)[1−((k−1)/K)²] 检查。平方分布函数依赖独立性与公平性。这只是支付期望,不含市场报价的费用或库存风险。
进阶 8 — 封顶圣彼得堡博弈的完整尾项
题目。 独立公平硬币首次正面在第 N 次,支付 min(2ᴺ,2²⁰)。求期望,并推广到整数 m≥1 的上限 2ᵐ。
解答
P(N=n)=2⁻ⁿ。当 n≤m,每项贡献 1,共 m。n>m 时支付固定 2ᵐ,而这一尾部总概率为 2⁻ᵐ,故另贡献 1。因此 E[min(2ᴺ,2ᵐ)]=**m+1**;题目 m=20 的答案为 21 美元,漏掉尾项会误得 20。面试例子 m=30,精确上限为 1,073,741,824 美元,期望为 31 美元。无上限期望发散,但风险中性期望不是风险厌恶、资金受限者愿付的票价,也不保证对手方有能力或有义务支付。
进阶 9 — 凯利与长期财富
题目。 已知独立同分布、等额赔率,胜率 p=0.55;求凯利比例、对数增长率、两倍凯利增长率及财富的渐近结论。
解答
固定财富比例 f,|f|<1 时,g(f)=p ln(1+f)+(1−p)ln(1−f)。一阶导数为 p/(1+f)−(1−p)/(1−f),令其为零得 f=2p−1=0.1*。二阶导数严格为负,所以是唯一内部最大值。数值为 g(0.1)=**0.00500837**,g(0.2)=**−0.000137742**,单位为每次下注。W₀>0 时,强大数定律给出 (ln Wₙ−ln W₀)/n→g(f);因此指定模型中的两倍凯利财富几乎必然趋于零。每个有限期乘数 1±0.2 都为正,故这不是有限时间恰好破产。凯利比例的长期对数增长率为正,但有限样本仍可能大幅亏损。胜率未知或下注相关需要额外分析。面试另用 p=0.60,凯利为 0.20,增长数字不同。
进阶 10 — 开关仓位的精确边际比率
题目。 R 独立同分布,均值 μ、方差 σ²>0;可预测指标 Z∈{0,1} 与当期 R 独立,平稳持仓概率为 p。现金收益为零。推导 Y=ZR 的边际比率,并在 p=0.75、年化 S=0.6 时给低均值近似。
解答
E[Y]=pμ,E[Y²]=p(σ²+μ²),所以 Var(Y)=pσ²+p(1−p)μ²。令单期 s=μ/σ,p>0 时
sY=√p s/√[1+(1−p)s²]。
单期 |s| 很小时近似为 √p s。若另满足通常的平方根年化条件,一年 m 期、s=S/√m,则年化边际比率为 √p S/√[1+(1−p)S²/m]。低均值近似为 0.6√0.75≈0.519615;m=12 时精确边际公式约为 0.51768。在这些条件下,正比率降低,负比率变得较不负。p=0 时 Y 恒为零,其比率没有定义。可预测仓位可能产生序列依赖,特别是均值非零时,因此长期年化方差未必等于 m 倍单期方差。打乱已缩放因子不能证明所有理想化条件成立。
资格题 11 — 有限均值与反射微分方程
题目。 在明确假设下证明连续布朗回撤停止时间公式与零漂移极限,并先证明均值有限。
解答
Xₜ=μt+σWₜ,X₀=0,已知常数 μ∈ℝ、σ>0、d>0;峰值 M 包括初始零,D=M−X,τ=inf{t:Dₜ≥d}。反射过程满足 dD=−μdt−σdW+dM,调节项只在 D=0 增长。在 [0,d] 上寻找 C² 函数,满足
(σ²/2)f″−μf′=−1,f(d)=0,f′(0)=0。
μ≠0 时记 κ=2μ/σ²,一阶方程得 f′(y)=(1−eᵏʸ)/μ≤0;从 d 反向积分,
f(y)=σ²[eᵏᵈ−eᵏʸ]/(2μ²)−(d−y)/μ。
该函数在紧区间上有界且非负。μ=0 时取 f(y)=(d²−y²)/σ²,性质相同。对 t∧τ 应用伊藤公式;f′(0)=0 消去反射项,因 f′ 有界、停止时间有界,随机积分均值为零。因此
E[f(Dₜ∧τ)]=f(y)−E[t∧τ],故 E[t∧τ]≤f(y)。
单调收敛先给出 Eτ≤f(y)<∞,所以 τ 几乎必然有限。随后 f(Dₜ∧τ)→f(d)=0,由有界收敛得到 Eᵧτ=f(y)。令 y=0,
Eτ=σ²(eᵃ−1−a)/(2μ²),a=2μd/σ²。
用 eᵃ−1−a=a²/2+O(a³) 展开,μ→0 时极限为 d²/σ²。以 S=μ/σ、δ=d/σ 表示,则非零漂移公式为 (e²ˢᵟ−1−2Sδ)/(2S²)。S 单位为时间⁻¹ᐟ²,δ 为时间¹ᐟ²,结果具有时间单位。离散监控、跳跃、变参数或复利财富需要不同论证;模拟不能替代有限性证明。
资格题 12 — 指数峰值、移动边界与瓦尔德恒等式
题目。 证明停止时峰值的指数分布,区分触及利润水平与终止利润事件,并证明终止利润均值。
解答
从新峰值零开始。在首次触及 ε>0 前,峰值位于 [0,ε),所以移动停止边界 M−d 位于 −d 与 ε−d 之间。ε<d 时,停止先于触及 ε 的概率 q(ε),下界为先触及固定 −d 的概率,上界为先触及固定 ε−d 的概率。取递增尺度函数
s(x)=∫₀ˣ exp(−κu)du,κ=2μ/σ²;μ=0 时 s(x)=x。
固定下界 ℓ<0 的先触及概率为 [s(ε)−s(0)]/[s(ε)−s(ℓ)]。对于 ℓ=−d 与 ℓ=ε−d,分子均为 ε+O(ε²),分母都趋于 (eᵏᵈ−1)/κ。夹逼得到
q(ε)=λε+o(ε),λ=κ/(eᵏᵈ−1)>0;μ=0 时 λ=1/d。
这是一阶极限论证,不能把有限移动边界直接等同固定边界。记 H(x)=P(Mτ≥x)。到达新峰值 x 时,用平移不变性与强马尔可夫性质得 H(x+y)=H(x)H(y)。结合 H(0)=1 与局部式 H(ε)=1−λε+o(ε),得到 H(x)=e⁻λˣ,所以 Mτ 是均值 1/λ 的指数分布。
因此,停止前曾达到利润水平 x≥0 的概率为 e⁻λˣ。由连续性 Xτ=Mτ−d,所以 终止利润至少为 z 的概率在 z≥−d 时为 e⁻λ⁽ᶻ⁺ᵈ⁾,低于 −d 时为 1。两者事件不同,且都不说明 τ 服从指数分布。
上一题已证 Eτ<∞。停止布朗族满足 E[Wₜ∧τ²]=E[t∧τ]≤Eτ;伊藤等距又给 E[(Wτ−Wₜ∧τ)²]=E[τ−t∧τ]→0,所以 L² 收敛并有 E[Wτ]=0。因此 E[Xτ]=μEτ。另一方面 E[Xτ]=1/λ−d,代入与停止时间公式一致;μ=0 时均为零。这是瓦尔德恒等式的条件论证,不能对任意无界停止时间直接假定可选停止成立。
Build the film
python -m videos.quant.quant34.compute # the part's numbers, into .cache/quant34
python tools/make.py quant34 # the narrated film, English and Chinese
EXPLAINER_TTS=silent python tools/qa_scene.py quant34 Hook # one chapter, silent, with a contact sheet
Scenes: videos/quant/quant34. Setup: see the course page. Source of these notes: the part's README and the scenes' narration.