Aniko

Desmos regression from a supplied table

Lesson progressPractice problems 0/4

Enter paired data in Desmos, run linear, quadratic, or exponential regression, and use the fitted model to answer Digital SAT questions.

Difficulty
Intermediate
Estimated time
30 minutes

What you’ll learn

  1. Put the input in x_1 and the output in y_1.
  2. Pick the linear, quadratic, or exponential regression that fits the question.
  3. Read the values Desmos fits and turn them into an equation, a coefficient, or a prediction, in the units and rounding the question asks for.
  4. Spot a quick pattern that gets you there faster than a regression.

Why this matters on the SAT

Turn a table into an SAT answer

Some SAT questions hand you a table of paired values and ask for an equation, a coefficient, or a prediction from a model. A regression finds the equation that best matches a set of paired values, and Desmos runs one in seconds. You bring three things: the right columns, the right model, and a careful read of what the question wants.

Here's how that plays out on a typical question.

SAT example

The amount of a medicine in a sample is modeled by an exponential function. The table shows the amount, A(t)A(t), at several times tt.

tt (hours)002244
A(t)A(t) (milligrams)500500320320204.8204.8

According to the model, what is the predicted amount of medicine, in milligrams, at t=5t=5, rounded to the nearest whole number?

Fast Desmos solution: Put tt in x_1 and A(t)A(t) in y_1. Then select Add Regression and choose Exponential. Desmos finds A(t)=500(0.8)tA(t)=500(0.8)^t. Plug in t=5t=5 and you get 163.84163.84, which rounds to 164\boxed{164} milligrams.

You never had to work out the 0.80.8 yourself. Desmos found it from the table.

Calculator loads as you approach
Desmos fits the exponential model, then predicts the amount at 5 hours.

When is regression the right method?

Reach for regression when a question gives you a table of several paired values and wants something from a model. These signs point to it:

  • The question names the model, the way the medicine question says "is modeled by an exponential function."
  • It asks for the line or curve that best fits measured data, which almost never lands exactly on a line or curve.
  • It asks what a model predicts, like the amount of medicine at t=5t=5.
  • The answer choices are equations with coefficients you can't easily work out in your head.

Before you type anything, though, glance at the table. Sometimes the pattern jumps out. If each output goes up by 77 every time the input goes up by 11, the slope is 77, and you're done. If each output is half the one before as the input goes up by 11, the exponential multiplier is 0.50.5. Desmos could confirm either one, but typing in the whole table takes longer than noticing.

Check your understanding:

A table has only two rows. The output goes from 1818 to 2323 while the input goes from 44 to 55. The question asks for the rate of change. Would you start with a regression?

Put the variables in the right columns

Each row of the Desmos table has to hold one pair. Put the input, the quantity you start from, in x_1. Put the output, the quantity being predicted, in y_1. Statistics calls these the explanatory variable and the response variable.

With time and population, time usually goes in x_1, because you're modeling how population changes over time. When you're not sure, the question's wording tells you. In "yy as a function of xx" or "predict yy from xx," xx is the input:

  • "Model yy as a function of xx" makes xx the input and yy the output.
  • "Predict sales from years of experience" makes experience the input and sales the output.
  • "Model temperature as a function of time" makes time the input and temperature the output.
Check your understanding:

A question asks you to model fuel remaining as a function of distance traveled. Which goes in x_1, and which goes in y_1?

Common mistake:

It’s tempting to put whichever column comes first in the table into x_1. But the table’s order doesn’t decide it. The question’s wording does. Swap the columns for time and population, and Desmos would predict time from population, which is a different model.

Choose the regression the question calls for

Once the table is in, select Add Regression next to it and pick the model:

ModelWhat Desmos types for youWhat Desmos reports
Lineary1∼mx1+by_1\sim mx_1+bthe slope mm and the intercept bb
Quadraticy1∼ax12+bx1+cy_1\sim ax_1^2+bx_1+cthe coefficients aa, bb, and cc
Exponentialy1∼abx1y_1\sim ab^{x_1}the starting value aa and the multiplier bb

