For this page, you’ll need to have the Covid Spread Starter File open on your computer. If you haven’t already, select Save a Copy from the "File" menu to make a copy of the file that’s just for you.
1 Evaluate covid-table
and MA-table
in the Interactions Area. How are these tables different?
2 Discuss lines 27-34 with your partner. What do you think is going on here?
3 Make a scatter plot from the MA-table
, using state
as the labels, and day
and positive
as the x- and y-axis. Sketch the plot below.
4 Use lr-plot
to obtain the best-possible linear model for the MA Covid data, graph it on the plot above, and define it below:
y = S =
5 The optimized linear model for this dataset predicts an increase / decrease of about slope y-variable per x-variable.
The error in the model is described by an S-value of about Sunits, which is a poor, ok, good fit considering that y-variable in this dataset range from lowest y-value to highest y-value.
6 Change the definition of the linear
function in the Covid Spread Starter File to match the model produced by lr-plot
and "Save".
7 Do you think a linear function is a good fit for this dataset? Why or why not?
★ What do you think the code that defines MA-table
is actually doing?
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, 1738598, 2031479, and 1501927).
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.