Quadratic Regression in Desmos

A quadratic model can help when a scatter plot forms an arch or a bowl. Use regression to fit the whole data set, then compare a prediction with an actual measurement to see how far off it is.

Fit a quadratic in Desmos

In this classroom simulation, an object was measured at four times.

Simulated launch measurements
Time (s) Observed height (m)
0 1.9
1 7.3
2 9.7
3 11.1
  1. Open the Desmos graphing calculator and add a table. Put times in x1 and heights in y1.
  2. On the next expression line, type y_1 ~ a x_1^2 + b x_1 + c. The tilde tells Desmos to fit the data.
  3. Read a, b, and c. This data set gives approximately −1, 6, and 2, so use h(t)=−t2+6t+2 for a prediction.

Predict, then check a residual

At 1.5 seconds the model gives h(1.5)=−2.25+9+2=8.75 meters. That input is between two measured times. At 1 second we can also check the prediction against a measurement. The model gives 7 meters and the observation is 7.3 meters. Observed minus predicted gives a residual of 0.3 meter. The model was low by 0.3 meter.

The fitted curve can miss individual dots. Look at residuals at several measured inputs before relying on it. A model fitted to the first three seconds may also give an unrealistic height well beyond the observations.

Watch the calculator steps

Texas Algebra I teacher Lauren Casias demonstrates quadratic regression and uses the fitted equation to make a prediction.

Try it

Fit the pairs (0,2),(1,6),(2,12),(3,20). Predict the output at x=1.5 and check the residual at x=2.

Check your reasoning

The fit gives y=x2+3x+2. At 1.5 it predicts 2.25+4.5+2=8.75. At 2, both the observation and the model give 12, so the residual is zero.

Practice for Texas Algebra I standard A.8(B). Texas Algebra I Online Center

Related to This Article

What people say about "Quadratic Regression in Desmos - Effortless Math"?

No one replied yet.

Leave a Reply