# 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.

the gradient function of a curve is 2x+4 and the curve passes through point (1,4) find the equation of the curve
1+cos²A/cos²A=2cosec²A-1
test for convergence the series 1+x/2+2!/9x3
a man walks up 200 meters along a straight road whose inclination is 30 degree.How high above the starting level is he?
100 meters
Kuldeep
Find that number sum and product of all the divisors of 360
Ajith
exponential series
Naveen
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
Dua
Yes
ahmed
Thank you
Dua
give me treganamentry question
Solve 2cos x + 3sin x = 0.5