Regression Analysis Calculator | Linear, R² & Prediction

Fit a trend, calculate residuals and check whether a prediction falls within the observed range.

Quick Answer

Linear regression fits a line y = a + bx to paired data. The slope b estimates the change in y for a one-unit increase in x, while R² describes the share of observed variation explained by the fitted model.

Regression line through scattered measurement points
Free Statistics & Data Modeling Tool

Regression Analysis Calculator

Use this Regression Analysis Calculator to calculate linear regression, Pearson correlation, residuals, predictions, confidence-style estimates, quadratic regression, exponential regression, logarithmic regression, power regression, and two-predictor multiple linear regression. Enter paired data, choose a model, and get the equation, slope, intercept, \(r\), \(R^2\), residual table, and interpretation.

Linear Regression Correlation r R² Residuals Prediction Quadratic Model Exponential / Power / Log Multiple Regression

Calculate Regression Analysis

Select a regression mode, paste your data, and calculate the model equation plus diagnostic values.

Simple Linear Regression Calculator

Enter matching x-values and y-values separated by commas, spaces, tabs, or line breaks.

Pearson Correlation Calculator

Quadratic Regression Calculator

Exponential, Logarithmic, and Power Regression

Multiple Linear Regression Calculator: Two Predictors

Prediction from Regression Equation

Regression note: a high \(R^2\) does not prove causation. Always inspect context, residuals, outliers, sample size, and whether the chosen model makes sense before using predictions.

Regression Details Table

The table shows model details, fitted values, residuals, or transformed values depending on the selected mode.

What Is a Regression Analysis Calculator?

A Regression Analysis Calculator is a statistics and data modeling tool that estimates the relationship between one or more independent variables and a dependent variable. In the simplest case, regression finds the best-fitting line through paired data points. That line can describe a trend, summarize a relationship, and make predictions. Regression is widely used in statistics, economics, business analytics, data science, machine learning, education, biology, psychology, finance, engineering, social science, market research, and scientific experiments.

This calculator supports several common regression tasks. The linear regression mode calculates the least-squares line \(\hat{y}=a+bx\), slope, intercept, Pearson correlation coefficient \(r\), coefficient of determination \(R^2\), residuals, sum of squared errors, mean squared error, and root mean squared error. The correlation mode focuses on the strength and direction of a linear relationship. The quadratic mode fits a second-degree model \(\hat{y}=a+bx+cx^2\). The transformed model mode fits exponential, logarithmic, and power curves using common transformations. The multiple regression mode fits a model with two predictors: \(\hat{y}=a+b_1x_1+b_2x_2\).

Regression is not just a formula. It is a modeling method. A regression result should always be interpreted with context. A strong statistical relationship does not automatically prove causation. A prediction may be reasonable inside the range of observed data but risky far outside it. A line may fit poorly if the real pattern is curved. A model can be distorted by outliers, influential points, missing variables, or data collection bias. That is why this calculator includes residual tables and multiple model types rather than only one final answer.

The purpose of this page is to make regression easier to learn and use. Students can see formulas and step-by-step fitted values. Teachers can use the tool for demonstration. Analysts can run quick checks before deeper modeling. Website visitors can compare linear, curved, and transformed models to decide which one better describes the data.

How to Use This Regression Analysis Calculator

Use the Linear tab when you have paired \(x\) and \(y\) values and expect a roughly straight-line relationship. Enter the x-values in one box and the y-values in the other box. Values must be in matching order, so the first x-value pairs with the first y-value, the second x-value pairs with the second y-value, and so on. Enter a prediction x-value at the top if you want a predicted y-value.

Use the Correlation tab when you mainly need Pearson's \(r\). Correlation measures the strength and direction of a linear relationship. A value near 1 indicates a strong positive relationship, a value near -1 indicates a strong negative relationship, and a value near 0 indicates little linear relationship. Correlation does not measure nonlinear relationships well and does not prove causation.

Use the Quadratic tab when the pattern bends upward or downward. A quadratic model has the form \(\hat{y}=a+bx+cx^2\). It is useful for parabolic trends, acceleration-style patterns, curved growth, and data where a straight line leaves systematic residuals.

