Let us suppose we have two plots representing the joint probability distribution of two random variables. On the first plot, the two variables are correlated, while on the second plot they are uncorrelated. Is there a quick, intuitive way to tell which plot is which?

To extend the question: what features should we look at the plot of a joint PDF to intuitively tell whether the two variables are correlated or not? Example plots supporting the answers would be helpful.

  • $\begingroup$ That on the first plot we have the joint distribution of two variables, on the second one the joint distribution of other two. I remove the two-two part to make it clearer. $\endgroup$ – Botond Mar 15 '17 at 13:44

Actually this is pretty simple. Recall that correlation measures linear relationship between two variables. If variables are correlated, then the bivariate plot is more or less skew (depending on the value of correlation), while in case of non-correlated variables, it is "random" and symmetric.

You can find an illustration below, where on the first plot you see quite strong positive correlation, on the second one negative correlation, and on the third plot no correlation. While the shapes of the point-clouds will not always be roundish (here they are since I used multivariate normal distribution), their skewness will suggest correlation.

Bivariate correlations



partmp <- par(mfrow = c(1,3))

Sigma_corr <- matrix(
    1,   0.8,
    0.8, 1
  ), ncol = 2, byrow = TRUE

X_corr <- rmvnorm(5000, sigma = Sigma_corr)

Sigma_corr_neg <- matrix(
    1,   -0.5,
    -0.5, 1
  ), ncol = 2, byrow = TRUE

X_corr_neg <- rmvnorm(5000, sigma = Sigma_corr_neg)

Sigma_uncorr <- matrix(
    1,   0.0,
    0.0, 1
  ), ncol = 2, byrow = TRUE

X_uncorr <- rmvnorm(5000, sigma = Sigma_uncorr)

  • $\begingroup$ That indeed answers correlation. Would it be possible to identify statistical independence in a similar manner? I imagine that is more complicated because non-linear relationships come into the picture $\endgroup$ – Botond Mar 15 '17 at 14:06
  • 1
    $\begingroup$ @Botond in case of correlation it is so obvious because we are talking about linear relationship. In other cases different kinds of "patterns" (vs "random" and symmetric spread) on plots would suggest some kind of dependence. $\endgroup$ – Tim Mar 15 '17 at 14:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.