Expectations and Covariance (FIT2086)
Context: FIT2086_MOC Β· summarises a distribution by numbers β deepens FIT1058βs Expectation / Variance and Standard Deviation with , population covariance/correlation (cf. the sample version in Association Between Variables), the WLLN linking to , and the fact that expectations need not exist
Quick Revision
- π― Objective: (integral if continuous) β a probability-weighted average; every summary (variance, covariance, moments) is an expectation of some .
- π¦ Core Components: β β β .
- β‘ Key Constraint: linearity is unconditional, factorisation is not β always splits, (hence ) needs independence. Second killer: does not imply independence.
π How It Works
1. Expected value
- Discrete / continuous β and β the average over weighted by .
- Function of an RV β : reweight , do not transform the probabilities.
- Linearity (Fact 1) β for constants not depending on β constants slide out, additive shifts pass straight through.
2. Variance and standard deviation
- Definition β β the expected squared deviation around the mean; larger βΉ mass spread more thinly across the axis.
- Computational form β expand and use linearity:
- Standard deviation β β restores the units of .
- Scaling under a linear map β (the shift moves the mean, never the spread).
3. Covariance and correlation
- Covariance β β the two-variable analogue of variance ().
- Correlation β β the scale-free normalisation.
- Sign reading β positive βΉ makes likely; negative βΉ makes likely.
- Ranges β and depends on the units of ; and is independent of scale β only correlation is comparable across variables.
- One-way implication β ; the converse is false β correlation measures linear association only.
4. Two random variables
- Joint expectation β .
- Fact 1 β sums always split β for all RVs, dependent or not.
- Fact 2 β products split only under independence β , whence
5. Weak Law of Large Numbers
- Statement β for with and any :
- Reading β the sample mean (a statistic β see Measures of Centrality) converges to the theoretical mean as the sample grows β this is the licence to estimate by at all, and the engine behind every Monte Carlo estimate in R Simulation and Random Sampling.
- Convergence RATE is set by the variance (Studio 2 simulation) β , so less variable data converges sooner: Bernoulli running means for () settle onto their line visibly faster and tighter than (, the maximum-variance Bernoulli). The WLLN promises that it converges; says how fast β and is exactly the estimator variance of Estimator Quality (Bias, Variance, MSE).
6. Existence of expected values
- Finite β always exists.
- Infinite ( or ) β existence is not guaranteed; heavy tails make the defining sum/integral diverge.
- Counterexample β (Cauchy shape) gives β positive and negative parts each diverge, so the integral never converges.
- Quantiles always exist β when the mean fails, the median still summarises location.
π Exam Execution Trace & Applied Exercises
Manual Execution Trace β , and from a pmf
, , :
| Step | Quantity | Computation | Result |
|---|---|---|---|
| 1 | |||
| 2 | (definition) | ||
| 3 | |||
| 4 | (short form) | β | |
| 5 |
Key move: step 4 confirms agrees with the definition β always the faster route once is available.
Applied Exercise β linear transformation (Β°C β Β°F)
Problem: has , . Find the mean and variance in Fahrenheit, .
Final Extracted Output: , β the shifts the mean and is invisible to the variance.
β οΈ Common Mistakes
- π‘ unless is linear β above while . Non-linear needs the Taylor approximation.
- π‘ Zero correlation β independence β gives despite obvious association; a deterministic circular relation also gives . Correlation sees only the linear component.
- π‘ Variance additivity needs independence β follows from Fact 2, not from linearity; without independence a term survives.
- π‘ Donβt assume exists β on infinite check convergence before quoting a mean; heavy-tailed models genuinely have none.
π§ Active Recall
Which expectation identities hold unconditionally, and which require independence?
Answer
- Short answer: sums always, products only under independence β and hold for all RVs; and its corollary require .
- Why: Linearity is a property of the sum/integral β marginalises each term separately regardless of βs structure; the product only factors into when .
Why does fail to establish independence, and what does correlation actually measure?
Answer
- Short answer: correlation measures linear association only; a perfectly deterministic but non-monotone relation such as has while and are fully dependent.
- Why: is a single scalar β for a symmetric about , positive and negative products cancel exactly, driving the covariance to although . The implication runs one way: independence βΉ zero correlation, never the reverse.
What does the weak law of large numbers assert, and why can an expectation fail to exist?
Answer
- Short answer: WLLN β as for any : the sample mean converges to . Existence fails when is infinite and the tails are heavy enough that or diverges.
- Why: Finite βΉ a finite sum βΉ exists β over or convergence must be checked, e.g. decays only as , so and the integral diverges. Quantiles are defined by the cdf and therefore always exist β the median is the safe fallback summary.