how to do regression desmos

Master Regression on Desmos: Step-by-Step Guide

By James Anderson
AD

ifices. Masters of the Mystic Arts. Earth's mightiest heroes. Yes, we're talking about Desmos, the powerful graphing calculator that has become an invaluable tool for educators and students alike. Today, we're going to explore how to perform regression in Desmos, a vital statistical concept that helps us understand and predict the relationship between variables.

Before we dive into the step-by-step process, let's briefly understand what regression is. In simple terms, regression is a statistical technique used to study the relationship between a variable (dependent) and one or more other variables (independent). It's like finding the line of best fit in a scatter plot, helping us make predictions based on observed data.

Setting Up Your Desmos Graph

Desmos offers a user-friendly interface to create and manipulate graphs. Let's start by setting up a basic graph for our regression analysis.

AD
the text reads activities for regresss without cgsi, and there are stars above it
the text reads activities for regresss without cgsi, and there are stars above it
Age regression activities!
Age regression activities!
the text reads rainy day activities for regressers
the text reads rainy day activities for regressers

1. Start with a clean slate: Click on the squircle icon (△) in the toolbar to clear the graph.

Entering Data Points

Now, let's add some data points to our graph. For this example, let's use the following x and y values:

Lil Regressor Guide I Made For My CG
Lil Regressor Guide I Made For My CG
How to Code Ridge Regression from Scratch | Towards Data Science
How to Code Ridge Regression from Scratch | Towards Data Science
  • (1, 2)
  • (2, 3)
  • (3, 5)
  • (4, 7)
  • (5, 11)

You can enter these values in Desmos by clicking on the ';' icon in the toolbar, then clicking on the graph to place your first point. Repeat this process to add the remaining points.

Plotting the Data

Once you've entered all your data points, Desmos will automatically plot them on the graph as hollow circles. To verify that your data is correct, you can click on a point to view its coordinates in the top-left corner of the screen.

AD

Performing Linear Regression

With our data points plotted, we're ready to perform a linear regression. Desmos makes this process incredibly simple with just a few clicks.

Adding the Regression Line

To add the regression line, follow these steps:

  1. Click on the 'Stats & Reg' icon in the toolbar (it looks like a bar chart).
  2. With the cursor still over the icon, click and drag to the right to reveal the 'Fit' options.
  3. Click on 'Linear' to add the regression line to your graph. Desmos will automatically find the line of best fit based on your data points.

Your regression line should now appear on the graph as a solid line, with a 'y = mx + b' equation displayed in the top-left corner. Here, 'm' is the slope, and 'b' is the y-intercept of the line.

AD

Interpreting the Regression Equation

The regression equation tells us the slope (m) and y-intercept (b) of the line. In our example, the equation might look something like this: 'y = 2.5x + 0.5'. This means that for every unit increase in x, y increases by 2.5 units, and the line crosses the y-axis at 0.5.

Using the Regression Equation to Make Predictions

With our regression line in place, we can now use it to make predictions about our data. Let's say we want to predict the y-value when x equals 6.

Making a Prediction

To make a prediction using the regression equation, follow these steps:

AD
  1. Substitute the value of x (in this case, 6) into the regression equation. So, our equation becomes: y = 2.5(6) + 0.5.
  2. Solve for y: y = 15 + 0.5 = 15.5.
  3. Now, add a point to your graph to show the prediction. Click on the ';' icon in the toolbar and then click on the graph to add the point (6, 15.5).

The predicted point should now appear on the graph as a hollow diamond.

Understanding the Limitations of Regression

While regression is a powerful tool, it's important to understand its limitations. Regression lines are only as good as the data they're based on. If your data is noisy or not evenly distributed, your regression line may not be a reliable predictor of future points.

Furthermore, regression assumes that the relationship between variables is linear. If the relationship is non-linear, a simple regression may not capture the true nature of the data.

Nevertheless, regression is an invaluable tool for understanding and predicting data, and Desmos makes it incredibly accessible to learners of all ages. So start exploring, and happy graphing!

AD