Docsity

Understanding Linear Relationships and Correlation Analysis in Statistics - Prof. Karl L. , Study notes of Psychology

Toggle sidebar
bg1
Bivariate Linear Correlation
One way to describe the association between two variables is to assume that the
value of the one variable is a linear function of the value of the other variable. If this
relationship is perfect, then it can be described by the slope-intercept equation for a
straight line, Y = a + bX. Even if the relationship is not perfect, one may be able to
describe it as nonperfect linear.
Distinction Between Correlation and Regression
Correlation and regression are very closely related topics. Technically, if the X
variable (often called the “independent variable, even in nonexperimental research) is
fixed, that is, if it includes all of the values of X to which the researcher wants to
generalize the results, and the probability distribution of the values of X matches that in
the population of interest, then the analysis is a regression analysis. If both the X and
the Y variable (often called the “dependent” variable, even in nonexperimental
research) are random, free to vary (were the research repeated, different values and
sample probability distributions of X and Y would be obtained), then the analysis is a
correlation analysis. For example, suppose I decide to study the correlation between
dose of alcohol (X) and reaction time. If I arbitrarily decide to use as values of X doses
of 0, 1, 2, and 3 ounces of 190 proof grain alcohol and restrict X to those values, and
have the equal numbers of subjects at each level of X, then I’ve fixed X and do a
regression analysis. If I allow X to vary “randomly,” for example, I recruit subjects from
a local bar, measure their blood alcohol (X), and then test their reaction time, then a
correlation analysis is appropriate.
In actual practice, when one is using linear models to develop a way to predict Y
given X, the typical behavioral researcher is likely to say she is doing regression
analysis. If she is using linear models to measure the degree of association between X
and Y, she says she is doing correlation analysis.
Scatter Plots
One way to describe a bivariate association is to prepare a scatter plot, a plot of
all the known paired X,Y values (dots) in Cartesian space. X is traditionally plotted on
the horizontal dimension (the abscissa) and Y on the vertical (the ordinate).
If all the dots fall on a straight line with a positive slope, the relationship is
perfect positive linear. Every time X goes up one unit, Y goes up b units. If all dots
fall on a negatively sloped line, the relationship is perfect negative linear.
Copyright 2009, Karl L. Wuensch - All rights reserved.
Corr6430.doc
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Understanding Linear Relationships and Correlation Analysis in Statistics - Prof. Karl L. and more Study notes Psychology in PDF only on Docsity!

Bivariate Linear Correlation 

One way to describe the association between two variables is to assume that the value of the one variable is a linear function of the value of the other variable. If this relationship is perfect, then it can be described by the slope-intercept equation for a straight line, Y = a + bX. Even if the relationship is not perfect, one may be able to describe it as nonperfect linear.

Distinction Between Correlation and Regression

Correlation and regression are very closely related topics. Technically, if the X variable (often called the “independent variable, even in nonexperimental research) is fixed , that is, if it includes all of the values of X to which the researcher wants to generalize the results, and the probability distribution of the values of X matches that in the population of interest, then the analysis is a regression analysis. If both the X and the Y variable (often called the “dependent” variable, even in nonexperimental research) are random , free to vary (were the research repeated, different values and sample probability distributions of X and Y would be obtained), then the analysis is a correlation analysis. For example, suppose I decide to study the correlation between dose of alcohol (X) and reaction time. If I arbitrarily decide to use as values of X doses of 0, 1, 2, and 3 ounces of 190 proof grain alcohol and restrict X to those values, and have the equal numbers of subjects at each level of X, then I’ve fixed X and do a regression analysis. If I allow X to vary “randomly,” for example, I recruit subjects from a local bar, measure their blood alcohol (X), and then test their reaction time, then a correlation analysis is appropriate. In actual practice, when one is using linear models to develop a way to predict Y given X, the typical behavioral researcher is likely to say she is doing regression analysis. If she is using linear models to measure the degree of association between X and Y, she says she is doing correlation analysis.

Scatter Plots

One way to describe a bivariate association is to prepare a scatter plot , a plot of all the known paired X,Y values (dots) in Cartesian space. X is traditionally plotted on the horizontal dimension (the abscissa) and Y on the vertical (the ordinate). If all the dots fall on a straight line with a positive slope, the relationship is perfect positive linear. Every time X goes up one unit, Y goes up b units. If all dots fall on a negatively sloped line, the relationship is perfect negative linear.  (^) Copyright 2009, Karl L. Wuensch - All rights reserved. Corr6430.doc

Perfect Positive Linear 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X

Y

Perfect Negative Linear 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X

Y

