ChiSqTestResult#

class pyspark.mllib.stat.ChiSqTestResult(java_model)[source]#

Contains test results for the chi-squared hypothesis test.

Methods

call(name, *a)

Call method of java_model

Attributes

degreesOfFreedom

Returns the degree(s) of freedom of the hypothesis test.

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.

Methods Documentation

call(name, *a)#

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.