Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In the last movie we talked about how to chart the relationship between two categorical variables with clustered bar charts. On the other hand, if you have two scale variables, also called quantitative variables or measured variables, then your best choice is almost always a scatter plot. Scatter plots are familiar to most people. There's an x axis across the bottom and a y axis up this side, and each person or case gets a dot to show the combination of their two scores, like height and weight or high school and college GPA. In general you want to put your predictor variable on the bottom, on the x axis, and your outcome variable or the thing you're trying to predict on the y axis, and SPSS makes the whole process very simple.
You can create a scatter plot with the Chart Builder in just a few steps. And for this example I'm going to be using the same Google searches information in Searches.sav. I am going to come up to Graphs, to Chart Builder and then in the Gallery I will choose Scatter, and just use a Simple Scatter plot. I will drag that up to the canvas. And then in this particular example, I'm going to take interest in SPSS as a relative interest as a search term and put it on the x axis, and then I am going to take one that may seem a little peculiar, but the search term, Totally Lost, and put that on the y axis.
I'm also going to make it possible for me to identify points by clicking on the Point ID label. That brings up a box in the canvas. and I can come up here and I can take the state code and drag that in and that should be enough for right now. I'll click OK and here's my general scatter plot. And what you see is first off a lot of fuzz, because I have dots and I have the state labels. I am going to take care of those in just a second. But it's clear that there's a very strong linear uphill trend, that places that show greater relative interest in SPSS as a search term in Google also for reasons that may not be totally clear show greater use of the search term Totally Lost as they go through.
Now, I am going to clean up this chart in a few ways. I am going to try to go through it relatively quickly and give you an idea of what's possible. To edit the chart you need to double- click on it, and what I am going to do is I am going to turn off all of the state labels by going to Elements and Hide Data Labels. I will bring back just one or two of them for illustration later. There's a few things I want to show you how to clean up. For instance, you can change almost anything by clicking on it. I have selected the data points here and I can make them instead of black circles, I can make them red dots by clicking red for the Border and then red for the Fill.
If I want to change the colors of lines, I can do that as well. I can also change the axis down here from 3 decimal places by clicking on Number Format and changing that to 0, clicking Apply, and doing the same thing over here, changing that to 0 and clicking Apply. Now what I am going to do is I am going to add a linear regression line. This is also the basis of an inferential procedure, linear aggression, that we'll be coming to a little bit later, but right now it's a very simple thing to do. I just come up to the Button bar and click on this one that says Add a Fit Line at Total, and that's a regression line that goes all the way through.
It also adds a little bit of information right here that I don't need right now, so I am going to select that and press Delete. And then I've got a very clear, strong, upward trend, higher relative interest in SPSS as a search term, also higher use of the word Totally Lost as a search term. The one last thing I'm going to do is I'm going to add an identifier to the point that's in the top right. We saw what it was earlier, but I am going to add an identifier for just it. By coming over to the left of this button bar, clicking on the little target, which is the Data Label Mode, I click on that, and then I come back over and click on that data point I want to identify, and we see there that it's Washington D.C., and that's probably enough for this particular chart.
I want you to be aware that there are many other options. For instance, I can add vertical and horizontal reference lines. I can also change the kind of regression line I have through. For instance, this is called a linear regression line, but if you're interested in growth, like changes in stock prices over time, you might want to use a Quadratic or something called a Cubic. If you want to see if it's a straight line at all, you can find what's called a Smoother, in this case it's called Loess Smoother through the regression line, and I encourage you to try these alternatives, and it's actually possible to overlay one on top of the other. But for now I am going to leave this with a straight regressioline as it shows the linear patterns most clearly.
So I am going to close that and close that. So the Scatter plot can give really good insight into the relationship between two scale variables and the options that SPS gives for lines through the data can help you explore how well your data matched the assumptions of standard linear regression. In the next movie we'll look at a special kind of scatter plot called the Time Series Plot or Time Plot, where the variable on the bottom is, not surprisingly, time.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 74205 Viewers
80 Video lessons · 129570 Viewers
52 Video lessons · 63852 Viewers
59 Video lessons · 49637 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.