Skip to main content

Expectation

Expectation[expr,xdist] gives the expectation of expr under the assumption that x follows the probability distribution dist. 

Expectation[expr,xdata] gives the expectation of expr under the assumption that x follows the probability distribution given by data.

Expectation[expr,{x1,x2,…}dist] gives the expectation of expr under the assumption that {x1,x2,…} follows the multivariate distribution dist.

Expectation[expr,{x1dist1,x2dist2,…}] gives the expectation of expr under the assumption that x1, x2, … are independent and follow the distributions dist1, dist2, ….

Expectation[exprpred,…] gives the conditional expectation of expr given pred.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.