Docsity

Understanding Bivariate Associations: Scatter Plots & Correlation - Prof. Karl L. Wuensch, Study notes of Psychology

Toggle sidebar
bg1
Perfect Positive Linear
0
2
4
6
8
10
12
0123456
X
Y
Perfect Negative Linea r
0
2
4
6
8
10
12
0123456
X
Y
2101
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.
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.
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:
Copyright 2009, Karl L. Wuensch - All rights reserved.
Corr2101.doc
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Understanding Bivariate Associations: Scatter Plots & Correlation - Prof. Karl L. Wuensch and more Study notes Psychology in PDF only on Docsity!

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

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. 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. 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:  (^) Copyright 2009, Karl L. Wuensch - All rights reserved. Corr2101.doc

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 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. We shall not cover in this course the techniques available to analyze such a relationship (such as polynomial regression). Do note that a linear relationship is a monotonic relationship but a monotonic relationship is not necessarily a linear relationship. If I tell you that every time X goes up Y also goes up, then you know the relationship is monotonic, but you do not know whether or not it is linear. Please read the document at http://core.ecu.edu/psyc/wuenschk/docs01/If-A-Then-B.doc. Of course, with real data, the dots are not likely all to fall on any one simple line, but may be approximately described by a simple line. We shall learn how to compute correlation coefficients that describe how well a straight line fits the data. If your plot shows that the line that relates X and Y is linear, you should use the Pearson correlation coefficient discussed below. If the plot shows that the relationship is monotonic (not a straight line, but a line whose slope is always positive or always negative), you can use the Spearman correlation coefficient discussed below. If your plot shows that the relationship is curvilinear but not monotonic, you need advanced techniques (such as polynomial regression) not covered in this class. Let us imagine that variable X is the number of hamburgers consumed at a cook-out, and variable Y is the number of beers consumed. We wish to measure the relationship between these two variables and develop a regression equation that will enable us to predict

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. Computing 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 (^10) ( 40 ).^8 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. If we have X,Y data sampled randomly from some bivariate population of interest, we may wish to test H:  = 0, the null hypothesis that the population correlation coefficient ( rho ) is zero, X and Y are independent of one another, there is no linear association between X and Y. This is quite simply done with Student’s t :

  1. 309
  2. 64

. 8 3 1 2 ^2 ^     r r n t (^) , with df = N - 2. You should remember that we used this formula earlier to demonstrate that the independent samples t test is just a special case of a correlation analysis – if one of the variables is dichotomous and the other continuous, computing the (point biserial) r and testing its significance is absolutely equivalent to conducting an independent samples t test. Keep this in mind when someone tells you that you can make causal inferences from the results of a t test but not from the results of a correlation analysis – the two are mathematically identical, so it does not matter which analysis you did. What does matter is how the data were collected. If they were collected in an experimental manner (manipulating the independent variable) with adequate control of extraneous variables, you can make a causal inference. If they were gathered in a nonexperimental manner, you cannot. Putting a Confidence Interval on R or R^2 It is a good idea to place a confidence interval around the sample value of r or r^2 , but it is tedious to compute by hand. Fortunately, there is now available a free program for

constructing such confidence intervals. Please read my document Putting Confidence Intervals on R^2 or R. For our beer and burger data, a 95% confidence interval for r extends from -.28 to .99. This should be reported in the summary statement. Reporting Pearson r For our beer and burger data, our APA summary statement could read like this: “ The correlation between my friends’ burger consumption and their beer consumption fell short of statistical significance, r ( n = 5) = .8, p = .10. A 95% confidence interval for ρ runs from -.28 to .99.” For some strange reason, the value of the computed t is not generally given when reporting a test of the significance 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 positively related to beer consumption, ..........” Assumptions When Testing Hypotheses About r or Putting a Confidence Interval on r****. 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. Homoscedasticity
  5. The variance in the conditional distributions of Y|X is constant across values of X.
  6. The variance in the conditional distributions of X|Y is constant across values of Y.

X 0 1 2 3 4 5 6 Y 120000 100000 80000 60000 40000 20000 0

As you can see, the relationship between X and Y is perfectly monotonic (and nearly perfect exponential – the correlation between X and the log of Y is almost perfect), so the Spearman coefficient is 1.000. The Pearson (linear) coefficient does not really adequately describe how strongly X and Y are related. 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 [see the online document When Does Correlation Imply Causation?]. 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 independent variable, X, groups, is coded 0,1 (or any other two numbers) and X is correlated with the dependent variable, 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. 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-510. 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

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. 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:. 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! Copyright 2009, Karl L. Wuensch - All rights reserved.