Creating a regression in the Desmos Graphing Calculator, Geometry Tool, and 3D Calculator allows you to find a mathematical expression (like a line or a curve) to model the relationship between two sets of data. Get started with the video, then read on to learn more.
Getting Started
For an overview of regressions, open the Help menu and then click the Regressions tour.
After exploring, you can try creating your own regression. You can use regression templates in the Graphing Calculator and Geometry Tool to create a curve from a set list of options.
Or, create a custom regression to use your own model.
Regression Templates
To create a regression, you’ll need to add data to a table. You can either create a table and enter the data manually or copy data from a spreadsheet and paste it into a blank expression line.
Click Zoom Fit to adjust the graph settings to best display your data automatically.
Then, click Add Regression
in your expression line. Or, open the
Once you pick your model, you can explore its statistics; correlation coefficient \(r\) (for linear regressions) or coefficient of determination \(R^2\)(for nonlinear regressions); and residuals (the vertical distance between your data points and the model).
Click Plot to graph the residuals. You can then click Zoom Fit to adjust the graph to best display your residuals.
You can make your points draggable to see how changing their values affects the regression model. To do so, open the Options menu and toggle on Drag.
You can also click
Custom Regression Models
To create a custom regression, start by adding your data to a table.
Then, in a new line, write an equation for your model and replace the equals sign (\(=\)) with a tilde \(~\). Use your table's column names (e.g., \(x_1\) and \(y_1\)) to reference the data in your model.
For example, if your quadratic model should follow the form \(y=ax^2+c\), enter the expression \(y_1\) ~ \(ax_1^2+c\) to find the parameters \(a\) and \(c\) that best fit your data.
Note that the tilde is usually to the left of the 1 on most keyboards or in the bottom row of the ABC part of the Desmos keypad.
Once you’ve performed a regression, the parameter values are stored to their respective variables, so you can use them in other calculations. For example, after performing the quadratic regression, you can try defining a new function, \(f(x)=ax^2+c\) using the values of \(a\) and \(c\). You can then test values, such as \(f(0)\), to find the \(y\)-intercept.
For information about how Desmos tools perform non-linear regressions and some tips on how to find a regression model, see our article on Non-Linear Regressions.
Learn More
Please write in with any questions or feedback to support@desmos.com.