Mini - Lecture (Pearson CorrelationShort)
Mini - Lecture (Pearson CorrelationShort)
Welcome to
Mini-Lecture
CORRELATION
(Pearson Correlation)
Pearson Correlation
Data Set:
Two Quantitative Variables
What Is
Graphical Correlation Numerical
Presentation Coefficient? Presentation
Use (R-Studio or R ) to
Compute and Graph the
Correlation Practice
Correlation measures the linear relationship between two quantitative
variables.
Objectives : Pearson correlation (r)
Pearson correlation (r) is used to assess the relationship between two
continuous variables (for each subject). The Pearson is the most commonly
used form of correlation; hence, it will be discussed first.
−1 0 +1
The Data are published in Canvas as csv file under the name “TimeandGrade Data”
name time grade
Brown 75 61
Campbell 107 83
DiNitto 80 60
Frank 91 67
Gray 91 78
Harrett 89 64
Jarvis 95 85
Kirk 110 85
Kretzschmar 118 90
Lindsey 115 92
Martin 102 81
McHugh 83 63
Montgomery 97 73
Moon 105 77
O'Connell 94 78
Prince 115 86
Reed 82 78
Roseman 96 80
Rumball-Peter 103 84
Shaw 98 70
Sheldon 71 52
Smith 76 79
Swatt 73 55
Torcivia 120 95
Vanmeter 109 77
Waddell 97 62
Wambach 96 74
Webb 89 66
Whitaker 100 89
Wilsoncroft 120 91
Use data set: Enter Data into R or R Studio
name time grade
Brown 75 61
Campbell 107 83
DiNitto 80 60
Frank 91 67
Gray 91 78
Harrett 89 64
Jarvis 95 85
Kirk 110 85
Kretzschmar 118 90
Lindsey 115 92
Martin 102 81
McHugh 83 63
Montgomery 97 73
Moon 105 77
O'Connell 94 78
Prince 115 86
Reed 82 78
Roseman 96 80
Rumball-Peter 103 84
Shaw 98 70
Sheldon 71 52
Smith 76 79
Swatt 73 55
Torcivia 120 95
Vanmeter 109 77
Waddell 97 62
Wambach 96 74
Webb 89 66
Whitaker 100 89
Wilsoncroft 120 91
Create a Scatter Plot Using R: First Open the data
8
Each dot depicts a pair of variables
83
107
Calculate the Correlation Using R
Results
• The Pearson correlation (r) of .815 with a p < .001
(< .05) indicates a statistically significant strong positive
correlation between the test taking time and grade
12
Correlation vs. Causation
• Correlation means that two variables move in a predictable fashion
with respect to each other
• In positive correlations, the variables move in the same direction:
(X Y) or (X Y)
• In negative correlations, the variables move in different directions:
(X Y) or (X Y)
• No matter how strong the correlation, it would be
inappropriate to automatically claim that X causes Y, or that
Y causes X
• Example:
• Z (Depression) may be causing:
X (Poor sleep)
and
Y (Low productivity)
Correlation vs. Causation
A (cause [independent variable]) The person took aspirin, and then the
2 Temporality precedes B (effect [dependent fever went down; not the other way
variable]). around.