The squiggle, ∼\sim, is called a tilde. It tells Desmos to fit a model to the table, and it's not an equals sign. These are Desmos's automatic regressions: the menu types each line for you, so there's nothing to memorize yet.

If the question names a model, use that one. If it doesn't, the context, the answer choices, and the table's pattern tell you. Check the pattern when the inputs are evenly spaced:

  • If the outputs change by about the same amount each step, like 33, 77, 1111, 1515, try linear.
  • If the differences themselves change by about the same amount each step, try quadratic. For 11, 44, 99, 1616, the differences are 33, 55, 77, and those go up by 22 each time.
  • If each output is about the same multiple of the one before, like 22, 66, 1818, 5454, try exponential.

Measured data usually won't follow any pattern perfectly, and that's fine. Go with the pattern the numbers stay closest to. What you shouldn't do is grab a fancier curve just because it can hit every point. A quadratic can pass through any three points with different xx-values, but that doesn't make it the right model. The question and the pattern decide, not how many letters the equation has.

Check your understanding:

Every 2 hours, a quantity goes from 8080 to 6060 to 4545 to 33.7533.75. Which regression would you choose, and what pattern tells you?

Calculator loads as you approach
Look at how the outputs change every 2 hours, then pick a regression.

Turn the regression output into an SAT answer

Desmos remembers the fitted values, so you can use them on a new line. In the medicine example, once the exponential regression reports aa and bb, you type a*b^5 to get the model's value at t=5t=5. Type the letters, not the decimals you see on screen. Desmos keeps more digits than it shows, so the letters give you the full fitted values instead of rounded copies. That means you never have to copy a long decimal. Round once, at the very end.

Then reread the question. Desmos hands you the whole model, but the question often wants just one piece of it. The medicine table gives A(t)=500(0.8)tA(t)=500(0.8)^t, and different questions about it want different things. A question about the amount at t=5t=5 wants a prediction, so you plug in 55 and round 163.84163.84 to 164164. A question about the multiplier wants b=0.8b=0.8, not the 20%20\% drop per hour it stands for. Lines work the same way: a question about the slope wants mm alone, not the whole equation. And read the units: if the outputs are in thousands of dollars, so is the model's prediction.

How far should you trust the fit? That depends on where the table came from.

Real measurements rarely sit exactly on the model, and that's normal. When the question asks for the "best estimate," the model's value gives you the answer. It's an estimate, so don't expect it to match every row.

A table from an exact function calls for a quick check. Desmos shows the fitted values as decimals, which may be rounded, so plug a row or two into the equation you picked before you trust it as exact. The medicine table passes: at t=2t=2, 500(0.8)2=320500(0.8)^2=320, which matches the table.

Calculator loads as you approach
The second line reuses the fitted a and b to predict the amount at 5 hours.

Example: Fit real data and make a prediction

Worked example

A company recorded each salesperson's years of experience, xx, and average monthly sales, yy, in thousands of dollars.

xx (years)1122334455
yy (thousands of dollars)44779913131515

A linear model is used to predict monthly sales from years of experience. According to this model, what is the best estimate of the monthly sales, in thousands of dollars, for a salesperson with 66 years of experience?

  1. A

    1616

  2. B

    1818

  3. C

    2020

  4. D

    2424

Step 1

Set up the table

The question predicts sales from experience, so experience is the input. Years go in x_1, and monthly sales go in y_1.

Calculator loads as you approach
Each row pairs one salesperson’s experience with their sales.

Step 2

Run the linear regression

The question names a linear model. Select Add Regression and keep Linear. Desmos fits

y1∼mx1+by_1\sim mx_1+b

and reports

m=2.8,b=1.2.m=2.8,\qquad b=1.2.

