Expected Value

expected value, mean value

Let X be a discrete rv with a set of possible values D and pmf p(x). The expected value or mean value of X, denoted E(X),μX,μ is:

E(X)=μx=μ=∑x∈Dx⋅p(x)

If you've used a weighted average, then this is what that is.

For example, given the following Probability Distribution, PMF:

Pasted image 20241003163847.png

Then the mean value of X, μX is:

μX=(0)(.002)+(1)(.001)+⋯+(10)(.01)=7.15

Often μ is NOT a value of X, so we don't round it. It's just the center-of-mass for certain distribution of probabilities.

Expected Value of a Function

Often we are interested in the expected value of some function h(X) rather than X itself. We can compute this by just:

  1. Getting our pmf in terms of X
  2. Calculate each y=h(x) for all x∈X
  3. Say p(y) for each y corresponds to the old x used to calculate y.

Pasted image 20241003164212.png

For instance for h(X)=20+3X+.5X2 (see the table above)

Law of the Unconscious Statistician

If the rv X has a set of possible values D and pmf p(x), then the expected value of any function h(X) denoted E[h(X)] or μh(X) is computed by:

E[h(X)]=∑x∈D[h(x)⋅p(x)]

Linearity of Expectation

For any linear function h(X)=aX+b

E(aX+b)=a⋅E(X)+b,μaX+b=aμX+b

Proof
Since h is a linear function and E is as well, then because they are linear maps gives the result above.
☐