SofIID: Sum of independent identically distributed random variables

Description Usage Arguments Examples

Description

Sum of independent identically distributed random variables

Usage

1
SofIID(X, n = 2, progress = TRUE, fractions = attr(X, "fractions"))

Arguments

X

A random variable

n

The number of Xs to sum

progress

If TRUE, display a progress bar

fractions

If TRUE, return the probabilities as fractions

Examples

1
2
3
4
X.Bern <- RV(c(1,0), c(.5,.5))

S5 <- SofIID(X.Bern, 5)
S128 <- SofIID(X.Bern, 128)


Search within the discreteRV package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.