{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _stats_py / QuantileTestResult

class

scipy.stats._stats_py:QuantileTestResult

source: /scipy/stats/_stats_py.py :8922

Signature

class   QuantileTestResult ( statistic : float statistic_type : int pvalue : float _alternative : list[str] _x : np.ndarray _p : float )  →  None

Members

Summary

Result of scipy.stats.quantile_test.

Attributes

statistic: float

The statistic used to calculate the p-value; either T1, the number of observations less than or equal to the hypothesized quantile, or T2, the number of observations strictly less than the hypothesized quantile. Two test statistics are required to handle the possibility the data was generated from a discrete or mixed distribution.

statistic_type : int

1 or 2 depending on which of T1 or T2 was used to calculate the p-value respectively. T1 corresponds to the "greater" alternative hypothesis and T2 to the "less". For the "two-sided" case, the statistic type that leads to smallest p-value is used. For significant tests, statistic_type = 1 means there is evidence that the population quantile is significantly greater than the hypothesized value and statistic_type = 2 means there is evidence that it is significantly less than the hypothesized value.

pvalue : float

The p-value of the hypothesis test.

Aliases

  • scipy.stats._stats_py.QuantileTestResult