# 4.3 Fitting linear models to data  (Page 2/14)

 Page 2 / 14

[link] compares the two processes for the cricket-chirp data addressed in [link] . We can see that interpolation would occur if we used our model to predict temperature when the values for chirps are between 18.5 and 44. Extrapolation would occur if we used our model to predict temperature when the values for chirps are less than 18.5 or greater than 44.

There is a difference between making predictions inside the domain and range of values for which we have data and outside that domain and range. Predicting a value outside of the domain and range has its limitations. When our model no longer applies after a certain point, it is sometimes called model breakdown    . For example, predicting a cost function for a period of two years may involve examining the data where the input is the time in years and the output is the cost. But if we try to extrapolate a cost when $\text{\hspace{0.17em}}x=50,$ that is in 50 years, the model would not apply because we could not account for factors fifty years in the future.

## Interpolation and extrapolation

Different methods of making predictions are used to analyze data.

The method of interpolation    involves predicting a value inside the domain and/or range of the data.
The method of extrapolation    involves predicting a value outside the domain and/or range of the data.
Model breakdown occurs at the point when the model no longer applies.

## Understanding interpolation and extrapolation

1. Would predicting the temperature when crickets are chirping 30 times in 15 seconds be interpolation or extrapolation? Make the prediction, and discuss whether it is reasonable.
2. Would predicting the number of chirps crickets will make at 40 degrees be interpolation or extrapolation? Make the prediction, and discuss whether it is reasonable.
1. The number of chirps in the data provided varied from 18.5 to 44. A prediction at 30 chirps per 15 seconds is inside the domain of our data, so would be interpolation. Using our model:

Based on the data we have, this value seems reasonable.

2. The temperature values varied from 52 to 80.5. Predicting the number of chirps at 40 degrees is extrapolation because 40 is outside the range of our data. Using our model:

We can compare the regions of interpolation and extrapolation using [link] .

According to the data from [link] , what temperature can we predict it is if we counted 20 chirps in 15 seconds?

$54°\text{F}$

## Finding the line of best fit using a graphing utility

While eyeballing a line works reasonably well, there are statistical techniques for fitting a line to data that minimize the differences between the line and data values Technically, the method minimizes the sum of the squared differences in the vertical direction between the line and the data values. . One such technique is called least squares regression    and can be computed by many graphing calculators, spreadsheet software, statistical software, and many web-based calculators For example, http://www.shodor.org/unchem/math/lls/leastsq.html . Least squares regression is one means to determine the line that best fits the data, and here we will refer to this method as linear regression.

what is subgroup
Prove that: (2cos&+1)(2cos&-1)(2cos2&-1)=2cos4&+1
e power cos hyperbolic (x+iy)
10y
Michael
tan hyperbolic inverse (x+iy)=alpha +i bita
prove that cos(π/6-a)*cos(π/3+b)-sin(π/6-a)*sin(π/3+b)=sin(a-b)
why {2kπ} union {kπ}={kπ}?
why is {2kπ} union {kπ}={kπ}? when k belong to integer
Huy
if 9 sin theta + 40 cos theta = 41,prove that:41 cos theta = 41
what is complex numbers
give me treganamentry question
Solve 2cos x + 3sin x = 0.5
madras university algebra questions papers first year B. SC. maths
Hey
Rightspect
hi
chesky
Give me algebra questions
Rightspect
how to send you
Vandna
What does this mean
cos(x+iy)=cos alpha+isinalpha prove that: sin⁴x=sin²alpha
cos(x+iy)=cos aplha+i sinalpha prove that: sinh⁴y=sin²alpha
rajan
cos(x+iy)=cos aplha+i sinalpha prove that: sinh⁴y=sin²alpha
rajan
is there any case that you can have a polynomials with a degree of four?
victor
***sscc.edu/home/jdavidso/math/catalog/polynomials/fourth/fourth.html
Oliver
can you solve it step b step
give me some important question in tregnamentry
Anshuman
what is linear equation with one unknown 2x+5=3
-4
Joel
x=-4
Joel
x=-1
Joan
I was wrong. I didn't move all constants to the right of the equation.
Joel
x=-1
Cristian
y=x+1
gary
x=_1
Daulat
yas. x= -4
Deepak
x=-1
Deepak
2x=3-5 x=-2/2=-1
Rukmini
-1
Bobmorris