Learn R Programming

⚠️There's a newer version (1.0-1) of this package.Take me there.

prob (version 0.9-1)

Elementary Probability on Finite Sample Spaces

Description

This package provides a framework for performing elementary probability calculations on finite sample spaces, which may represented by data frames or lists. 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.

Copy Link

Version

Install

install.packages('prob')

Monthly Downloads

93

Version

0.9-1

License

GPL (>= 2)

Maintainer

G. Jay Kerns

Last Published

August 27th, 2018

Functions in prob (0.9-1)

euchredeck

A Deck of Playing Cards for Euchre
intersect

Intersection of Subsets
empirical

Empirical Summary of a Simulation
cards

A Standard Set of Playing Cards
addrv

Adding Random Variables to a Probability Space
is.probspace

Testing for a Probability Space
prob

Probability and Conditional Probability
countrep

Count Repetitions
iidspace

Independent Identical Experiments
rolldie

Rolling a Die
urnsamples

Sampling from Urns
setdiff

Set Difference of Subsets
probspace

Probability Spaces
permsn

Generate All Permutations of x Elements Taken m at a Time
nsamp

Number of Samples from an Urn
tosscoin

Tossing a Coin
subset

Subsets of Probability Spaces
isin

Test Whether One Vector Is In Another Vector
prob-package

Elementary Probability on Finite Sample Spaces
marginal

Marginal Distributions
roulette

Roulette
isrep

Is Repeated in a Vector
sim

Simulate Draws from a Sample Space
noorder

Sort and Merge Probability Space Outcomes
union

Union of Subsets