Evaluation of Model Parameters

Ignoring the presence of outliers in the input data used for regression, two important open questions remain: how good is the resulting model, and how far might this estimate be from the true model because of errors in the input data?

This section focuses on the nonlinear case. The linear case is equivalent, replacing the Jacobian $\mathbf{J}$ with the design matrix $\mathbf{X}$, and was partly addressed in Section 1.2.

Let $\mathbf{y}=\left(y_1, \ldots, y_n \right)^{\top}$ be a vector of realizations of statistically independent random variables $y \in \mathbb{R}$, and let $\boldsymbol\beta=\left(\beta_1,\ldots,\beta_m\right)^\top \in \mathbb{R}^m$ be the model parameter vector. An intuitive measure of model fit is the root-mean-squared residual error (RMSE)

\begin{displaymath}
s = \sqrt{ \frac{ \sum^{n}_{i=1} \left( y_{i} - \hat{y}_{i} \right)^{2} } {n} }
\end{displaymath} (4.91)

where $\hat{y}_i = f(\mathbf{x}_i, \hat{\boldsymbol\beta} )$ is the value estimated by the model $f$, from which the parameters $\hat{\boldsymbol\beta}$ were obtained. This function is usually already familiar in the form of the residual $r_i = y_i - \hat{y}_i$. If the estimator is unbiased (as, for example, in least-squares regression), then $\E [ r_i ] = 0$. Therefore, under the model assumptions and for a large number of observations, $s$ provides an estimate of the standard deviation of the observation noise $\sigma$.

However, this is not a direct measure of the quality of the solution; it only indicates how well the estimated model fits the input data. Consider, for example, the limiting case of exactly determined systems, where the residual is always zero, regardless of the amount of noise affecting the individual observations.

The most appropriate measure for estimating the model is the parameter variance-covariance matrix (Parameter Variances and Covariances matrix).

Covariance forward propagation was introduced in Section 2.6. Briefly, there are three methods for performing this operation: the first is based on a linear approximation of the model and uses the Jacobian; the second is based on the more general Monte Carlo simulation technique; and a modern alternative that lies between the two is the Unscented Transform (Section 3.5), which empirically provides estimates accurate to third order in the case of Gaussian noise.

Evaluating the quality of the estimated parameters $\hat{\boldsymbol\beta}$ given an estimated noise covariance (Covariance Matrix Estimation) is precisely the reverse problem, since it requires computing the backward propagation of variance. Indeed, once this covariance matrix has been obtained, a confidence interval can be defined around $\hat{\boldsymbol\beta}$.

In the nonlinear case, the quality of the parameter estimates $\hat{\boldsymbol\beta}$ can be evaluated to a first approximation by inverting the linearized model, although techniques such as Monte Carlo simulation or the UT can also be used to obtain more rigorous estimates.

The covariance matrix associated with the solution $\hat{\boldsymbol\beta}$ can be estimated assuming that the model $f$ is differentiable in a neighborhood of the solution. Let

\begin{displaymath}f : \mathbb{R}^m \to \mathbb{R}^n . \end{displaymath}

Denoting the observation noise covariance matrix by $\boldsymbol\Sigma_{\varepsilon}$ and linearizing the model in a neighborhood of $\hat{\boldsymbol\beta}$, the parameter covariance matrix can be approximated as
\begin{displaymath}
\Sigma_{\boldsymbol\beta} = \left( \mathbf{J}^{\top} \Sigma_{\varepsilon}^{-1} \mathbf{J} \right)^{-1}
\end{displaymath} (4.92)

