Last data update: 2014.03.03

R: Compute Expectation
expectationR Documentation

Compute Expectation

Description

Compute the expectation of a probability distribution.

Usage

expectation(object)

Arguments

object

A probability distribution.

Value

The expectation of the probability distribution.

Author(s)

Petter Mostad <mostad@chalmers.se>

See Also

variance

Examples

expectation(normal(3, log(2)))
expectation(binomialdistribution(7, 0.3))

Results