
16.6 Convergence of a Numerical Method 237
In Figure 16.7 we compute approximations to the weak error, as defined in
the left-hand side of (16.23), for the linear SDE given by (16.12) with a = 2,
b = 1 and x(0) = 1. The asterisks show the weak error values for a range of
step sizes h. In each case, we used the known exact value (16.14) for the mean
of the SDE solution, and to approximate the mean of the numerical method we
computed a large number of paths and used the sample mean (16.8), making
sure that the 95% confidence intervals were negligible relative to the actual
weak errors. Figure 16.7 uses a log-log scale, and the asterisks appear to lie
roughly on a straight line. A reference line with slope equal to one is s hown.
In the least-squares sense, the best straight line approximation to the asterisk
data gives a slope of 0.9858 with a residual of 0.0508. So, overall, the weak
errors are consistent with the first-order behaviour quoted in (16.23).
The first-order rate of weak convergence in (16.23) matches what we know
about the deterministic case—when we switch off the noise, g ≡ 0, the method
reverts to standard Euler, for which convergence of order 1 is attained.
On the other hand, if we are not concerned with “the error of the means”
but rather “the mean of the error,” then it may be more appropriate to look at
the strong error E[|x(t
f
) − x
n
|]. It can be shown that this version of the error
decays at a rate of only one half; that is,
E [|x(t
f
) − x
n
|] = O(h
1/2
). (16.24)
To make this concrete, for the same SDE and step sizes as in the weak tests,
the circles in Figure 16.7 show approximations to the strong error. Samples for
the “exact” SDE solution, x
n
, were obtained by following more highly resolved
paths—see, for example, Higham [31] for more information. The circles in the
figure appear to lie approximately on a straight line that agrees with the ref-
erence line of slope one half, and a least-squares fit to the c ircle data gives a
slope of 0.5384 with residual 0.0266, consistent with (16.24).
We emphasize that this result marks a significant departure from the deter-
ministic ODE case, where the underlying Euler method attains first order. The
10
−3
10
−2
10
−1
10
−2
10
−1
10
0
h
Stron g o r Weak Error
St rong E rr or
Re f e renc e of slope 1/2
We ak E rror
Re f e renc e of slope 1
Fig. 16.7 Asterisks show weak er-
rors (16.23) and circles show strong er-
rors (16.24) for the Euler–Maruyama
method (16.11) applied to the linear
SDE (16.12)