# Correlation between continuous data and count data

Suppose we are dealing with this data set $(X_i, N_i)$ where $X_i$ is continuous variable (for example Exponential) and $N_i$ is discrete distribution (for example Poisson) for $i=1,...,n$. Let's say that $\rho$ is the correlation between $X$ and $N$. How can someone define $\rho$?

• It's common to do variable selection for modeling when some of the predictor variables are count data and the response data is continuous. There is no prohibition of comparing between real and whole numbers. The shape of the distributions will be a bigger issue. You will want to try a series of Tukey's ladder functions (aka power series). – Chris Sep 15 '15 at 4:30
• @Chris Thank you for the comment. I'm not dealing with regression here (though someone can argue that building a GLM $g(Y) = \beta N$ will capture the correlation). I'm interested whether there is a measure of correlation (i.e., Pearson's for continuous data). – user9292 Sep 15 '15 at 4:41
• Why would the ordinary Pearson correlation not be a measure of correlation for this problem? – Glen_b Sep 15 '15 at 5:30

1. Polyserial Correlation - This would be the most exotic of the 3 options and involves an approximation of a latent, continuous variable used to build the discrete variable ($N_i$ in your case) as well as a maximum likelihood estimation procedure for the most likely $\rho$ that could result between that latent continuous variable and the real one, $X_i$, when treated as bivariate normal samples (example implementation in R: polycor). There are several references to this idea out there, but this is the original publication on the subject from 1974: Estimation of the Correlation Between a Continuous and a Discrete Variable.
To answer your question more directly, calculating $\rho$ as usual (assuming you mean the product-moment correlation coefficient by that) would likely have the properties you'd expect, or at least it would get bigger as the linear dependence between the variables grows. However, a statistical test of significance of the correlation would not be valid as one of the assumptions required for such a test is bivariate normality and that's clearly not true if one of the variables is discrete.