expectation {lestat}R 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))

[Package lestat version 1.9 Index]