Description Usage Arguments Value Examples
Calculate or approximate the expected value of a distribution.
If support
is missing, it is assumed that the support is
continuous and integrate
is used to approximate
the expected value. If the support is countably infinite, then
support
should be chosen to reduce the error associated
numerically approximating infinite sums.
1 |
dfunc |
Function that takes a random variable as its first
argument and returns its probability (if |
lower |
Lower limit of the continuous |
upper |
Upper limit of the continuous |
support |
Values at which to evaluate a distribution with discrete support. |
... |
Additional arguments to pass to |
The value of the expected value of dfunc
(if
support
is not missing) or an approximation to the
expected value supplied by integrate
(if
support
is missing).
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.