You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jieyuan Chen (JIRA)" <ji...@apache.org> on 2016/05/31 03:03:12 UTC
[jira] [Created] (SPARK-15656) ChiSqTest for goodness of fit
doesn't test against a wrong uniform distribution by default
Jieyuan Chen created SPARK-15656:
------------------------------------
Summary: ChiSqTest for goodness of fit doesn't test against a wrong uniform distribution by default
Key: SPARK-15656
URL: https://issues.apache.org/jira/browse/SPARK-15656
Project: Spark
Issue Type: Bug
Components: MLlib
Affects Versions: 1.6.1, 1.5.1
Reporter: Jieyuan Chen
I've been running a ChiSqTest to test whether my samples fit a uniform distribution.
The documentation says that If a second vector to test against is not supplied as a parameter, the test runs against a uniform distribution. But when I pass samples drawn from a normal distribution, the p-value calculated is 1.0, which is wrong.
The problem is that in ChiSqTest.scala, the `chiSquared` function will generate a wrong uniform distribution if the expected vector is not supplied.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org