Use the Exponential / Log / Power tab when the data follow a curved pattern that can be transformed. Exponential regression is useful for constant percentage growth or decay. Logarithmic regression is useful when growth slows as x increases. Power regression is useful for scaling relationships such as \(y=ax^b\). These models require valid positive values for logarithmic transformations.

Use the Multiple Regression tab when two predictors explain one outcome. Enter \(x_1\), \(x_2\), and \(y\) values. The calculator estimates an intercept and two slopes. The slope for \(x_1\) estimates the change in predicted \(y\) for a one-unit increase in \(x_1\), holding \(x_2\) constant. The slope for \(x_2\) works similarly.

Regression Formulas

The simple linear regression equation is:

Linear regression equation
\[\hat{y}=a+bx\]

The slope is:

Slope formula
\[b=\frac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sum(x_i-\bar{x})^2}\]

The intercept is:

Intercept formula
\[a=\bar{y}-b\bar{x}\]

The Pearson correlation coefficient is:

Correlation formula
\[r=\frac{\sum(x_i-\bar{x})(y_i-\bar{y})}{\sqrt{\sum(x_i-\bar{x})^2\sum(y_i-\bar{y})^2}}\]

The coefficient of determination is:

R-squared
\[R^2=1-\frac{SSE}{SST}\]

A residual is:

Residual
\[e_i=y_i-\hat{y}_i\]

Root mean squared error is:

RMSE
\[RMSE=\sqrt{\frac{SSE}{n-k}}\]

The multiple regression equation with two predictors is:

Multiple regression
\[\hat{y}=a+b_1x_1+b_2x_2\]

Linear Regression

Linear regression fits a straight line through data using the least-squares method. The line is chosen to minimize the sum of squared residuals. A residual is the vertical difference between an observed value and the predicted value on the regression line. Squaring residuals prevents positive and negative errors from canceling and gives more weight to large errors.

The slope tells the estimated change in \(y\) for a one-unit increase in \(x\). If the slope is positive, predicted \(y\) increases as \(x\) increases. If the slope is negative, predicted \(y\) decreases as \(x\) increases. The intercept is the predicted \(y\) value when \(x=0\). The intercept is meaningful only when \(x=0\) is within a reasonable context for the data.

Correlation and R-Squared

Pearson correlation \(r\) measures the strength and direction of a linear relationship. Values close to 1 indicate a strong positive linear association. Values close to -1 indicate a strong negative linear association. Values close to 0 indicate weak linear association. Correlation is unitless, so it can compare relationships measured on different scales.

\(R^2\), the coefficient of determination, measures the proportion of variation in \(y\) explained by the model. In simple linear regression, \(R^2=r^2\). An \(R^2\) of 0.80 means the model explains about 80% of the variation in the response variable. A high \(R^2\) is useful, but it is not enough by itself. A model can have a high \(R^2\) and still be inappropriate if the relationship is nonlinear, the data include influential outliers, or the model violates assumptions.

Residuals, RMSE, and Model Fit

Residuals are one of the most important parts of regression analysis. If the model is appropriate, residuals should look roughly random around zero. If residuals form a pattern, the model may be missing curvature, seasonality, groups, or another predictor. If residuals grow larger as \(x\) increases, the data may have nonconstant variance.

RMSE measures the typical prediction error in the same unit as the response variable. Smaller RMSE usually means better fit for the same dataset. However, RMSE should not be compared across datasets with different units or scales without caution.

Predictions and Intervals

Regression can predict \(y\) for a chosen \(x\). Prediction is most reliable inside the range of observed x-values. Predicting far outside the observed range is called extrapolation, and it can be risky because the relationship may change outside the data range.

Prediction uncertainty depends on residual error, sample size, and how far the prediction x-value is from the mean of x. This calculator provides useful diagnostic values such as RMSE and fitted residuals. For high-stakes interval estimation, use statistical software that can compute exact t-based confidence and prediction intervals with full diagnostics.

Quadratic, Exponential, Logarithmic, and Power Models

Not every relationship is linear. A quadratic model fits a curve with one squared term. Exponential models fit growth or decay with a constant percentage rate. Logarithmic models fit patterns where growth slows over time. Power models fit scaling relationships such as area, volume, or biological allometry.

Some nonlinear models are fitted by transforming the data. For exponential regression \(y=ab^x\), the calculator fits \(\ln(y)=\ln(a)+x\ln(b)\). For power regression \(y=ax^b\), it fits \(\ln(y)=\ln(a)+b\ln(x)\). These transformations require positive values where logarithms are used.

