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

, , :

StepQuantityComputationResult
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