powered by
Compute the expectation of a probability distribution.
expectation(object)
A probability distribution.
The expectation of the probability distribution.
variance
# NOT RUN { expectation(normal(3, log(2))) expectation(binomialdistribution(7, 0.3)) # }
Run the code above in your browser using DataLab