Perfect Positive Monotonic 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X

Y

Perfect Negative Monotonic 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X

Y

Nonmonotonic Relationship 0 1 2 3 4 5 6 0 1 2 3 4 5 6 Test Anxiety Performance A linear relationship is monotonic (of one direction) – that is, the slope of the line relating Y to X is either always positive or always negative. A monotonic relationship can, however, be nonlinear, if the slope of the line changes magnitude but not direction, as in the plots below: A nonlinear relationship may, however, not be monotonic, as shown to the right, where we have a quadratic relationship between level of test anxiety and performance on a complex cognitive task.

goes up, so does Y. If most are in the upper left and lower right, SSCP will be negative; as X goes up, Y goes down. Just as variance is an average sum of squares, SSN , or, to estimate population variance from sample data, SS(N-1),N-1),), covariance is an average SSCP , SSCPN. We shall compute covariance as an estimate of that in the population from which our data were randomly sampled. That is, 4. 4 16 1     N SSCP COV A major problem with COV is that it is affected not only by degree of linear relationship between X and Y but also by the standard deviations in X and in Y. In fact, the maximum absolute value of COV(X,Y) is the product  xy. Imagine that you and I each measured the height and weight of individuals in our class and then computed the covariance between height and weight. You use inches and pounds, but I use miles and tons. Your numbers would be much larger than mine, so your covariance would be larger than mine, but the strength of the relationship between height and weight should be the same for both of our data sets. We need to standardize the unit of measure of our variables.

Pearson r

We can get a standardized index of the degree of linear association by dividing COV by the two standard deviations, removing the effect of the two univariate standard deviations. This index is called the Pearson product moment correlation coefficient , r for short, and is defined as (^1). 581 ( 3. 162 ).^80 ( , ) 4    sx s y COV X Y r (^). Pearson r may also be defined as a mean, (^) r

Z Z

N

x y

^ , where the^ Z -scores are

computed using population standard deviations, n SS . Pearson r may also be computed as

. 8 10 ( 40 ) 16 4 ( 1. 581 )( 4 )( 3. 162 ) 16 2 2     SSx SS y SSCP r (^). Pearson r will vary from 1 to 0 to +1. If r = +1 the relationship is perfect positive, and every pair of X,Y scores has Zx = Zy. If r = 0, there is no linear relationship. If r = 1, the relationship is perfect negative and every pair of X,Y scores has Zx =  Zy.

Factors Which Can Affect the Size of r

Range restrictions. If the range of X is restricted, r will usually fall (it can rise if X and Y are related in a curvilinear fashion and a linear correlation coefficient has inappropriately been used). This is very important when interpreting criterion-related validity studies, such as one correlating entrance exam scores with grades after entrance. Extraneous variance. Anything causing variance in Y but not in X will tend to reduce the correlation between X and Y. For example, with a homogeneous set of subjects all run under highly controlled conditions, the r between alcohol intake and reaction time might be +0.95, but if subjects were very heterogeneous and testing conditions variable, r might be only +0.50. Alcohol might still have just as strong an effect on reaction time, but the effects of many other “extraneous” variables (such as sex, age, health, time of day, day of week, etc.) upon reaction time would dilute the apparent effect of alcohol as measured by r. Interactions. It is also possible that the extraneous variables might “interact” with X in determining Y. That is, X might have one effect on Y if Z = 1 and a different effect if Z = 2. For example, among experienced drinkers (Z = 1), alcohol might affect reaction time less than among novice drinkers (Z = 2). If such an interaction is not taken into account by the statistical analysis (a topic beyond the scope of this course), the r will likely be smaller than it otherwise would be.

Assumptions of Correlation Analysis

There are no assumptions if you are simply using the correlation coefficient to describe the strength of linear association between X and Y in your sample. If, however, you wish to use t or F to test hypothesis about ρ or place a confidence interval about your estimate of ρ, there are assumptions. Bivariate Normality It is assumed that the joint distribution of X,Y is bivariate normal. To see what such a distribution look like, try the Java Applet at http://ucs.kuleuven.be/java/version2.0/Applet030.html. Use the controls to change various parameters and rotate the plot in three-dimensional space. In a bivariate normal distribution the following will be true:

  1. The marginal distribution of Y ignoring X will be normal.
  2. The marginal distribution of X ignoring Y will be normal.
  3. Every conditional distribution of Y|X will be normal.
  4. Every conditional distribution of X|Y will be normal.

of a correlation coefficient. You might want to warn your readers that a Type II error is quite likely here, given the small sample size. Were the result significant, your summary statement might read something like this: “Among my friends, burger consumption was significantly related to beer consumption, ..........”

