relife.parametric.FittingResult

relife.parametric.FittingResult

class relife.parametric.FittingResult(opt: scipy.optimize._optimize.OptimizeResult, jac: numpy.ndarray, var: numpy.ndarray, n_samples: int)[source]

Bases: object

Fitting results of the parametric model.

Methods

asdict

converts FittingResult into a dictionary.

standard_error

Standard error estimation function.

Attributes

opt

Optimization result (see scipy.optimize.OptimizeResult doc).

jac

Jacobian of the negative log-likelihood with the lifetime data.

var

Covariance matrix (computed as the inverse of the Hessian matrix)

se

Standard error, square root of the diagonal of the covariance matrix.

n_samples

Number of observations (samples).

n_params

Number of parameters.

AIC

Akaike Information Criterion.

AICc

Akaike Information Criterion with a correction for small sample sizes.

BIC

Bayesian Information Criterion.

opt: scipy.optimize._optimize.OptimizeResult

Optimization result (see scipy.optimize.OptimizeResult doc).

jac: numpy.ndarray

Jacobian of the negative log-likelihood with the lifetime data.

var: numpy.ndarray

Covariance matrix (computed as the inverse of the Hessian matrix)

se: numpy.ndarray

Standard error, square root of the diagonal of the covariance matrix.

n_samples: int

Number of observations (samples).

n_params: int

Number of parameters.

AIC: float

Akaike Information Criterion.

AICc: float

Akaike Information Criterion with a correction for small sample sizes.

BIC: float

Bayesian Information Criterion.

standard_error(jac_f: numpy.ndarray) numpy.ndarray[source]

Standard error estimation function.

Parameters

jac_f (1D array) – The Jacobian of a function f with respect to params.

Returns

Standard error for f(params).

Return type

1D array

References

1

Meeker, W. Q., Escobar, L. A., & Pascual, F. G. (2022). Statistical methods for reliability data. John Wiley & Sons.

asdict() dict[source]

converts FittingResult into a dictionary.

Returns

Returns the fitting result as a dictionary.

Return type

dict