Fitting the Model Visually 𝑓(𝑥) = 𝑚𝑥 + 𝑏

For this section, you’ll need to have Modeling Covid Spread (Desmos) open on your computer.

1 Try changing the value of 𝑚 and 𝑏 to find three promising linear models, graphing each one and labeling your values in the grids below.

𝑚=
𝑏=

𝑚=
𝑏=

𝑚=
𝑏=

Fitting the Model Programmatically 𝑓(𝑥) = 𝑚𝑥 + 𝑏

For this section, open your copy of the Covid Spread Starter File.

2 In the Definitions Area, define the three models you fit in Desmos, calling them linear1, linear2 and linear3 to .

3 Use fit-model to determine the 𝑅2 value of each of your models for the MA-table.

𝑅2 for linear1: 𝑅2 for linear2: 𝑅2 for linear3:

4 Use lr-plot to obtain the best-possible linear model for the MA Covid dataset.

  • y =

  • 𝑅2 =

5 Look at the equation lr-plot generated. Do you see an e? What does it mean?

6 How does the model generated by lr-plot compare to the ones you fit visually in Desmos?

Are Linear Models a Good Fit for This Data?

7 Would you feel good about making predictions based on these models? Why or why not?

These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927). CCbadge Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.