4.4 Separation of Spectral Components 259
In the case of the power-law function F(E) = AE
−r
, linear least-squares fitting
is enabled by taking logarithms of the data coordinates. In other words, y
i
= log(J
i
)
and x
i
= log(E
i
) = log[(m − m
0
)δE], where m is the absolute number of a data
channel, m
0
is the channel number corresponding to E =0, and δE is the energy-loss
increment per channel. Least-squares values of a and b are found by implementing
Eqs. (4.46) and (4.47) within the data-storage computer and the fitting parameters
are then given by r =−b and log(A) =a. As an estimate of the “goodness of fit,” the
parameter χ
2
can be evaluated using Eq. (4.45), taking σ
i
≈
√
J
i
on the assumption
that electron beam shot noise is predominant. More useful is the normalized χ
2
parameter χ
n
2
= χ
2
/(N −2), which is less dependent on the number N of channels
within the fitting region. Alternatively, a correlation coefficient can be evaluated
(Bevington, 1969).
Linear least-squares fitting is satisfactory for nearly all pre-edge backgrounds
(Joy and Maher, 1981) but systematic errors can occur if the number of detected
electrons per channel J
i
falls to a very low value (<10), a situation that may
arise in the case of energy-filtered images (Section 2.6). The fractional uncertainty
σ
i
/J
i
≈ J
i
−1/2
is then large and the error distribution becomes asymmetric, particu-
larly after taking logarithms of the data, resulting in a systematic error of about 2%
for J
i
=10, increasing to 20% for J
i
=3 (Egerton, 1980d). Trebbia (1988)useda
maximum-likelihood method to calculate the background, a procedure that avoids
bias introduced by the nonlinear transformation in the least-squares method (Pun
et al., 1984).
After fitting in a pre-edge window, the background is usually extrapolated to
higher energy loss and subtracted to yield t he core-loss intensity corresponding to
the ionization edge. In general, extrapolation involves both systematic and statistical
errors, as discussed in Section 4.4.3.
These errors can be reduced if the edge extends to high enough energy loss,
such that the core-loss intensity falls to a small fraction of its threshold value.
Extrapolation can then be replaced by interpolation, simply by using a fitting win-
dow split into two halves: a pre-edge region and a second region at high energy loss.
Least-squares fitting is performed over the channels in both regions, a straightfor-
ward procedure using the Gatan DigitalMicrograph software. The fitted background
then passes through the middle of the data in both halves of the fitting region, mak-
ing the background-subtracted intensity approximately zero at both ends of its range.
Sometimes this is an advantage, as when background removal precedes Fourier-ratio
deconvolution, for example, to remove plural scattering prior to fine-stucture anal-
ysis. However, it will likely lead to an understimate of the core-loss integral I
k
.
This systematic error can be reduced if it is assumed that the core-loss intensity has
an AE
-r
dependence (with same exponent r as the background) for energies well
beyond the threshold. The core-loss intensity within the upper fitting window can
then be estimated and allowed for (Egerton and Malac, 2002). A program (B
FIT)
implementing this procedure is described in Appendix B and has enabled boron
concentrations below 1% to be reliably measured (Zhu et al., 2001).