21.10.2014 Views

Physical Chemistry 3: — Chemical Kinetics — - Christian-Albrechts ...

Physical Chemistry 3: — Chemical Kinetics — - Christian-Albrechts ...

Physical Chemistry 3: — Chemical Kinetics — - Christian-Albrechts ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix B 263<br />

Appendix B: The Marquardt-Levenberg non-linear least-squares<br />

fitting algorithm<br />

With the omnipresence of the computer, the Marquardt-Levenberg algorithm (Bevington<br />

1992, Press 1992) has become an extremely important data analysis tool. It is generally<br />

themethodofchoiceincaseswhereitisnotpossibletomakesimplelinearplotsto<br />

determine rate constants.<br />

I Problem: Experimentally, we measure the values of some quantity at the points ,<br />

, . Supposewetake measurements.Nowsupposewewouldliketodescribeour<br />

data points by some model. Towards these ends, we take a physically reasonable<br />

model function<br />

= ( ;( 1 ))<br />

(B.1)<br />

which we would like to fit to our data in such a way that () describes the data<br />

points in “the best possible way”. The model function depends directly on the<br />

variables , and it also depends parametrically on nonlinear parameters .In<br />

kinetics, for example, is usually some concentration, e.g. , which depends on time<br />

i.e., = (). The parameters may be the rate constants (or decay times )<br />

and the initial concentration 0 . Our job is to adjust and optimize these parameters<br />

by somehow “fitting” them. The method of choice is, of course, “least-squares fitting”:<br />

We start by defining the so-called figure-of-merit or goodness-of-fit function 54<br />

2 =<br />

"<br />

#<br />

X [ − ( )] 2<br />

=1<br />

<br />

2<br />

(B.2)<br />

Here, the and the independent variables , are the measured quantities, the<br />

are the experimental uncertainties of the ,and ( ) is the calculated value<br />

of the model fit function at the point { } (the parameters 1 are<br />

omitted here in ). What we have to do is to adjust the parameters in the model<br />

function such that 2 reaches a minimum, i.e. we have to search the -dimensional<br />

parameter space for the (global) minimum of 2 .<br />

I Solution: The Marquardt-Levenberg algorithm is a method to determine this minimum<br />

of 2 as function of the fit parameters in the model fit function.<br />

The minimum of 2 as function of the fit parameters a is defined by the conditions<br />

"<br />

#<br />

2<br />

= X [ − ( )] 2<br />

=0 (B.3)<br />

<br />

<br />

2<br />

=1<br />

<br />

X<br />

∙ ¸<br />

[ − ( )] ( )<br />

= −2<br />

(B.4)<br />

<br />

2 <br />

=1<br />

Thus, taking the partial derivatives of 2 with respect to each of the parameters<br />

,weobtainasetof coupled equations in the unknown parameters . These<br />

equations are, in general, nonlinear in the .<br />

54 Deutsch: Fehlerquadratsumme.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!