| Absolute correlation | Interpretation |
|---|---|
| 0.00 | No linear correlation |
| Above 0.00 to below 0.30 | Weak linear correlation |
| 0.30 to below 0.70 | Moderate linear correlation |
| 0.70 to below 1.00 | Strong linear correlation |
| 1.00 | Perfect linear correlation |
6 Correlation and Bivariate Linear Regression
(PSY206) Data Management and Analysis
1 Introduction to Correlation
Researchers often wish to investigate whether two variables are related.
For example, in psychological research, we may be interested in the relationship between:
- Age and reading ability in children.
- Study time and academic performance.
- Stress and sleep duration.
- Self-esteem and life satisfaction.
- Age and visual perception.
Correlation measures the direction and strength of association between two variables.
In a typical correlational study, both variables are measured rather than experimentally manipulated.
For example, to investigate the relationship between smoking and respiratory function, a researcher could measure the number of cigarettes smoked per day and respiratory function for each participant, and then examine the correlation between these two variables.
1.1 Correlation Does Not Imply Causation
A correlation between two variables does not necessarily mean that one variable causes changes in the other.
For example, there may be a positive correlation between:
- Ice cream sales.
- The number of drowning incidents.
Does eating ice cream cause drowning?
Probably not. A plausible explanation is a third variable: temperature.
During hot weather:
- More people buy ice cream.
- More people go swimming, increasing the opportunity for drowning incidents.
Thus, temperature may explain the observed association.
Even when a cause-and-effect explanation seems reasonable, correlation alone is not sufficient to establish causation.
1.2 Types of Correlation Coefficients
Francis Galton carried out early work on correlation. Karl Pearson later developed the widely used Pearson product-moment correlation coefficient.
Two commonly used correlation coefficients are:
- Pearson’s correlation coefficient (\(r\)) — measures the strength and direction of a linear relationship between two quantitative variables.
- Spearman’s rank correlation coefficient (\(r_s\)) — measures the strength and direction of a monotonic relationship using ranks.
A monotonic relationship is one in which one variable generally increases or decreases as the other increases, without necessarily following a straight line.
The choice of correlation coefficient depends on the measurement levels, characteristics of the data, and the nature of the relationship.
1.3 Correlation and Sample Size
The reliability and precision of a sample correlation coefficient depend partly on the sample size.
- Small samples generally produce less precise estimates of correlation.
- Individual extreme observations may have a substantial influence, particularly in small samples.
- Larger samples generally provide more precise estimates.
There is no universal minimum sample size for correlation analysis. An appropriate sample size depends on the expected strength of association, desired precision, and statistical power.
Before calculating a correlation coefficient, it is good practice to examine a scatterplot.
2 Producing a Scatterplot
A scatterplot (also called a scattergram) provides a visual representation of the relationship between two quantitative variables.
- Each point represents one observation or case.
- The horizontal position represents the value of one variable.
- The vertical position represents the value of another variable.
A scatterplot helps us examine:
- Direction of association.
- Strength of association.
- Form of association (linear or non-linear).
- Clusters of observations.
- Potential outliers.
A fitted regression line may be added to summarize the linear trend in the data.
2.1 Direction of Correlation
Positive Correlation
As one variable increases, the other variable tends to increase.
For example, older children generally tend to have better reading ability than younger children.

Negative Correlation
As one variable increases, the other variable tends to decrease.
For example, higher levels of stress may be associated with fewer hours of sleep.
No Linear Correlation
There is no clear increasing or decreasing linear pattern between the two variables.
However, the absence of a linear correlation does not necessarily mean that the variables are unrelated.
2.2 Strength of Correlation
Pearson’s correlation coefficient ranges from \(-1\) to \(+1\):
\[ -1 \leq r \leq 1. \]
- \(r=+1\): perfect positive linear correlation.
- \(r=-1\): perfect negative linear correlation.
- \(r=0\): no linear correlation.
The sign of \(r\) indicates the direction of the relationship.
The absolute value of \(r\), denoted by \(|r|\), indicates the strength of the linear relationship.
The closer \(|r|\) is to 1, the stronger the linear relationship.

2.3 Interpreting the Strength of Correlation
The following classification may be used as a rough descriptive guide:
For example:
- \(r=0.82\): strong positive linear correlation.
- \(r=-0.82\): strong negative linear correlation.
- \(r=0.15\): weak positive linear correlation.
- \(r=-0.45\): moderate negative linear correlation.
Notice that \(r=0.82\) and \(r=-0.82\) indicate the same strength but opposite directions.
Note: These categories are only rough guidelines. The practical importance of a correlation depends on the research context.
2.4 Non-linear Relationships
Pearson’s correlation coefficient measures the strength of a linear relationship.
It may be close to zero even when a strong non-linear relationship exists.
For example, consider the relationship between psychological arousal and performance:
- At very low levels of arousal, performance may be poor.
- At moderate levels of arousal, performance may improve.
- At very high levels of arousal, performance may decline.
This produces an inverted U-shaped relationship.

