IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 11, 2005, 9:36:18 AM (21 years ago)
Author:
eugene
Message:

clarified LMM description

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/pslib/psLibADD.tex

    r4530 r4531  
    1 %%% $Id: psLibADD.tex,v 1.83 2005-07-11 19:17:38 eugene Exp $
     1%%% $Id: psLibADD.tex,v 1.84 2005-07-11 19:36:18 eugene Exp $
    22\documentclass[panstarrs]{panstarrs}
    33
     
    455455
    456456Non-linear minimization techniques use an iterative approach to find a
    457 minimization since an analytical inversion is impractical or not
     457minimization when an analytical inversion is impractical or not
    458458possible.  These techniques use a starting guess for the parameters of
    459459interest, and make a sequence of new guess parameters based on the
     
    463463must be modified and another attempt is made.  Convergence may be
    464464determined based on the absolute amount of change in the function
    465 value, or by comparison with the expectation for a linear system. 
     465value, or by comparison with the expectation for a linear system.
    466466
    467467The two common techniques used to construct a guess parameter set are
    468 the 'steepest descent method' and the 'gauss newton method'.  In the
     468the 'steepest descent method' and the 'Gauss-Newton method'.  In the
    469469first case, the guess is selected some distance along the local
    470470gradient.  In the second case, a local Taylor expansion of the
    471471function is used to construct a linear model for the function, and the
    472 new guess is chosen to minimize that model.  The methods discussed
    473 below make use of combinations of these two methods.  Aside from the
    474 differences in their guess steps, the two methods differ in using
    475 first derivatives of the function supplied by the user, or by locally
    476 calculating the first derivatives. 
     472new guess is chosen to minimize that linear model.  The methods
     473discussed below make use of combinations of these two methods.  Aside
     474from the differences in their guess steps, the two methods differ in
     475using first derivatives of the function supplied by the user, or by
     476locally calculating the first derivatives.
    477477
    478478Mathematically, we would like to choose the parameter set $a_m$ to
     
    485485$\delta_m = -g_m$.  The Gauss-Newton method uses a Taylor expansion of
    486486the function to solve for the step: $(\nabla^2 F) \bar{\delta} =
    487 -\nabla F$.  Defining $H_{m,n}$ as a component of the second
    488 derivatives, we can write the Gauss-Newton step as $\delta_m = -
    489 H_{m,n}^{-1} g_n$.
     487-\nabla F$.  Defining an element of the Hessian matrix $H_{m,n}$ as a
     488component of the second derivatives, we can write the Gauss-Newton
     489step as $\delta_m = - H_{m,n}^{-1} g_n$.
    490490
    491491\subsubsection{Levenberg-Marquardt Method}
     
    495495interest, vary the parameters by a particular choice based on the
    496496gradient, evaluate the function again, and adjust the parameters and
    497 the parameter varient based on the results.  The LMM only works if the
    498 second derivative of the function can be considered negligible, as in
    499 the case of minimizing $\chi^2$.
    500 
    501 Consider the chi-square function, given some ordinates, $x_i$, we
     497the parameter varient based on the results.  The LMM requires the
     498second derivative of the function to be negligible, as in the case of
     499minimizing $\chi^2$.
     500
     501Consider the chi-square function. Given some ordinates, $x_i$, we
    502502would like to find the parameters, $a_m$, of the function which
    503503minimize $\chi^2$ for some measurements, $y_i$ and associated errors,
    504504$\sigma_i$:
    505505\begin{eqnarray}
    506 \chi^2 (\bar{a})  & = & \sum_i \frac{1}{\sigma_i^2} \left( y_i - p(x_i;a_m) \right)^2  \\
     506\chi^2 (\bar{a})  & = & \sum_i \frac{1}{\sigma_i^2} \left( y_i - p(x_i;a_m) \right)^2
    507507\end{eqnarray}
    508508
     
    511511p_i (a_m)         & = & p(x_i;a_m) \\
    512512f_i (a_m)         & = & \frac{1}{\sigma_i} (y_i - p_i) \\
    513 \chi^2 (\bar{a})  & = & \sum_i f_i^2 \\
     513\chi^2 (\bar{a})  & = & \sum_i f_i^2
    514514\end{eqnarray}
    515515
    516516We write the minimization function $F(a_m) = \frac{1}{2} \chi^2$ to
    517 avoid various extra factors of 2.  We can now write out the needed
     517avoid the various extra factors of 2.  We can now write out the needed
    518518derivatives in terms of $f_i$:
    519519\begin{eqnarray}
    520 F(a_m) = \frac{1}{2} \sum_i f_i^2 \\
    521 \nabla F(a_m) = \sum_i f_i \frac{\partial f_i}{\partial a_m} \\
    522 \nabla^2 F(a_m) = \sum_i \frac{\partial f_i}{\partial a_m} \frac{\partial f_i}{\partial a_n} \\
     520F(a_m)            & = & \frac{1}{2} \sum_i f_i^2 \\
     521\nabla F(a_m)     & = & \sum_i f_i \frac{\partial f_i}{\partial a_m} \\
     522\nabla^2 F(a_m)   & = & \sum_i \frac{\partial f_i}{\partial a_m} \frac{\partial f_i}{\partial a_n}
    523523\end{eqnarray}
    524524
     
    528528a_m}$, we can write these in terms of the derivatives of $p_i$ only:
    529529\begin{eqnarray}
    530 \nabla F(a_m)   = -\sum_i \frac{f_i}{\sigma_i} \frac{\partial p_i}{\partial a_m} \\
    531 \nabla^2 F(a_m) = \sum_i \frac{1}{\sigma_i^2} \frac{\partial p_i}{\partial a_m} \frac{\partial p_i}{\partial a_n} \\
     530\nabla F(a_m)     & = & -\sum_i \frac{f_i}{\sigma_i} \frac{\partial p_i}{\partial a_m} \\
     531\nabla^2 F(a_m)   & = &  \sum_i \frac{1}{\sigma_i^2} \frac{\partial p_i}{\partial a_m} \frac{\partial p_i}{\partial a_n}
    532532\end{eqnarray}
    533533
    534534Writing these in matrix representation, and replacing $f_i$, we have:
    535535\begin{eqnarray}
    536 -g_m    = \sum_i \frac{(y_i - p_i)}{\sigma_i^2} \frac{\partial p_i}{\partial a_m} \\
    537 H_{m,n} = \sum_i \frac{1}{\sigma_i^2} \frac{\partial p_i}{\partial a_m} \frac{\partial p_i}{\partial a_n} \\
     536-g_m              & = & \sum_i \frac{(y_i - p_i)}{\sigma_i^2} \frac{\partial p_i}{\partial a_m} \\
     537H_{m,n}           & = & \sum_i \frac{1}{\sigma_i^2} \frac{\partial p_i}{\partial a_m} \frac{\partial p_i}{\partial a_n}
    538538\end{eqnarray}
    539539
     
    544544
    545545\begin{eqnarray}
    546 A_{m,n} & = & H_{m,n} if (j \ne k) \\
    547 A_{m,n} & = & H_{m,n}(1 + \lambda) if (j = k)
     546A_{m,n} & = & H_{m,n} \mbox{if} (j \ne k) \\
     547A_{m,n} & = & H_{m,n}(1 + \lambda) \mbox{if} (j = k)
    548548\end{eqnarray}
    549549%
     
    553553\end{equation}
    554554%
    555 where $alpha^\prime_n = \alpha_n + \delta_n$ represents our new
    556 attempt at a parameter guess. We use this parameter set to evaluate
    557 the function. 
    558 
    559 To evaluate the new parameter set, we compare the change in $\chi^2$
    560 with the change expected from the linear model (the Taylor expansion).
    561 If the linear model were correct, we would have expected a change (a
    562 reduction) in $\chi^2$ of $\Delta = \frac{\lambda}{2}\sum\delta_m^2 +
    563 \frac{1}{2}\sum\delta_m g_m$.  We use the 'gain ratio' $\rho =
    564 \frac{\chi^2_{\rm old} - \chi^2_{\rm new}}{\Delta}$ to judge the new
    565 step. If $\rho > 0$, we accept this new set of parameters and decrease
    566 $\lambda$ by a factor of 10, otherwise we keep the old set, and
    567 increase the value of $\lambda$ by a factor of 10.  We repeat this
    568 process until the value of the function changes by much less than the
    569 tolerance.  The resulting values of $a_m$ are the best-fit parameters
    570 for the system.
     555The new parameter guess is then found from this value with
     556$\alpha^\prime_n = \alpha_n + \delta_n$. We use this parameter set to
     557evaluate the function.
     558
     559To assess the quality of the new parameter set, we compare the change
     560in $\chi^2$ with the change expected from the linear model (the Taylor
     561expansion).  If the linear model were correct, we would have expected
     562a change (a reduction) in $\chi^2$ of $\Delta =
     563\frac{\lambda}{2}\sum\delta_m^2 + \frac{1}{2}\sum\delta_m g_m$.  We
     564use the 'gain ratio' $\rho = \frac{\chi^2_{\rm old} - \chi^2_{\rm
     565new}}{\Delta}$ to judge the new step. If $\rho > 0$, we accept this
     566new set of parameters and decrease $\lambda$ by a factor of 10,
     567otherwise we keep the old set, and increase the value of $\lambda$ by
     568a factor of 10.  We repeat this process until the value of the
     569function changes by much less than the tolerance.  The resulting
     570values of $a_m$ are the best-fit parameters for the system.
    571571
    572572The covariance matrix, $C_{i,j}$, which is the inverse of the matrix
    573 $H_{m,n}$ allows simple calculation of the confidence limits of the
     573$H_{m,n}$ provides an estimate of the confidence limits of the
    574574parameters.
    575575
Note: See TracChangeset for help on using the changeset viewer.