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.

Version: 0.9.1
Depends: R (≥ 3.5.0)
Imports: stats, mvtnorm, R6
Suggests: knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-02-27
DOI: 10.32614/CRAN.package.algebraic.dist
Author: Alexander Towell ORCID iD [aut, cre]
Maintainer: Alexander Towell <lex at metafunctor.com>
BugReports: https://github.com/queelius/algebraic.dist/issues
License: GPL (≥ 3)
URL: https://github.com/queelius/algebraic.dist, https://queelius.github.io/algebraic.dist/
NeedsCompilation: no
Materials: README, NEWS
In views: Distributions
CRAN checks: algebraic.dist results

Documentation:

Reference manual: algebraic.dist.html , algebraic.dist.pdf
Vignettes: Distribution Algebra with algebraic.dist (source, R code)
algebraic.dist: Examples (source, R code)
Multivariate and Mixture Distributions (source, R code)

Downloads:

Package source: algebraic.dist_0.9.1.tar.gz
Windows binaries: r-devel: algebraic.dist_0.1.0.zip, r-release: algebraic.dist_0.1.0.zip, r-oldrel: algebraic.dist_0.1.0.zip
macOS binaries: r-release (arm64): algebraic.dist_0.9.1.tgz, r-oldrel (arm64): algebraic.dist_0.9.1.tgz, r-release (x86_64): algebraic.dist_0.1.0.tgz, r-oldrel (x86_64): algebraic.dist_0.1.0.tgz
Old sources: algebraic.dist archive

Reverse dependencies:

Reverse imports: algebraic.mle
Reverse suggests: likelihood.model

Linking:

Please use the canonical form https://CRAN.R-project.org/package=algebraic.dist to link to this page.