-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
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
Added a binomial distribution formula calculator algorithm #2197
Conversation
Hey @XxSamixX123, TravisCI finished with status TravisBuddy Request Identifier: 077b4d80-c4fe-11ea-af19-3b271fec1f42 |
Codespell says: ./maths/binomial_distribution.py:14: succes ==> success |
Hey @XxSamixX123, TravisCI finished with status TravisBuddy Request Identifier: 7271d190-c50d-11ea-af19-3b271fec1f42 |
maths/binomial_distribution.py
Outdated
print ("Probability of 2 successes out of 4 trails") | ||
print ("with probability of 0.75 is : ") | ||
print (str(binomial_distribution(2, 4, 0.75))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can leave these three lines in place if you want.
Co-authored-by: Christian Clauss <cclauss@me.com>
Hey @XxSamixX123, TravisCI finished with status TravisBuddy Request Identifier: f844ef30-c50f-11ea-af19-3b271fec1f42 |
Travis CI says... $ flake8 --ignore=E203,W503 --max-complexity=25 --max-line-length=88 --statistics --count .
|
Travis tests have failedHey @XxSamixX123, TravisBuddy Request Identifier: a984f2c0-c51c-11ea-af19-3b271fec1f42 |
Co-authored-by: Christian Clauss <cclauss@me.com>
Travis tests have failedHey @XxSamixX123, TravisBuddy Request Identifier: 2e38e4c0-c51f-11ea-af19-3b271fec1f42 |
I think we are close to landing this one.... Just a few todos.
|
Hey @XxSamixX123, TravisCI finished with status TravisBuddy Request Identifier: 480ea490-c531-11ea-af19-3b271fec1f42 |
I'm quite sure that was fixed earlier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work. Thanks for your persistence. You did fix all issues. My commit was just formatting.
…thms#2197) * Add files via upload * Update binomial_distribution.py * Update maths/binomial_distribution.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update binomial_distribution.py * Update maths/binomial_distribution.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update binomial_distribution.py * Update binomial_distribution.py * Update binomial_distribution.py * Update binomial_distribution.py * Update binomial_distribution.py Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Added a binomial distribution algorithm
(also added in the same file a factorial function that is being used
by the binomial distribution function)
Checklist:
Fixes: #{$ISSUE_NO}
.