TECHNOLOGY

curve_fit absolute_sigma changes covariance scaling, not the fitted data

In this article
THE QUICK TAKE

The documented true setting uses sigma in an absolute sense for estimated parameter covariance. Under the default false setting, relative sigma magnitudes matter and covariance is rescaled using fitted residual variability and the relevant degrees of freedom. This changes interpretation of the reported uncertainty without turning the fit into a different source of observed data. The covariance estimate also relies on the fitting model and local approximation assumptions; it is not automatica.

Changing absolute_sigma in SciPy curve_fit changes how the reported parameter covariance is scaled. It is not a switch that adds new observations or makes an uncertain model physically correct. A scientific AI calibration report should preserve whether supplied uncertainties were treated as absolute measurements or only relative weights before interpreting the covariance output.

The scientific interface

The documented true setting uses sigma in an absolute sense for estimated parameter covariance. Under the default false setting, relative sigma magnitudes matter and covariance is rescaled using fitted residual variability and the relevant degrees of freedom. This changes interpretation of the reported uncertainty without turning the fit into a different source of observed data. The covariance estimate also relies on the fitting model and local approximation assumptions; it is not automatically a posterior distribution or a universal confidence guarantee.

Implementation details

Store sigma definition, units, absolute_sigma, model function and fitted-data identity with the result. Report parameter estimates and covariance assumptions separately. If uncertainties are only relative quality weights, do not describe them as independently measured absolute noise. Keep rank or conditioning concerns and fit diagnostics visible rather than presenting every finite covariance matrix as trustworthy. When comparing calibration methods, use a common declared evaluation task and do not rank them solely by whichever covariance appears smaller after a different scaling convention.

A constructed validation case

Prepare a controlled fit with known synthetic observation uncertainties. Compare the documented covariance conventions while holding the actual data, model and weighting definition fixed. Verify the intended scaling relationship under a well-posed fixture and keep parameter estimates separate from covariance interpretation. Add a poorly identified case as an explicit limitation rather than hiding it behind a smaller displayed interval. Acceptance requires transparent uncertainty assumptions and correct result labeling, not proof that a fitted scientific model or learned surrogate is calibrated on every future dataset.

Numerical and data limits

Covariance reporting is one numerical inference step. Scientific validity, predictive coverage and robustness to model mismatch need separate evidence. Preserve that boundary when using fitted parameters as reference labels or when comparing an AI model’s uncertainty estimates with a classical calibration routine.

Primary references

SciPy optimize.curve_fit API; SciPy optimization guide.

This is a proposed scientific-interface validation, not an executed Retrivium benchmark. Preserve the implementation version and unresolved outcomes; interface documentation does not establish the accuracy or performance of a scientific model.

Calibration compares reported confidence with observed correctness; A GPU inference benchmark you can trust.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles