8.15.0.4

9 Probability Distributions🔗ℹ

 (require math/distributions) package: math-lib

The math/distributions module exports the following:
  1. Distribution objects, which represent probability distributions

  2. Functions that operate on distribution objects

  3. The low-level flonum functions used to define distribution objects

Performance Warning: Using distribution objects in untyped Racket is currently 25-50 times slower than using them in Typed Racket, due to the overhead of checking higher-order contracts. We are working on it.

For now, if you need speed, either use the typed/racket language, or use just the low-level flonum functions, which are documented in Low-Level Distribution Functions.

    9.1 Distribution Objects

    9.2 Distribution Types and Operations

    9.3 Finite Distribution Families

      9.3.1 Unordered Discrete Distributions

    9.4 Integer Distribution Families

      9.4.1 Bernoulli Distributions

      9.4.2 Binomial Distributions

      9.4.3 Geometric Distributions

      9.4.4 Poisson Distributions

    9.5 Real Distribution Families

      9.5.1 Beta Distributions

      9.5.2 Cauchy Distributions

      9.5.3 Delta Distributions

      9.5.4 Exponential Distributions

      9.5.5 Gamma Distributions

      9.5.6 Logistic Distributions

      9.5.7 Normal Distributions

      9.5.8 Triangular Distributions

      9.5.9 Truncated Distributions

      9.5.10 Uniform Distributions

    9.6 Low-Level Distribution Functions

      9.6.1 Integer Distribution Functions

      9.6.2 Real Distribution Functions