|
Question 132398: Hi, again I need some help this paper is due tomorrow hope someone has time to help. I need to create a function using this information.
year Median Home Cost
1989 $93,100
1990 $97,500
1991 $99,700
1992 $100,900
1993 $106,100
Using the data from 1989 and 1992 determine the values for M and B and then create a linear functionf(x) = mx + b.
m_____; B_____ f(x) = __________.
Thanks for your help.
Answer by jim_thompson5910(35256) (Show Source):
You can put this solution on YOUR website! If you need to use all the data that is given, then use your calculator to calculate the linear regression.
If you just want to find the line through the points (1989, 93100) and (1992,100900) then let's make the year 1989 as x=0 (ie we're starting at the year 1989)
So the two points then become (0, 93100) and (3,100900). Notice how 1992 is 3 years from 1989. So at 1992, we have x=3
Now let's find the equation of the line through the points (0, 93100) and (3,100900)
First lets find the slope through the points ( , ) and ( , )
Start with the slope formula (note: is the first point ( , ) and is the second point ( , ))
Plug in , , , (these are the coordinates of given points)
Subtract the terms in the numerator to get . Subtract the terms in the denominator to get
Reduce
So the slope is
------------------------------------------------
Now let's use the point-slope formula to find the equation of the line:
------Point-Slope Formula------
where is the slope, and is one of the given points
So lets use the Point-Slope Formula to find the equation of the line
Plug in , , and (these values are given)
Distribute
Multiply and to get
Add to both sides to isolate y
Combine like terms and to get
------------------------------------------------------------------------------------------------------------
Answer:
So the equation of the line which goes through the points ( , ) and ( , ) is:
(or in function notation is )
The equation is now in form (which is slope-intercept form) where the slope is and the y-intercept is
|
|
|
| |