Multiple Regression

Multiple regression models one response variable using more than one predictor. In this calculator, the model is \(\hat{y}=a+b_1x_1+b_2x_2\). Each coefficient estimates the effect of one predictor while holding the other predictor constant. This is useful when an outcome depends on several factors.

Multiple regression requires extra care. Predictors can be correlated with each other, which may make coefficient interpretation unstable. This issue is called multicollinearity. More predictors also require more data. A model with too few observations can fit the sample but perform poorly on new data.

Regression Worked Examples

Example 1: Linear regression equation. Suppose a dataset produces slope \(b=0.8\) and intercept \(a=1.8\). The regression equation is:

Linear equation example
\[\hat{y}=1.8+0.8x\]

If \(x=7\), the predicted value is:

Prediction example
\[\hat{y}=1.8+0.8(7)=7.4\]

Example 2: Correlation. If \(r=0.90\), the relationship is strongly positive and \(R^2=0.81\), meaning the model explains about 81% of the variation in \(y\) for a simple linear model.

R-squared example
\[R^2=(0.90)^2=0.81\]

Example 3: Residual. If an observed value is \(y=10\) and the predicted value is \(\hat{y}=8.5\), then:

Residual example
\[e=y-\hat{y}=10-8.5=1.5\]

A positive residual means the observed value is above the model prediction. A negative residual means the observed value is below the model prediction.

Common Regression Mistakes

The first common mistake is treating correlation as causation. Regression can show association, but it does not automatically prove one variable causes another. The second mistake is using a straight line for curved data. Residual patterns can reveal this problem. The third mistake is extrapolating far beyond the observed x-values.

The fourth mistake is ignoring outliers. A single influential point can strongly change the slope and intercept. The fifth mistake is relying only on \(R^2\). A model must also make sense logically, visually, and diagnostically. Always check the data-generating process, sample size, and model assumptions.

Regression Analysis Calculator FAQs

What does this Regression Analysis Calculator do?

It calculates linear regression, correlation, residuals, predictions, quadratic regression, exponential regression, logarithmic regression, power regression, and two-predictor multiple regression.

What is the linear regression equation?

The standard simple linear regression equation is \(\hat{y}=a+bx\), where a is the intercept and b is the slope.

What does the slope mean?

The slope estimates the expected change in y for a one-unit increase in x.

What does R-squared mean?

\(R^2\) measures the proportion of variation in the response variable explained by the regression model.

What is a residual?

A residual is the difference between an observed value and its predicted value: \(e=y-\hat{y}\).

Can regression prove causation?

No. Regression can show association, but causation requires research design, context, controls, and evidence beyond a fitted equation.

When should I use quadratic or exponential regression?

Use quadratic regression for parabolic patterns and exponential regression for constant percentage growth or decay patterns.

Important Note

This Regression Analysis Calculator is for educational statistics, math, and data analysis learning. It is not a substitute for professional statistical modeling, peer-reviewed research, business forecasting, medical analysis, financial risk modeling, or legal decision-making.

Advertisement

Read a residual using the original units

A fitted line predicts travel time in minutes as five plus twice the route length in kilometres. For a four-kilometre route, the fitted time is thirteen minutes. If the observed time is sixteen, the residual is sixteen minus thirteen, or positive three minutes. A positive residual means the observation lies above the fitted line. It does not identify the reason for the difference. Compare residuals across routes and inspect the plot before extending a model fitted to short trips to journeys many times longer.

Relationships Between Quantitative Datasets

Before we can evaluate a relationship between two datasets, we must first decide if we feel that one might depend on the other. In our exam example, it is appropriate to say that the score on the final depends on the score on the midterm, rather than the other way around: if the midterm depended on the final, then we’d need to know the final score first, which doesn’t make sense.
Here’s another example: if we collected data on home purchases in a certain area, and noted both the sale price of the house and the annual household income of the purchaser, we might expect a relationship between those two. Which depends on the other? In this case, sale price depends on income: people who have a higher income can afford a more expensive house. If it were the other way around, people could buy a new, more expensive house and then expect a raise! (This is very bad advice.)
It's worth noting that not every pair of related datasets has clear dependence. For example, consider the percent of a country’s budget devoted to the military and the percent earmarked for public health. These datasets are generally related: as one goes up, the other goes down. However, in this case, there’s not a preferred choice for dependence, as each could be seen as depending on the other. When exploring the relationship between two datasets, if one set seems to depend on the other, we’ll say that dataset contains values of the response variable (or dependent variable). The dataset that the response variable depends on contains values of what we call the explanatory variable (or independent variable). If no dependence relationship can be identified, then we can assign either dataset to either role.