Although the variables are clearly related, Pearson’s correlation may be close to zero.
Spearman’s correlation may also be close to zero because the relationship is not monotonic.
Important: Always examine a scatterplot before interpreting a correlation coefficient.
The main focus of this chapter is linear relationships.
3 Example Study: Age and Critical Flicker Frequency (CFF)
Mason et al. (1982) investigated whether the negative relationship between age and critical flicker frequency (CFF) differed between people with multiple sclerosis and control participants.
For teaching purposes, we use a control sample that reproduces some of the reported findings.
3.1 What is Critical Flicker Frequency?
Imagine a light flickering on and off repeatedly.
- At a low frequency, we can clearly see the light flickering.
- As the frequency increases, the flickering becomes more difficult to detect.
- Eventually, the flickering light appears to be a continuous, steady light.
The threshold frequency at which the flickering is no longer perceived is called the critical flicker frequency (CFF).
CFF is generally measured in Hertz (Hz) and is used as a measure of temporal visual processing.
3.2 Dataset
The dataset contains two variables:
age: age of the participant in years.cff: critical flicker frequency in Hz.
Each participant’s CFF score is the mean of six repeated measurements.
The dataset can be downloaded here:
3.3 Research Question
Is age associated with critical flicker frequency?
Before calculating a correlation coefficient, let us examine the relationship using a scatterplot.

3.4 Questions
Examine the scatterplot and answer the following questions:
- Does the relationship appear positive or negative?
- Does the relationship appear weak, moderate, or strong?
- Is a straight line a reasonable representation of the relationship?
- Are there any obvious outliers?
- Would Pearson’s correlation be an appropriate measure of association?
4 Producing a Scatterplot in SPSS
4.1 Using Legacy Dialogs
- On the menu bar, click Graphs.
- Select Legacy Dialogs.
- Select Scatter/Dot.
- Select Simple Scatter.
- Click Define.
- Move
ageto the X Axis box. - Move
cffto the Y Axis box. - Click OK.


The scatterplot will appear in the SPSS Output Viewer.
4.2 Using Chart Builder
Alternatively, we can use the Chart Builder.
- Select Graphs > Chart Builder.
- If a reminder about measurement levels appears, confirm that the variables have been defined appropriately.
- From the Gallery, select Scatter/Dot.
- Drag a simple scatterplot into the chart preview area.
- Drag
ageto the horizontal axis. - Drag
cffto the vertical axis. - Click OK.
Both variables should be defined as Scale in Variable View.


4.3 SPSS Syntax for a Scatterplot
GRAPH
/SCATTERPLOT(BIVAR)=cff WITH age.Here, cff is displayed on the vertical axis and age on the horizontal axis.
5 Adding a Regression Line to a Scatterplot
A regression line summarizes the overall linear relationship between two variables.
To add a regression line:
- Double-click the scatterplot in the Output Viewer to open the Chart Editor.
- Select Elements > Fit Line at Total.
- Select the Linear fit method.
- Select the option to display the regression equation, if required.
- Apply the changes and close the Chart Editor.