where $\mathbf{J}$ is the Jacobian of the residuals (or, equivalently, of the model, up to a sign) evaluated at $\hat{\boldsymbol\beta}$:
\begin{displaymath}
J_{i,j} = \frac{\partial r_i}{\partial \beta_j } (\hat{\bold...
...frac{\partial f_i}{\partial \beta_j } (\hat{\boldsymbol\beta})
\end{displaymath} (4.93)

Equation (4.92) is obtained by manipulating Equation (2.38), which computes the forward propagation of uncertainty.

Note that this (the inverse of the information matrix) is the Cramér-Rao lower bound on the covariance of an unbiased estimator of the parameter $\boldsymbol\beta$.

When the transformation $f$ is underdetermined, the rank of the Jacobian $d$, with $d<m$, is called the number of essential parameters (essential parameters). If the transformation $f$ is underdetermined, Equation (4.92) is not invertible, but it can be shown that an approximation of the covariance matrix restricted to observable directions can be obtained using the pseudoinverse:

\begin{displaymath}
\Sigma_{\boldsymbol\beta} = (\mathbf{J}^{\top} \Sigma_{\varepsilon}^{-1} \mathbf{J})^{+}
\end{displaymath}

Alternatively, a pivoted QR decomposition of the Jacobian can be performed to identify the linearly dependent columns (by analyzing the diagonal of matrix R) and remove them when inverting the matrix. In the very common case where $f$ is a scalar function and the observation noise is independent with constant variance, the asymptotic covariance matrix (Asymptotic Covariance Matrix) can be written more simply as
\begin{displaymath}
\Sigma_{\boldsymbol\beta} = ( \mathbf{J}^{\top}\mathbf{J})^{-1} \sigma^{2}
\end{displaymath} (4.94)

where $\sigma^2$ is the observation noise variance, under the assumption $\boldsymbol \Sigma_{\varepsilon} = \sigma^2 \mathbf{I}$, which holds for independent observations with equal variance. Since $\mathbf{J}$ depends on the model structure and the chosen linearization point, the matrix $( \mathbf{J}^{\top}\mathbf{J})^{-1}$ also depends only on the problem, not on the observations. Asymptotically, the estimator $\hat{\boldsymbol\beta}$ is distributed as

\begin{displaymath}\hat{\boldsymbol\beta} \overset{a}{\sim} \mathcal N \left( \boldsymbol\beta, \Sigma_{\boldsymbol\beta} \right). \end{displaymath}

Because it indicates how sensitive the outputs are to the parameters, the Jacobian matrix is also called the sensitivity matrix.

The observation noise can be estimated empirically by assuming that, for a large number of observations, the standard deviation of the noise $\sigma$ is approximated by the standard deviation of the residuals. This gives

\begin{displaymath}
\sigma^{2} \approx \frac{\sum_{i=1}^{n} r_i^2}{n-m}
\end{displaymath} (4.95)

and therefore
\begin{displaymath}
\sigma \approx \sqrt{\frac{\sum_{i=1}^{n} r_i^2}{n-m}},
\end{displaymath} (4.96)

a quantity known as the standard error of the regression.

The denominator $n-m$ represents the statistical degrees of freedom of the problem: when the number of unknowns equals the number of observations, there are no residual degrees of freedom, and the variance estimate is undefined.

The Eicker-White covariance estimator is slightly different; its derivation is left to the reader.

The parameter variance-covariance matrix represents the error ellipsoid.

A useful criterion for evaluating a problem is D-optimal design:

\begin{displaymath}
\det \left( \mathbf{J}^{\top}\mathbf{J} \right)^{-1}
\end{displaymath} (4.97)

which minimizes the determinant of the variance-covariance matrix or, equivalently, maximizes the determinant of the Fisher information matrix:
\begin{displaymath}
\det \mathbf{F}\left( \boldsymbol\beta \right)
\end{displaymath} (4.98)

Geometrically, this approach minimizes the volume of the error ellipsoid.

Another criterion is E-optimal design, which maximizes the smallest eigenvalue of the Fisher information matrix, or equivalently minimizes the largest eigenvalue of the variance-covariance matrix. Geometrically, this minimizes the maximum diameter of the ellipsoid.

Paolo medici
2026-10-19