In our lesson from Algebra 1 on lines of best fit we saw how to fit data to a linear model to make predictions and interpret patterns in the data. Now, we'll look at how we might do the same for data that more closely resembles a quadratic curve.
Let's consider the following data set:
As we can see from the scatter plot, the data appears to be following a quadratic pattern better than a linear one.
Instead of trying to fit the data to a linear function, let's have our calculator fit a quadratic regression model to the data.
As you can see, when we go to choose a model for regression, there are many to choose from. Your knowledge of functions will help you make the best choice, but this lesson will focus on quadratics.
And here we have the equation of the quadratic function fitted to the data.
We can see the value of the coefficient of determination, $r^2$r2, is very strong (it's very close to $1$1).
Given the coefficients $a$a, $b$b, and $c$c we have the quadratic function $y=-0.52x^2+5.27x+6.86$y=−0.52x2+5.27x+6.86
The scatter diagram shows the number of fish in pond as a function of time.
Which type of model would be appropriate for this data?
Will the coefficient of $x^2$x2 in the quadratic model be positive or negative?
A social researcher claims that the longer people stay in their job, the less satisfaction they gain from their work. She asked a sample of people how many years they had been employed in their current job and to rate their level of satisfaction out of $10$10. The results are presented in the table.
|Number of years employed||Satisfaction rating|
Create a scatter plot for the data collected.
Does the scatter plot support the social worker’s claims?
Which form of equation would be best suited to model the relationship between the number of years employed and satisfaction with the job?
The social researcher herself has been employed in her current job for $4$4 years and rates her satisfaction with her work a $10$10 out of $10$10. What is the difference between the satisfaction rating approximated by the model $y=0.5x^2-6x+20$y=0.5x2−6x+20 and her actual rating?
Nine data points have been plotted below with a quadratic curve of best fit.
Predict the $y$y-value of a point with an $x$x-value of $13$13.
Which of the following points would be predicted by the quadratic curve of best fit?
Given a set of data relating two variables $x$x and $y$y, we can use a model to best estimate how the dependent variable changes in response to the independent variable $x$x. A model allows us to go one step further and make predictions about other possible ordered pairs that fit this relationship.
Say we gathered several measurements on the population $P$P of a small town $t$t years after an earthquake. We can then plot the data on the $xy$xy-plane as shown below.
|Population of a town measured at several instances.|
We can fit a model through the observed data to make predictions about the population at certain times after the earthquake. One plausible model might look like this function:
|A curve modeling population of a town over time.|
To make a prediction on the population, say two years after the earthquake, we first identify the point on the curve when $t=2$t=2. Then we find the corresponding value of $P$P. As you can see below, the model predicts that two years after the earthquake, the population of the town was $250$250.
|A predicted population of $250$250 when $t=2$t=2.|
A prediction which is made within the observed data set is called an interpolation. Roughly speaking, we've gathered data between $t=0.3$t=0.3 and $t=2.3$t=2.3 so a prediction at $t=2$t=2 would be classified as an interpolation.
If we predict the population six years after the earthquake, we find that the population is roughly $16$16. A prediction outside the observed data set such as this one is called an extrapolation.
|A predicted population of $16$16 when $t=6$t=6.|
How reliable are these predictions? Well, any model that fits the observed data will make reliable predictions from interpolations since the model roughly passes through the center of the data points. We can say that the model follows the trend of the observed data.
However, extrapolations are generally unreliable since we make assumptions about how the relationship continues outside of collected data. Sometimes extrapolation can be made more reliable if we have additional information about the relationship.
Consider if we were to use the following quadratic model to fit the data. We can see that interpolating doesn't change much from the previous model, but the predicted values from extrapolation are very different.
|Polynomial curve modeling population of a town over time.|
With further information, say like government funding and support aid, the population of the town might increase after a certain point and so the polynomial curve may be an appropriate model to use.
A prediction made within the observed data is called interpolation.
A prediction made outside the observed data is called extrapolation.
Generally, extrapolation is less reliable than interpolation since the model makes assumptions about the relationship outside the observed data set.
The height of a particular projectile $y$y in meters was measured at different times $t$t in seconds and the following curve of best fit was drawn.
Using the curve of best fit, what is the predicted height of the projectile after $1$1 second?
Using the curve of best fit, what is the predicted height of the projectile after $4$4 seconds?
The height at a given time has the following relationship $y=-5t^2+100$y=−5t2+100. Which of the following statements about interpolation and extrapolation is true?