Linear Regression
with Desmos
Colleen Young
Example
A company carries out some research into the effect of
spending money on advertising. In one month they spend x (in
thousands of pounds) and record the sales, y (also in
thousands of pounds in the following month. The procedure is
repeated every three months, each time with a different
value of x. The procedure is repeated six times with the
following results. Calculate the equation of the regression
line of y on x x y
5 160
9 205
13 229
7 185
11 225
3 136
Check with Desmos
Enter the data into
Excel
Paste the data into Desmos
Add an item and choose expression
Use the ~ character for regression.
Desmos calculates the constants and plots the regression line
Note you can choose to plot
the residuals
We could now add the regression line and...
Edit the list
Enter the regession
line and convert to a
table
Change the x values to
see the values
predicted by the
model
Select image to see graph on Desmos
Colleen Young
Mathematics, Learning & Technology
Mathematics for Students

Regression with Desmos