**Correlation **is a statistical measure that indicates the extent to which two or more variables fluctuate together. **Positive Correlation **indicates the extent to which those variable increase or decrease in parallel; **Negative Correlation **indicates the extent to which one variable increases as the other decreases.
It is a Statistical method To determine whether there is a relationship between two variables.
Response variable and the explanatory variable are continuous variables (i.e. real numbers with decimal places — things like heights, weights, volumes, or temperatures).
To predict the value of an outcome variable Y based on one or more input predictor variables X.
Aim: To establish a linear relationship (a mathematical formula) between the predictor variable(s) and the response variable, so that, we can use this formula to estimate the value of the response Y, when only the predictors (Xs) values are known.
• _β_1 is the intercept and _β_2 is the slope.
#regression-analysis #correlation #r-programming #ggplot2 #linear-regression #data analysis