Description Usage Arguments Value Examples
Expected Value of a Discrete Random Variable
1 2 |
xv |
Vector of random variable values |
xf |
Vector of probability (or frequency) distribution |
mt |
graph title |
dig |
Number of digits below the decimal point (default=3) |
prt |
Print detailed output? Default: FALSE |
plot |
Plot the PDF? Default: FALSE |
pos |
Legend location, Default: 'topright' |
list(Ex=expected value, Dx=standard deviation, Vx=variance)
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.