Description Usage Arguments Examples
Calculate probabilities of events
1
P(event)
event
A logical vector
1 2 3 4 5 6
X.fair.die <- RV(1:6, rep(1/6,6)) P(X.fair.die>3) X.loaded.die <- RV(1:6, odds = c(1,1,1,1,2,4)) P(X.loaded.die>3) P(X.loaded.die==6)
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.