Identifying Explanatory and Response Variables

For each of the following pairs of related datasets, identify which (if any) should be assigned the role of response variable and which should be assigned to be the explanatory variable.
  1. A person’s height and weight
  2. A professional basketball player’s salary and their average points scored per game (which is a measure of how good they are at basketball)
  3. The length and width of leaves on a tree
Solution
  1. As people get taller, their weight tends to increase. But if a person goes on a diet and loses weight, we don’t expect them to also get shorter. So, weight depends on height. That means we’ll say that the response variable is weight and the explanatory variable is height.
  2. The more points a basketball player scores, the more money they should make. But if a basketball player gets a raise, we wouldn’t expect them to get better at basketball as a result. So, the response is salary and the explanatory is points per game.
  3. The way that the length and width of leaves are connected isn’t clear. It seems reasonable that as the width goes up, so would the length. But the other direction is also plausible: as the length goes up, so does the width. Without a clear dependence relationship, we’re free to declare either to be the response and the other to be the explanatory.
Once we’ve assigned roles to our two datasets, we can take the first step in visualizing the relationship between them: creating a scatter plot.

Creating Scatter Plots

A scatter plot is a visualization of the relationship between two quantitative sets of data. The scatter plot is created by turning the datasets into ordered pairs: the first coordinate contains data values from the explanatory dataset, and the second coordinate contains the corresponding data values from the response dataset. These ordered pairs are then plotted in the xy-plane. Let's return to our exam example to put this into practice.

Creating Scatter Plots Without Technology

Students are exploring the relationship between scores on the midterm exam and final exam in their math course. Here are some of the scores reported by their classmates:
Name Midterm grade Final grade
Student 1 88 84
Student 2 71 80
Student 3 75 77
Student 4 94 95
Student 5 68 73
Create a scatter plot to visualize the data.
Solution
Step 1: Since it makes more sense to think of the final exam score as being dependent on the midterm exam score, we’ll let the final grade be the response. So, let’s think of these two datasets as a set of ordered pairs, midterm first, final second:
Name (Midterm, Final)
Student 1 (88, 84)
Student 2 (71, 80)
Student 3 (75, 77)
Student 4 (94, 95)
Student 5 (68, 73)
Step 2: Next, let’s make the axes. On the horizontal axis, make sure the range of values is sufficient to cover all of the explanatory data. For our data, that’s 68 to 94. Similarly, the vertical axis should cover all of the response data (73 to 95):
A blank coordinate plane. The horizontal axis ranges from 65 to 95, in increments of 5. The vertical axis ranges from 70 to 100, in increments of 5.
Step 3: Our first point is (88, 84). So, we’ll locate 88 on the horizontal axis, 84 on the vertical axis, and identify the point that’s directly above the first location and horizontally level with the second:
A coordinate plane plots a point. The horizontal axis ranges from 65 to 95, in increments of 5. The vertical axis ranges from 70 to 100, in increments of 5. A horizontal dotted line is drawn at 84. A vertical dotted line is drawn at 88. The two dotted lines intersect at the point (88, 84).
Step 4: Repeat this process to place the other four points on the graph:
Five points are plotted on a coordinate plane. The horizontal axis ranges from 65 to 95, in increments of 5. The vertical axis ranges from 70 to 100, in increments of 5. The points are as follows: (68, 73), (72, 80), (75, 77), (88, 84), and (94, 95). Note: all values are approximate.
Step 5: Finally, label the axes:
Five points are plotted on a coordinate plane. The horizontal axis representing midterm ranges from 65 to 95, in increments of 5. The vertical axis representing final ranges from 70 to 100, in increments of 5. The points are as follows: (68, 73), (72, 80), (75, 77), (88, 84), and (94, 95). Note: all values are approximate.
For large datasets, it’s impractical to create scatter plots manually. Luckily, Google Sheets automates this process for us.

