Loading [MathJax]/jax/output/HTML-CSS/jax.js

Monday, May 28, 2018

Properties of "expected value"

When I worked on "variational inference" of "Bayesian machine learning" using ''mean-field approximation", because of inadequate understanding "expected value", I was stuck for several hours... Then I thought, there might be someone in the world who has the same adversity. Hence I will share with you regarding properties of "expected value".

Properties of "expected value "

Just in case, before getting into properties of expected value we should be on the same page on what the expected value is .
Let's say that we have random variable x, and f(x) as a function of x. Expected value of random variable (continuous) is presented as below.
<f(x)>p(x)=f(x)p(x)dx

1. Linearity

When it comes linearity, you can derive as below with comparative ease :) <f(x)+g(x)>p(x)={f(x)+g(x)}p(x)dx=f(x)p(x)dx+g(x)p(x)dx=<f(x)>p(x)+<g(x)>p(x) <cf(x)>p(x)=cf(x)p(x)dx=cf(x)p(x)dx=c<f(x)>   where cR

2. Multiple random variable 1

If there are maultiple random variable (z1,z2,z3), expected value can be calculated as below. <f(z1,z2,z3)>p(z1)p(z2)p(z3)=<p(z1)f(z1,z2,z3)dz1>p(z2)p(z3)=<(f of z2 and z3)>p(z2)p(z3)=<p(z2)(f of z2 and z3)dz2>p(z3)=<(f of z3)>p(z3)=p(z3)(f of z3)dz3=Final expected value

3. Multiple random variable 2

This is a pattern where f is a function of only z1, whereas ramdom variables are z1,z2,z3, <f(z1)>p(z1)p(z2)p(z3)=<p(z2)f(z1)dz2>p(z1)p(z3)=<f(z1)p(z2)dz2>p(z1)p(z3)=<f(z1)>p(z1)p(z3)=<p(z3)f(z1)dz3>p(z1)=<f(z1)p(z3)dz3>p(z1)=<f(z1)>p(z1)

No comments:

Post a Comment