Simulating a random equation
Most stochastic equations have no formula for their solution, so we simulate them. Cut time into steps of size . The Euler-Maruyama scheme moves the state by the drift for one step plus the volatility times a random step , a normal number with mean and variance . For it reads . It is the simplest rule: the stochastic version of Euler's method.
The Milstein scheme adds one term, . It comes from the quadratic variation and fixes the part of the error that Euler ignores. For geometric Brownian motion , so . How good are the schemes? The strong error measures how close each simulated path is to the true path: Euler is of order (the error shrinks like ) and Milstein of order (like ). The weak error measures how close averages are, such as an option price: both are of order . So to price a European option, Euler with many paths is usually enough. For hedging tests or path-dependent products, Milstein pays off.
- Euler-Maruyama: drift for one step plus volatility times a normal step. Strong order .
- Milstein: adds and reaches strong order .
- Strong vs weak error: paths versus averages. Pricing needs the weak error, which is order for both.
Lab · what's graded
- One Euler step15 pts
- One Milstein step15 pts
- Euler error when the step is cut15 pts
- Milstein error when the step is cut15 pts
- Which error matters for pricing15 pts
- Match the vocabulary10 pts
- Why Milstein beats Euler15 pts