Skip to main content
Statistics LibreTexts

3.8: Putting It Together- Examining Relationships- Quantitative Data

  • Page ID
    14050
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Let’s Summarize

    • We use a scatterplot to graph the relationship between two quantitative variables. In a scatterplot, each dot represents an individual. We always plot the explanatory variable on the horizontal x-axis.
    • When we explore a relationship between two quantitative variables using a scatterplot, we describe the overall pattern (direction, form, and strength) and deviations from the pattern (outliers).
    • When the form of a relationship is linear, we use the correlation coefficient, r, to measure the strength and direction of the linear relationship. The correlation ranges between −1 an 1. If the pattern is linear, an r-value near −1 indicates a strong negative linear relationship and an r-value near +1 indicates a strong positive linear relationship. Following are some cautions about interpreting correlation:
      • Always make a scatterplot before interpreting r. Correlation is affected by outliers and should be used only when the pattern in the data is linear.
      • Association does not imply causation. Do not interpret a high correlation between explanatory and response variables as a cause-and-effect relationship.
      • Beware of lurking variables that may be explaining the relationship seen in the data.
    • The line that best summarizes a linear relationship is the least-squares regression line. The least-squares line is the best fit for the data because it gives the best predictions with the least amount of error. The most common measurement of overall error is the sum of the squares of the errors, SSE. The least-squares line is the line with the smallest SSE.
    • We use the least-squares regression line to predict the value of the response variable from a value of the explanatory variable. Avoid making predictions outside the range of the data. (This is called extrapolation.)
    • We have two methods for finding the equation of the least-squares regression line: Predicted y = a + b * x
      • We use technology to find the equation of the least-squares regression line: Predicted y = a + b * x
      • We use summary statistics for x and y and the correlation. Using this method, we can calculate the slope b and the y-intercept a using the following: b=\left(r⋅{s}_{y}\right)/{s}_{x},\text{}a=\stackrel{¯}{y}-b\stackrel{¯}{x}
    • The slope of the least-squares regression line is the average change in the predicted values when the explanatory variable increases by 1 unit.
    • When we use a regression line to make predictions, there is error in the prediction. We calculate this error as Observed value − Predicted value. This prediction error is also called a residual.
    • We use residual plots to determine whether a linear model is a good summary of the relationship between the explanatory and response variables. In particular, we look for any unexpected patterns in the residuals that may suggest that the data is not linear in form.
    • We have two numeric measures to help us judge how well the regression line models the data:
      • The square of the correlation, r2 , is the proportion of the variation in the response variable that is explained by the least-squares regression line.
      • The standard error of the regression, se , gives a typical prediction error based on all of the data. It roughly measures the average distance of the data from the regression line. In this way, it is similar to the standard deviation, which roughly measures average distance from the mean.

    Contributors and Attributions

    CC licensed content, Shared previously

    3.8: Putting It Together- Examining Relationships- Quantitative Data is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?