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

f(x)=x/x+2 given g(x)=1+2x/1-x show that gf(x)=1+2x/3
proof
AUSTINE
sebd me some questions about anything ill solve for yall
how to solve x²=2x+8 factorization?
x=2x+8 x-2x=2x+8-2x x-2x=8 -x=8 -x/-1=8/-1 x=-8 prove: if x=-8 -8=2(-8)+8 -8=-16+8 -8=-8 (PROVEN)
Manifoldee
x=2x+8
Manifoldee
×=2x-8 minus both sides by 2x
Manifoldee
so, x-2x=2x+8-2x
Manifoldee
then cancel out 2x and -2x, cuz 2x-2x is obviously zero
Manifoldee
so it would be like this: x-2x=8
Manifoldee
then we all know that beside the variable is a number (1): (1)x-2x=8
Manifoldee
so we will going to minus that 1-2=-1
Manifoldee
so it would be -x=8
Manifoldee
so next step is to cancel out negative number beside x so we get positive x
Manifoldee
so by doing it you need to divide both side by -1 so it would be like this: (-1x/-1)=(8/-1)
Manifoldee
so -1/-1=1
Manifoldee
so x=-8
Manifoldee
Manifoldee
so we should prove it
Manifoldee
x=2x+8 x-2x=8 -x=8 x=-8 by mantu from India
mantu
lol i just saw its x²
Manifoldee
x²=2x-8 x²-2x=8 -x²=8 x²=-8 square root(x²)=square root(-8) x=sq. root(-8)
Manifoldee
I mean x²=2x+8 by factorization method
Kristof
I think x=-2 or x=4
Kristof
x= 2x+8 ×=8-2x - 2x + x = 8 - x = 8 both sides divided - 1 -×/-1 = 8/-1 × = - 8 //// from somalia
Mohamed
hii
Amit
how are you
Dorbor
well
Biswajit
can u tell me concepts
Gaurav
Find the possible value of 8.5 using moivre's theorem
which of these functions is not uniformly cintinuous on (0, 1)? sinx
which of these functions is not uniformly continuous on 0,1
solve this equation by completing the square 3x-4x-7=0
X=7
Muustapha
=7
mantu
x=7
mantu
3x-4x-7=0 -x=7 x=-7
Kr
x=-7
mantu
9x-16x-49=0 -7x=49 -x=7 x=7
mantu
what's the formula
Modress
-x=7
Modress
new member
siame
what is trigonometry
deals with circles, angles, and triangles. Usually in the form of Soh cah toa or sine, cosine, and tangent
Thomas
solve for me this equational y=2-x
what are you solving for
Alex
solve x
Rubben
you would move everything to the other side leaving x by itself. subtract 2 and divide -1.
Nikki
then I got x=-2
Rubben
it will b -y+2=x
Alex
goodness. I'm sorry. I will let Alex take the wheel.
Nikki
ouky thanks braa
Rubben
I think he drive me safe
Rubben
how to get 8 trigonometric function of tanA=0.5, given SinA=5/13? Can you help me?m
More example of algebra and trigo
What is Indices
If one side only of a triangle is given is it possible to solve for the unkown two sides?
cool
Rubben
kya
Khushnama
please I need help in maths
Okey tell me, what's your problem is?
Navin