Creating Scatter Plots in Google Sheets

The dataset “NHL19” gives the results of the 2018–2019 National Hockey League season. The columns are team, wins (W), losses (L), overtime losses (OTL), total points (PTS), goals scored by the team (GF), goals scored against the team (GA), and goal differential (the difference in GF and GA). Use Google Sheets to create a scatter plot for GF vs. GA.
Solution
Step 1: Open the dataset in Google Sheets, and click and drag to select the data we want to visualize (in this case, we want the columns for GF and GA; make sure you include those labels in the selection).
Step 2: Next, click on the “Insert” menu, then click “Chart.” Sheets will automatically choose a chart format; if the result isn’t a scatter plot, click on the drop-down menu under “Chart type” in the Chart Editor on the right side of the window and select “Scatter chart.”
Step 3: Next, check that the correct choices were made for the horizontal and vertical axes. In this case, we want to see GF on the vertical axis and GA on the horizontal axis. If Sheets made the wrong choice, we can fix it in the Chart Editor by clicking on the name of the dataset under “X-axis” to open up a dropdown menu, then selecting the variable that should go on the horizontal axis (GA in this case).
Step 4: Now, click on the variable under “Series” and select the one that should go on the vertical axis (GF). If you had to make that change, the axis labels in the graph may also need changing; those labels can be fixed using the “Customize” tab in the Chart Editor under “Chart & axis titles.” Your result should look like this:
A scatter plot titled, GF versus GA. The horizontal axis representing GA ranges from 180 to 320, in increments of 20. The vertical axis representing GF ranges from 190 to 330, in increments of 20. The points are scattered throughout and it lies from 200 to 300 on the horizontal axis and 200 to 290 on the vertical axis.
(data source: www.nhl.com)

Reading and Interpreting Scatter Plots

Scatter plots give us information about the existence and strength of a relationship between two datasets. To break that information down, there are a series of questions we might ask to help us. First: Is there a curved pattern in the data? If the answer is “yes,” then we can stop; none of the linear regression techniques from here to the end of this section are appropriate. diagram and diagram show several examples of scatter plots that can help us identify these curved patterns.
A scatter plot represents a curved pattern. The x-axis ranges from 20 to 120, in increments of 20. The y-axis ranges from negative 100 to 500, in increments of 100. The scatter plot shows points scattered along a curve that passes through the following points: (20, 90), (40, 20), (50, 0), (80, 100), (100, 250), and (120, 500). Note: all values are approximate.
Curved pattern
A scatter plot represents no curved pattern. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 140, in increments of 20. The points are scattered throughout and it lies from 30 to 100 on the horizontal axis and 10 to 120 on the vertical axis.
No curved pattern
A scatter plot represents a curved pattern. The x-axis ranges from 30 to 100, in increments of 10. The y-axis ranges from 40 to 120, in increments of 10. The scatter plot shows points scattered along a curve that passes through the following points: (30, 80), (40, 60), (55, 50), (70, 65), (90, 102), (100, 110), and (100, 105). Note: all values are approximate.
Curved pattern
A scatter plot represents no curved pattern. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 300, in increments of 50. The points are scattered in linear decreasing order. Some of the points are as follows: (35, 250), (40, 220), (50, 200), (60, 175), (70, 150), (80, 125), (90, 75), and (100, 50). Note: all values are approximate.
No curved pattern
Once we have confirmed that there is no curved pattern in our data, we can move to the next question: Is there a linear relationship? To answer this, we must look at different values of the explanatory variable and determine whether the corresponding response values are different, on average. It's important to look at the values “on average” because, in general, our scatter plots won’t include just one corresponding response point for each value of the explanatory variable (i.e., there may be multiple response values for each explanatory value). So, we try to look for the center of those points. Let’s look again at diagram, but consider some different values for the explanatory variable. Let’s highlight the points whose x-values are around 50 and those that are around 80:
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 300, in increments of 50. The points are scattered in linear decreasing order. Some of the points are highlighted in red and the points are as follows: (50, 290), (48, 195), (48, 200), (49.5, 225), (50, 203), (78, 145), (79, 130), (80, 120), (81, 120), (81, 70), (82, 90), (82.5, 90), (82, 100), and (82, 120). Note: all values are approximate.
Now, we can estimate the middle of each group of points. Let's add our estimated averages to the plot as starred points:
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 300, in increments of 50. The points are scattered in linear decreasing order. Some of the points are highlighted in red and the points are as follows: (50, 290), (48, 195), (48, 200), (49.5, 225), (50, 203), (78, 145), (79, 130), (80, 120), (81, 120), (81, 70), (82, 90), (82.5, 90), (82, 100), and (82, 120). Asterisks are marked at (50, 200) and (80, 120). Note: all values are approximate.
Since those two starred points occur at different heights, we can conclude that there’s likely a relationship worth exploring.
Here’s another example using a different set of data:
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 250, in increments of 50. The points are scattered throughout and it lies from 30 to 105 on the horizontal axis and 50 to 250 on the vertical axis.
Let’s look again at the points near 50 and near 80, and estimate the middles of those clusters:
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 250, in increments of 50. The points are scattered throughout and it lies from 30 to 105 on the horizontal axis and 50 to 250 on the vertical axis. Some of the points are marked in red: (48, 120), (48, 140), (50, 150), (50, 155), (48, 190), (51, 195), (82, 75), (80, 125), (81, 130), (80, 160), (81, 160), (82, 140), (81, 195), (81, 200), and (78, 210). Asterisks are marked at (50, 150) and (80, 170). Note all values are approximate.
Notice that there’s not much vertical distance between our two starred points. This tells us that there’s not a strong relationship between these two datasets.

