1

What does it mean for two variables to be uncorrelated? How is it possible for two variables to be strongly related but still uncorrelated

marian
  • 11

1 Answers1

0

Correlation is a measure of linear relationship. A positive correlation between X and Y means that, as X goes up, Y tends to go up. A negative correlation means that as X goes up, Y tends to go down.

It is certainly possible to have 0 correlation and yet have a relationship, if the relationship is nonlinear. For example, if X ranges from -4 to 4 (say) and $Y = X^2$, then there is a relationship but correlation will be 0. If there is error, then the correlation will not be exactly 0 but will be close.

e.g

#Random error, corr close to 0
set.seed(129231)
x <- runif(100, -4,4)
y <- x^2
cor(x,y)


#No error, correlation = 0
x <- rep((-4:4),50)
y <- x^2
cor(x,y)
Peter Flom
  • 119,535
  • 36
  • 175
  • 383