You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd really like to see (discrete) Poisson and Binomial distributions due their ubiquity in probability. The cumulative distribution of Poisson can be expressed in terms of the (continuous) Gamma distribution. Would imply adding fast factorial, log and exp(-x) calls. Poisson distribution is easy with lambda <= 20 for indexing a factorial that can be stored as a long. Poisson time between events is the Exponential Distribution that you already have.
For expansion of IDistribution, would be easy and useful to have returns of the first four moments - mean, variance, skewness and excess kurtosis of the respective distribution. I'd like to see 90/95/99 confidence intervals but that gets debatable on which exact method to use for each distribution. No perfect solution, even exact binomial calculation is overly conservative, i.e., 95% CI is more like 99%. At least moments and CI can be pre-computed on distribution construction and permanently fixed to the existing Gaussian since it's the normalized N( 0 , 1 ) of mean of 0 and variance of 1 with higher moments of 0.
Could have helper function for each distribution that take in an array or list of input and return the requested moment, assuming that distribution was the only source.
The ubiquitous (continuous) Student's t-distribution is computationally a nightmare but can take easy way out by limiting for confidence intervals and those are easily pre-computed for each degree of freedom.
I'd really like to see (discrete) Poisson and Binomial distributions due their ubiquity in probability. The cumulative distribution of Poisson can be expressed in terms of the (continuous) Gamma distribution. Would imply adding fast factorial, log and exp(-x) calls. Poisson distribution is easy with lambda <= 20 for indexing a factorial that can be stored as a long. Poisson time between events is the Exponential Distribution that you already have.
For expansion of IDistribution, would be easy and useful to have returns of the first four moments - mean, variance, skewness and excess kurtosis of the respective distribution. I'd like to see 90/95/99 confidence intervals but that gets debatable on which exact method to use for each distribution. No perfect solution, even exact binomial calculation is overly conservative, i.e., 95% CI is more like 99%. At least moments and CI can be pre-computed on distribution construction and permanently fixed to the existing Gaussian since it's the normalized N( 0 , 1 ) of mean of 0 and variance of 1 with higher moments of 0.
Could have helper function for each distribution that take in an array or list of input and return the requested moment, assuming that distribution was the only source.
The ubiquitous (continuous) Student's t-distribution is computationally a nightmare but can take easy way out by limiting for confidence intervals and those are easily pre-computed for each degree of freedom.