Note

You are not reading the most up to date version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

compute_chisq

gammapy.time.compute_chisq(flux)[source]

Calculate the chi-square test for LightCurve.

Chisquare test is a variability estimator. It computes deviations from the expected value here mean value

Parameters
fluxQuantity

the measured fluxes

Returns
ChiSq, P-valuetuple of float or ndarray

Tuple of Chi-square and P-value