- An upward-sloping regression line indicates a positive linear relationship.
- A downward-sloping regression line indicates a negative linear relationship.
- The closer the points lie to the regression line, relative to their overall variation, the stronger the linear relationship generally is.
However, the steepness of the regression line does not determine the strength of correlation, because the slope depends on the units of measurement.
6 Pearson’s Correlation Coefficient (\(r\))
Pearson’s product-moment correlation coefficient measures the direction and strength of the linear relationship between two quantitative variables.
For \(n\) pairs of observations \((x_i,y_i)\), the sample Pearson correlation coefficient is given by:
\[ r = \frac{ \displaystyle\sum_{i=1}^{n}(x_i-\bar{x})(y_i-\bar{y}) }{ \sqrt{ \displaystyle\sum_{i=1}^{n}(x_i-\bar{x})^2 \displaystyle\sum_{i=1}^{n}(y_i-\bar{y})^2 } }. \]
Pearson’s correlation coefficient is:
- Unit-free (dimensionless).
- Symmetric in the two variables.
- Bounded between \(-1\) and \(+1\).
- Sensitive to influential outliers.
The population correlation coefficient is denoted by \(\rho\) (rho), while the sample correlation coefficient is denoted by \(r\).
We use \(r\) as an estimate of \(\rho\).
6.1 Assumptions and Conditions
Before using Pearson’s correlation and its conventional significance test, consider the following:
- Both variables should be quantitative.
- The observations should be paired, meaning that both variables are measured for each case.
- The pairs of observations should be independent of one another.
- The relationship should be approximately linear.
- There should be no highly influential outliers.
- For the conventional exact significance test and related inference, the paired variables are commonly assumed to follow a bivariate normal distribution.
A scatterplot is particularly useful for examining linearity and unusual observations.
Note: Normality is not required simply to calculate Pearson’s \(r\). It is relevant to the validity of conventional statistical inference about the population correlation.
7 Hypothesis Testing for Pearson’s Correlation
Calculating a sample correlation coefficient tells us about the observed relationship in our sample.
However, we may also want to determine whether there is statistical evidence of a linear association in the population.
7.1 Two-tailed Test
The hypotheses are:
\[ H_0:\rho=0 \]
against
\[ H_1:\rho\neq 0. \]
- \(H_0\): There is no linear correlation in the population.
- \(H_1\): There is a non-zero linear correlation in the population.
A two-tailed test is appropriate when we are interested in detecting an association in either direction.
7.2 One-tailed Test
If we have a justified directional hypothesis specified before examining the data, we may use a one-tailed test.
For a negative correlation:
\[ H_0:\rho=0 \qquad \text{vs.} \qquad H_1:\rho<0. \]
For a positive correlation:
\[ H_0:\rho=0 \qquad \text{vs.} \qquad H_1:\rho>0. \]
A one-tailed test should not be selected simply because the observed correlation happens to be positive or negative.
When there is no clearly justified directional hypothesis, use a two-tailed test.
7.3 Test Statistic
Under the usual assumptions, the test statistic is:
\[ t=\frac{r\sqrt{n-2}}{\sqrt{1-r^2}}. \]
Under \(H_0:\rho=0\), the test statistic follows a Student’s \(t\)-distribution with \(n-2\) degrees of freedom.
\[ t\sim t_{n-2}. \]
SPSS calculates the corresponding p-value automatically.
7.4 Decision Rule
At the 5% level of significance:
- If \(p<0.05\), reject \(H_0\).
- If \(p\geq 0.05\), fail to reject \(H_0\).
Failing to reject \(H_0\) does not prove that the population correlation is zero.
8 Performing Pearson’s Correlation in SPSS
We continue with the Age–CFF dataset.
The research hypothesis is that CFF tends to decrease with increasing age.
The hypotheses for a one-tailed test are:
\[ H_0:\rho=0 \]
\[ H_1:\rho<0. \]
8.1 Steps
- Select Analyze > Correlate > Bivariate.
- Move
ageandcffinto the Variables box. - Select Pearson under Correlation Coefficients.
- Select One-tailed or Two-tailed, according to the research hypothesis.
- Select Flag significant correlations, if required.
- Click OK.


SPSS calculates pairwise correlations between the selected variables.
For example, if three variables \(A\), \(B\), and \(C\) are selected, SPSS calculates the correlations between:
- \(A\) and \(B\).
- \(A\) and \(C\).
- \(B\) and \(C\).
The results are presented in a correlation matrix.


