1. Home
  2. Explore
  3. Mathematics
  4. Stochastic Differential Equations

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Stochastic Differential Equations

Speaker 1Speaker 2

Stochastic Differential Equations

10:51
0:00-10:51
  1. Simon

    So far in the course, we started with a function and differentiated it to get an equation. Now we’re going in the other direction: we’re given a stochastic differential equation and want to find a stochastic process that satisfies it. That is the central problem for this part of the lecture.

  2. Hope

    And that can be difficult even without randomness. Ordinary and partial differential equations often don’t have a neat closed-form solution, so we shouldn’t expect every stochastic differential equation to yield a tidy formula either.

  3. Simon

    Right. But an important result comes before trying to solve one: under suitable technical conditions on the coefficients, a solution exists and is unique once we specify the initial value. The lecture emphasizes that this is the stochastic version of a familiar existence-and-uniqueness principle for differential equations.

  4. Hope

    What do those conditions mean intuitively? The exact assumptions can be technical, but the lecture gives us a useful picture: the drift and noise coefficients shouldn’t change wildly when the space variable changes a little, and they shouldn’t grow too quickly as the space variable gets large.

  5. Simon

    Exactly. One condition bounds changes in the coefficients by a constant times the change in the space variable. Another controls how quickly the coefficients can grow. These conditions hold in many cases, so the main takeaway is that a well-behaved equation has a unique process for a given starting point—even if we can’t write that process in a simple formula.

  6. Hope

    Let’s look at an unusual case where we can get an explicit answer. Suppose the process starts at x-zero and satisfies a geometric Brownian-motion equation: its drift is mu times its current value, and its noise coefficient is sigma times its current value.

  7. Simon

    The solution is x-zero multiplied by the exponential of sigma times Brownian motion, plus mu minus one-half sigma squared, all multiplied by time. In symbols, that’s X of t equals x-zero times exp of sigma B of t plus the quantity mu minus one-half sigma squared times t.

  8. Hope

    The lecture shows one way to work toward that formula: try an exponential-shaped function, differentiate it, and match the resulting terms to the equation. That helps determine the time-dependent part of the exponent. But the professor also points out that, in this example, recognizing or guessing the exponential form may be more direct than doing all the algebra.

  9. Simon

    And this kind of guesswork is not a general recipe. It works for some special equations, but many stochastic differential equations won’t suggest an obvious form. So let’s look at another explicit example, the Ornstein–Uhlenbeck process.

  10. Hope

    Its equation has drift minus alpha times the current value, with alpha positive, and a noise term sigma times Brownian motion that does not depend on the current value. That negative drift is what makes the process mean-reverting: when the value is above zero, the drift pulls it downward; when it’s below zero, the drift pulls it upward.

  11. Simon

    The solution can be written as an exponentially decaying contribution from the starting value, plus a stochastic integral: X of t equals e to the minus alpha t times x-zero, plus e to the minus alpha t times the integral from zero to t of sigma e to the alpha s dB of s. The first part fades as time passes, while the second represents the accumulated noise.

  12. Hope

    So that formula fits the mean-reversion idea: the initial value’s influence shrinks exponentially, but random fluctuations continue to matter. The lecture also notes that this process has been used to model mean-reverting behavior and was first used in studying gases.

  13. Simon

    Most equations won’t be so cooperative, so the next question is how to solve them numerically. Start with the familiar finite-difference idea for an ordinary differential equation: divide time into small steps and use the differential equation to estimate the value at the next step.

  14. Hope

    The lecture illustrates that with u-prime equals five u plus two, starting from u of zero equals zero, and using a step size of one-half. A first-order Taylor approximation gives u at one-half approximately equal to zero plus one-half times u-prime at zero, which comes out to one. Then the next step gives u at one approximately equal to one plus one-half times the quantity five times one plus two, or 4.5.

  15. Simon

    That’s Euler’s basic idea: the next value is approximately the current value plus the step size times the derivative at the current point. Use smaller steps and repeat the calculation. For a reasonable differential equation, the approximation approaches the true value as the step size shrinks, though smaller steps also mean more computation.

  16. Hope

    For a differential equation involving two variables, the same general strategy can be applied on a grid. You use known boundary values and local approximations to fill in neighboring values, layer by layer, until you reach the point you want.

  17. Simon

    But a stochastic differential equation has an extra complication. A point in the future can depend on the Brownian motion’s random path, so we don’t know one fixed route through the grid. The way to adapt the numerical method is to first fix a sample path of Brownian motion.

  18. Hope

    Once the path is fixed, we can update the process one step at a time. With time step h, the approximation is X at the next step equals the current X plus the drift coefficient times h, plus the noise coefficient times the Brownian increment. That increment is the fixed path’s value at the next time minus its value at the current time.

  19. Simon

    For an equation with coefficients mu and sigma, that becomes X at time i plus one times h approximately equal to X at time i times h, plus mu evaluated at the current time and value times h, plus sigma evaluated there times the Brownian increment. This is the stochastic counterpart of the finite-difference update.

  20. Hope

    But one path only gives one possible outcome. Monte Carlo simulation addresses that by generating many Brownian paths, applying the update to each one, and collecting the resulting values of X at the time we care about. Those outcomes give an approximate probability distribution for X at that time.

  21. Simon

    And it’s not limited to the terminal time: you can collect approximate distributions at intermediate grid times too. The step size matters, though. A chosen step size may work well for a particular time point and less well for another, so there’s a trade-off between accuracy and computational effort.

  22. Hope

    The lecture also introduces the tree method. Brownian motion can be viewed as a limit of simple random walks, so a tree approximates the possible paths by a finite set of up-or-down moves and assigns probabilities to the possible outcomes.

  23. Simon

    Instead of randomly drawing one path each time, a tree keeps track of the values and probabilities at its branches. A binomial tree has two possibilities at each step; a trinomial tree can use plus one, zero, or minus one. More possibilities per step can improve accuracy, as can using smaller time steps.

  24. Hope

    The tree can be especially useful when the quantity depends on the path, not just the final value. For example, with an option that allows early exercise, you need to consider whether to exercise at each point along the way. At each node of the tree, you can condition on the history represented by that node.

  25. Simon

    That wraps up the numerical side: explicit formulas exist for some special equations, but often we rely on computation. Finite-difference updates work once a Brownian path is fixed; Monte Carlo repeats that process over many sampled paths; and tree methods approximate the random paths with a discrete branching structure.

  26. Hope

    The final topic is the heat equation, which is a partial differential equation rather than a stochastic differential equation. It describes how heat spreads along a long, thin, perfectly insulated bar. Here, t is time, x is position, and u of t and x gives the heat distribution along the bar at time t.

  27. Simon

    The heat equation matters in this course because the Black–Scholes equation can be transformed into it by a change of variables. It is also a famous equation in physics, and it has an explicit solution that lets us connect an initial heat distribution to the distribution at a later time.

  28. Hope

    A key property is linearity: if u-one and u-two are solutions, their sum is also a solution. More generally, under suitable conditions, you can integrate a family of solutions and still get a solution. That means we can build a solution for a complicated starting distribution by combining simpler ones.

  29. Simon

    The useful simple starting case is a Dirac delta at zero: imagine putting a concentrated amount of heat at one point. For the heat equation in the lecture, the resulting distribution at time t is the normal density with mean zero and variance t: one over the square root of two pi t, times the exponential of minus x squared over two t.

  30. Hope

    That normal density is the key building block. If you picture the heat as many particles starting at zero and then spreading out, their locations at time t have that normal distribution. The lecture connects this picture to Brownian motion: each particle’s location behaves like a Brownian-motion position, and together the particles form the heat distribution.

  31. Simon

    Now use linearity to handle any initial heat profile v. Shift the point-source solution to each starting position, weight it by the initial amount of heat there, and integrate. In other words, u at time t and position x is the integral over s of v of s times the normal heat kernel evaluated at x minus s.

  32. Hope

    So the heat kernel takes the initial profile and smooths it out over time. Once you know the point-source solution, superposition gives an explicit solution for a general initial condition. That’s why understanding the Dirac delta case is enough to solve the broader problem.

  33. Simon

    And when the Black–Scholes equation is changed into heat-equation form, that same solution method gives a closed-form route to the value. In the backward interpretation, the final payout plays the role of the initial profile, and integrating it against the appropriate distribution gives the value at the earlier time.

  34. Hope

    So we’ve moved from existence and uniqueness, through two special explicit stochastic processes, to numerical methods for the many cases without a neat formula—and then to the heat equation and its Gaussian-kernel solution. The shared lesson is that a closed form is wonderful when available, but there are principled ways to understand and compute solutions when it isn’t.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent