Description Usage Arguments Examples
Expected value of a random variable
1
E(X)
X
random variable
1 2 3 4 5
X.Bern <- RV(c(1,0), c(.5,.5)) E(X.Bern) X.fair.die <- RV(1:6, rep(1/6,6)) E(X.fair.die)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.