Skip to content

DOC: Fix Jarque-Bera documentation - #3081

Merged
josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:jarque-bera-null
Jul 8, 2016
Merged

josef-pkt merged 1 commit into
statsmodels:masterfrom
bashtage:jarque-bera-null

Conversation

@bashtage

Copy link
Copy Markdown
Member

Improve Jarque-Bera documentation

closes #1579

[skip ci]

Comment thread statsmodels/stats/stattools.py Outdated
Returns
-------
JB, JBpv, skew, kurtosis
out : tuple (JB, JBpv, skew, kurtosis)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python always returns a tuple when there are several return values. So this should be standard format with JB, JBpv, skew, kurtosis separately documented as returns

@josef-pkt

Copy link
Copy Markdown
Member

should be safe to backport

@bashtage
bashtage force-pushed the jarque-bera-null branch from 34908ef to 16e7349 Compare July 4, 2016 13:30
Comment thread statsmodels/stats/stattools.py Outdated
JBpv is the Chi^2 two-tail probability value
The Jarque-Bera test statistic tests the null that the data is normal
against an alternative that it it is not. It is based on two moments of
the data, the skewness and the kurtotis, and has an asymptotic

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo kurtosis (s instead of second t)

@josef-pkt

Copy link
Copy Markdown
Member

two minor comments, otherwise looks good to merge.

Improve Jarque-Bera documentation

closes statsmodels#1579

[skip ci]
@bashtage
bashtage force-pushed the jarque-bera-null branch from 16e7349 to 367dabc Compare July 8, 2016 21:55
@bashtage

bashtage commented Jul 8, 2016

Copy link
Copy Markdown
Member Author

Amended commit to keep log small.

@josef-pkt

Copy link
Copy Markdown
Member

Thanks, and thanks for the comment which triggered a github notification.

merging

@josef-pkt
josef-pkt merged commit ba01d87 into statsmodels:master Jul 8, 2016
@bashtage
bashtage deleted the jarque-bera-null branch July 20, 2016 11:50
josef-pkt added a commit to josef-pkt/statsmodels that referenced this pull request Aug 19, 2016
@TomAugspurger TomAugspurger mentioned this pull request Feb 2, 2017
2 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Jarque-Bera does not include null in the docstring

2 participants