8.2 SPSS Syntax
For a two-tailed test:
CORRELATIONS
/VARIABLES=age cff
/PRINT=TWOTAIL SIG
/MISSING=PAIRWISE.For a one-tailed test:
CORRELATIONS
/VARIABLES=age cff
/PRINT=ONETAIL SIG
/MISSING=PAIRWISE.8.3 Understanding the SPSS Output
The correlation table typically contains three important pieces of information:
| SPSS output | Meaning |
|---|---|
| Pearson Correlation | Sample correlation coefficient (r) |
| Sig. (1-tailed or 2-tailed) | p-value for the significance test |
| N | Number of valid paired observations |
When interpreting the output, consider:
- Direction: Is the correlation positive or negative?
- Strength: How large is the absolute value of the correlation coefficient?
- Statistical significance: Is there sufficient evidence of a population correlation?
- Sample size: How many observations were used?
If SPSS displays a significance value of
.000, report it as \(p<0.001\), not \(p=0.000\).
Always report the sign of the correlation coefficient.
9 Effect Size and Statistical Significance
Pearson’s correlation coefficient is itself a measure of effect size.
Its magnitude describes the strength of the observed linear association.
However, effect size and statistical significance are different concepts.
- Effect size describes the magnitude of the relationship.
- Statistical significance describes the strength of evidence against the null hypothesis, under the assumptions of the test.
The p-value depends on both the magnitude of the correlation and the sample size.
Consequently:
- A relatively strong correlation may not be statistically significant in a small sample.
- A weak correlation may be statistically significant in a large sample.
A statistically significant relationship is not necessarily a strong or practically important relationship.
9.1 Example: Correlation and Sample Size
Suppose two researchers obtain the same sample correlation, \(r=0.40\), but use different sample sizes.
| Sample size | Correlation | Test statistic | p-value | Decision |
|---|---|---|---|---|
| 15 | 0.4 | 1.574 | 0.14 | Not significant |
| 100 | 0.4 | 4.320 | 3.74e-05 | Significant |
Both studies have the same observed effect size.
However, the study with the larger sample provides stronger statistical evidence of a population correlation.
Always consider the correlation coefficient, sample size, and p-value together.
10 Coefficient of Determination
Squaring Pearson’s correlation coefficient gives:
\[ r^2. \]
In simple linear regression with an intercept, \(r^2\) represents the proportion of the observed variability in the outcome variable accounted for by its fitted linear relationship with the predictor.
For example, suppose:
\[ r=-0.78. \]
Then,
\[ r^2=(-0.78)^2=0.6084. \]
Expressed as a percentage:
\[ 0.6084\times100=60.84\%. \]
Approximately 61% of the observed variation in the outcome variable is accounted for by the fitted linear relationship.
The remaining variation is not accounted for by this model.
Important: Explained variation is a statistical concept. It does not necessarily imply that the predictor causes changes in the outcome.
11 Reporting the Results of Pearson’s Correlation
A report of a correlation analysis should generally include:
- The variables being examined.
- The direction and strength of the relationship.
- The correlation coefficient.
- The sample size or degrees of freedom.
- The p-value.
- The type of significance test, where relevant.
11.1 Example
There was a statistically significant negative correlation between age and critical flicker frequency, \(r(18)=-0.78\), \(p<0.001\) (one-tailed). The results suggest that older participants tended to have lower CFF values. The relationship was relatively strong, with approximately 61% of the observed variability in CFF accounted for by its linear relationship with age.
Here, the degrees of freedom are:
\[ df=n-2=20-2=18. \]
The result indicates a strong negative linear association between age and CFF, but it does not establish a causal relationship.
12 Spearman’s Rank Correlation
Spearman’s rank correlation coefficient, denoted by \(r_s\), is a rank-based measure of the strength and direction of a monotonic relationship between two variables.
Unlike Pearson’s correlation, Spearman’s correlation is calculated using the ranks of observations rather than their original numerical values.
12.1 When Should We Use Spearman’s Correlation?
Spearman’s correlation may be appropriate when:
- One or both variables are measured on an ordinal scale.
- The relationship is monotonic but not necessarily linear.
- A rank-based measure is more appropriate for the research question.
- Influential extreme observations make Pearson’s correlation unsuitable.
Like Pearson’s correlation, Spearman’s correlation ranges from \(-1\) to \(+1\).
However, it measures monotonic association, rather than specifically linear association.
12.2 Example
Suppose a psychologist records:
- Students’ self-reported stress levels on a five-point ordinal scale.
- Their self-reported sleep quality on a five-point ordinal scale.
Spearman’s correlation may be used to examine whether students with higher stress levels tend to report poorer sleep quality.
Both variables are ordinal, making a rank-based correlation a reasonable choice.
12.3 Pearson’s vs Spearman’s Correlation
| Feature | Pearson | Spearman |
|---|---|---|
| Type of relationship | Linear | Monotonic |
| Measurement level | Quantitative | Ordinal or quantitative |
| Based on | Original numerical values | Ranks of observations |
| Sensitivity to extreme values | Generally more sensitive | Generally less sensitive |
| Range | -1 to +1 | -1 to +1 |
Neither Pearson’s nor Spearman’s correlation is designed to capture every possible type of non-linear relationship.
12.4 Performing Spearman’s Correlation in SPSS
- Select Analyze > Correlate > Bivariate.
- Move the required variables into the Variables box.
- Select Spearman under Correlation Coefficients.
- Deselect Pearson if it is not required.
- Select the appropriate significance test.
- Click OK.
12.5 SPSS Syntax
NONPAR CORR
/VARIABLES=age cff
/PRINT=SPEARMAN TWOTAIL SIG
/MISSING=PAIRWISE.12.6 Practice
Using the Age–CFF dataset:
- Calculate Pearson’s correlation.
- Calculate Spearman’s correlation.
- Compare the two correlation coefficients.
- Are their directions and magnitudes similar?
- Which correlation coefficient would you prefer for these data? Explain your answer.
13 Introduction to Regression
Regression, like correlation, is concerned with relationships between variables.
However, regression allows us to model an outcome variable using one or more predictor variables.
For example, a researcher may wish to predict:
- Reading ability from age.
- Academic performance from study time.
- Sleep duration from stress level.
- Life satisfaction from self-esteem.
- Critical flicker frequency from age.
Regression distinguishes between:
- Dependent variable (outcome or criterion): the variable we wish to explain or predict.
- Independent variable (predictor): the variable used to explain or predict the outcome.
13.1 Types of Regression
- Simple linear regression (bivariate linear regression): one quantitative outcome variable and one predictor variable.
- Multiple linear regression: one quantitative outcome variable and two or more predictor variables.
In this chapter, we focus on simple linear regression.
The outcome variable in linear regression is generally quantitative. Predictor variables may be quantitative or appropriately coded categorical variables.
Multiple regression will be discussed in Chapter 10.
14 Regression as a Model
A statistical model is a simplified mathematical representation of a relationship or process.
Suppose a researcher measures students’ confidence after completing a course.
Confidence is measured on a scale from 1 to 50, and the mean confidence score is:
\[ \bar{Y}=33.58. \]
If no additional information is available, we could use the mean as a simple prediction of a student’s confidence score:
\[ \widehat{Y}=33.58. \]
However, this prediction is the same for every student.
It ignores individual characteristics, such as:
- Practice time.
- Previous experience.
- Attendance.
- Academic performance.
14.1 Improving the Prediction
Suppose we also measure the number of hours each student spends practising.
If practice time is related to confidence, we may be able to improve our predictions by using a regression model.
Instead of predicting the same confidence score for every student, the regression model produces different predictions depending on the student’s practice time.

