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
Distributions #1
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change adds the Beta distribution with the following methods: * Beta function. If x,y not specified, it will use alpha, beta. * Probability density function (density_function). * Beta mode. * Beta mean.
This change adds two distributions: Normal and Standard Normal. The following methods are available: * Probability density function (density_function). * Normal mode. * Normal variance. * Standard Normal mode. * Standard Normal variance.
This change includes the following methods for the Chi-squared distribution: * Probability density function. * Mode. * Variance.
This change adds the following methods for the F distribution: * Probability density function. * Mean. * Mode.
This change adds the following methods for the T-Student distribution: * Probability density function. * Mean. * Variance. * Mode.
This changes adds the following methods for the Uniform distribution: * Probability density function. * Mean. * Median. * Variance.
estebanz01
force-pushed
the
distributions
branch
from
August 9, 2017 23:26
156da14
to
e47d8cb
Compare
This change allows to do Distribution:: instead of Statistics::Distribution::
This change adds the following methods for the Weibull distribution: * Probability density function. * Mean. * Mode. * Variance.
* distribution: weibull: Add Cumulative function. This change allows to calculate probabilities based on the specified scale and shape at initialize time. * distribution: uniform: Add cumulative function. This change allows to calculate the probability using the uniform distribution for the specified value. * distribution: weibull: Fix variance formula. * distribution: beta: Add Cumulative distribution function. This is a big change. It is composed by two changes: 1. Implementation of the generalized incomplete beta function. 2. The introduction of the cumulative distribution function, which is the same as the generalized incomplete beta function for the beta distribution. Woot! * distributions: t-student: Add Cumulative function. This change allows to calculate probabilites based on the specified degrees of freedom at initialize time. * distribution: normal: Add cumulative function. This change allows to use the CDF for the normal distribution and the standard normal distribution as well. * distribution: f: Add Cumulative function. This change implements the cumulative distribution function for the F-Distribution. * distribution: chi-squared: Add cumulative function. This change also includes a couple of special functions: * The composite simpson's rule. * The lower incomplete gamma function.
* Factorial for integer values. * Combinations. * Permutations.
This is the first of multiple discrete distributions. It brings: * Binomial Cumulative distribution function. * Binomial Probability mass function. * Binomial mean. * Binomial variance. * Binomial mode.
Added poisson distribution with probability mass function and cumulative function. It also includes mean and variance.
Leaving the sampling from a distribution as a TO-DO. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The idea behind this PR is to implement a bunch of distributions in order to do some stats with them.
Roadmap for the PR
Support arrays for p.d.f (Probability density functions).not necessary.Current distributions (last updated 2017-09-11)
Discrete functions
Continuous functions