When the objective function is the sum of squared errors (SSE) for homogeneous data, defined as
\(\text{SSE} = \sum_{i = 1}^{n} \left(\boldsymbol{y}_{i} - \boldsymbol{f}(\boldsymbol{x}_{i};
\boldsymbol{\theta})\right)^\text{T} \left(\boldsymbol{y}_{i} - \boldsymbol{f}(\boldsymbol{x}_{i};
\boldsymbol{\theta})\right)\), the covariance matrix is:
\[\boldsymbol{V}_{\boldsymbol{\theta}} = 2 \sigma^2 \left(\frac{\partial^2 \text{SSE}}
{\partial \boldsymbol{\theta}^2}\right)^{-1}_{\boldsymbol{\theta}
= \hat{\boldsymbol{\theta}}}\]
Similarly, when the objective function is the weighted SSE (WSSE) for heterogeneous data, defined as
\(\text{WSSE} = \frac{1}{2} \sum_{i = 1}^{n} \left(\boldsymbol{y}_{i} -
\boldsymbol{f}(\boldsymbol{x}_{i};\boldsymbol{\theta})\right)^\text{T} \boldsymbol{\Sigma}_{\boldsymbol{y}}^{-1}
\left(\boldsymbol{y}_{i} - \boldsymbol{f}(\boldsymbol{x}_{i};\boldsymbol{\theta})\right)\),
the covariance matrix is:
\[\boldsymbol{V}_{\boldsymbol{\theta}} = \left(\frac{\partial^2 \text{WSSE}}
{\partial \boldsymbol{\theta}^2}\right)^{-1}_{\boldsymbol{\theta}
= \hat{\boldsymbol{\theta}}}\]
Where \(\boldsymbol{V}_{\boldsymbol{\theta}}\) is the covariance matrix of the estimated
parameters \(\hat{\boldsymbol{\theta}} \in \mathbb{R}^p\), \(\boldsymbol{y}_{i} \in \mathbb{R}^m\) are
observations of the measured variables, \(\boldsymbol{f}\) is the model function,
\(\boldsymbol{x}_{i} \in \mathbb{R}^{q}\) are the input variables, \(n\) is the number of experiments,
\(\boldsymbol{\Sigma}_{\boldsymbol{y}}\) is the measurement error covariance matrix, and \(\sigma^2\)
is the variance of the measurement error. When the standard deviation of the measurement error is not supplied
by the user, parmest approximates \(\sigma^2\) as:
\(\hat{\sigma}^2 = \frac{1}{n-p} \sum_{i=1}^{n} \boldsymbol{\varepsilon}_{i}(\boldsymbol{\theta})^{\text{T}}
\boldsymbol{\varepsilon}_{i}(\boldsymbol{\theta})\), and \(\boldsymbol{\varepsilon}_{i} \in \mathbb{R}^m\)
are the residuals between the data and model for experiment \(i\).
In parmest, this method computes the inverse of the Hessian by scaling the
objective function (SSE or WSSE) with a constant probability factor, \(\frac{1}{n}\).