In: Statistics and Probability
Correlation is used to measure how things are related or it tells us the relationship between quantitative variables and categorical varibales.
It ranges from -1 to 1.
For the two series correlation can be calculated as follows
Example - A hypothetical example just for explianing the correlation
r=0.603023
REGRESSION
Regression analysis is used to determine the relationship between dependent variables usually called as Y and a serioes of other variables called as X.
Example - A hypothetical example just for explianing the regression
here the slope of regression is 0.1135.
The difference between correlation and regression is that correlation determines the relationship between two variables whereas the regression determines the relationship between dependent variable and a series of two or more independent variables.