Neural Sync Active
Week 3.1: Expected Value
Registry Synced
Week 3.1: Expected Value
756 words
4 min read
Reading compass
Now · 1. Intuition: The Balancing Point
Week 3.1: Expected Value
Prerequisites: Joint PMF (Week 1.1: Joint Probability Mass Function (Joint PMF)), Functions of RVs (Week 2.1: Functions of Random Variables) Cross-links: BSMA1002 (Stats 1) — expectation, BSMA3012 (Linear Stat Models) — moments Core question: What is the "average" or "central" value of a random variable?
1. Intuition: The Balancing Point
The expected value E[X] is the probability-weighted average of all possible values of X. It represents the "centre of mass" of the PMF.
Physical analogy: If you place weights equal to fX(x) at positions x on a see-saw, the expected value is the balance point. Key facts:
- E[X] may not be a possible value of X (e.g., 3.5 for a die).
- E[X] has the same units as X.
- Not all random variables have finite expectation.
2. Formal Definition
>E[X]=t∈TX∑t⋅fX(t),>Definition (Expected value) For a discrete random variable X with range TX and PMF fX:
provided the sum converges absolutely. Examples:
| Distribution | PMF | E[X] |
|---|---|---|
| Bernoulli( p ) | px(1−p)1−x , x∈{0,1} | p |
| Binomial( n,p ) | (xn)px(1−p)n−x | np |
| Geometric( p ) | (1−p)x−1p , x=1,2,… | 1/p |
| Poisson( λ ) | e−λλx/x! , x=0,1,… | λ |
| Uniform {a,…,b} | 1/(b−a+1) | (a+b)/2 |
3. Expected Value of a Function: The LOTUS
The Law of the Unconscious Statistician (LOTUS) is a crucial result:
>E[g(X)]=t∈TX∑g(t)⋅fX(t).>Theorem (LOTUS) For any function g and random variable X with PMF fX:
>E[g(X1,…,Xn)]=t1,…,tn∑g(t1,…,tn)⋅fX1…Xn(t1,…,tn).>For g(X1,…,Xn) with joint PMF fX1…Xn:
Why it matters: You don't need to find the PMF of g(X) first — just apply g to each x and use the original PMF.
Example
X∼Uniform{−2,−1,0,1,2}, g(X)=X2:
4. Linearity of Expectation
>E[aX+bY]=aE[X]+bE[Y].>Theorem (Linearity) For random variables X,Y and constants a,b:
This holds whether or not X and Y are independent — one of the most powerful properties in probability.
Proof sketch:
Example: Expected value of Binomial via linearity
Y∼Binomial(n,p). Write Y=∑i=1nXi where Xi∼Bernoulli(p) i.i.d.
This is much simpler than summing k(kn)pk(1−p)n−k directly!
5. Expected Value of Independent Products
>E[XY]=E[X]⋅E[Y].>If X and Y are independent:
Proof: Using independence fXY(x,y)=fX(x)fY(y):
6. Moments
Definition (Moments) The k-th raw moment of X is E[Xk]. The k-th central moment is E[(X−μ)k], where μ=E[X].
- E[X] = first raw moment (mean)
- E[X2] = second raw moment
- Var(X)=E[X2]−(E[X])2 = second central moment
7. Practice Questions
Q1 (Easy)
X takes values {−2,0,2,4} with probabilities {0.2,0.3,0.4,0.1}. Find E[X].
Full SolutionE[X]=(−2)(0.2)+0(0.3)+2(0.4)+4(0.1)=−0.4+0+0.8+0.4=0.8.
Q2 (Medium)
X∼Poisson(4). Find E[X2].
Full SolutionFor Poisson(λ): E[X]=λ, Var(X)=λ.Var(X)=E[X2]−(E[X])2⟹E[X2]=λ+λ2=4+16=20.
Q3 (Hard — LOTUS)
X∼Uniform{1,2,3,4,5,6}. Find E[X3].
>E[X3]=61(13+23+33+43+53+63)=61(1+8+27+64+125+216)=6441=73.5.>Full Solution
Next topic: Week 3.2: Variance & Standard Deviation — Variance and standard deviation. Join Discord PreviousWeek 2.3: Independence of Random VariablesNextWeek 3.2: Variance & Standard Deviation