The Wayback Machine - https://web.archive.org/web/20200609213441/https://github.com/TheAlgorithms/C-Plus-Plus/issues/751
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

[FEATURE] Addition of statistical and probability distribution functions #751

Open
deadshotsb opened this issue May 13, 2020 · 3 comments
Open
Labels

Comments

@deadshotsb
Copy link
Member

@deadshotsb deadshotsb commented May 13, 2020

Addition of statistical and probability distribution functions

Detailed Description

I saw the Probability file in the repository and only basic operations (addition rule) to calculate probability was given. Addition to this function, we can add statistical distribution functions like Gaussian Normalization, Binomial Distribution, etc classes and provide some addition functions to incorporate the changes in basic statistical features (mean , variance, standard deviation) for each distribution.

Context

The observation of distribution functions are very much helpful in case of statistical calculations which is more advanced in case of Python but is lagging in C++.

Possible Implementation

Using basic class concept with inheritance we can easily add different distribution features and effectively calculate the statistical features using them.

@deadshotsb deadshotsb changed the title [FEATURE] [FEATURE] Addition of statistical and probability distribution functions May 13, 2020
@sagnik-chatterjee
Copy link

@sagnik-chatterjee sagnik-chatterjee commented May 16, 2020

Although the normal distribution is present under random library as std::normal_distribution , should i just add an implementation from the ground up or implement that directly?

@deadshotsb
Copy link
Member Author

@deadshotsb deadshotsb commented May 16, 2020

In case of std::normal_distribution, it is effective in calculating the standard deviation and mean of the distribution. But if we can extend the present scenario to calculate the std deviation and mean of not one but N of those distributions in an optimised way. I checked in the probability file of this repository but there is no reference of distribution functions, so this has to be done from ground up I suppose. This can be a great addition while working with some large files (with rapid additions) without starting from beginning.

@cclauss
Copy link
Member

@cclauss cclauss commented May 16, 2020

Also feel free to create new versions of functions that are already in the standard library if you believe that your reimplementation can educate others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.