Minimization and uncertainty¶
Independent parameters and Jacobian¶
For the weighted residual vector \(\mathbf r\) defined in Rietveld method, let \(J_{ij}=\partial r_i/\partial p_j\). The Jacobian columns correspond to independent free parameters; fixed, symmetry-related and constrained dependent values are not extra columns.
The scientific models and their derivatives share their declared parameter conventions. A parameter that is only stored has no nonzero model derivative merely because a numerical value is present in the file.
Levenberg–Marquardt step¶
A scaled damped least-squares step has the form
\(D\) supplies the diagonal scaling/damping convention; \(\lambda\) controls damping. The implemented strategy controls the acceptance and damping search, while the scientific objective remains the weighted residual sum.
| Descent selector | Meaning |
|---|---|
auto |
The default: fast_descent_and_ladder for a single or joint fit, fast_descent for each point of a sequential fit |
ladder |
Damping-ladder LM search |
fast_descent |
Gain-ratio damping within each step |
fast_descent_and_ladder |
Fast descent and the ladder run briefly from the start; the lower continues |
The project records its descent, positive relative objective tolerance and positive iteration budget. A budget stop is not the same as convergence. Some strategies have restrictions when bounds are declared; inspect the reported diagnostic rather than assuming every combination is supported.
Covariance and standard uncertainties¶
At the final state, the current covariance convention is the scaled inverse curvature
The Jacobian here is already weighted. The implementation computes a column-scaled pseudoinverse and transforms back to physical parameter units, using the undamped final curvature. The + denotes that numerical pseudoinverse; it is not an inverse of the damped LM step matrix.
The reduced-χ² scaling is an explicit convention. Do not silently substitute an unscaled covariance from another program. A zero-sensitivity direction or numerical degeneracy requires inspecting the associated diagnostics; a zero reported uncertainty does not make an unmeasured parameter exact.
Constraints and bounds¶
A constraint relates quantities and reduces independent freedom. Physical admissibility limits, editable optimizer bounds and symmetry restrictions serve different purposes. The application's displayed minimum and maximum are model-admissibility information; they are not a promise of controls for setting optimizer search bounds.
Use Parameters for practical interpretation. The fit's observation set and parameter count also determine the reliability factors.
Global minimization (planned)¶
Least squares improves a fit from its starting values, so a poor start can leave it in a local minimum. A global search, such as simulated annealing or several fits from different starting points, is planned to find a better start before the least-squares fit.