Product moments: what E[X^r Y^s] measures and when marginals are enough

The definition and why the mixed cases matter

For a pair (X, Y) with joint density f(x, y) or joint pmf p(x, y), the raw product moment of order (r, s) is


μ'r,s = E[XrYs] = ∫∫ xrys f(x,y) dx dy


with a double sum replacing the double integral in the discrete case. The pure cases are familiar: μ'1,0 = E[X] and μ'0,2 = E[Y2]. These depend only on the marginal distributions and tell you nothing about how the two variables relate.


The mixed cases are different. E[XY], E[X2Y], E[XY2] and their relatives cannot be recovered from the marginals in general, because the marginals discard the joint structure entirely.


Two joint distributions can have identical marginals and completely different mixed moments. That is exactly why the mixed moments are worth computing: they are where the dependence lives.

The link to covariance

Expanding the definition of covariance gives the identity that connects the raw product moment to the central one:


Cov(X,Y) = E[(X - μX)(Y - μY)] = E[XY] - E[X]E[Y]


So E[XY] and Cov(X,Y) are the same quantity only when at least one mean is zero.


Otherwise the raw moment contains a contribution from the location of the distribution that has nothing to do with dependence: two positive variables have a positive E[XY] even when they are independent. Subtracting the product of the means is what removes that contribution.


Correlation goes one step further and removes the scale as well:


ρ = Cov(X,Y) / (σXσY)

When may marginals be used?

If X and Y are independent then f(x,y) = fX(x)fY(y), the double integral separates, and


E[XrYs] = E[Xr]E[Ys] for every r and s


This is a strong statement: independence makes all product moments factor, not just the first. The converse is where students are led astray.


Uncorrelated means only that the (1,1) moment factors. That single equality is far weaker than independence, and a pair can satisfy it while being related by an exact functional rule.


The practical consequence is a rule of use: For a genuinely mixed moment with r,s > 0, marginals alone are generally insufficient; independence lets it factor into marginal moments.


If r=0 or s=0, it is already a pure marginal moment and no independence assumption is needed.


Higher-order product moments provide the diagnostic. If E[XY] = E[X]E[Y] but E[X2Y] ≠ E[X2]E[Y], the variables are certainly dependent, and the covariance simply failed to see it because covariance measures only the linear component of the relationship.

A worked continuous example

Take the joint density


f(x,y) = x + y on the unit square 0 < x < 1, 0 < y < 1, and zero elsewhere.


First confirm it is a density: ∫∫(x+y) dx dy = ½ + ½ = 1.


A single general formula handles every moment of this density. Since the region is a product set and the integrand separates term by term,


E[XrYs] = ∫∫ xrys(x + y) dx dy = 1/[(r+2)(s+1)] + 1/[(r+1)(s+2)]


Now read off what is needed.


  • E[X] = 1/(3·1) + 1/(2·2) = 1/3 + 1/4 = 7/12, and by the symmetry of f in x and y, E[Y] = 7/12
  • E[XY] = 1/(3·2) + 1/(2·3) = 1/6 + 1/6 = 1/3
  • E[X2] = 1/(4·1) + 1/(3·2) = 1/4 + 1/6 = 5/12
  • E[X2Y] = 1/(4·2) + 1/(3·3) = 1/8 + 1/9 = 17/72


The covariance follows:


Cov(X,Y) = 1/3 - (7/12)2 = 48/144 - 49/144 = -1/144


and the variance of X is 5/12 - 49/144 = 60/144 - 49/144 = 11/144, so by symmetry


ρ = (-1/144)/(11/144) = -1/11 ≈ -0.0909


The negative sign has to be read off the density itself, not off the fact that it integrates to one.


Normalisation over a fixed square says nothing about the direction of association; the conditional distribution does. The marginal is fX(x) = ∫01(x + y) dy = x + ½, and ∫01y(x + y) dy = x/2 + 1/3, so


E[Y | X = x] = (x/2 + 1/3)/(x + ½)


Differentiating, the numerator of the derivative is the constant ½(x + ½) - (x/2 + 1/3) = ¼ - 1/3 = -1/12, so (d/dx)E[Y | X = x] = (-1/12)/(x + ½)2 < 0. The conditional mean of Y therefore decreases strictly across the support, from 2/3 at x = 0 to 5/9 at x = 1. Since Cov(X,Y) = Cov(X, E[Y | X]) and X is non-degenerate, a strictly decreasing conditional mean makes the covariance negative, which is exactly the sign of the computed value, Cov(X,Y) = -1/144. The magnitude is small, which matches the near-uniform appearance of this density.


Now use the higher moment as a dependence test:


E[X2]E[Y] = (5/12)(7/12) = 35/144 ≈ 0.2431 against E[X2Y] = 17/72 ≈ 0.2361


They differ, confirming dependence, as the nonzero covariance already did here.



Let X and Y be jointly distributed random variables with finite second moments and means μX and μY.

Which statement correctly relates the raw product moment E[XY] to the covariance of X and Y?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

The discrete random variables X and Y have the joint probability mass function given below. X takes the values 0, 1, and 2; Y takes the values 1 and 3. All other probabilities are zero.

p(x, y)

y = 1

y = 3

x = 0

0.15

0.05

x = 1

0.20

0.25

x = 2

0.10

0.25

Calculate the product moment E[XY].

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

X and Y are independent random variables with

E[X] = 2.0, Var(X) = 1.5, E[Y] = 4.0, Var(Y) = 0.8

No further information about their distributions is given.

Calculate the product moment E[X2Y2].

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors