Unit 6, lesson 59

Desmos Tables, Parameters and Model Checks

How to enter data in a Desmos table, fit and read a regression, explore a parameter with a slider, and back every on-screen hint with an exact algebraic reason.

  • Theory part 117
  • Practice part 118
  • Using the Graphing Calculator

Theory, part 117

Practice, part 118

A question gives four rows of data and asks which equation fits them. Another asks what the slope of a fitted line means, and a third asks for the value of a constant that makes a line touch a parabola exactly once. The built-in graphing calculator can help with all three, through tables, regressions and sliders. Each tool gives evidence on a screen, and the answer still rests on the mathematics behind it.

See also Variables, Parameters, and Building a Model in Foundations for Calculus.

Key terms

Test-mode calculator

Definition In the current format of the digital SAT, the Desmos graphing calculator is built into the testing app. The version in the testing app may not include every feature of the classroom or website version. If the app also offers a scientific calculator mode, do not count on entries typed in one mode being available in the other. The features to rely on are the ones you have actually used in the official practice tests in the testing app.

In plain words Practice on the same calculator you will see on test day. Do not plan around a feature you have only seen elsewhere.

Example Suppose you define f(x)=3x+7f(x) = 3x + 7 in the graphing calculator. Typing f(12)f(12) on a new line there shows 4343. If you switch to a scientific mode, plan to type 3⋅12+73 \cdot 12 + 7 directly rather than expecting ff to be defined there.

Table

Definition A table in Desmos is a list of ordered pairs entered in columns, and each row is plotted as a point. In a new table the columns are named x1x_1 and y1y_1 by default, and a regression refers to the data by these names. A table of values of a function lists inputs xx and the matching outputs f(x)f(x). A function ff fits a table exactly when f(x)=yf(x) = y holds in every row, which you can confirm by substitution.

In plain words A table is data you can see as dots. A proposed equation fits when its graph passes through every dot and the arithmetic checks in every row.

Example The table below has inputs that step by 22 and outputs that step by 66.

xx00224466
yy77131319192525

The slope is 62=3\frac{6}{2} = 3 and the value at x=0x = 0 is 77, so y=3x+7y = 3x + 7. Graphing it over the plotted points shows every dot on the line, and substitution confirms it, since 3⋅6+7=253 \cdot 6 + 7 = 25 and so on for each row.

Model

Definition A model is a function, usually with numerical constants, used to describe how one quantity depends on another, such as a linear model y=mx+by = mx + b or an exponential model y=abxy = ab^x with a≠0a \ne 0, b>0b > 0 and b≠1b \ne 1. A model can fit some data exactly, or only approximately when the data are noisy measurements. Its predictions are most trustworthy within the range of the data used to build it.

In plain words A model is a formula that stands in for a real situation. Good models describe the data well, but they are still simplifications.

Example A savings account starts at 500500 dollars and grows by 4%4\% each year, so a model for its value after tt years is

V(t)=500(1.04)t.V(t) = 500(1.04)^t.

After 33 years the model gives V(3)=500⋅1.043≈562.43V(3) = 500 \cdot 1.04^3 \approx 562.43 dollars.

Coefficient

Definition A coefficient is a constant number multiplying a variable or a power of a variable in an expression. In a model each coefficient has a meaning in context. In y=mx+by = mx + b, the coefficient mm is the change in yy for each increase of 11 in xx, and the constant term bb is the value of yy when x=0x = 0. In y=abxy = ab^x, the coefficient aa is the value at x=0x = 0 and bb is the factor by which yy is multiplied each time xx increases by 11.

In plain words Each number in a model tells a story about the situation. Say that story with units.

Example A plant’s height is modeled by h=1.85w+12.4h = 1.85w + 12.4 centimeters after ww weeks. The coefficient 1.851.85 means the model predicts growth of 1.851.85 centimeters per week, and 12.412.4 means a predicted height of 12.412.4 centimeters at the start, when w=0w = 0.

Regression

Definition A regression finds the model of a chosen form that fits a set of data points best by a fixed rule. For a linear regression the rule is least squares, which chooses mm and bb to make the sum of the squared vertical distances from the points to the line as small as possible. In Desmos you enter the data in a table and type a line such as

y1∼mx1+b,y_1 \sim m x_1 + b,

with the tilde symbol in place of the equals sign. Desmos then shows the fitted values of the constants. For noisy data, regression coefficients are estimates, and a fitted model does not prove that its form is the true relationship.

In plain words A regression draws the best line or curve of the kind you ask for. It does not tell you that this kind of curve is the right one, and its numbers are estimates.

Example For the data (1,3.1)(1, 3.1), (2,4.9)(2, 4.9), (3,7.2)(3, 7.2), (4,8.8)(4, 8.8) and (5,11.1)(5, 11.1), a linear regression gives m=1.99m = 1.99 and b=1.05b = 1.05, so

y≈1.99x+1.05.y \approx 1.99x + 1.05.

The model predicts about 1.99⋅8+1.05=16.971.99 \cdot 8 + 1.05 = 16.97 at x=8x = 8, a value outside the data, so that prediction carries more risk than one inside the data range. The points lie close to the line, but no single point needs to lie on it.

Parameter

Definition A parameter is a constant in a formula that can take different values, where each value gives a different function or equation from the same family. In y=x2+cy = x^2 + c the variable is xx, and cc is a parameter. A question with a parameter usually asks which value of the parameter produces some exact property, such as one solution, no solution or a given intercept.

In plain words A parameter is a number you have not chosen yet. Changing it moves or reshapes the whole graph.

Example In y=x2+cy = x^2 + c, the value c=−4c = -4 gives zeros at x=±2x = \pm 2, the value c=0c = 0 gives a single zero at x=0x = 0, and the value c=3c = 3 gives no real zeros. The parameter decides how many zeros there are.

Slider

Definition In Desmos, when you type an expression that uses a letter with no value yet, such as aa in y=a(x−2)2+1y = a(x - 2)^2 + 1, the calculator offers to add a slider for it. A slider lets you change the value of that letter by dragging and watch the graph respond. A slider shows numbers to limited precision, so it can suggest an exact parameter value but does not prove it. The exact value comes from algebra.

In plain words A slider lets you try many parameter values quickly. Use it to see what is happening, then solve for the exact value.

Example For which value of cc does the line y=2xy = 2x meet the parabola y=x2+cy = x^2 + c at exactly one point? Dragging a slider for cc shows the parabola just touching the line near c=1c = 1. Algebra makes it exact. Setting x2+c=2xx^2 + c = 2x gives x2−2x+c=0x^2 - 2x + c = 0, which has exactly one real solution when the discriminant is zero,

(−2)2−4⋅1⋅c=4−4c=0,(-2)^2 - 4 \cdot 1 \cdot c = 4 - 4c = 0,

so c=1c = 1, and the single point is (1,2)(1, 2).

Check yourself

  1. Which equation fits every row of the table with xx values 00, 22, 44 and 66 and yy values 77, 1313, 1919 and 2525? (A) y=6x+7y = 6x + 7 (B) y=3x+7y = 3x + 7 (C) y=7x+3y = 7x + 3 (D) y=2x+7y = 2x + 7
Show the answer

The correct choice is (B). The output rises by 66 for every increase of 22 in xx, so the slope is 33, and the row (0,7)(0, 7) gives the intercept 77. Each row checks, for example 3⋅4+7=193 \cdot 4 + 7 = 19. Choice (A) takes the change per row as the slope without dividing by the step of 22. Choice (C) swaps the slope and intercept, and (D) fails at x=2x = 2, where it gives 1111.

  1. A scientist fits the model h=1.85w+12.4h = 1.85w + 12.4 to measurements of a plant’s height hh, in centimeters, after ww weeks. Which statement is the best interpretation of 1.851.85? (A) The plant was 1.851.85 centimeters tall when measurements began. (B) The model predicts that the plant grows about 1.851.85 centimeters each week. (C) The plant grew exactly 1.851.85 centimeters every week. (D) The model predicts the plant reaches 1.851.85 meters.
Show the answer

The correct choice is (B). The coefficient of ww is the predicted change in height per week. Choice (A) describes the constant 12.412.4. Choice (C) treats an estimate from noisy data as an exact fact about every week. Choice (D) confuses the units and the role of the number.

  1. The line y=4x+by = 4x + b intersects the parabola y=x2y = x^2 at exactly one point. What is the value of bb?
Show the answer

The answer is −4-4. Setting x2=4x+bx^2 = 4x + b gives x2−4x−b=0x^2 - 4x - b = 0. Exactly one real solution means the discriminant is zero, so 16+4b=016 + 4b = 0 and b=−4b = -4. The single point is (2,4)(2, 4). A slider for bb shows the line touching the parabola near −4-4, and the discriminant shows the value is exactly −4-4. Entering 44 is the sign slip to avoid.

How this lesson connects