Insight: three raw moments are handed over, so this is the computational form of
covariance, one subtraction, and nothing else.
Exam route: Cov(X,Y)=E[XY]−E[X]E[Y]=10−12=−2.00.
Learning route:
Step 1 — recall what covariance measures. By definition
Cov(X,Y)=E[(X−E[X])(Y−E[Y])].
Step 2 — expand the product inside the expectation, writing μX=E[X], μY=E[Y]:
(X−μX)(Y−μY)=XY−μYX−μXY+μXμY.
Step 3 — take expectations term by term. The means are constants, so
Cov(X,Y)=E[XY]−μYμX−μXμY+μXμY=E[XY]−E[X]E[Y].
Step 4 — substitute the given numbers:
Cov(X,Y)=10−(3)(4)=10−12=−2.
Answer: −2.00.
Tempting wrong path 1: subtracting in the reverse order, E[X]E[Y]−E[XY]=12−10=2.00.
The break is at Step 3, where the term E[XY] carries the plus sign. A quick sanity rule
fixes the order: here E[XY] is smaller than the product of the means, so the variables
tend to sit on opposite sides of their means together, and covariance must be negative.
Tempting wrong path 2: reporting E[XY]=10.00 as the covariance. That skips the
centring entirely; E[XY] is a raw joint moment, not a measure of joint variability.
Generalization: covariance is the raw product moment minus the product moment you would
get if the variables were uncorrelated.
Verification: invert the formula, E[XY]=Cov(X,Y)+E[X]E[Y]=−2+12=10,
which is exactly the given value.