SofI: Sum of independent RVs

Description Usage Arguments Examples

Description

Creates a random variable that is the sum of the input random variables.

Usage

1

Arguments

...

list of arbitrary many random variables

Examples

1
2
3
fair.coin <- make.RV(0:1, .5)
threecoins <- SofI(fair.coin, fair.coin, fair.coin)
all.equal(probs(threecoins)[1], dbinom(0, 3, .5), check.attributes = FALSE)

Dasonk/drvc documentation built on May 6, 2019, 1:37 p.m.