ScatterFit

class ell1fit.spin_stats.ScatterFit(coeffs: ndarray, cov: ndarray, scatter: float, chi2: float, chi2_formal: float, dof: int)[source]

Bases: object

A polynomial fit with intrinsic scatter; see fit_polynomial_with_scatter().

Attributes Summary

chi2

chi-squared with the scatter included (= dof unless scatter is 0)

chi2_formal

chi-squared with the measurement errors alone

coeffs

ascending order: y = c0 + c1 x + c2 x^2 ...

cov

covariance of coeffs, with the scatter included

dof

errors

scatter

intrinsic scatter added in quadrature, in units of y

Methods Summary

__call__(x)

Call self as a function.

Attributes Documentation

chi2: float = <dataclasses._MISSING_TYPE object>

chi-squared with the scatter included (= dof unless scatter is 0)

chi2_formal: float = <dataclasses._MISSING_TYPE object>

chi-squared with the measurement errors alone

coeffs: ndarray = <dataclasses._MISSING_TYPE object>

ascending order: y = c0 + c1 x + c2 x^2 …

cov: ndarray = <dataclasses._MISSING_TYPE object>

covariance of coeffs, with the scatter included

dof: int = <dataclasses._MISSING_TYPE object>
errors
scatter: float = <dataclasses._MISSING_TYPE object>

intrinsic scatter added in quadrature, in units of y

Methods Documentation

__call__(x)[source]

Call self as a function.