The default behavior for adding and solving with noisemodels has changed from Pastas 1.5. Find more information here


sse(obs=None, sim=None, res=None, missing='drop')[source]#

Compute the Sum of the Squared Errors (SSE).

  • sim (pandas.Series, optional) – Series with the simulated values.

  • obs (pandas.Series, optional) – The Series with the observed values.

  • res (pandas.Series, optional) – The Series with the residual values. If time series for the residuals are provided, the sim and obs arguments are ignored. Note that the residuals must be computed as obs - sim here.

  • missing (str, optional) – string with the rule to deal with missing values. Only “drop” is supported now.

Return type



The Sum of the Squared Errors (SSE) is calculated as follows:

\[\text{SSE} = \sum(\epsilon^2)\]

where \(\epsilon\) are the errors.