Download presentation
Presentation is loading. Please wait.
Published byJoshua Hunter Modified over 8 years ago
1
Correlation and Regression Q560: Experimental Methods in Cognitive Science Lecture 13
2
Correlation and Regression Correlation and Regression are related techniques that differ depending on the variable type Fixed Variable: The values of the variable are determined by the experimenter. A replication of the experiment would produce same values Random Variable: The values of the variable are are beyond the experimenter’s control. We don’t know what the values will be until we collect the data E.g.: Running speed (Y) and number of trials to reach criterion (Y), or number of food pellets of reinforcement (X)
3
Correlation and Regression Technically, regression involves predicting a random variable (Y) using a fixed variable (X). In this situation, no sampling error is involved in X, and repeated replications will involve the same values for X (This allows for prediction) Correlation describes the situation in which both X and Y are random variables. In this case, the values for X and Y vary from one replication to another and thus sampling error is involved in both variables. Unfortunately, this distinction is rarely followed in practice…
4
PersonXY -------------------------- A11 B1 3 C3 2 D4 5 E6 4 F7 5 A B C D E F
5
Correlation measures the direction and degree of of the relationship between X and Y 1.Direction: positive (+) or negative (-). Examples: Correlation of beer sales and temperature (positive) Correlation of coffee sales and temperature (negative)
6
Pearson Correlation Coefficient Most commonly used correlation: The Pearson correlation measures the degree and direction of a linear relationship between variables. r = degree to which X and Y vary together degree to which X and Y vary separately r = covariability of X and Y variability of X and Y separately
7
Pearson Correlation Previously: SS (“sum of squared deviation”) was our measure of variability. Now: SP (“sum of squared products”) is our measure of covariability.
8
Pearson Correlation Calculation of the Pearson correlation:
9
Pearson Correlation An example: XY --------------------------------------- 01 103 4 1 8 2 8 3
10
Pearson Correlation An example: XY X 2 Y 2 XY --------------------------------------- 01 0 1 0 103 100 9 30 4 1 16 1 4 8 2 64 4 16 8 3 64 9 24 30 10 244 24 74
11
A) B) C) D)
12
Some Issues with Correlation Nonlinearity: The data may be consistently related, but not in a linear fashion Outliers: Correlation is particularly susceptible to a few extreme scores--always look at the plot!
13
Computing correlations with SPSS using semantic associativity metrics
14
Regression
15
What does this line accomplish: Relationship between SAT and GPA is “easier to see”. Line = “central tendency” of the relationship = simplified description of the relationship. Line can be used for prediction. X = predictor variable; Y = predicted/criterion Statistical technique for finding the best-fitting straight line for a set of data is called regression
16
Regression Linear equation: b = slope a = y-intercept
17
Regression Regression equation: b = SP SS X a = M Y - bM X
18
Regression Predicting performance on a statistics test given number of hours studied: Predicted Score on test = weight Mean score on Test with no studying + x Number of hours You have studied
19
Regression Predicting performance on a statistics test given number of hours studied: Predicted Score on test = weight Mean score on Test with no studying + x Number of hours You have studied
20
Regression Predicting performance on a statistics test given amount of stress: Predicted Score on test = weight Mean score on Test with no stress + x Amount of Stress
21
Regression Predicting performance on a statistics test given amount of stress and hours studied: Predicted Score on test = b1 Mean score on Test with no stress Or studying + + b2
22
Example
24
B)
25
C)
26
Standard Error of the Estimate How “good” is this prediction? (How close are the actual Y-values to the regression equation?) The standard error of estimate gives a measure of the distance between a regression line and the actual data points.
27
More error Less error
28
Regression Standard error of estimate is very similar to the standard deviation. SS error = (Y-Y) 2 ^ Standard error of estimate:
29
XY ABCDEABCDE 68 80 76 82 65 40 85 64 94 30 40.16 83.60 69.12 90.84 29.30 -0.16 1.4 -5.12 3.16 0.7.026 1.96 26.21 9.98 0.49 SS error = (Y-Y) 2 ^ 38.67
31
Linear regression with SPSS using large-scale word recognition databases See regression crib sheet online for interpreting output
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.