Power Analysis

Power analysis for r is exceptionally simple: ^ ^  n ^1 , assuming that df are large enough for t to be approximately normal. Cohen’s benchmarks for effect sizes for r are: .10 is small but not necessarily trivial, .30 is medium, and .50 is large (Cohen, J. A Power Primer, Psychological Bulletin , 1992, 1),1),2 , 155-159). For our burger-beer data, how much power would we have if the effect size was large in the population, that is,  = .50?  . 5 4  1. 00. From our power table, using the traditional .05 criterion of significance, we then see that power is 17%. As stated earlier, a Type II error is quite likely here. How many subjects would we need to have 95% power to detect even a small effect? Lots: 1 1297 2  ^          n (^). That is a lot of burgers and beer! See the document R2 Power Anaysis.

Correcting for Measurement Error in Bivariate Linear Correlations

The following draws upon the material presented in the article : Schmidt, F. L., & Hunter, J. E. (1996). Measurement error in psychological research: Lessons from 26 research scenarios. Psychological Methods , 1), , 199-223. When one is using observed variables to estimate the correlation between the underlying constructs which these observed variables measure, one should correct the correlation between the observed variables for attenuation due to measurement error. Such a correction will give you an estimate of what the correlation is between the two constructs (underlying variables), that is, what the correlation would be if we able to measure the two constructs without measurement error. Measurement error results in less than perfect values for the reliability of an instrument. To correct for the attenuation resulting from such lack of perfect reliability, one can apply the following correction: XX yy XY X Y r r r r (^) t t  (^) ,where r (^) XtY t is our estimate for the correlation between the constructs, corrected for attenuation, rXY is the observed correlation between X and Y in our sample, rXX is the reliability of variable X, and rYY is the reliability of variable Y. Here is an example from my own research:

I obtained the correlation between misanthropy and attitude towards animals for two groups, idealists (for whom I predicted there would be only a weak correlation) and nonidealists (for whom I predicted a stronger correlation). The observed correlation was .02 for the idealists, .36 for the idealists. The reliability (Cronbach alpha) was. for the attitude towards animals instrument (which had 28 items) but only .66 for the misanthropy instrument (not surprising, given that it had only 5 items). When we correct the observed correlation for the nonidealists, we obtain.^46

. 66 (. 91 ) . 36 rX (^) tYt   , a much more impressive correlation. When we correct the correlation for the idealists, the corrected r is only .03. I should add that Cronbach's alpha underestimates a test's reliability, so this correction is an over-correction. It is preferable to use maximized lamba4 as the estimate of reliability. Using labmda4 estimates of reliability, the corrected r is . 42. . 78 (. 93 ) . 36 rXtYt  

Testing Other Hypotheses

H  :  1 =  2

One may also test the null hypothesis that the correlation between X and Y in one population is the same as the correlation between X and Y in another population. See our textbook for the statistical procedures. One interesting and controversial application of this test is testing the null hypothesis that the correlation between IQ and Grades in school is the same for Blacks as it is for Whites. Poteat, Wuensch, and Gregg (1988 , Journal of School Psychology : 26 , 59-68) were not able to reject that null hypothesis. H:WX =WY If you wish to compare the correlation between one pair of variables with that between a second, overlapping pair of variables (for example, when comparing the correlation between one IQ test and grades with the correlation between a second IQ test and grades), use Williams’ procedure explained in our textbook or use Hotelling’s more traditional solution, available from Wuensch and elsewhere. It is assumed that the correlations for both pairs of variables have been computed on the same set of subjects. Should you get seriously interested in this sort of analysis, consult this reference: Meng, Rosenthal, & Rubin (1992) Comparing correlated correlation coefficients. Psychological Bulletin , 1),1),1), : 172-175.

relationship, but not necessarily a perfect linear relationship (for which the slope would have to be constant). Consider the following data: X 1.0 1.9 2.0 2.9 3.0 3.1 4.0 4.1 5 Y 10 99 100 999 1,000 1,001 10,000 10,001 100, You should run the program Spearman.sas on my SAS Programs web page. It takes these data and transforms them into ranks and then prints out the new data. The first page of output shows the original data, the ranked data, and also the Y variable after a base 10 log transformation. A plot of the raw data shows a monotonic but distinctly nonlinear relationship. A plot of X by the log of Y shows a nearly perfect linear relationship. A plot of the ranks show a perfect relationship. PROC CORR is then used to compute Pearson, Spearman, and Kendall tau correlation coefficients.

