You can't. To calculate the correlation between the values of variable V1 and V2 you need the values of both variables for each subject. In other words, you must be able to relate the value of variable V1 of subject 1 unambiguously to the value of variable V2 of the same subject 1 or to plot the pairs of data per subject in a scatterplot with V1 one axis and V2 on the other. In your case, however, the values of V1 and V2 have been measured not for the same but for different subjects. See any introductory textbook on statistics.
You can't. To calculate the correlation between the values of variable V1 and V2 you need the values of both variables for each subject. In other words, you must be able to relate the value of variable V1 of subject 1 unambiguously to the value of variable V2 of the same subject 1 or to plot the pairs of data per subject in a scatterplot with V1 one axis and V2 on the other. In your case, however, the values of V1 and V2 have been measured not for the same but for different subjects. See any introductory textbook on statistics.
If you have two measurable random variables and the numerical values of both random variables are available, it is possible to calculate the correlation coefficient between the two r.vs.
It may be useful to explain correlation coefficient as below:
Correlation is used to test relationships between quantitative variables or categorical variables. In other words, it’s a measure of how things are related. The study of how variables are correlated is called correlation analysis.
A correlation coefficient gives a numerical summary of the degree of association between two variables - e,g, to what degree do high values of one variable go with high values of the other one?
Correlation coefficients vary from -1 to +1, with positive values indicating an increasing relationship and negative values indicating a decreasing relationship. A “0” means there is no relationship between the variables at all, while -1 or 1 means that there is a perfect negative or positive correlation (negative or positive correlation here refers to the type of graph the relationship will produce).