Using X∼Uniform(−1,1) and Y=X2, how can you show that two random variables can be uncorrelated but not independent?

Probability and statistics, Random variables
Level L2 Elementary. Length Short. Nature Th+Mat Both.

What's being asked

Whether you know that zero covariance only rules out a linear relationship, and can prove dependence properly.

Key idea

Independence implies zero covariance, but not the other way round. Here Cov⁡(X,Y)=E[X3]−E[X] E[X2]=0 by symmetry, yet Y is completely determined by X.

Steps

  1. Compute the moments you need. X is uniform on [−1,1], so its density is 12 there. E[X]=0, and E[X3]=∫−1112x3 dx=0, because x3 is odd and the interval is symmetric.
  2. Compute the covariance: Cov⁡(X,Y)=E[XY]−E[X] E[Y]=E[X3]−0=0. So X and Y are uncorrelated.
  3. Show dependence by finding a probability that changes when you condition on X. P(Y>14)=P(∣X∣>12)=12, but P(Y>14∣X=0.9)=1. Independence would need these to be equal.
  4. Conclude. Correlation only measures linear relationships, and Y=X2 is not linear. Mutual information detects any kind of dependence. One exception: for jointly Gaussian variables, uncorrelated does imply independent.

Common mistakes

How long your answer should be

4–5 lines of working.

Last checked on 4 December 2026.

Read this

Previous in Probability and statistics: A 95% confidence interval for a model's accuracy is [0.82,0.88]. Is it true that the true accuracy lies in this interval with probability 0.95, and why?
Next in Probability and statistics: A disease affects 1% of people. A test detects it 99% of the time when it is present, and gives a false positive 5% of the time when it is absent. If a person tests positive, what is the probability that they have the disease?