Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCTO-2622: chi-square test for check of variant split #227

Closed
wants to merge 3 commits into from

Conversation

daryadedik
Copy link
Contributor

@daryadedik daryadedik commented Jul 4, 2018

This pull request is not ready for review yet: according use of the test should be implemented.

Chi-square test is checked and very slightly adapted compared to previous implementation.

:type x: pd.Series or array-like
:param y: sample of the control group
:type x: pd.Series or array-like
:param min_counts: minimum number of observed and expected frequencies (should be at least 5)
Copy link
Contributor

Choose a reason for hiding this comment

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

where does the number 5 come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

"This test is invalid when the observed or expected frequencies in each category are too small. A typical rule is that all of the observed and expected frequencies should be at least 5." - https://docs.scipy.org/doc/scipy-0.16.1/reference/generated/scipy.stats.chisquare.html

@coveralls
Copy link

coveralls commented Jul 4, 2018

Coverage Status

Coverage increased (+0.04%) to 92.5% when pulling 6bd6830 on chi-square-test into 852ce9a on master.

@daryadedik daryadedik closed this Jul 5, 2018
@daryadedik daryadedik deleted the chi-square-test branch July 6, 2018 12:35
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.

None yet

3 participants