algebraic.dist: Algebra over Probability Distributions

Provides an algebra over probability distributions enabling composition, sampling, and automatic simplification to closed forms. Supports normal, exponential, gamma, Weibull, chi-squared, uniform, beta, log-normal, Poisson, multivariate normal, empirical, and mixture distributions with algebraic operators (addition, subtraction, multiplication, division, power, exp, log, min, max) that automatically simplify when mathematical identities apply. Includes closed-form MVN conditioning (Schur complement), affine transformations, mixture marginals/conditionals (Bayes rule), and limiting distribution builders (CLT, LLN, delta method). Uses S3 classes for distributions and R6 for support objects.

Package details

AuthorAlexander Towell [aut, cre] (ORCID: <https://orcid.org/0000-0001-6443-9897>)
MaintainerAlexander Towell <lex@metafunctor.com>
LicenseGPL (>= 3)
Version0.9.1
URL https://github.com/queelius/algebraic.dist https://queelius.github.io/algebraic.dist/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("algebraic.dist")

Try the algebraic.dist package in your browser

Any scripts or data that you put into this service are public.

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.