Skip to content

Expectation

Expectation(pure-function, data-set)

returns the expected value of the pure-function for the given data-set.

See

Examples

>> Expectation((#^3)&, {a,b,c})
1/3*(a^3+b^3+c^3)
>> Expectation(2*x+3,Distributed(x,{a,b,c,d}))
1/4*(12+2*a+2*b+2*c+2*d)

Implementation status

  • ✅ - full supported

Github