ChiSqTestResult¶

class
pyspark.mllib.stat.
ChiSqTestResult
(java_model: py4j.java_gateway.JavaObject)[source]¶ Contains test results for the chisquared hypothesis test.
Methods
call
(name, *a)Call method of java_model
Attributes
Returns the degree(s) of freedom of the hypothesis test.
Name of the test method
Null hypothesis of the test.
The probability of obtaining a test statistic result at least as extreme as the one that was actually observed, assuming that the null hypothesis is true.
Test statistic.
Methods Documentation

call
(name: str, *a: Any) → Any¶ Call method of java_model
Attributes Documentation

degreesOfFreedom
¶ Returns the degree(s) of freedom of the hypothesis test. Return type should be Number(e.g. Int, Double) or tuples of Numbers.

method
¶ Name of the test method

nullHypothesis
¶ Null hypothesis of the test.

pValue
¶ The probability of obtaining a test statistic result at least as extreme as the one that was actually observed, assuming that the null hypothesis is true.

statistic
¶ Test statistic.