Positive and Negative Linear Relationships

Another way to assess whether there is a relationship between two datasets in a scatter plot is to see if the points seem to be clustered around a line (specifically, a line that’s not horizontal). The stronger the clustering around that line is, the stronger the relationship.
Once we’ve established that there’s a relationship worth exploring, it’s time to start quantifying that relationship. Two datasets have a positive linear relationship if the values of the response tend to increase, on average, as the values of the explanatory variable increase. If the values of the response decrease with increasing values of the explanatory variable, then there is a negative linear relationship between the two datasets. The strength of the relationship is determined by how closely the scatter plot follows a single straight line: the closer the points are to that line, the stronger the relationship. The scatter plots in diagram to diagram depict varying strengths and directions of linear relationships.
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 210 to 290, in increments of 10. The points are arranged in linear decreasing order in a single row. Some of the points are as follows: (32, 288), (40, 280), (60, 260), (70, 250), (90, 230), and (100, 220). Note: all values are approximate.
Perfect negative relationship
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 200 to 300, in increments of 20. The points are arranged in linear decreasing order in multiple rows. Some of the points are as follows: (32, 287), (40, 281), (60, 260), (70, 245), (90, 230), and (100, 225). Note: all values are approximate.
Strong negative relationship
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 150 to 350, in increments of 50. The points are scattered throughout. Most points lie from 30 to 100 on the horizontal axis and 200 to 300 on the vertical axis.
Weak negative relationship
A scatter plot. The x-axis ranges from 30 to 110, in increments of 10. The y-axis ranges from 0 to 250, in increments of 50. The points are scattered throughout. Most points lie from 30 to 105 on the horizontal axis and 50 to 250 on the vertical axis.
No relationship
A scatter plot. The x-axis ranges from 20 to 110, in increments of 10. The y-axis ranges from 300 to 500, in increments of 20. The points are scattered at the center of the graph. Most points lie from 50 to 90 on the horizontal axis and 340 to 440 on the vertical axis.
Weak positive relationship
A scatter plot. The x-axis ranges from 20 to 110, in increments of 10. The y-axis ranges from 300 to 500, in increments of 20. The points are scattered in linear increasing order in a single row. Some of the points are as follows: (27, 345), (40, 360), (60, 380), (70, 390), (80, 400), and (100, 420). Note: all values are approximate.
Strong positive relationship
A scatter plot. The x-axis ranges from 20 to 110, in increments of 10. The y-axis ranges from 300 to 500, in increments of 20. The points are scattered in linear increasing order in a single row. Some of the points are as follows: (27, 345), (40, 360), (60, 380), (70, 390), (80, 400), and (100, 420). Note: all values are approximate.
Perfect positive relationship
The strength and direction (positive or negative) of a linear relationship can also be measured with a statistic called the correlation coefficient (denoted r). Positive values of r indicate a positive relationship, while negative values of r indicate a negative relationship. Values of r close to 0 indicate a weak relationship, while values close to ±1 correspond to a very strong relationship. Looking again at diagram to diagram, the correlation coefficients for each, in sequential order, are: ‒1, ‒0.97, ‒0.55, ‒0.03, 0.61, 0.97, and 1.
There’s no firm rule that establishes a cutoff value of r to divide strong relationships from weak ones, but ±0.7 is often given as the dividing line (i.e., if r>0.7 or r<-0.7 the relationship is strong, and if -0.7<r<0.7 the relationship is weak).
The formula for computing r is very complicated; it’s almost never done without technology. Google Sheets will do the computation for you using the CORREL function. The syntax works like this: if your explanatory values are in cells A2 to A50 and the corresponding response values are in B2 to B50, then you can find the correlation coefficient by entering “=CORREL(A2:A50, B2:B50)”. (Note that the order doesn’t matter for correlation coefficients; “=CORREL(B2:B50, A2:A50)” will give the same result.)
Let’s put all of this together in an example.