How Do Behavioral Scientists Use Correlation Analyses?

  1. to measure the linear association between two variables without establishing any cause-effect relationship.
  2. as a necessary (and suggestive) but not sufficient condition to establish causality. If changing X causes Y to change, then X and Y must be correlated (but the correlation is not necessarily linear). X and Y may, however, be correlated without X causing Y. It may be that Y causes X. Maybe increasing Z causes increases in both X and Y, producing a correlation between X and Y with no cause-effect relationship between X and Y. For example, smoking cigarettes is well known to be correlated with health problems in humans, but we cannot do experimental research on the effect of smoking upon humans’ health. Experimental research with rats has shown a causal relationship, but we are not rats. One alternative explanation of the correlation between smoking and health problems in humans is that there is a third variable, or constellation of variables (genetic disposition or personality), that is causally related to both smoking and development of health problems. That is, if you have this disposition, it causes you to smoke and it causes you to have health problems, creating a spurious correlation between smoking and health problems – but the disposition that caused the smoking would have caused the health problems whether or not you smoked. No, I do not believe this model, but the data on humans cannot rule it out. As another example of a third variable problem , consider the strike by PATCO, the union of air traffic controllers back during the Reagan years. The union cited statistics that air traffic controllers had much higher than normal incidence of stress- related illnesses (hypertension, heart attacks, drug abuse, suicide, divorce, etc.). They said that this was caused by the stress of the job, and demanded better benefits to deal with the stress, no mandatory overtime, rotation between high stress and low stress job positions, etc. The government crushed the strike (fired all controllers), invoking a third variable explanation of the observed correlation between working in air traffic control

and these illnesses. They said that the air traffic controller profession attracted persons of a certain disposition (Type A individuals, who are perfectionists who seem always to be under time pressure), and these individuals would get those illnesses whether they worked in air traffic or not. Accordingly, the government said, the problem was the fault of the individuals, not the job. Maybe the government would prefer that we hire only Type B controllers (folks who take it easy and don’t get so upset when they see two blips converging on the radar screen)!

  1. to establish an instrument’s reliability – a reliable instrument is one which will produce about the same measurements when the same objects are measured repeatedly, in which case the scores at one time should be well correlated with the scores at another time (and have equivalent means and variances as well).
  2. to establish an instruments (criterion-related) validity – a valid instrument is one which measures what it says it measures. One way to establish such validity is to show that there is a strong positive correlation between scores on the instrument and an independent measure of the attribute being measured. For example, the Scholastic Aptitude Test was designed to measure individuals’ ability to do well in college. Showing that scores on this test are well correlated with grades in college establishes the test’s validity.
  3. to do independent groups t -tests : if the X variable, groups, is coded 0,1 (or any other two numbers) and we obtain the r between X and Y, a significance-test of the hypothesis that  = 0 will yield exactly the same t and p as the traditional pooled- variances independent groups t -test. In other words, the independent groups t -test is just a special case of correlation analysis, where the X variable is dichotomous and the Y variable is normally distributed. The r is called a point-biserial r. It can also be shown that the 2 x 2 Pearson Chi-square test is a special case of r. When both X and Y are dichotomous, the r is called phi ().
  4. One can measure the correlation between Y and an optimally weighted set of two or more X’s. Such a correlation is called a multiple correlation. A model with multiple predictors might well predict a criterion variable better than would a model with just a single predictor variable. Consider the research reported by McCammon, Golden, and Wuensch in the Journal of Research in Science Education , 1988, 25 , 501-
  5. Subjects were students in freshman and sophomore level Physics courses (only those courses that were designed for science majors, no general education courses). The mission was to develop a model to predict performance in the course. The predictor variables were CT (the Watson-Glaser Critical Thinking Appraisal), PMA (Thurstone’s Primary Mental Abilities Test), ARI (the College Entrance Exam Board’s Arithmetic Skills Test), ALG (the College Entrance Exam Board’s Elementary Algebra Skills Test), and ANX (the Mathematics Anxiety Rating Scale). The criterion variable was subjects’ scores on course examinations. Our results indicated that we could predict performance in the physics classes much better with a combination of these predictors than with just any one of them. At Susan McCammon’s insistence, I also separately analyzed the data from female and male students. Much to my surprise I found a remarkable sex difference. Among female students every one of the predictors was significantly related to the criterion, among male students none of

 Correlation and Causation  Cronbach’s Alpha and Maximized Lambda  Inter-Rater Agreement  Phi  Residuals Plots -- how to make them and interpret them  Tetrachoric Correlation -- what it is and how to compute it. Copyright 2009, Karl L. Wuensch - All rights reserved.