A fitted least-squares regression model cannot have a larger sum of squared residuals than the mean-only model when both models are fitted to the same data and include an intercept.
However, a better fit to the observed sample does not necessarily guarantee better predictions for new observations.
15 Bivariate Linear Regression
Bivariate linear regression models the linear relationship between two variables.
We continue with the familiar example:
- Age (years)
- Critical Flicker Frequency (CFF)
Previously, we used Pearson’s correlation coefficient to examine the strength and direction of their linear association.
Now, we will use regression to investigate how CFF can be predicted from age.
15.1 Correlation vs Regression
| Feature | Correlation | Regression |
|---|---|---|
| Main purpose | Measure strength and direction of association | Model an outcome using a predictor |
| Treatment of variables | Both variables are treated symmetrically | Distinguishes predictor and outcome |
| Main result | Correlation coefficient | Regression equation |
| Units of coefficient | Unit-free | Depends on measurement units |
| Prediction | No explicit prediction equation | Provides a prediction equation |
| Effect of reversing variables | Correlation remains unchanged | Regression equation generally changes |
In correlation, we ask:
How strongly are age and CFF related?
In regression, we ask:
How does predicted CFF change with age?
For this example:
- Predictor variable (\(X\)): Age.
- Outcome or criterion variable (\(Y\)): CFF.
The choice of predictor and outcome should be based on the research question and substantive reasoning.
Reversing the variables generally produces a different regression equation, although \(R^2\) remains the same in simple linear regression with an intercept when the same observations are used.
16 The Simple Linear Regression Model
The population simple linear regression model can be written as:
\[ Y_i=\beta_0+\beta_1X_i+\varepsilon_i, \qquad i=1,2,\ldots,n. \]
where:
- \(Y_i\) = observed value of the outcome variable for individual \(i\).
- \(X_i\) = value of the predictor variable for individual \(i\).
- \(\beta_0\) = population intercept.
- \(\beta_1\) = population slope or regression coefficient.
- \(\varepsilon_i\) = random error.
The model describes a linear relationship between the predictor and the mean of the outcome variable:
\[ E(Y_i\mid X_i)=\beta_0+\beta_1X_i. \]
The population parameters \(\beta_0\) and \(\beta_1\) are unknown and must be estimated from the sample.
16.1 The Fitted Regression Equation
The fitted regression equation is:
\[ \widehat{Y}=a+bX. \]
where:
- \(\widehat{Y}\) = predicted value of the outcome variable.
- \(X\) = value of the predictor variable.
- \(a\) = estimated intercept.
- \(b\) = estimated slope.
Both \(a\) and \(b\) can be obtained directly from SPSS.
16.2 Interpretation of the Regression Coefficients
Intercept (\(a\))
The intercept represents the predicted value of \(Y\) when \(X=0\).
It is the point at which the fitted regression line crosses the vertical axis.
The intercept may not always have a meaningful practical interpretation, particularly when \(X=0\) is outside the observed range of the predictor.
Slope (\(b\))
The slope represents the predicted change in \(Y\) associated with a one-unit increase in \(X\).
- \(b>0\): predicted \(Y\) increases as \(X\) increases.
- \(b<0\): predicted \(Y\) decreases as \(X\) increases.
- \(b=0\): predicted \(Y\) does not change with \(X\).
Unlike the correlation coefficient, the slope depends on the units of measurement.
16.3 Example
Suppose a fitted regression equation for predicting examination scores from study hours is:
\[ \widehat{Y}=40+5X, \]
where:
- \(X\) = daily study hours.
- \(\widehat{Y}\) = predicted examination score.
Interpretation:
- Intercept (\(a=40\)): The predicted examination score for a student who studies zero hours is 40.
- Slope (\(b=5\)): Each additional hour of study is associated with an increase of 5 marks in the predicted examination score.
For a student who studies for 4 hours:
\[ \begin{aligned} \widehat{Y} &=40+5(4)\\ &=60. \end{aligned} \]
The predicted examination score is 60.

