Using a Graph to Test Check a Slope Value

Hello,

I am trying to have my students collect (x, y) data and then determine the slope of a linear regression. I developed this lessonwhere students enter the data and then calculate the appropriate slope, which I built in a check so students can see if they are correct.

The check calculates the slope using the equations for linear regression with 5 data points. However, the data must go through (0,0) and the linear regression calculation is for a non-zero intercept. Is there a way, to use pull the slope from a graphical calculator like this one, to use as the check?

With the sample data I put in the Lesson, the y=mx+b regression returns a slope of 16.3, while the y=mx regression from the graphical calculator returns a better value of 19.1.

maybe use the legitamite equation for figuring it out the slope?

In your Graph3 component, you can define the regressions as you did in your calc example. Then, you can call on the k values in your table component :slight_smile:

regSlope1 = Graph3.number(k_{1})
regSlope2 = Graph3.number(k_{2})
and set those to your table cell content.