Scatter plots are ways to graph independent variables against dependent variables to determine if there's a relationship. Instead of using one-variable analysis we use two-variable analysis.

Fig.1 - Standard Scatter Plot
As you can see, there are multiple points all over the place! Unlike graphs we've already studied such as box plots, bar graphs, histograms, and pie charts, Scatter plots use two variables,
Scatter plots are used in applications where there are two pieces of data that need to be compared. For example, a group of student's study time versus their test scores in an english class.
Correlation and Types of Correlation
When we use scatter plots, we want to look at how the two variables are related to each other. This is also known as their correlation. To analyse the relationship between two variables, we create a linear regression model, which allows us to make predictions using the line of best fit, also called the regression line. This line will represents how the data is trending. We normally utilize graphing software for this.
Note: Remember, the equation of a line is

Fig.2 - Scatter plot with a line of best fit
We read the graph from left to right. In this case, the Line of Best Fit trends upwards, indicating a positive trend between the two variables. We will cover this topic more in depth next lesson.
Note: Correlation
Variables have a linear correlation if changes in one variable tend to be proportonal to changes in the other.
There are three types of correlation:
- Positive Correlation: As
increases, increases. - Negative Correlation: As
increases, decreases. - No Correlation: There is no clear correlation with
and on the graph. This could be shown with randomly dispersed points. ~
To develop a measure of correlation, mathematicians first defined the covariance of two variables in a sample:
Where:
is the size of the sample represents individual values of the variable represents individual values of the variable represents the mean of represents the mean of
The capital letters denote the variables used when potting a graph.
Note: Remember that the symbol sigma means "the sum of."
Thus, we can define this as the sum of products of the deviations of
The correlation coefficient,
Where:
is the standard deviation of is the standard deviation of
The correlation coefficient can range from
Linear Regression
Linear regression is a mathematical function describing the relationship between two variables. As previously mentioned, it is the also the line of best fit, however, it also looks at a couple other things. Another value it measures is the residual value, which is the vertical distance between the line of best fit and each data point in a Scatter Plot.

Fig.3 - Scatter plot displaying the residual measures for each of the respective points
In the above image, there are these dark, dashed lines connecting each point to the line of best fit. This is the residual for each point. The sum of tall residuals measures the overall error in the model, so ideally,the sum of all residuals should be zero, and the sum of the squares of the residuals should be as small as possible. This criteria is called the least-squares fit.
For the line of best fit in the least-squares method, it can be shown that the line has the equation:
Where
Check yourself
Work each one out before you reveal it. Nothing here is recorded.
A student models a relationship between the time he studies and his grade.
What type of correlation does the data represent?
| Time He Cycles (Minutes) | Distance He Covers (Miles) |
|---|---|
| 1 | 50 |
| 2 | 60 |
| 3 | 70 |
| 4 | 80 |
| 5 | 90 |
Given the following table, answer these questions:
- Calculate the mean of
and - Calculate the slope,
, for the line of best fit - Determine the y-intercept,
- Determine the equation for the line of best fit
| Study Time (Hours) |
Test Score (%) |
|---|---|
| 1 | 55 |
| 3 | 65 |
| 5 | 75 |
| 7 | 85 |
| 9 | 92 |
Ready to practice this?
You have just read the whole lesson — no account needed. One is what lets you mark it complete, see how far through the course you are, and practice the topic with questions picked for you.
- Progresssaved, and counted in your progress through the course
- Unlimitedadaptive practice questions, on every plan
No credit card. Under 18? We email your parent or guardian when you sign up.
Three ways to make this stick
Reading it once isn’t the same as being able to do it on Thursday.