Skip to main content
Statistics LibreTexts

Prediction (Exercises)

  • Page ID
    5909
  • \( \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}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Use the following information to answer the next two exercises. An electronics retailer used regression to find a simple model to predict sales growth in the first quarter of the new year (January through March). The model is good for 90 days, where \(x\) is the day. The model can be written as follows:

    \[\hat{y} = 101.32 + 2.48x\] where \(\hat{y}\) is in thousands of dollars.

    Exercise 12.6.2

    What would you predict the sales to be on day 60?

    Answer

    $250,120

    Exercise 12.6.3

    What would you predict the sales to be on day 90?

    Use the following information to answer the next three exercises. A landscaping company is hired to mow the grass for several large properties. The total area of the properties combined is 1,345 acres. The rate at which one person can mow is as follows:

    \[\hat{y} = 1350 - 1.2x\] where \(x\) is the number of hours and \(\hat{y}\) represents the number of acres left to mow.

    Exercise 12.6.4

    How many acres will be left to mow after 20 hours of work?

    Answer

    1,326 acres

    Exercise 12.6.5

    How many acres will be left to mow after 100 hours of work?

    Exercise 12.6.7

    How many hours will it take to mow all of the lawns? (When is \(\hat{y} = 0\)?)

    Answer

    1,125 hours, or when \(x = 1,125\)

    Table contains real data for the first two decades of AIDS reporting.

    Adults and Adolescents only, United States
    Year # AIDS cases diagnosed # AIDS deaths
    Pre-1981 91 29
    1981 319 121
    1982 1,170 453
    1983 3,076 1,482
    1984 6,240 3,466
    1985 11,776 6,878
    1986 19,032 11,987
    1987 28,564 16,162
    1988 35,447 20,868
    1989 42,674 27,591
    1990 48,634 31,335
    1991 59,660 36,560
    1992 78,530 41,055
    1993 78,834 44,730
    1994 71,874 49,095
    1995 68,505 49,456
    1996 59,347 38,510
    1997 47,149 20,736
    1998 38,393 19,005
    1999 25,174 18,454
    2000 25,522 17,347
    2001 25,643 17,402
    2002 26,464 16,371
    Total 802,118 489,093
    Exercise 12.6.8

    Graph “year” versus “# AIDS cases diagnosed” (plot the scatter plot). Do not include pre-1981 data.

    Exercise 12.6.9

    Perform linear regression. What is the linear equation? Round to the nearest whole number.

    Answer

    Check student’s solution.

    Exercise 12.6.10

    Write the equations:

    1. Linear equation: __________
    2. \(a =\) ________
    3. \(b =\) ________
    4. \(r =\) ________
    5. \(n =\) ________
    Exercise 12.6.11

    Solve.

    1. When \(x = 1985\), \(\hat{y} =\) _____
    2. When \(x = 1990\), \(\hat{y} =\)_____
    3. When \(x = 1970\), \(\hat{y} =\)______ Why doesn’t this answer make sense?

    Answer

    1. When \(x = 1985\), \(\hat{y} = 25,52\)
    2. When \(x = 1990\), \(\hat{y} = 34,275\)
    3. When \(x = 1970\), \(\hat{y} = –725\) Why doesn’t this answer make sense? The range of \(x\) values was 1981 to 2002; the year 1970 is not in this range. The regression equation does not apply, because predicting for the year 1970 is extrapolation, which requires a different process. Also, a negative number does not make sense in this context, where we are predicting AIDS cases diagnosed.
    Exercise 12.6.11

    Does the line seem to fit the data? Why or why not?

    Exercise 12.6.12

    What does the correlation imply about the relationship between time (years) and the number of diagnosed AIDS cases reported in the U.S.?

    Answer

    Also, the correlation \(r = 0.4526\). If r is compared to the value in the 95% Critical Values of the Sample Correlation Coefficient Table, because \(r > 0.423\), \(r\) is significant, and you would think that the line could be used for prediction. But the scatter plot indicates otherwise.

    Exercise 12.6.13

    Plot the two given points on the following graph. Then, connect the two points to form the regression line.

    Blank graph with horizontal and vertical axes.
    Figure \(\PageIndex{1}\).

    Obtain the graph on your calculator or computer.

    Exercise 12.6.14

    Write the equation: \(\hat{y} =\) ____________

    Answer

    \(\hat{y} = 3,448,225 + 1750x\)

    Exercise 12.6.15

    Hand draw a smooth curve on the graph that shows the flow of the data.

    Exercise 12.6.16

    Does the line seem to fit the data? Why or why not?

    Answer

    There was an increase in AIDS cases diagnosed until 1993. From 1993 through 2002, the number of AIDS cases diagnosed declined each year. It is not appropriate to use a linear regression line to fit to the data.

    Exercise 12.6.17

    Do you think a linear fit is best? Why or why not?

    Exercise 12.6.18

    What does the correlation imply about the relationship between time (years) and the number of diagnosed AIDS cases reported in the U.S.?

    Answer

    Since there is no linear association between year and # of AIDS cases diagnosed, it is not appropriate to calculate a linear correlation coefficient. When there is a linear association and it is appropriate to calculate a correlation, we cannot say that one variable “causes” the other variable.

    Exercise 12.6.19

    Graph “year” vs. “# AIDS cases diagnosed.” Do not include pre-1981. Label both axes with words. Scale both axes.

    Exercise 12.6.20

    Enter your data into your calculator or computer. The pre-1981 data should not be included. Why is that so?

    Write the linear equation, rounding to four decimal places:

    Answer

    We don’t know if the pre-1981 data was collected from a single year. So we don’t have an accurate x value for this figure.

    Regression equation: \(\hat{y} \text{(#AIDS Cases)} = -3,448,225 + 1749.777 \text{(year)}\)

    Coefficients
    Intercept –3,448,225
    \(X\) Variable 1 1,749.777
    Exercise 12.6.21

    Calculate the following:

    1. \(a =\) _____
    2. \(b =\) _____
    3. correlation = _____
    4. \(n =\) _____

    Prediction (Exercises) is shared under a CC BY license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?