Interpreting Scatter Plots

Consider the four scatter plots below:
  1. A scatter plot shows points arranged in a parabolic path. The x-axis ranges from 30 to 20, in increments of 10. The y-axis ranges from negative 10 to 60, in increments of 10. The points are scattered in the form of an open upward parabola. Some of the points are as follows: (negative 20, 45), (negative 10, 10), (0, 0), (10, 10), and (15, 22). Note: all values are approximate.
  1. A scatter plot shows points arranged in increasing order. The x-axis ranges from 30 to 20, in increments of 10. The y-axis ranges from negative 100 to 150, in increments of 50. The points are scattered in increasing order. Some of the points are as follows: (negative 20, negative 50), (negative 10, 0), (0, 40), (10, 75), and (15, 100). Note: all values are approximate.
  1. A scatter plot shows points arranged in decreasing order. The x-axis ranges from 30 to 20, in increments of 10. The y-axis ranges from negative 20 to 20, in increments of 10. The points are scattered in decreasing order. Some of the points are as follows: (negative 20, 10), (negative 10, 5), (0, 0), (10, negative 5), and (15, negative 15). Note: all values are approximate.
  1. A scatter plot. The x-axis ranges from 30 to 20, in increments of 10. The y-axis ranges from 0 to 40, in increments of 5. The points are scattered throughout and the points lie from negative 20 to 15 on the horizontal axis and 0 to 30 on the vertical axis.
For each of these, answer the following questions:
  1. Is there a curved pattern in the data? If yes, stop here. If no, continue to part b.
  2. Classify the strength and direction of the relationship. Make a guess at the value of r.
Solution
    1. Yes, there is a curved pattern.
    1. No, there’s no curved pattern.
    2. Since the points tend upward as we move from left to right, this is a positive relationship. The points seem pretty closely grouped around a line, so it’s fairly strong. Comparing this scatter plot to those in diagram to diagram, we can see that the relationship is stronger than the one in diagram (r=0.61 ) but not as strong as the one in diagram (r=0.97). So, the value of the correlation coefficient is somewhere between the two. We might guess that r=0.9.
    1. No, there’s no curved pattern.
    2. Since the points tend downward as we move from left to right, this is a negative relationship. The points are not tightly grouped around a line, but the pattern is clear. It looks like it has approximately the same strength as the plot in diagram, just with the opposite sign. So, we might guess that r=-0.6.
    1. No, there’s no curved pattern.
    2. Since the points don’t really tend upward or downward as we move from left to right, there is no real relationship here. Thus, r≈0.

Finding the Correlation Coefficient

The data that were plotted in the previous example can be found in the dataset “correlationcoefficient1”. All of them share the same values for the explanatory variable x. The four responses are labeled y1 through y4 . Compute the correlation coefficients for each, if appropriate, using Google Sheets. Round to the nearest hundredth.
Solution
Step 1: There is a curved pattern in the data, so the correlation coefficient isn’t meaningful.
Step 2: Using “=CORREL(A2:A101, C2:C101)” we get r=0.89.
Step 3: Using “=CORREL(A2:A101, D2:D101)” we get r=-0.66.
Step 4: Using “=CORREL(A2:A101, E2:E101)” we get r=-0.04.