๐ŸŽฒ Probability Distributions

Continuous & discrete distributions, inverse CDFs, random generators, combinatorics. All commands accept a value to compute CDF/PMF, or x to return a function.

โœ“ 27 Implemented โณ 15 Coming Soon
Continuous Distributions โ€” Implemented
Normal( <mu>, <sigma>, <v> )
Aliases: normal, NormalDist
โœ“ Done
Normal (Gaussian) distribution. With 3 args returns CDF P(Xโ‰คv). Optional 4th boolean: false returns PDF.
Examples
Normal(0, 1, 1.96)        โ†’ 0.975002  (CDF)
Normal(2, 0.5, 1)         โ†’ 0.022750  (CDF)
Normal(0, 1, 0, false)    โ†’ 0.398942  (PDF at 0)
InversNormal( <mu>, <sigma>, <p> )
Aliases: inversenormal, InverseNormal
โœ“ Done
Inverse normal CDF โ€” returns x such that P(Xโ‰คx) = p.
Examples
InversNormal(0, 1, 0.975)   โ†’ 1.959964 (z-score)
InversNormal(100, 15, 0.9)  โ†’ 119.224  (IQ example)
TVerteilung( <df>, <v> )
Aliases: tdist, TDist
โœ“ Done
Student's t-distribution CDF with df degrees of freedom.
Examples
TVerteilung(10, 0)      โ†’ 0.5
TVerteilung(30, 1.96)   โ†’ 0.9702
InversTVerteilung( <df>, <p> )
Aliases: inversetdist
โœ“ Done
Inverse t-distribution. Returns t-critical value for given degrees of freedom and probability.
Examples
InversTVerteilung(10, 0.975)   โ†’ 2.2281  (95% CI)
ChiQuadratVerteilung( <df>, <v> )
Aliases: chisqdist
โœ“ Done
Chi-squared distribution CDF.
Examples
ChiQuadratVerteilung(4, 3)    โ†’ 0.4422
InversChiQuadrat(4, 0.95)     โ†’ 9.4877
FVerteilung( <df1>, <df2>, <v> )
Aliases: fdist, FDist
โœ“ Done
F-distribution CDF with numerator df1 and denominator df2 degrees of freedom.
Example
FVerteilung(4, 20, 2.5)   โ†’ 0.9185
Exponentialverteilung( <lambda>, <v> )
Aliases: expdist, ExponentialDist
โœ“ Done
Exponential distribution CDF: P(Xโ‰คv) = 1 - e^(-ฮปv).
Example
Exponentialverteilung(2, 1)   โ†’ 0.8647
Gammaverteilung( <alpha>, <beta>, <v> )
โœ“ Done
Gamma distribution CDF. Shape parameter alpha, scale parameter beta.
Example
Gammaverteilung(2, 2, 4)   โ†’ 0.5940
Weibull( <k>, <lambda>, <v> )
โœ“ Done
Weibull distribution CDF. Shape parameter k, scale parameter lambda.
Example
Weibull(0.5, 1, 1)   โ†’ 0.6321
Cauchy( <zentrum>, <breite>, <v> )
โœ“ Done
Cauchy distribution CDF. Heavy-tailed distribution with location and scale parameters.
Example
Cauchy(1, 2, 3)   โ†’ 0.75
LogNormal( <mu>, <sigma>, <v> )
โœ“ Done
Log-normal distribution CDF. x is log-normally distributed when ln(x) is normally distributed.
Example
LogNormal(0, 1, 2)   โ†’ 0.7558
Gleichverteilung( <a>, <b>, <v> )
Aliases: uniform, UniformDist
โœ“ Done
Uniform distribution CDF on interval [a, b].
Example
Gleichverteilung(0, 10, 4)   โ†’ 0.4
Discrete Distributions โ€” Implemented
Binomial( <n>, <p>, <v>, <kumulativ?> )
Aliases: binomial, BinomialDist
โœ“ Done
Binomial distribution. false = P(X=v), true = P(Xโ‰คv). Default: PMF.
Examples
Binomial(10, 0.5, 5, false)   โ†’ 0.2461  P(X=5)
Binomial(10, 0.5, 5, true)    โ†’ 0.6230  P(Xโ‰ค5)
Poisson( <lambda>, <v>, <kumulativ?> )
Aliases: poisson, PoissonDist
โœ“ Done
Poisson distribution with mean lambda.
Examples
Poisson(3, 2, false)   โ†’ 0.2240  P(X=2)
Poisson(3, 2, true)    โ†’ 0.4232  P(Xโ‰ค2)
Hypergeometrisch( <N>, <K>, <n>, <v>, <kumulativ?> )
Aliases: hypergeometric
โœ“ Done
Hypergeometric distribution. Drawing without replacement: N total, K successes, n drawn.
Examples
Hypergeometrisch(10, 2, 2, 0, false)   โ†’ 0.6222
Hypergeometrisch(10, 2, 2, 1, true)    โ†’ 0.9778
Combinatorics โ€” Implemented
BinomialKoeffizient( <n>, <r> )
Aliases: nCr, binomcoeff, Binomialkoeffizient
โœ“ Done
"n choose r" โ€” number of ways to choose r items from n. = n! / (r!ยท(nโˆ’r)!)
Examples
BinomialKoeffizient(10, 3)   โ†’ 120
BinomialKoeffizient(52, 5)   โ†’ 2598960 (poker hands)
Random Generators โ€” Implemented
Zufallszahl( <min>, <max> )
Aliases: random, Random, RandomBetween
โœ“ Done
Random integer uniformly distributed between min and max (inclusive).
Example
Zufallszahl(1, 6)    โ†’ random die roll
Zufallszahl(0, 100)  โ†’ random 0 to 100
ZufallszahlNormalverteilt( <mu>, <sigma> )
Aliases: randomnormal, RandomNormal
โœ“ Done
Random number from a normal distribution with given mean and standard deviation.
Example
ZufallszahlNormalverteilt(0, 1)    โ†’ e.g. -0.432
ZufallszahlNormalverteilt(170, 8)  โ†’ random height (cm)
ZufallszahlBinomialverteilt( <n>, <p> ) / ZufallszahlPoissonverteilt( <lambda> )
โœ“ Done
Random binomial or Poisson variate.
Example
ZufallszahlBinomialverteilt(10, 0.3)   โ†’ e.g. 3
ZufallszahlPoissonverteilt(5)          โ†’ e.g. 4
ZufaelligesElement( <Liste> ) / Stichprobe( <Liste>, <n> ) / Mischen( <Liste> )
โœ“ Done
Pick from list: random element, random sample of n, or shuffle entire list.
Example
ZufaelligesElement({1,2,3,4,5})      โ†’ e.g. 3
Stichprobe({1,2,3,4,5}, 3)           โ†’ e.g. {2, 5, 1}
Mischen({1,2,3,4,5})                 โ†’ e.g. {3, 1, 5, 2, 4}
Coming Soon
Dreiecksverteilung( <a>, <b>, <modus>, <v> )
โณ Soon
Triangle distribution on [a, b] with mode (peak) at modus. Useful when you know min, max, and most likely value.
Planned
Dreiecksverteilung(0, 5, 2, 2)   โ†’ 0.4
Erlang( <n>, <lambda>, <v> )
โณ Soon
Erlang distribution โ€” special case of Gamma with integer shape. Used in queuing theory.
LogistischeVerteilung( <mu>, <s>, <v> ) / InversLogistischeVerteilung
โณ Soon
Logistic distribution โ€” similar to normal but with heavier tails. Used in logistic regression.
NegativBinomial( <n>, <p>, <v>, <kumulativ?> )
โณ Soon
Negative binomial โ€” number of failures before n-th success in Bernoulli trials.
Zeta( <n>, <exponent>, <v>, <kumulativ?> ) / InversZeta
โณ Soon
Zeta (power law) distribution. Probability proportional to k^(-exponent).
Bernoulli( <p>, <kumulativ?> )
โณ Soon
Bernoulli distribution โ€” single trial with success probability p. Special case of Binomial(1, p).
nPr( <n>, <r> )
โณ Soon
Permutations โ€” number of ordered arrangements: n!/(nโˆ’r)!
Planned
nPr(10, 2)   โ†’ 90
ZufallszahlGleichverteilt( <min>, <max> ) / ZufaelligesPolynom
โณ Soon
Continuous uniform random float, and random polynomial with specified degree and coefficient range.
InversWeibull / InversLogNormal / InversGamma / InversHypergeometrisch
โณ Soon
Inverse CDF functions for Weibull, LogNormal, Gamma, and Hypergeometric distributions.