Correlation and regression Flashcards
correlation
relationship between 2 continuous variable. Quantifies the co-relationship b/w 2 variable
person’s correlation coefficient, rho or p
this takes numbers between 1 + -1
1= v strong correlation
0= no correlation
-1=negative correlation
correlation p value
direct correlation between correlation and p-value. Graphical method used . As the sample size increases the probability of a strong correlation increases.
assumptions of correlation analysis
- data points are independent
- one set of data is normally distributed for any given value of the other with constant variance
- linear relationship
use spearmans rank if..
later 2 assumptions don’t apply
spearmint rank
simply replaces values with their rank before calculated correlation coefficient
regression
used to look at the relationship between 2 continuous variables. rather than quantity a strength of association it fits a functional form
functional form of regression
y=bx + c
y= outcome (dependent variable) b= slope- average change in y per unit change in x x= independent variable c= intercept- when x=0
Regression squared=
the square root of persons correlation
assumptions of regression
- data points are independent
- outcome data is normally distributed for any given value of the independent
- dependent data has a constant variance for all values of the independent data
- linear relationship