Changeset 4531 for trunk/doc/pslib/psLibADD.tex
- Timestamp:
- Jul 11, 2005, 9:36:18 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/doc/pslib/psLibADD.tex (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/pslib/psLibADD.tex
r4530 r4531 1 %%% $Id: psLibADD.tex,v 1.8 3 2005-07-11 19:17:38 eugene Exp $1 %%% $Id: psLibADD.tex,v 1.84 2005-07-11 19:36:18 eugene Exp $ 2 2 \documentclass[panstarrs]{panstarrs} 3 3 … … 455 455 456 456 Non-linear minimization techniques use an iterative approach to find a 457 minimization sincean analytical inversion is impractical or not457 minimization when an analytical inversion is impractical or not 458 458 possible. These techniques use a starting guess for the parameters of 459 459 interest, and make a sequence of new guess parameters based on the … … 463 463 must be modified and another attempt is made. Convergence may be 464 464 determined based on the absolute amount of change in the function 465 value, or by comparison with the expectation for a linear system. 465 value, or by comparison with the expectation for a linear system. 466 466 467 467 The two common techniques used to construct a guess parameter set are 468 the 'steepest descent method' and the ' gauss newton method'. In the468 the 'steepest descent method' and the 'Gauss-Newton method'. In the 469 469 first case, the guess is selected some distance along the local 470 470 gradient. In the second case, a local Taylor expansion of the 471 471 function is used to construct a linear model for the function, and the 472 new guess is chosen to minimize that model. The methods discussed473 below make use of combinations of these two methods. Aside from the474 differences in their guess steps, the two methods differ in using 475 first derivatives of the function supplied by the user, or by locally476 calculating the first derivatives. 472 new guess is chosen to minimize that linear model. The methods 473 discussed below make use of combinations of these two methods. Aside 474 from the differences in their guess steps, the two methods differ in 475 using first derivatives of the function supplied by the user, or by 476 locally calculating the first derivatives. 477 477 478 478 Mathematically, we would like to choose the parameter set $a_m$ to … … 485 485 $\delta_m = -g_m$. The Gauss-Newton method uses a Taylor expansion of 486 486 the function to solve for the step: $(\nabla^2 F) \bar{\delta} = 487 -\nabla F$. Defining $H_{m,n}$ as a component of the second488 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 488 component of the second derivatives, we can write the Gauss-Newton 489 step as $\delta_m = - H_{m,n}^{-1} g_n$. 490 490 491 491 \subsubsection{Levenberg-Marquardt Method} … … 495 495 interest, vary the parameters by a particular choice based on the 496 496 gradient, evaluate the function again, and adjust the parameters and 497 the parameter varient based on the results. The LMM only works ifthe498 second derivative of the function can be considered negligible, as in499 the case ofminimizing $\chi^2$.500 501 Consider the chi-square function , given some ordinates, $x_i$, we497 the parameter varient based on the results. The LMM requires the 498 second derivative of the function to be negligible, as in the case of 499 minimizing $\chi^2$. 500 501 Consider the chi-square function. Given some ordinates, $x_i$, we 502 502 would like to find the parameters, $a_m$, of the function which 503 503 minimize $\chi^2$ for some measurements, $y_i$ and associated errors, 504 504 $\sigma_i$: 505 505 \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 507 507 \end{eqnarray} 508 508 … … 511 511 p_i (a_m) & = & p(x_i;a_m) \\ 512 512 f_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 514 514 \end{eqnarray} 515 515 516 516 We 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 needed517 avoid the various extra factors of 2. We can now write out the needed 518 518 derivatives in terms of $f_i$: 519 519 \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} \\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} 523 523 \end{eqnarray} 524 524 … … 528 528 a_m}$, we can write these in terms of the derivatives of $p_i$ only: 529 529 \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} 532 532 \end{eqnarray} 533 533 534 534 Writing these in matrix representation, and replacing $f_i$, we have: 535 535 \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} \\ 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} 538 538 \end{eqnarray} 539 539 … … 544 544 545 545 \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)546 A_{m,n} & = & H_{m,n} \mbox{if} (j \ne k) \\ 547 A_{m,n} & = & H_{m,n}(1 + \lambda) \mbox{if} (j = k) 548 548 \end{eqnarray} 549 549 % … … 553 553 \end{equation} 554 554 % 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 thanthe569 tolerance. The resulting values of $a_m$ are the best-fit parameters 570 for the system.555 The new parameter guess is then found from this value with 556 $\alpha^\prime_n = \alpha_n + \delta_n$. We use this parameter set to 557 evaluate the function. 558 559 To assess the quality of the new parameter set, we compare the change 560 in $\chi^2$ with the change expected from the linear model (the Taylor 561 expansion). If the linear model were correct, we would have expected 562 a 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 564 use the 'gain ratio' $\rho = \frac{\chi^2_{\rm old} - \chi^2_{\rm 565 new}}{\Delta}$ to judge the new step. If $\rho > 0$, we accept this 566 new set of parameters and decrease $\lambda$ by a factor of 10, 567 otherwise we keep the old set, and increase the value of $\lambda$ by 568 a factor of 10. We repeat this process until the value of the 569 function changes by much less than the tolerance. The resulting 570 values of $a_m$ are the best-fit parameters for the system. 571 571 572 572 The covariance matrix, $C_{i,j}$, which is the inverse of the matrix 573 $H_{m,n}$ allows simple calculationof the confidence limits of the573 $H_{m,n}$ provides an estimate of the confidence limits of the 574 574 parameters. 575 575
Note:
See TracChangeset
for help on using the changeset viewer.
