Elementary Probability on Finite Sample Spaces
Overview
Performs elementary probability calculations on finite sample spaces, which may be represented by data frames or lists. This package is meant to rescue some widely used functions from the archived 'prob' package (see https://cran.r-project.org/src/contrib/Archive/prob/). Functionality includes setting up sample spaces, counting tools, defining probability spaces, performing set algebra, calculating probability and conditional probability, tools for simulation and checking the law of large numbers, adding random variables, and finding marginal distributions. Characteristic functions for all base R distributions are included.
- Every function that had an manual entry in the old
probpackage was rescued and included. - Functions that have **not** been rescued are those from
characteristicfunctions.r. I don't know what they are for, maybe they have been there for educational reasons. The first of these functions calls thefAsianOptions-package, which is whyprobwas archived on CRAN.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 49
- Examples that run
- 100%45 run in a plain check
- Exported functions with examples
- 85%
- Documented parameters
- 94%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.9.9Latest2024-06-20 · current release
- RR 4.4.0 released · 2024-04-24
Package metadata
- First published
- 2024-06-20
- Total releases
- 1 / 2 yrs
- License
- GPL (>= 3) OSI
- Download size
- 25 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("probs")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.