statsmodels.stats.gof.ChisquareResult#

class statsmodels.stats.gof.ChisquareResult(chisq, pvalue, df, distr)[source]#

Result of chisquare when return_basic is False.

Parameters:
chisqfloat

The chisquare test statistic.

pvaluefloat

The p-value based on the chisquare distribution if value is zero, or on the noncentral chisquare distribution otherwise.

dfint

Degrees of freedom of the (potentially noncentral) chisquare distribution used to compute pvalue, equal to n_bins - 1 - ddof.

distr{“chi2”, “ncx2”}

The name of the distribution used to compute pvalue: "chi2" when value is 0, otherwise "ncx2" (the noncentral chisquare distribution).

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Methods

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Properties

chisq

Alias for field number 0

df

Alias for field number 2

distr

Alias for field number 3

pvalue

Alias for field number 1