17 Residuals
The actual value of an outcome variable is generally not exactly equal to its predicted value.
The difference between the observed and predicted values is called a residual.
For observation \(i\):
\[ e_i=Y_i-\widehat{Y}_i. \]
- \(e_i>0\): the observed value is greater than the predicted value.
- \(e_i<0\): the observed value is less than the predicted value.
- \(e_i=0\): the observed value is equal to the predicted value.
17.1 Example
Suppose the regression model predicts an examination score of 60 for a student, but the student actually scores 67.
The residual is:
\[ e=67-60=7. \]
The model underpredicts the student’s actual score by 7 marks.
17.2 Visualizing Residuals
Residuals are the vertical distances between the observed data points and the fitted regression line.

The dashed vertical lines represent the residuals.
Smaller residuals generally indicate better agreement between observed and predicted values.
18 Method of Least Squares
How do we determine the best-fitting regression line?
The most commonly used approach is the ordinary least squares (OLS) method.
This method estimates the intercept \(a\) and slope \(b\) by minimizing the sum of squared residuals:
\[ SSE=\sum_{i=1}^{n}(Y_i-\widehat{Y}_i)^2. \]
Equivalently, it minimizes:
\[ \sum_{i=1}^{n}(Y_i-a-bX_i)^2. \]
The resulting estimates are:
\[ b= \frac{ \displaystyle\sum_{i=1}^{n}(X_i-\bar{X})(Y_i-\bar{Y}) }{ \displaystyle\sum_{i=1}^{n}(X_i-\bar{X})^2 } \]
and
\[ a=\bar{Y}-b\bar{X}. \]
SPSS calculates these estimates automatically.
18.1 Relationship Between Correlation and Regression Slope
In simple linear regression, the estimated slope can also be expressed as:
\[ b=r\frac{s_Y}{s_X}, \]
where:
- \(r\) = Pearson’s correlation coefficient.
- \(s_Y\) = sample standard deviation of the outcome.
- \(s_X\) = sample standard deviation of the predictor.
Therefore:
- A positive correlation produces a positive regression slope.
- A negative correlation produces a negative regression slope.
- Zero correlation produces a zero regression slope.
However, the magnitude of the regression slope is not necessarily a measure of the strength of the relationship, because it depends on the measurement units.
19 Coefficient of Determination (\(R^2\))
The coefficient of determination measures the proportion of the observed variability in the outcome accounted for by the fitted regression model.
It is denoted by \(R^2\).
For ordinary least squares regression with an intercept:
\[ 0\leq R^2\leq1. \]
- \(R^2=0\): the model does not improve on the mean-only model in terms of the sum of squared errors.
- \(R^2=1\): the model fits all observed values perfectly.
In simple linear regression with an intercept:
\[ R^2=r^2, \]
where \(r\) is Pearson’s correlation coefficient between the predictor and the outcome.
19.1 Example: Age and CFF
Suppose:
\[ r=-0.78. \]
Then:
\[ R^2=(-0.78)^2=0.6084\approx0.61. \]
This means that approximately 61% of the observed variability in CFF is accounted for by the fitted linear relationship with age.
The remaining 39% is not accounted for by the model.
A higher \(R^2\) generally indicates a better fit to the observed data, but it does not necessarily indicate:
- A causal relationship.
- A correctly specified model.
- Accurate predictions for new observations.
20 Hypothesis Testing in Simple Linear Regression
We may wish to investigate whether the predictor has a statistically significant linear relationship with the outcome in the population.
We test the population slope, \(\beta_1\).
For a two-tailed test, the hypotheses are:
\[ H_0:\beta_1=0 \]
against
\[ H_1:\beta_1\neq0. \]
- \(H_0\): The population regression slope is zero.
- \(H_1\): The population regression slope is not zero.
The test statistic is:
\[ t=\frac{b}{SE(b)}, \]
where \(SE(b)\) is the standard error of the estimated slope.
Under the usual regression assumptions and the null hypothesis:
\[ t\sim t_{n-2}. \]
At the 5% level of significance:
- If \(p<0.05\), reject \(H_0\).
- If \(p\geq0.05\), fail to reject \(H_0\).
SPSS provides this test in the Coefficients table.
20.1 Relationship with the Correlation Test
For simple linear regression with an intercept, the conventional two-tailed tests of
\[ H_0:\rho=0 \]
and
\[ H_0:\beta_1=0 \]
produce the same p-value when they are based on the same paired observations.
Both tests examine whether there is evidence of a non-zero linear relationship.
However, regression provides additional information, including the fitted equation and the change in the predicted outcome per unit change in the predictor.
21 Assumptions of Simple Linear Regression
The main assumptions and conditions are:
- Linearity: The conditional mean of the outcome is a linear function of the predictor.
- Independence: The errors are independent across observations.
- Zero conditional mean: The mean of the errors is zero at each value of the predictor.
- Constant variance (homoscedasticity): The conditional variance of the errors is constant across predictor values.
- Normality of errors: The errors are normally distributed for conventional exact small-sample significance tests and confidence intervals.
In addition, we should check whether influential observations are having an excessive effect on the fitted regression model.
21.1 Checking the Assumptions
Common diagnostic tools include:
- Scatterplot of the predictor and outcome.
- Residuals versus fitted values plot.
- Histogram of residuals.
- Normal Q-Q plot or P-P plot of residuals.
- Measures of influence, such as Cook’s distance.
Note: Linear regression does not require the predictor or outcome variable itself to be normally distributed. The normality assumption concerns the errors.
Detailed regression diagnostics will be discussed in later chapters.
22 Performing Bivariate Linear Regression in SPSS
We continue with the Age–CFF dataset.
Our objective is to predict CFF from age.
- Dependent variable:
cff - Independent variable:
age
22.1 Steps
- Select Analyze > Regression > Linear.
- Move
cffinto the Dependent box. - Move
ageinto the Independent(s) box. - Keep Method = Enter.
- Click Statistics, if additional statistics are required.
- Click OK.


