[ 
https://issues.apache.org/jira/browse/MADLIB-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15159933#comment-15159933
 ] 

ASF GitHub Bot commented on MADLIB-895:
---------------------------------------

GitHub user fmcquillan99 opened a pull request:

    https://github.com/apache/incubator-madlib/pull/23

    fix hypothesis test docs and examples

    related to
    https://issues.apache.org/jira/browse/MADLIB-895
    
    Chi-squared independence test docs and examples had some mistakes and were 
not clear.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/fmcquillan99/incubator-madlib 
hypothesis-test-docs

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-madlib/pull/23.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #23
    
----
commit cd9919be23a6d144f1c27f826f881f359892b3a2
Author: Frank McQuillan <[email protected]>
Date:   2016-02-24T00:12:57Z

    fix hypothesis test docs and examples

----


> Incorrect examples in hypothesis tests documentation
> ----------------------------------------------------
>
>                 Key: MADLIB-895
>                 URL: https://issues.apache.org/jira/browse/MADLIB-895
>             Project: Apache MADlib
>          Issue Type: Bug
>          Components: Module: Inferential Statistics
>            Reporter: Rahul Iyer
>            Assignee: Frank McQuillan
>            Priority: Minor
>             Fix For: v1.9
>
>
> The SQL and results for the example for Chi-2 tests is wrong. The 
> documentation shows the result as 
> {code}
>      statistic     |       p_value        | df |       phi        | 
> contingency_coef
>  
> ------------------+----------------------+----+------------------+-------------------
>   138.289841626008 | 2.32528678709871e-25 |  9 | 2.93991753313346 | 
> 0.946730727519112
> {code}
> whereas it should be, 
> {code}
>     statistic     |       p_value        | df |       phi       | 
> contingency_coef
> ------------------+----------------------+----+-----------------+-------------------
>  320.125868955635 | 1.39464882809491e-63 |  9 | 4.4730154045931 | 
> 0.975909209031126
> (1 row)
> {code}
> The SQL also has a couple of errors and does not run as is.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to