Please enable JavaScript.
Coggle requires JavaScript to display documents.
Correlation and Regression - Coggle Diagram
Correlation and Regression
correlation
: a statistical technique that is used to measure and describe the relationship between two variables
usually the two variables are observed as they occur naturally
there is usually an X and Y variable for each participant
pairs of scores can be listed in a table or can be represented in a scatter plot
correlation is a numerical value that describes and measures
3 characteristics
of the relationship between X and Y:
1) t
he direction of the relationship
: the sign, + or -, describes the direction of the relationship
in a
positive correlation
, variables change in the same direction
in a
negative correlation
, variables change in opposite direction
2)
the form of the relationship
3)
the strength or consistency of the relationship
:
envelope
: a line drawn around the data points which can help us see the overall trend.
when the envelop is shaped roughly like a football, the correlation is around .7
envelopes that are fatter than a football indicate correlations closer to 0 and narrower shapes indicate correlations closer to 1.00
The Person Correlation
the most common correlation
measures the degreee and direction of the linear relationship between two variables
r = degree to which X and Y vary together/degree to which X and Y vary seperately
r = covariability of XandY/variability of XandY seperately
the sum of products of deviations
(SP) used to measure the amount of covariability between two variables
definitional formula
: SP = ∑(X-Mx)(Y-Mx)
1) find the X deviation and the Y deviation for each individual
2) find the product of the deviations for each individual
3) add the products
computational formula
: SP = ∑XY-(∑X∑Y/n)
n = the number of pairs of scores
calculation of r
r = SP/√SSxSSy
correlation and the pattern of data points
any factor that does not change the pattern also does not change the correlation
adding, or subtracting by a constant value on X or Y does not change the correlation
multiplying or dividing by a positive constant does not change the value of the correlation
multiplying or dividing by a negative constant changes the signs of the correlation and creates a mirror image
r and z-scores
r - the relationship between an individuals location in the X distribution and the location in the Y distribution
z-score - identify the exact location of each individual score within a distribution
each X value can be transformed into a z-score (zx) using the mean and standard deviation for the set of Xs
each Y value can be transformed into zy in the same way
for a sample
r = ∑zxzy/(n-1)
for a population
ρ = ∑zxzy/N
where and why correlations are used:
1)
prediction
: if two variables are known to be related in some systematic way, it is possible to use one of the variables to make accurate predictions about the other
2)
validity
: if a test measures intelligence, the scores on the test should be related to other tests that measure intelligence
3)
reliability
: when reliability is right, the correlation between two measurements should be strong and positive
4)
theory verification
: predictions of theories could be tested by determining the correlation between two variables
interpreting correlations
1) correlation should not be interpreted as proof of a cause and effect relationship
2) the value of a correlation can be affected greatly by the range of scores represented in the data
3) one or two extreme data points (outliers) can often have a dramatic effect on the value of a correlation
4) a correlation should not be interpreted as a proportion - you need to square the correlation
correlation vs causation
to establish a cause and effect relationship, there has to be a true experiment
correlation and restricted range
the correlation within a restricted range of scores could be completely different than the correlation with the full group of scores
outliers
a good reason to actually look at a scatter plot instead of just basing interpretation on the numerical value of the correlation
correlation and the strength of the relationship
r² measures the gain in accuracy that is obtained from using the correlation for prediction
r² measures the proportion of variability in the data that is explained but he relationship between X and Y
r² is sometimes called the
coefficient of determination
because it measures the proportion of variability in one variable that can be determined from the relationship with the other variable
hypothesis tests with The Pearson Correlation
the basic question is whether a correlation exists in the population
null hypothesis = there is no correlation, population correlation is 0: H0 = ρ = 0
alternative hypothesis = yes, there is a real, nonzero correlation in the population: H1 = ρ ≠ 0
can be conducted as either a t statistic or an F-ratio
original t statistic : sample statistic - population parameter/standard error
standard error for r = sr = √(1-r²)/(n-2)
the complete t statistic
t = (r-p)/ √(1-r²)/(n-2)
df = n-2
can also compare the sample correlation with the list of critical values in a table
need to know the alpha level and the sample size (n)
if the critical value listed is higher than the r value, yo
alternatives to The Pearson Correlation
The Spearman Correlation
(rs)
1) used to measure X and Y when both variables are measured on ordinal scales
2) to measure the degree to which a relationship is consistently one directional, independent of it's form
when there is consistently one-directional relationship between 2 variables the relationship is said to be monotonic
ranking tied scores
when two scores have the same value, their ranks should also be the same
1) list the scores in order from smallest to largest
2) assign a rank to each position in the list
3) when two or more scores are tied, compute the mean of their ranked positions and assign this mean value as the final rank for each score
special formula
SS = n(n² - 1)/12
because X and Y ranks are the same values, SS for X is identical to SS for Y
rs = 1 - (6∑D²/n[n²-1])
D = the difference between X rank and the Y rank for each individual
should only be used when values have been converted to ranks and there are no ties
The Point-Biserial Correlation and Measuring Effect Size with r²
point-biserial correlation
- used to measure the relationship between 2 variables in situations in which 1 variable consists of regular, numerical scores, and the other has only two values
a variable with only two values is called a
dichotomous variable
r = SP/√SSxSSy
the phi-coefficient
when both X and Y are dichotomous the correlation between the two variables is called the
phi-coefficient
2 step procedure
1) convert each of the variables into numerical values (0 and 1)
2) use the regular Pearson forumla
linear equations and regression
linear relationship can be represented by: Y = bX+a
a and b are fixed constants
b = slope
a = Y-intercept - because it determines the value of Y when X is 0
regression
- statistical technique for finding the best-fitting straight line for a set of data - resulting line is called the
regression line
to determine how well a line fits, the first step is to mathematically feeding the distance between the line and each data point
distance = Y - Ŷ
because some distances are positive and some are negative, the next step is to square each distance to obtain a uniformly positive measure of error
to detrain the total error between the line and the data, add the squared errors for all the data points
total squared error
= ∑(Y-Ŷ)²
the best fitting line is the one that has the smallest total squared error
this is commonly called the
least-squared-error solution
Ý = bX+a
this equation is called the
regression equation for Y
alternative formulas
b = SP/SSx
where SP is the sum of products and SSx is the sum of squares for the X scores
b = r(sy/sx)
where sy is the standard deviation for the Y scores and sx is the standard deviation for the X scores
r is the Pearson Correlation for X and Y
a = My - bMx