23 Interpreting SPSS Regression Output
SPSS generally produces three main tables for a simple linear regression analysis:
- Model Summary.
- ANOVA.
- Coefficients.
Each table provides different information about the regression model.
23.1 Model Summary Table
The Model Summary table typically contains:
- R: The correlation between the observed and fitted outcome values. In simple linear regression with an intercept, \(R=|r|\).
- R Square: The coefficient of determination (\(R^2\)).
- Adjusted R Square: A version of \(R^2\) adjusted for sample size and number of predictors.
- Std. Error of the Estimate: An estimate of the standard deviation of the regression errors.
For the Age–CFF dataset:
\[ R^2=0.609. \]
Therefore, approximately 60.9% of the observed variation in CFF is accounted for by the fitted linear relationship with age.
The value of R in the SPSS Model Summary table is non-negative. To determine the direction of the relationship, examine the regression slope or the original correlation coefficient.
23.2 ANOVA Table
The ANOVA table provides an overall significance test of the regression model.
For simple linear regression, the hypotheses are:
\[ H_0:\beta_1=0 \]
against
\[ H_1:\beta_1\neq0. \]
The test is based on an \(F\)-statistic.
- If \(p<0.05\), the regression model is statistically significant at the 5% level.
- If \(p\geq0.05\), there is insufficient evidence of a non-zero population regression slope.
For simple linear regression, the overall \(F\)-test and the two-tailed \(t\)-test for the slope produce the same p-value.
23.3 Coefficients Table
The Coefficients table provides the estimated regression coefficients and their statistical tests.
Important columns include:
| SPSS output | Meaning |
|---|---|
| Unstandardized Coefficients B | Estimated intercept and slope |
| Std. Error | Standard error of each estimated coefficient |
| Standardized Coefficients Beta | Regression coefficient in standardized units |
| t | Test statistic for the coefficient |
| Sig. | Two-tailed p-value for the coefficient |
| 95% Confidence Interval for B | Lower and upper confidence limits for the coefficient |
To construct the fitted regression equation, use the Unstandardized Coefficients B, not the standardized Beta coefficients.
23.4 Interpretation of the Slope
For the Age–CFF dataset, the estimated regression coefficient for age is:
\[ b=-0.285. \]
Therefore, each additional year of age is associated with a decrease of approximately 0.285 Hz in predicted CFF.
For a 10-year difference in age, the predicted difference in CFF is:
\[ -0.285\times10=-2.85\text{ Hz}. \]
Thus, a participant who is 10 years older is predicted to have a CFF value approximately 2.85 Hz lower, according to the fitted model.
This describes a difference in predicted CFF between individuals of different ages. It does not necessarily establish how an individual’s CFF changes as that individual ages.
23.5 Interpretation of the Standardized Coefficient
The standardized regression coefficient expresses the predicted change in the outcome, measured in standard deviation units, associated with a one-standard-deviation increase in the predictor.
In simple linear regression with an intercept, the standardized regression coefficient is equal to Pearson’s correlation coefficient:
\[ \text{Standardized Beta}=r. \]
For the Age–CFF dataset, the standardized coefficient is approximately:
\[ -0.78. \]
This means that a one-standard-deviation increase in age is associated with a predicted decrease of approximately 0.78 standard deviations in CFF.
24 Prediction Using the Regression Equation
Once the regression coefficients have been estimated, the fitted regression equation can be used to predict the outcome for a given value of the predictor.
For the Age–CFF example:
\[ \widehat{\text{CFF}}=a-0.285(\text{Age}), \]
where \(a\) is the unstandardized coefficient for the constant obtained from the SPSS output.
24.1 Exercise
Using the regression coefficients obtained from SPSS:
- Write the fitted regression equation.
- Calculate the predicted CFF for a participant aged 25 years.
- Calculate the predicted CFF for a participant aged 45 years.
- Calculate the difference between the two predicted values.
- Interpret this difference.
24.2 Avoiding Extrapolation
Regression predictions should generally be restricted to the range of predictor values represented in the observed data.
Predicting an outcome for a value of the predictor far outside the observed range is called extrapolation.
For example, if the Age–CFF dataset contains only adult participants, using the fitted regression model to predict CFF for a newborn baby would be inappropriate.
There is no guarantee that the observed linear relationship continues beyond the range of the available data.
25 Reporting the Results of Regression
A report of a simple linear regression analysis should generally include:
- The predictor and outcome variables.
- The estimated regression coefficient.
- The direction of the relationship.
- The p-value.
- The coefficient of determination (\(R^2\)).
- Confidence intervals for regression coefficients, where appropriate.
25.1 Example
A simple linear regression analysis was conducted to examine the relationship between age and critical flicker frequency (CFF). Age was a statistically significant negative predictor of CFF (\(b=-0.285\), \(p<0.001\)). Each additional year of age was associated with a decrease of approximately 0.285 Hz in predicted CFF. The regression model accounted for 60.9% of the observed variance in CFF (\(R^2=0.609\)).
A complete research report may also include the regression coefficient’s standard error, confidence interval, and the overall \(F\)-statistic.
As with correlation, statistical significance does not establish causality.
26 Summary
26.1 Correlation
- Correlation measures the direction and strength of association.
- Pearson’s \(r\) measures linear association.
- Spearman’s \(r_s\) measures monotonic association using ranks.
- Correlation coefficients range from \(-1\) to \(+1\).
- The sign indicates direction, while the absolute value indicates strength.
- A scatterplot should be examined before interpreting a correlation coefficient.
- Statistical significance and effect size are different concepts.
- Correlation does not establish causation.
26.2 Simple Linear Regression
- Regression models an outcome using a predictor.
- The fitted regression equation is:
\[ \widehat{Y}=a+bX. \]
- The intercept is the predicted outcome when \(X=0\).
- The slope is the predicted change in the outcome associated with a one-unit increase in the predictor.
- Residuals are the differences between observed and predicted values:
\[ e_i=Y_i-\widehat{Y}_i. \]
- The coefficient of determination measures the proportion of observed variability accounted for by the fitted model.
- In simple linear regression with an intercept:
\[ R^2=r^2. \]
- Regression can be used for prediction, but it does not automatically establish causation.
- Avoid extrapolating predictions beyond the observed range of the predictor.