*76*

AÂ **scatterplot**Â is a type of plot that we can use to display the relationship between two variables. It helps us visualize both the direction (positive or negative) and the strength (weak, moderate, strong) of the relationship between the two variables.

This tutorial explains how to create and interpret scatterplots in SPSS.

**How to Create Scatterplots in SPSS**

Suppose we have the following dataset that displays the hours studied and exam score received for 15 students:

We can create a scatterplot to visualize the relationship between hours studied and exam score received.

**Basic Scatterplot**

We can create a basic scatterplot in SPSS by clicking on theÂ **Graphs** tab, thenÂ **Chart Builder**:

In the window that pops up, clickÂ **Scatter/DotÂ **in theÂ **Choose from:Â **list. Then drag the first option that saysÂ **Simple Scatter**Â into the editing window. Drag the variableÂ **hoursÂ **into the x-axis andÂ **scoreÂ **into the y-axis:

Once you clickÂ **OK**, the following scatterplot will appear:

By default, SPSS chooses a minimum point for the y-axis based on the smallest value in your dataset. In this example the minimum point on the y-axis is 65. To change this to 0, clickÂ **Y-Axis1 (Point1)Â **in theÂ **Element PropertiesÂ **box and set the **MinimumÂ **value to 0:

Once you clickÂ **OK**, a new scatterplot will appear with the y-axis minimum value set to 0:

**Scatterplot with Regression Line**

We can also produce a scatterplot with a line of best fit by selecting the option calledÂ **Simple Scatter with Fit LineÂ **in theÂ Chart Builder window:

Once we clickÂ **OK**, a scatterplot with a line of best fit will appear:

The R^{2} value also appears in the top right hand corner of the plot. This represents the percentage of variation in the response variable that can be explained by the predictor variable. In this case, it means 66.2% of the variation in exam scores can be explained by the number of hours spent studying.

**Grouped Scatterplot**

Suppose we also have a categorical variable in our dataset, such as gender:

In this case, we could create a scatterplot of hours studied vs. exam score,Â grouped by gender.

To do so, we can once again open the Chart Builder and chooseÂ **Grouped ScatterÂ **as the chart type. Once again weâ€™ll place the variableÂ **hoursÂ **on the x-axis andÂ **scoreÂ **on the y-axis, but this time weâ€™ll addÂ **genderÂ **as the variable underÂ **Set color**:

Once we clickÂ **OK**, the following grouped scatterplot appears:

The red circles represent males and the blue circles represent females.