The points don't sit exactly on a line, so this is the line that fits them best. That's normal for real data, and it's why the question asks for the best estimate.

Calculator loads as you approach
Desmos reports the slope m and the intercept b of the best-fit line.

Step 3

Plug in 6 years

The question wants the model's prediction at x=6x=6. Type m*6+b:

2.8(6)+1.2=18.2.8(6)+1.2=18.

The model predicts 1818 thousand dollars in monthly sales, so the answer is B.

Calculator loads as you approach
The line m*6+b gives the predicted sales at 6 years.

Common mistake: Answering 2.82.8, which is the slope, not the prediction. Or reading 1818 as 1818 dollars. The table is in thousands of dollars, so 1818 means 18,00018{,}000 dollars a month.

Finish the solution

The table and a quadratic regression are already in the calculator. Match what Desmos reports to the answer choices.

Finish the solution

For the quadratic function ff, the table shows three values of xx and the corresponding values of f(x)f(x).

xx−1-10011
f(x)f(x)101014142020

Which equation defines ff?

First steps

  1. Put the xx-values in x_1 and the f(x)f(x)-values in y_1.
  2. Select Add Regression, then choose Quadratic.

Finish it

Answer choices
Calculator loads as you approach
Match a, b, and c to the answer choices.

Practice problems

Now it's your turn. Each problem uses one of the three regressions. Try it before you open the hint.

Practice problem

A technician records the screen size xx, in inches, and mass yy, in grams, of six smartphone models. The data follow a roughly linear trend.

xx (inches)4.74.75.05.05.55.56.16.16.56.56.86.8
yy (grams)135135145145155155170170182182190190

Which equation best models the relationship between yy and xx?

Answer choices
Calculator loads as you approach
Enter the data, then fit a linear model.

Practice problem

A tank contains yy liters of water xx hours after draining begins. The measured amounts are rounded to the nearest whole liter.

xx1144771010
yy (liters)510510313313193193118118

The amount of water is modeled by an exponential function. According to this model, what is the predicted amount of water, in liters, at x=13x=13, rounded to the nearest whole number?

Calculator loads as you approach
Enter the data, fit an exponential model, and make the prediction.

Practice problem

A wildlife center records the number of sea turtles, P(t)P(t), in a rehabilitation pool tt days after observations begin. The number of turtles is modeled by a quadratic function.

tt (days)004488
P(t)P(t) (turtles)120120152152120120

The model can be written as

P(t)=at2+bt+c,P(t)=at^2+bt+c,

where aa, bb, and cc are constants. What is the value of bb?

Calculator loads as you approach
Enter the data, fit a quadratic, and find the coefficient the question asks for.

Finish the lesson

4 practice examples left

Finish the remaining questions correctly to complete this lesson.

Quick recap

  • Input in x_1, output in y_1, one pair per row. In "yy as a function of xx" or "predict yy from xx," xx is the input.
  • If the question names a model, use it. If not, let the context, the answer choices, and the table's pattern pick linear, quadratic, or exponential.
  • Read each fitted value by its letter, and type the letters instead of the rounded decimals.
  • Give the question the piece it wants, whether that's the equation, one coefficient, or a prediction, in its units and rounding.
  • A fit to measured data is an estimate. A table from an exact function gets a quick row check.
  • When a steady difference, a steady ratio, or another quick pattern jumps out, skip the regression.

Next lesson

Mean, median, and frequency tables in Desmos

Use Desmos for one-variable data and weighted frequency tables.

Start next lesson

Practice

Practice this lesson

158 SAT questions use what this lesson teaches. Practice a few in a study session at the difficulty you choose.

Start practice

Free practice set

SAT Desmos Regression Practice

Practice Desmos regression on 68 SAT questions, from fitting a table to custom regression, circle regression and equivalent expressions. Every question has a step-by-step Desmos solution.

Practice the set