Lesson goal: Guessing a trendline

Previous: Looking for rectangles | Home | Next: Compute the best possible trendline

If you run the code below, it'll plot some data points (green circles), which are the temperature in a room (y-axis) vs. the minutes into a day (x-axis). (The graph axes are not labeled. The x-axis goes from 0 to 100, and the y-axis from 0 to 60.)

The exercise here is to see if you can manually find a "trendline" that passes through the data points.

Alter the m= (slope) and b= (y-intercept) to see if you can make the yellow line go through the data points.

Now you try. Alter the m= and b= lines, picking a slope and y-intercept, and see if you can get the line to pass through the data points.

Type your code here:


See your results here: