Docsity

Lecture Notes on Correlation - Educational Statistics | EDUR 8131, Study notes of Linguistics

Toggle sidebar
bg1
Notes 6: Correlation
1. Correlation
• correlation: this term usually refers to the degree of relationship or association between two
quantitative variables, such as IQ and GPA, or GPA and SAT, or HEIGHT and WEIGHT, etc.
• positive relationship (↑↑): two variables vary in the same direction, i.e., they covary together; as one
variable increases, the other variable also increases; e.g., higher GPAs correspond to higher SATs,
and lower GPAs correspond to lower SATs;
• negative (inverse) relationship (↑↓): as one variables increases, the other decreases; e.g., higher
GPAs correspond with lower SATs
(What type of relationship is it if both variables covary like ↓↓?)
• scatterplots, scattergrams: graphs that illustrate the relationship between two variables; each point of
the scatter represents scores on two variables for one case or individual
Figure 1, below, shows a positive and relatively strong correlation between SAT and IQ. Three points are
identified in Figure 1 with arrows. One individual scored 674 on SAT and 84 on IQ, one scored 183 on
SAT and 58 on IQ, and another scored 342 on SAT and 113 on IQ. As these three points illustrate, each
dot represents the combination of two variables for one individual or case.
Figure 1: Correlation between SAT and IQ
***Begin Stata commands, Ignore these marks***
.corr2data SAT IQ, n(500) means(500 100) corr(1.00 .6321 1.00) sds(100 15) cstorage(lower)
.replace SAT = round(SAT)
.replace IQ = round(IQ)
.twoway (scatter SAT IQ, msymbol(circle)), ytitle(Mathematics SAT Scores (M = 500, SD = 100))
xtitle(IQ Scores (M = 100, SD = 15)) legend(symplacement(north)) scheme(s2mono) text(342 113 "
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13

Partial preview of the text

Download Lecture Notes on Correlation - Educational Statistics | EDUR 8131 and more Study notes Linguistics in PDF only on Docsity!

Notes 6: Correlation

  1. Correlation
  • correlation: this term usually refers to the degree of relationship or association between two quantitative variables, such as IQ and GPA, or GPA and SAT, or HEIGHT and WEIGHT, etc.
  • positive relationship (↑↑): two variables vary in the same direction, i.e., they covary together; as one variable increases, the other variable also increases; e.g., higher GPAs correspond to higher SATs, and lower GPAs correspond to lower SATs;
  • negative (inverse) relationship (↑↓): as one variables increases, the other decreases; e.g., higher GPAs correspond with lower SATs

(What type of relationship is it if both variables covary like ↓↓?)

  • scatterplots, scattergrams: graphs that illustrate the relationship between two variables; each point of the scatter represents scores on two variables for one case or individual

Figure 1, below, shows a positive and relatively strong correlation between SAT and IQ. Three points are identified in Figure 1 with arrows. One individual scored 674 on SAT and 84 on IQ, one scored 183 on SAT and 58 on IQ, and another scored 342 on SAT and 113 on IQ. As these three points illustrate, each dot represents the combination of two variables for one individual or case.

Figure 1: Correlation between SAT and IQ

Begin Stata commands, Ignore these marks .corr2data SAT IQ, n(500) means(500 100) corr(1.00 .6321 1.00) sds(100 15) cstorage(lower) .replace SAT = round(SAT) .replace IQ = round(IQ) .twoway (scatter SAT IQ, msymbol(circle)), ytitle(Mathematics SAT Scores (M = 500, SD = 100)) xtitle(IQ Scores (M = 100, SD = 15)) legend(symplacement(north)) scheme(s2mono) text(342 113 "

SAT = 342, IQ = 113", placement(e)) text(674 84 "SAT = 674, IQ = 84 ", placement(w)) text( 58 " SAT = 183, IQ = 58", placement(e)) End Stata commands, Ignore these marks

Figure 2: Three Scatterplots

(a) (b) (c)

In Figure 2 are three scatterplots: (a) shows a positive relationship, figure (b) shows a negative relationship, and figure (c) depicts a curvilinear or non-linear relationship.

  • linear representation: can a single, straight line be drawn for figure (a) that best represents the relationship between the two variables? what about (b), (c)? (draw the lines on the scatterplots)

In many cases the nature of relationship between two variables can be represented by a line that fits among the scatter. Examples are presented in Figure 3.

Figure 3: Scatterplots with lines representing the general trend of the relationship

(a) (b) (c)

  1. Pearson's r
  • Pearson's r, or the Product Moment Coefficient of Correlation: r is a measure of the degree of linear relationship or association between two (usually quantitative) variables; the population correlation is denoted as  (Greek rho), and r refers to correlation obtained from a sample
  • calculating r: three formulas for r are provided:

formula A: r = − 1

n

Z (^) x Zy

where n - 1 is the sample size minus 1, zx are the z scores on variable X, zy are the z scores on variable Y, and r is the Pearson's correlation coefficient;

Example of Range Restriction

Universities frequently make use standardized tests in an effort to screen applicants. Below are descriptive statistics for GRE mathematics scores and first year graduate GPA from 500 students. Note from the statistical output that the correlation is .59.

. correlate GRE GPA, means (obs=500) Variable | Mean Std. Dev. Min Max -------------+---------------------------------------------------- GRE | 500 100 183.0000 800. GPA | 3.000795 .8455727 .2300000 4

| GRE GPA -------------+------------------ GRE | 1. GPA | 0.5932 1.

As Figure 4 shows, there is a positive relation between GRE and GPA. Note the ceiling effect of GPA with a number of students earning 4.00 during their first year.

Figure 4: Scatterplot for GRE and GPA

0

1

2

3

4

GPA

200 400 600 800 GRE

What would happen if students with GRE mathematics scores of only 450 or better are admitted? How might that change the scatterplot and correlation? These data used to generate descriptive statistics and scatterplot above are used again, below, but this time restricting observations to only students with a score of 450 or better on GRE mathematics sub-section.

As results presented in the descriptive statistics and scatterplot show, the correlation between GRE and GPA is reduced as a result of the range restriction placed on GPA, from .59 to .41. Range restriction in a situation like this falsely implies that GRE scores provide less predictive power than is actually the case.

. correlate GRE GPA if GRE>=450, means Variable | Mean Std. Dev. Min Max -------------+---------------------------------------------------- GRE | 549.8239 72.44123 450.0053 818. GPA | 3.277684 .6831325 .564881 4

| GRE GPA -------------+------------------ GRE | 1. GPA | 0.4122 1.

Figure 5: Scatterplot for GRE and GPA with only GRE scores 450 or better

0

1

2

3

4

GPA

400 500 600 700 800 GRE

Example of Extreme Score

Normally one would think that there should be no relationship between a male’s height and his SAT verbal score. However, the data below from 25 men show a moderate correlation of r = .31 height, measured in feet, and SAT verbal scores. How can this be? The scatterplot, Figure 6, provides the answer. Note in Figure 6 the extreme score, the outlier, showing one individual with a height of over 9 feet. This is a data entry error.

. correlate SAT Height, means Variable | Mean Std. Dev. Min Max -------------+---------------------------------------------------- SAT | 500 100 311.5515 670. Height | 5.988138 .8350335 5.026478 9.

| SAT Height -------------+------------------ SAT | 1. Height | 0.3138 1.

where D refers to the difference between the ranks on the two variables.

  • Phi Coefficient, φ or rφ: appropriate for two dichotomous variables (a nominal variable with only two categories is referred to as dichotomous); one may apply Pearson's r to the two dichotomous variables to obtain rφ, although simplified formulas exist.
  • Point-Biserial Coefficient, rpb: this correlation is appropriate when one variable is dichotomous and the other is continuous with either an interval or ratio scale of measurement; as with the other two, rpb is simply Pearson's r, although a simplified formula exists.

Figure 7: Scatterplots with Correlations

Summary of Correlation Coefficients

Correlation Coefficient Variable X Variable Y

Pearson's r r interval, ratio interval, ratio

Spearman's Rank rranks ordinal (ranked) ordinal (ranked)

Phi rφ dichotomous dichotomous

Point-Biserial rpb dichotomous interval, ratio

Note: ranked refers to ordering the original data from highest to lowest and then assigning ordinal ranks, e.g., 1, 2, 3,…

  1. Proportional Reduction in Error (PRE); Predictable Variance; Variance Explained
  • interpretation of r: the coefficient r indicates direction of linear association and, to a lesser extent, strength of association; the closer the value r to + 1.00 (or -1.00), the stronger the relationship;
  • squaring r, r^2 : this value provides a more interpretable quantity—the proportional reduction in error or the proportion of predictable variance accounted for, or the variance overlap between two variables; extent of covariation in percentage terms; simply put, r^2 is a measure of the amount of variability, in proportions, that overlaps between two variables (for pictorial description, see Venn diagrams)

r^2 is a measure of the strength of the relationship between two variables; the larger r^2 , the stronger the relationship. r^2 is sometimes called the strength of association or the coefficient of determination. r^2 ranges from 0.00 to 1.00; the closer to 1.00, the stronger the relationship.

Viewing r^2 as the Proportional Reduction in Error (PRE) is perhaps easiest to understand. Assume that one is trying to predict freshmen college GPA. Suppose one knows, from previous years, that freshmen GPA ranges from 2.00 to 4.00 for students in a given university, with a mean of 3.00. Without know anything else about students, one’s best prediction for the likely values of GPA for a group of freshmen is the mean of 3.00, with a range of 2.00 to 4.00. If the mean for a given group of students is 2.50, then our predicted mean of 3.00 is in error. If the mean for another group of students is 3.1, then our predicted mean of 3.00 is again in error. Is there any way to reduce the amount of error one has in making predictions for GPA? The answer is yes if one has access to additional information about each student.

Now suppose additional information about each student is available, such as their high school class rank and their rank based upon SAT scores. By using this information, it is possible to reduce errors in prediction. While correlation coefficients are not designed to provide prediction equations (regression is used for that purpose), squared correlation coefficients can provide information about the extent to which prediction error will be minimized. The squared correlation coefficient, r^2 , indicates the proportional reduction in error that will result for knowing additional information, such as SAT rank.

r^2 , Proportional Reduction in Error Illustrated

Below is a correlation matrix showing college GPA correlates .116 with High School Class Rank (HS_rank) and .697 with a student’s SAT score rank (SAT_rank). Since both correlations are positive, they indicate that as rank, either HS or SAT, increases, GPA also increases.

  1. Correlation and Causation A correlation between variables does not imply the existence of causation, i.e., X → Y or Y → X. A strong correlation does not imply causation (e.g., r = .98; fire trucks and damage in urban areas), neither does a weak correlation imply the lack of causation (e.g., r = .04). Causation can only be established via experimental research and replications. Correlational research (i.e., non-experimental research) cannot be used to establish the existence of causal relationships.
  2. Testing a Pearson's correlation coefficient, r.

(a) Calculating a t-ratio for r When testing a correlation coefficient, one is typically interested in whether the correlation is statistically different from a value of 0.00; that is, one is interested in learning whether the calculated correlation is statistically different from no linear relationship (r = 0.00). The formula for obtaining a calculated t-value for the correlation is:

t = (^2) 1

r

r n −

and the df (or υ) are

df = n - 2

where n is the number of pairs of scores (or the number of subjects, the sample size).

Hypotheses for r Hypotheses for r include:

Non-directional

H 1 : ρ ≠ 0. H 0 : ρ = 0.

Directional (one-tail tests):

Lower-tail (r is negative)

H 1 : ρ < 0. H 0 : ρ = 0.

Upper-tail (r is positive)

H 1 : ρ > 0. H 0 : ρ = 0.

Statistical significance level The statistical significance level, alpha, is usually set at the conventional .10, .05, or .01 level. Critical values one uses for testing the correlation are the same t-values used above for the one sample t-test.

Decision rules The decision rules for the test of the correlation follow:

Two-tailed tests: If t ≤ -tcrit or t ≥ tcrit, then reject H 0 ; otherwise, fail to reject H 0

One-tailed test (upper-tailed, a hypothesized positive r) If t ≥ tcrit, then reject H 0 ; otherwise, fail to reject H 0

One-tailed test (lower-tailed, a hypothesized negative r) If t ≤ - tcrit, then reject H 0 ; otherwise, fail to reject H 0

Note that tcrit symbolizes the critical t-value.

An example A researcher wishes to determine if a relationship exists between the number of hours spent studying and performance on a statistics exam. The researcher, not being very bright, was unsure whether the relationship would be negative or positive, so he specified a non-directional hypothesis (e.g., there will be a relationship between hours spent studying and performance on the statistics exam). Using the 17 students in his class, the researcher found the correlation between hours studied and exam grade to be r = .42. To determine if it was likely that this sample of students comes from a population with ρ = 0 (i.e., no linear relationship between the variables), the correlation was tested for statistical significance at the 1%, .01, level.

t = 1 2

r

r n −

A two-tailed test with α = .01 and df = 17 - 2 = 15, has a critical value of ±2.947, so the null hypothesis is not rejected at the 1% level of significance.

(Why no rejection—what is the decision rule? How does one interpret this result?)

(If, however, the statistical significance level was set at .05, would a different conclusion result?)

(What about α = .05 with a upper-tailed test to test for a positive correlation? What conclusion is drawn, and if the result is different, why is it different?)

(Note: In actual research one is not to alter either the statistical significance level or the hypothesis once the data are collected. That is, if your results are not statistically significant the first time, then stop there. The alterations above were done for illustrative purposes only.)

(b) Critical r values, rcrit Finally, note that for statistical tests of correlation coefficients, there is a much easier procedure than the use of t-ratios. Once you have:

Recall the example presented above. Try testing the correlation between time spent studying and performance on a statistics examination (r = .42) using the same levels of significance presented above (α = .01, α = .05, and α = .05 upper-tailed test).

(c) Hypothesis testing and p-values for r

If using statistical software to perform hypothesis testing, one simply compares the obtained p-value for the correlation, r, to α to determine statistical significance. Note that most software reports, by default, p- values for two-tailed tests. The decision rule is:

If p ≤ αααα, then reject H 0 ; otherwise, fail to reject H 0

Results from SPSS are reported below. The row labeled Sig. (2-tailed) provides the p-value for a two- tailed test (these rows are in bold).

Descriptive Statistics Mean Std. Deviation N GPA 3.1000 .3000 750 HS_RANK 50.0000 28.9318 750 SAT_RANK 50.0000 28.9318 750

Correlations GPA HS_RANK SAT_RANK GPA Pearson Correlation 1.000 .117. Sig. (2-tailed). .001. N 750 750 750 HS_RANK Pearson Correlation .117 1.000. Sig. (2-tailed) .001.. N 750 750 750 SAT_RANK Pearson Correlation .697 .283 1. Sig. (2-tailed) .000.. N 750 750 750 ** Correlation is significant at the 0.01 level (2-tailed).

Focusing just on the correlation between GPA and HS_Rank (r = .117), the decision rule in this case, using α = .05, results in:

If .001 ≤ .05, then reject H 0 ; otherwise, fail to reject H 0

Since .001 is less than .05, H 0 is rejected and once concludes that there is a statistically significant positive correlation between college GPA and High School Class Rank. The higher one’s class rank, the higher one’s college GPA.

(d) Exercises

(1) A researcher finds the following correlation between GPA and SAT scores: r = .56, n = 19. Using a lower-tailed test, test for the statistical significance of this correlation with α = .01. Use both the critical t and critical r methods for testing the correlation.

(2) A researcher finds a correlation of r = .139 between academic self-efficacy and academic performance. Is this correlation statistically different from zero? (Note: n = 30, α = .05, and use a two- tailed test.)

(3) What is the smallest sample size is needed in (2) to reject H 0?

(4) A researcher finds a negative correlation (i.e., r = -.65, n = 100) between academic self-efficacy and test anxiety. Is the population correlation between these two variables likely to be different from zero? Set α = .01, and base the statistical test upon the following information H 1 : ρ > 0.00.

(5) The more one studies, the more likely one will perform well in school. Test this supposition using the following information: r = -.33, n = 44, α = .05, H 1 : ρ ≠ 0.00.

(6) The following information was obtained for the two variables X and Y: r^2 = .25, n = 33. Using the following, test for statistical significance: α = .01, H 1 : ρ < 0.00. Also test for the following: H 1 : ρ ≠ 0.00.

  1. Correlation Matrices Often researchers calculate correlation coefficients among several variables. A convenient method for displaying these correlations is via a correlation matrix. Below are the correlations among IQ, SAT, GRE, and GPA. Usually such tables include a footnote such as this: * p < .05. The asterisk denotes that a particular correlation is statistically different from 0.00 at the .05 level. If the asterisk is not next to a particular correlation, that means the null hypothesis was not rejected for that correlation. The dashed lines, ---, denote perfect correlations (r = 1.00). The correlation between a variable and itself is always equal to 1.00.

IQ SAT GRE GPA

IQ ---

SAT .75* ---

GRE .81* .82* ---

GPA .45* .36 .42 ---

  • p <.

(Which correlations are statistically significant?)

Next, find the sum of the product of the Z scores.

Student SAT IQ ZSAT ZIQ ZIQ^ ×ZSAT

Bill 1010 100 -0.409 -0.057 0.

Beth 1085 101 0.976 0.043 0.

Bryan 1080 102 0.884 0.143 0.

Bertha 990 95 -0.778 -0.558 0.

Barry 970 87 -1.148 -1.360 1.

Betty 1100 120 1.253 1.947 2.

Bret 990 99 -0.778 -0.157 0.

∑ Z^ IQ ZSAT= 4.

Formula A: r = − 1

n

Z IQ ZSAT

For formula B, one must first calculate the covariance, sxy, between both variables.

Formula B: r = X Y

XY s s

s , where sxy = 1

n

X (^) i X Yi Y

1

n

X (^) iYi nX Y

Student SAT IQ SAT^ ×IQ

Bill 1010 100 101000

Beth 1085 101 109585

Bryan 1080 102 110160

Bertha 990 95 94050

Barry 970 87 84390

Betty 1100 120 132000

Bret 990 99 98010

IQ = 100.571; (^) SSIQ = 597.714; s^2 = 99.619; sIQ = 9.

SAT = 1032.143; SSSAT = 17592.854;, s^2 = 2932.142; sSAT = 54.

∑ SAT^ ×^ IQ= 729195

sxy = sIQ SAT = IQ SAT

IQSAT s s

s

1

n

X (^) i X Yi Y

1

n

X (^) i Yi n X Y

7 1

− × ×

r = X Y

XY s s

s

IQ SAT

IQSAT s s

s

  1. 981 54. 149

×

Formula C is the formula used before widespread use of computer due to its ease of calculation (despite that this formula looks more complex than the other two!).

Formula C: r = [ ( )][ ( ) ]

2 2 2 2

n X X n Y Y

n XY X Y

Student SAT IQ IQxSAT SAT^2 IQ^2

Bill 1010 100 101000 1020100 10000

Beth 1085 101 109585 1177225 10201

Bryan 1080 102 110160 1166400 10404

Bertha 990 95 94050 980100 9025

Barry 970 87 84390 940900 7569

Betty 1100 120 132000 1210000 14400

Bret 990 99 98010 980100 9801

∑SAT = 7,225; ∑(SAT^2 ) = 7,474,825; ∑ IQ = 704; ∑(IQ^2 ) = 71,400; and ∑(SAT*IQ) = 729,

r = [ ( )][ ( ) ]

2 2 2 2

n X X n Y Y

n XY X Y

[ ( )][ ( ) ]

2 2 2 2

× −

n IQ IQ n SAT SAT

n IQ SAT IQ SAT

[( 7 7474825 ) 52200625 ][( 7 71400 ) 495616 ]

× − × −

× − ×

×

  1. What is the association between annual income and happiness? (answer r = -.124)

Student Income Happiness Bob 250,000 7 Linda 17,500 9 Marlynn 42,000 8 Bryan 40,000 5 Eric 7,000 7 Note. Higher scores on the happiness scale indicate more happiness.

  1. What is the relationship between sex and math ability? Based upon the correlation, which sex appears to have more mathematical ability? (answer r = .264)

Student Sex Math Ability Bob 1 8 Linda 0 5 Marlynn 0 9 Bryan 1 8 Jennifer 0 4 Eric 1 5 Note. Higher math ability scores indicates greater math ability.