本书暂未推出简体中文版。现有版本:English, Français。
Interviews I: Maths, Probability and Speed · 职业发展
22Stochastic Calculus
Brownian motion as a tool: Ito’s lemma, martingales and optional stopping, reflection and hitting times, integrals of the path, Girsanov’s change of measure and Feynman–Kac. Most results here can be reached in two ways, and the second is the check.
Question 22.1 ★ QR, QT, QD, Risk • any • junior
is a standard Brownian motion. Give . Find the variance of , the correlation of and , and the probability that and are both positive.
Answer
Answer to Question 22.1.
. The variance is 5, the correlation , and the probability .
For , write , whose second term is independent of . That leaves .
Then . The correlation of and is .
For two jointly normal variables with mean zero and correlation , the chance that both are positive is . Here , so , and the probability is . A simulation gives .
Classic wrong answer. Treating and as independent, which gives a variance of 3 and a probability of . They overlap on .
Follow-up. What is the variance of ? , a useful identity.
Why it matters. The covariance formula is the source of everything else, and the question checks that it can be used and not only recited.
Question 22.2 ★ QR, QT, QD, Risk • any • junior
Which of these are martingales: , , , , , , ? Give one test that decides all of them.
Answer
Answer to Question 22.2.
Martingales: , , and . Not martingales: , and . The test is whether .
By Ito’s lemma, . A martingale needs the term to vanish.
gives . gives , so it has a drift, and subtracting removes it. gives , which is not zero. gives . gives , and gives . Gaussian quadrature of the conditional expectations confirms the seven verdicts.
A rule of thumb for : its mean is 0, which may suggest a martingale. Constant mean is necessary, and not sufficient. Its conditional mean given time is , not .
Classic wrong answer. Saying that is a martingale because its mean is always zero. Given , the mean of is .
Follow-up. Find the next polynomial in the family. . These are Hermite polynomials in , scaled by powers of .
Why it matters. The one-line test replaces seven separate calculations. Knowing it marks a working knowledge of Ito’s lemma.
Question 22.3 ★ QR, QT, QD, Risk • bank, hedge fund • junior
A stock follows with and a year. Use Ito’s lemma on . Starting from 1, what are the mean and median after one year? What is the probability of ending above the mean?
Answer
Answer to Question 22.3.
. The mean is , the median , and the probability .
Ito’s lemma gives , and . So the log has drift .
is normal with mean and standard deviation . The median is at the mean of the log, so . For the mean of , , as the equation for also shows.
The chance of ending above the mean needs , that is, , with probability . A simulation of the discretised equation gives these numbers.
With no volatility, mean and median agree. The gap grows with .
Classic wrong answer. Dropping the , which is the second-order Ito term, and giving a median of .
Follow-up. At what volatility is the median growth zero, with ? , so . The average path still grows at 10% while the typical path goes nowhere.
Why it matters. This is the first thing done with Ito’s lemma in finance, and the difference between mean and median is its most useful result.
Question 22.4 ★ QR, QT, QD, Risk • any • junior
Compute and from the normal distribution. What is ? Find the correlation of with .
Answer
Answer to Question 22.4.
, , , and the correlation is .
Since , the fourth moment is . Completing the square in the normal integral gives the exponential formula.
For the squares, write , where is independent of with variance 3. Then
So the covariance is . The variances are and , which gives . This is the square of the correlation of and , as is always true of two jointly normal variables with mean zero. A simulation agrees.
Classic wrong answer. Giving , which ignores the kurtosis. Or giving the correlation as , the value for and themselves.
Follow-up. What is ? . The even normal moments are , each the previous times the next odd number.
Why it matters. These moments come up in every variance calculation. Quick recall saves effort, and the correlation of squares is a small test of care.
Question 22.5 ★ QR, QT, QD, Risk • any • junior
Show that is a Brownian motion for any . Use this to relate to a probability at time 1, and give its value. A return has a daily volatility of 1%. What is the annual volatility, with 252 days and independent returns?
Answer
Answer to Question 22.5.
, and the annual volatility is .
is continuous, starts at 0, and has independent normal increments with mean zero. Its covariance is . So it is a Brownian motion.
With : for a Brownian motion , so , which is .
Independent returns add their variances, so standard deviations scale with the square root of time: . If returns are not independent, this figure is wrong, which is why some measure of autocorrelation has to accompany it.
Classic wrong answer. Multiplying by 252, which gives 252%. Variance scales with time, and volatility with its root.
Follow-up. What is the annual volatility for a monthly volatility of 5%? .
Why it matters. Scaling is the Brownian fact used most on any desk, and proving it with the covariance formula takes one line.
Question 22.6 ★ QR, QT, QD, Risk • any • junior
Split into 1000 equal steps. Find the mean and the standard deviation for the sum of squared increments of , and what is the mean of the sum of the absolute increments? What happens to each as the steps shrink?
Answer
Answer to Question 22.6.
The sum of squares has mean 1 and standard deviation . The sum of absolute values has a mean of . As the steps shrink, the first converges to 1, and the second diverges.
Each increment is normal with variance . Its square has mean and variance . Summing over independent steps gives mean 1 and variance , so the sum converges to 1 and its standard deviation at is .
The absolute value has mean , and so the sum has mean , which is here. It grows like . So a Brownian path has infinite length but finite quadratic variation, and this is the reason that the extra term in Ito’s lemma exists: behaves like .
A simulation with paths confirms all three numbers.
Classic wrong answer. Thinking that the sum of squares is random in the limit, or that it tends to 0 as for a smooth path. For a smooth path the sum of squares goes to 0, while here it stays at , with no randomness left.
Follow-up. With 252 daily returns, how noisy is a realised variance? The relative standard deviation is for constant volatility and normal returns, and more with fat tails.
Why it matters. This is the heart of the subject. It explains with a calculation, and it is the theory behind realised variance.
Question 22.7 ★★ QR, QT, QD • bank, hedge fund • junior, experienced
Find using Ito’s lemma. Give its mean and variance. You approximate it by a sum over small steps, evaluating at the left end of each step, then at the right end, then at the midpoint. What does each sum converge to?
Answer
Answer to Question 22.7.
, with mean 0 and variance . The left sum converges to this, the right sum to this plus , and the midpoint to .
Ito’s lemma on gives , which rearranges to the result. The mean is 0, since . The variance is , or by the Ito isometry, .
The left-end sum is the definition, and its terms have mean zero, as the integrand is known before the increment.
The right sum minus the left sum is , which converges to , so the right sum has mean . In the limit, it is .
The average of the two sums is the midpoint form, and it telescopes exactly: . This is the Stratonovich integral, which keeps the rules of ordinary calculus, and evaluating at the true midpoint of each step has the same limit. A run with 1000 steps shows the left, right and averaged sums.
Classic wrong answer. Writing from ordinary calculus. Its mean is , which is impossible for a sum of terms with mean zero.
Follow-up. Why does finance use the left endpoint? Because a position must be chosen before the price move it earns. A right-end rule would trade on the future, and it would earn exactly the extra .
Why it matters. This is the shortest illustration of why stochastic integrals differ from ordinary ones, and it shows that the choice of endpoint has real content.
Question 22.8 ★★ QR, QT, QD • bank, hedge fund • junior, experienced
Let . Find its distribution, using an integration by parts, and check the variance by a double integral. What is its correlation with ? Evaluate the variance at .
Answer
Answer to Question 22.8.
is normal with mean 0 and variance , which is 9 at . Its correlation with is .
Integrating by parts, , so
This is an integral of a deterministic function against , and it is therefore normal with mean 0. The variance by the isometry is .
As a check, the double integral gives , and at a quadrature also gives 9.
The covariance with is . So the correlation is
whatever is. A simulation with 2000 steps agrees.
Classic wrong answer. Giving the variance as or . A units check helps: has the units of times time, so its variance scales as .
Follow-up. How does the volatility of a price averaged over a period compare with that of the price itself? The average has variance , so its volatility is the price’s divided by . A 20% volatility becomes , which is why Asian options are cheaper.
Why it matters. Integrated Brownian motion is one of the standard calculations, and the integration by parts is more insightful than the double integral.
Question 22.9 ★★ QR, QT, QD, Risk • bank, hedge fund • junior, experienced
State the reflection principle, and derive the distribution of . What are and ? How does your answer change if the barrier is only checked at daily closes, with 252 closes in the year?
Answer
Answer to Question 22.9.
, so has the law of . , and . Checking only at daily closes moves the barrier out by about .
Once first reaches , the rest of the path is symmetric about , so the end is as likely to lie above as below it. So . Adding gives the factor 2.
So , which is the tail of . At it is . The mean is .
A path can cross between two closes and return. So the discrete maximum is lower, and the hit probability is lower. The usual correction shifts the barrier by standard deviations of one step, here . It gives . A simulation of daily closes with paths gives this number, not .
Classic wrong answer. Forgetting the factor 2, or using the continuous formula for a barrier checked once a day. On a one-year barrier, that is about two points of probability.
Follow-up. Why does the factor 2 not hold with drift? The reflected path is no longer equally likely. With drift, the formula gains a second term with a factor of .
Why it matters. This is the standard result for barrier options, and the correction for discrete monitoring is where the theory meets a real term sheet.
Question 22.10 ★★ QR, QT, QD, Risk • any • junior, experienced
is the first time that reaches . Show that is finite with probability one, and find its median for . What is ? Why is its mean infinite?
Answer
Answer to Question 22.10.
From the distribution , the median for is , and . The mean is infinite because the tail is of order .
is the event , so the reflection principle gives the formula. As it tends to , so the time is finite with probability one.
For the median, gives , so .
Also, .
For large , . The mean is the integral of this tail, which diverges. Equivalently, has the law of . Samples of this form confirm both the median and the tail, and truncated means keep growing as the cutoff rises. A direct run of the path gives a hit by about half the time.
Classic wrong answer. Assuming that a certain event must have a finite mean waiting time. Here half the paths arrive by , while 8% are still out at 100.
Follow-up. How does the median change for ? By scaling, it is multiplied by , so the median becomes about 220.
Why it matters. Certain arrival with infinite mean is the key surprise of the subject, and it reappears wherever someone assumes that a mean-zero bet will come back within a known time.
Question 22.11 ★★ QR, QT, QD, Risk • any • junior
starts at 0 and stops on first reaching or . Using two martingales, find the probability that it ends at 2 and the expected stopping time. What is the general formula for and ? What happens as ?
Answer
Answer to Question 22.11.
The probability of ending at 2 is , and the expected time is 2. In general, these are and .
Let be the stopping time. It has finite mean, and the stopped is bounded, so optional stopping applies.
With : . If is the probability of ending at , then , so . With , , this is .
With : . So
A symmetric lattice walk has these same values exactly, and a run with paths on a lattice of gives and .
As , and : reaching is certain and takes infinite expected time, which agrees with the one-sided hitting time.
Classic wrong answer. Using optional stopping with no check. On the one-sided problem it would give , while . It is the bound on the stopped process that makes it valid here.
Follow-up. What are the answers for a symmetric interval ? and . So the typical time to move a distance is , the same scale as the variance.
Why it matters. Two martingales and one line each. It is the canonical use of optional stopping, and interviewers listen for the check on when it applies.
Question 22.12 ★★ QR, QT, QD, Risk • hedge fund, bank • junior, experienced
with and . Find an exponential martingale, and use it to derive the probability that ever falls to . A strategy has an annual mean of 10% and a volatility of 20%, with no compounding. What is the probability that it ever loses 20% from the start?
Answer
Answer to Question 22.12.
is a martingale, which gives . Here .
Try . Its drift has the factor , which vanishes at .
Stop at , the first time at , or at some high level . The martingale is bounded on the interval, so optional stopping gives
where is the chance of hitting first. As , the second term vanishes, so .
With , and : , so the answer is . A walk with matching mean and variance has the exact ruin formula, and it gives for small steps. A simulation in steps of years agrees, after the correction for checking at discrete times.
Note the limits: gives 1, as the driftless path reaches every level, and a large gives a small number. The key ratio is , so doubling the volatility divides the exponent by four.
Classic wrong answer. Using a normal tail at one horizon, such as a one-year chance of . That misses all the paths that dip and recover, and it is much smaller than the true figure.
Follow-up. What is the chance of ever losing 50%, with the same numbers? . The probability falls exponentially in the size of the loss.
Why it matters. This is a practical risk-of-ruin formula. It is derived in three lines with a martingale, and it is often needed in a discussion of sizing.
Question 22.13 ★★ QR, QT, QD, Risk • bank, hedge fund • junior, experienced
For , apply Ito’s lemma to . Find , and find the that makes a martingale, given and . Starting from 1, what is the probability of reaching 2 before ?
Answer
Answer to Question 22.13.
, the martingale power is , and the probability is .
Ito’s lemma gives
So , and gives the second moment, per unit of initial square at .
The drift is zero when , or at , which is trivial. So .
Stopping at or , where it is bounded: . So .
A second route works with , with drift and volatility , exiting at . The exponential martingale with gives the same equation, which is no surprise, since . A simulation with fine steps returns .
Classic wrong answer. Saying that the probability is , since both levels are a factor of 2 away, or that it follows from alone. The log drift of against a volatility of is what makes this so lopsided.
Follow-up. What is when ? , and the martingale is then the log itself, since the log has no drift. The exit probability then is exactly .
Why it matters. Finding the power that removes the drift is the fastest way to solve exit problems for geometric processes.
Question 22.14 ★★ QR, QT, QD, Risk • bank, hedge fund • junior, experienced
Given , what are the conditional mean and variance of , ? Given , what is the probability that reaches level 1 during the interval? Derive the formula by reflection, for any .
Answer
Answer to Question 22.14.
The mean is , and the variance . Given , the probability of reaching 1 is . In general, for , it is .
is jointly normal, with covariance and . The regression gives the conditional mean and the variance . So the bridge is pinned at both ends, with the largest uncertainty, , at the midpoint.
By reflection at , a path that ends at and has touched corresponds to a path that ends at . So the density of paths with both properties is , and the conditional probability is the ratio of densities:
With and , this is . Note the limit , where the formula gives 1, as it must. A simulated bridge with 2000 steps gives after the correction for discrete checking.
Classic wrong answer. Using from the unconditional maximum. That averages over all endpoints. Pinning the end at 0 reduces the chance by more than half.
Follow-up. A price moves from 100 to 101 in a day with a daily volatility of 1. What is the chance that it touched 102 between the two closes? Here and , giving . This is how barrier monitoring is corrected between observation dates.
Why it matters. This formula is in every barrier pricer and in path-dependent simulation. The derivation by reflection is short enough for an interview.
Question 22.15 ★★ QR, QT, QD, Risk • any • junior, experienced
Solve the Ornstein–Uhlenbeck equation . Give the mean and variance at , the stationary variance and the half-life of a shock. Evaluate these at , , , .
Answer
Answer to Question 22.15.
. The mean is , the variance , the stationary variance , and the half-life .
Multiply by the integrating factor: . Integrating gives the solution.
The mean is , here . By the isometry, the variance is
which is at these values. As grows, this tends to the stationary value . The half-life solves , so .
Limits: for small , the variance is close to , as for plain Brownian motion. As , the same is true for all . Both an exact AR(1) sampling and an Euler run give and .
Classic wrong answer. Forgetting that the mean-reversion also reduces the noise’s contribution, and giving the variance as . It is bounded, which is the point of the model.
Follow-up. A daily series has AR(1) coefficient . What are and the half-life? per day, and the half-life is days. This is the standard calculation for a mean-reverting spread.
Why it matters. This is the second-most used stochastic process in finance, the base of many pairs and rates models.
Question 22.16 ★★ QR, QT, QD, Risk • bank, hedge fund • junior
and have correlation . Write one in terms of the other and an independent motion. Use Ito’s lemma to find . At and , find and .
Answer
Answer to Question 22.16.
, , and the two values are 3 and .
The construction has unit variance, and the correlation with is .
Ito’s lemma gives , since . The stochastic integrals have mean zero, so the mean of the product is .
Then .
For the last one, for jointly normal variables with mean zero, by Isserlis’ theorem. That gives . Direct substitution checks this: writing with independent gives . A simulation confirms this. At , the result is 1, the product of the variances, and at it is 3, the fourth moment.
Classic wrong answer. Multiplying the variances to get 1, which ignores the correlation of squares. Or writing , which does not have unit variance.
Follow-up. What is the variance of the sum at ? at . That is the basic diversification formula.
Why it matters. Every multi-asset simulation is built this way. The Ito cross-term is where people go wrong.
Question 22.17 ★★ QR, QT, QD • bank, hedge fund • junior, experienced
Show directly, by completing the square, that . Use the identity to estimate by simulation, with a tilted drift. By how much does this reduce the standard error, for one million paths?
Answer
Answer to Question 22.17.
The identity follows from the shift of the density. The tilted estimator reduces the relative standard error from 18% to about , a factor of more than 60.
With and density ,
and completing the square gives . So the drift can be moved into a weight. That is Girsanov’s theorem for a single time, and it extends to paths.
As a check, with and , both forms give .
For , a plain simulation with paths gets about 32 hits, and so has a relative error of .
Reverse the identity: simulate and average . Now half the paths land in the event, and each carries a small weight. On a run, this reduces the relative error to about , matching an integral for the second moment. Plain sampling would need several thousand times as many paths for the same accuracy.
Too large a shift hurts again, because the weights become erratic. For a tail event, the good choice puts the mean at the boundary of the event.
Classic wrong answer. Dropping the weight, or using , the wrong direction. A check that the mean weight is 1 finds this at once.
Follow-up. Why is that weight a martingale in time? It is the exponential martingale , with mean 1, and this is what makes the new measure a probability measure.
Why it matters. Change of measure is often stated abstractly. This version shows what it does in one line, and gives a practical reason to care.
Question 22.18 ★★ QR, QT, QD, Risk • bank, hedge fund • junior
A stock has , , , and the rate is zero. A one-year digital pays 1 if . What are the real-world probability, the risk-neutral probability and the price? What is the market price of risk, and how does it relate the two measures? Does the price depend on ?
Answer
Answer to Question 22.18.
Real-world , risk-neutral , price . The market price of risk is . The price does not depend on .
is normal with standard deviation . Its mean is in the real world, so .
Under the risk-neutral measure, the drift is the rate, here zero, so the log mean is , and the probability is . With a zero rate, the price is this probability, by the replication argument for a digital.
The market price of risk is . The two measures are related by , which removes the drift from the return. Reweighting real-world paths with this factor gives in a simulation, and the weight has mean 1.
Anyone holding the digital at has a positive expected profit, of . This is not free: the digital pays in states where the stock is up, so it carries stock risk, for which the holder expects compensation.
Classic wrong answer. Pricing with the real-world probability, or thinking that affects the price because it affects the chance of the payoff. Hedging removes it from the price, though it does not remove it from the holder’s expected profit.
Follow-up. What are the probabilities if ? The real-world chance is now , and the price is still . The gap has shrunk to , because the expected profit comes only from the drift.
Why it matters. Confusion between probabilities and prices is the most common error in this area, and the digital isolates it.
Question 22.19 ★★ QR, QT, QD • bank, hedge fund • junior, experienced
State the Feynman–Kac formula for , with terminal condition . Solve the equation with , , first for , then for . Check each by substituting into the equation. How does a rate change them?
Answer
Answer to Question 22.19.
, where . The two solutions are and .
Let . Ito’s lemma gives drift , which is 0 by the equation. So is a martingale, and , which is the formula.
With , : given , is normal, with mean and variance .
For : . Check: and , which sum to 0.
For : . Check: and , which also sum to 0.
Finite differences and sampling agree with both at the points tried. A rate multiplies each by , and this can be checked by substitution. The terminal value is , as required.
Classic wrong answer. Getting the sign of wrong. This is a backward equation, solved from the terminal time. So time to go, , appears, and not .
Follow-up. How do you get the Black–Scholes equation from this? Use under the risk-neutral measure. Then the formula says that the price solves , which is that equation.
Why it matters. This is the link between expectations and differential equations, which lets you choose the easier of the two.
Question 22.20 ★★ QR, QT, QD, Risk • hedge fund • junior, experienced
Let . What equation does it solve? What are , the median and at and ? What is the long-run behaviour of a single path? How do you reconcile this with the mean?
Answer
Answer to Question 22.20.
. The mean is always 1, the median is , and , which is at and at . Almost every path goes to 0.
is the exponential martingale, with by Ito’s lemma. So the mean stays at 1.
is normal with mean and variance . So the median is : at and about at . Also, needs , whose chance is .
Since , , so each path goes to 0 with probability one.
The reconciliation is that the mean is carried by ever rarer paths with enormous values. The variance is , which is huge. At , no feasible simulation can show a mean of 1. A million paths usually give far less, with the rest in a tail too thin to sample. Note that optional stopping does not apply at : the limit is 0, while the mean is 1, so the martingale is not uniformly integrable.
In investment terms, this is a fair bet at full size, with a positive chance of huge gains and almost sure ruin in the long run. That is the reason for caring about growth rates and not only expected values.
Classic wrong answer. Saying that the mean is a good guide to typical wealth. It is the extreme example of a mean that describes no path anyone is likely to see.
Follow-up. What are the second moments at and ? and . So the sample mean is useless long before .
Why it matters. This separates ensemble averages from time averages, which is the heart of the discussion of sizing and of the Kelly criterion.
Question 22.21 ★★★ QR, QT, QD • bank, hedge fund • experienced
What are the conditional mean and variance of given ? Evaluate them for . What share of the variance of the integral is explained by the endpoint?
Answer
Answer to Question 22.21.
The conditional mean is , and the conditional variance is . At , these are and , and the endpoint explains of the variance.
and are jointly normal with mean zero, with , and . These follow from .
So normal regression applies. The slope is , which gives the mean . That makes sense: given the endpoint, the bridge is on average a straight line from 0 to , whose integral is the area of a triangle.
The remaining variance is
A second route: it should equal the variance of the integral of a Brownian bridge on . For , , the same.
The share explained is , which is , the squared correlation between the two. A simulation with paths recovers the slope, the residual variance and the share.
Classic wrong answer. Thinking that the integral is independent of the endpoint because the increments are independent. They are not independent: both are sums of the same increments.
Follow-up. Does this give a control variate for an Asian option? Yes. Since the endpoint explains three quarters of the variance, a simulated average can be regressed on , and that alone cuts the variance by that amount. A geometric average does better still.
Why it matters. Conditioning on a normal variable is a one-line tool, and the same tool appears in Brownian bridge constructions and in variance reduction.
Question 22.22 ★★★ QR, QT • hedge fund • junior, experienced
Let be the fraction of that spends above 0. State the distribution of . Give the mean, the variance and . A trader’s cumulative profit behaves like . What does this say about how often a skill-free trader is ahead for at least 90% of the year?
Answer
Answer to Question 22.22.
has the arcsine law, with density : mean , variance , and . So a skill-free trader is ahead for 90% of the year about 20% of the time.
The density is highest near 0 and 1, and lowest at . The mean follows by symmetry. The variance comes from , a double integral of the orthant probability.
The distribution function is , so . By symmetry, is the same. So with chance, the path spends more than 90% of the time on one side. Compare a fraction between and , which has a chance of only . The most balanced outcome is the least likely.
A simulated walk with 2000 steps gives a mean of , a variance of and a tail near , which is a check independent of the formula. Note the conclusion. A profit curve above water for 90% of the year says little about skill, as about one trader in five with no skill at all will have one.
A trader’s edge, in contrast, moves the fraction reliably toward 1, but this measure is a weak test of it. A -statistic on the mean uses the same data better.
Classic wrong answer. Assuming that a zero-mean path should spend about half its time above 0. The opposite is true: long stays on one side are normal, since excursions are long.
Follow-up. What is the standard deviation of ? . That is above the uniform distribution’s , and a good way toward the of an equal mix of 0 and 1.
Why it matters. It is the strongest intuition-breaking result about random walks, with a direct reading for performance evaluation.
Question 22.23 ★★★ QR, QT • hedge fund • junior, experienced
Let be the running maximum of . From the reflection principle, find for . Show that has the same law as . A driftless strategy has a volatility of 20% with no compounding. What is the expected distance below its high after a year, and what is the chance that this exceeds 20%?
Answer
Answer to Question 22.23.
. The gap has the law of . The expected gap is 16%, and the chance that it exceeds 20% is .
For , reflect each path after it first reaches . A path with and an end at or below corresponds one-to-one to a path ending at or above , which must have passed on the way. So the two events have equal probability.
Differentiating with respect to and gives the joint density of . From it, the density of can be computed directly, and it is that of .
A cleaner argument uses time reversal. Define , which is also a Brownian motion. Then , whose law is that of the maximum, and so of by reflection. Hence
With volatility : multiply by . So , and . A simulation with paths agrees after correcting for discrete checking. Since , the same number is also .
Classic wrong answer. Treating a 16% distance from the high as a signal of something wrong. In a driftless process with a 20% volatility, it is what the average year looks like.
Follow-up. What is the expected gap after two years? It grows with the root of time: . Note that this is the current gap at the end. The maximum drawdown during the period is larger.
Why it matters. Time reversal is a beautiful trick, and it gives a benchmark for drawdowns that investors often misjudge.
Question 22.24 ★★★ QR, QT, QD, Risk • hedge fund, bank • experienced
with , and is the first time that reaches . Use martingales to derive and . Evaluate them at , and . What is , and what distribution is this?
Answer
Answer to Question 22.24.
, and . has the inverse Gaussian law, with .
has finite mean under . For the mean, is a martingale. Optional stopping gives .
For the variance, is a martingale. At , , so
The left side is , since . So .
At the stated values: , and , with a standard deviation of .
This is the inverse Gaussian, with mean and shape . Its tail has the closed form
which gives for . Sampling the law and a direct Euler run of the process agree with the mean and variance.
Limits: as , both blow up, and the variance faster, as they must, since the driftless case has an infinite mean. At , the variance is already .
Classic wrong answer. Giving the deterministic time with no spread, or a variance of , which has the wrong scaling in and . Dimensions catch that one.
Follow-up. If the target is 10 times as far, what happens to the relative spread? The mean and the variance each grow by 10, so the coefficient of variation falls by . Long-horizon targets are more predictable, proportionally.
Why it matters. Time-to-target is common in execution and in strategy evaluation. The martingale derivation is faster than the density.
Question 22.25 ★★★ QR, QT • hedge fund • experienced
Use an exponential martingale and optional stopping to show that , where is the first time reaches . Why must you choose the positive root? What do you learn by letting , and from the derivative there? Evaluate at and .
Answer
Answer to Question 22.25.
With , the martingale gives the result. The limit shows that is finite, and the infinite derivative shows that its mean is infinite. At , , the value is .
For , is a martingale. Stopped at , it is bounded by , as before and the time term only reduces it. On the event , , as stays below while grows. So bounded optional stopping gives
Putting , we have .
The positive root matters. With , is unbounded as before , so optional stopping fails. The other root would give a transform above 1, which is impossible.
Let : . The derivative of at 0 is , because of the square root, and so .
At , : . Sampling from gives .
Classic wrong answer. Applying optional stopping with no check on boundedness. The same step would show that , which is false, since .
Follow-up. What changes with drift ? The same argument with a shifted exponent gives , with . Now the derivative at 0 is finite, . At , , , this gives , as sampling confirms.
Why it matters. It is a compact use of the stopping theorem, and the choice of the root shows whether its conditions are understood.
Question 22.26 ★★★ QR, QT, QD, Risk • hedge fund, bank • experienced
An asset follows geometric Brownian motion with volatility 20%. Starting from 1, find the expected time to reach 2 if . If , what is the probability that it ever reaches 2? What happens at ? Check the second result with a martingale of the form .
Answer
Answer to Question 22.26.
At , the expected time is years. At , the probability is . At , it reaches 2 with certainty, but the expected time is infinite.
has drift and volatility , and the target is .
: . The mean of a positive-drift hitting time is .
: , so the log drifts away. The chance of ever reaching a level above is . Note that the expected value of still grows.
Check with a martingale: , so is a martingale. It is bounded by up to the hitting time, and if 2 is never reached, since , and the martingale tends to 0. So , which gives . The answers agree, with no reference to the first formula.
: . The log is driftless, so it hits with certainty and has an infinite mean, as a one-sided hit for a driftless Brownian motion does.
A simulated 400-year run at reaches 2 in about of paths after a correction for discrete checks. That matches the first-passage formula at that horizon, , and the limit is .
Classic wrong answer. Saying that any positive means the asset surely doubles. The sign that matters is that of the log drift. With , the expected value rises while the typical path falls.
Follow-up. At which does the expected time become finite? For any , and it blows up at that value. The expected time at would be about 693 years.
Why it matters. It tests the difference between arithmetic and geometric drift, and the check by a power martingale is a good habit.
Question 22.27 ★★★ QR, QT, QD • hedge fund, bank • experienced
Ito’s lemma does not apply to , which has a kink at 0. Using Tanaka’s formula, write as a stochastic integral plus a local time . Find . What does measure, and how could you estimate it from a simulated path? What other process has the same law as ?
Answer
Answer to Question 22.27.
, with . measures time spent at 0, per unit of space, and it has the law of the running maximum.
A smooth approximation of has a second derivative that is concentrated around 0, with total mass 2. So the Ito term does not vanish, and it accumulates only when is at 0. Its limit is , defined by
This is the local time at 0: a rate of time spent near 0 per unit width.
The stochastic integral has mean zero, so .
There are two estimators from a path. One is the occupation formula, with a small . The other is , which rearranges Tanaka’s formula. In a run, each has a mean near , and the two estimators are strongly correlated across paths, above . So they are measuring the same thing.
By Tanaka, is itself a Brownian motion , by Lévy’s characterisation, as its quadratic variation is . Writing and noting that grows only when , Skorokhod’s lemma gives . So has the law of the maximum of a Brownian motion, and so of . The quantiles from the run match.
Classic wrong answer. Applying Ito’s lemma to with , which gives . Its mean would be zero, which is impossible for a positive variable.
Follow-up. Where does this appear in hedging? A stop-loss strategy holds a share only when the price is above the strike. Its failure to replicate a call is exactly the local time at the strike: a cost that does not go away with more frequent trading.
Why it matters. This is one of the few places where the second-derivative term of Ito’s lemma is visible on its own. It tests experienced candidates, and the hedging link is a real one.
Question 22.28 ★★★ QR, QT • hedge fund • experienced
Find the mean and variance of by double integrals. Then check both using the expansion , with independent standard normal , using . What sum must you use for the variance?
Answer
Answer to Question 22.28.
, and . The series gives the same results, using also .
The mean is .
For the variance, , as for any two normals with mean zero. So
For the series, the sine functions are orthonormal on . Writing and integrating the square of the expansion,
since cross-terms vanish. So , as given, and , as . Thus the required sum is . This is the classical sum in disguise, and a numeric sum gives to twelve decimals. So the two routes agree.
The first term has , and it carries of the variance. So is close to a scaled chi-square with one degree of freedom, and its distribution is strongly skewed. A simulation returns and .
Classic wrong answer. Using , which ignores the correlation over time. It gives in place of , which is too large.
Follow-up. Why does a single term carry so much of the variance? The eigenvalues fall as , and their squares as . A random walk’s level is dominated by its slowest component.
Why it matters. Such quantities arise in unit-root statistics, whose limits are integrals like . The expansion tells you much more than the two moments do.
Question 22.29 ★★★★ QR, QT • hedge fund • experienced
Let . Derive using the Feynman–Kac formula, with the guess . Solve for and . Check the small- limit against the mean of , which is . Evaluate it at .
Answer
Answer to Question 22.29.
, with , and its integral. At , the value is .
Define . Feynman–Kac with a state-dependent discount gives
Substitute . Then and . Matching powers of :
The Riccati equation has the solution . Check: .
Then
So .
For small , this is , while the left side expands to . They agree. As , it decays like , so the chance of a very small falls off quickly, as it must.
A second route uses the series: gives , and the product form of the hyperbolic cosine turns this into the same result. A numerical product and a simulation both give .
Classic wrong answer. Trying a guess with no term, or getting the sign of the wrong so that grows with . The discount punishes large , so must fall with it.
Follow-up. Why is a quadratic exponent the right guess? The potential is quadratic and the diffusion is Gaussian. Such problems stay Gaussian, and a quadratic exponent is the most general Gaussian form.
Why it matters. This requires several techniques at once. The Riccati structure is the same one behind quadratic-Gaussian and affine models.
Question 22.30 ★★★★ QR, QT • hedge fund • experienced
is the first time that leaves . Using , find . Expand it to obtain and . Check these using the polynomial martingale . Then use the poles of the transform to give the rate at which decays.
Answer
Answer to Question 22.30.
, , , and decays at rate .
is a martingale, as the average of . It is bounded up to , and at we have , so . Optional stopping gives , and with this is the result.
Expanding with : , and . So
Matching with : , and . So .
Check: the polynomial is a martingale. At , . With , this gives , the same.
For the tail, vanishes when , so at . The nearest singularity sets the exponential decay of the tail: .
At , : , and . A symmetric lattice walk with paths agrees on the mean, the variance, the transform and the tail. Compare with the one-sided case: a second barrier turns the heavy tail, of order , into an exponential one, and every moment becomes finite.
Classic wrong answer. Using , or dropping the factor in the expansion of the exponential. The polynomial martingale is a quick check on this kind of slip.
Follow-up. Why is the constant in the tail? The full tail is the series , and the first term dominates quickly. At the alternating sum is , which gives 1, as it must.
Why it matters. It connects a martingale, a transform, moments and a tail in one problem. The check by a second polynomial martingale shows the habit expected at the top level.