






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Perfect Positive Linear 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X
Perfect Negative Linear 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X
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
Perfect Negative Monotonic 0 2 4 6 8 10 12 0 1 2 3 4 5 6 X
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 x y. 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
x y
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 :
. 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:
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?
(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)!
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.