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 Use lr-plot
to obtain the best-possible linear model for the relationship between day
and positive
in the covid-table
.
a. What do you notice about the line?
b. What is the 𝑅2 value? and what does it tell us about the model?
2 Find the function called is-MA
in the Definitions Area under "Define some helper functions". Read the comments carefully!
a. What is the Domain of is-MA
? Its Range?
b. What do you think is-MA(MA1)
will evalute to? . is-MA(CT1)
? . is-MA(ME1)
?
Try typing each of these helper functions into the Interactions Area on the right and confirm you were correct.
3 Find MA-table
in the Definitions Area under "Define some grouped and/or random samples".
a. What is that code doing?
b. Type MA-table
into the Interactions Area. What does it evaluate to?
4 Use lr-plot
to obtain the best-possible linear model for the relationship between day
and positive
in the MA-table
.
a. What is the 𝑅2 value?
b. What does it tell us about the model?
5 Using the code for is-MA
and MA-table
as a model, define a new function is-VT
and create a grouped sample called VT-table
.
Use lr-plot
to obtain the best-possible linear model for the relationship between day
and positive
in the VT-table
.
a. What is the 𝑅2 value?
b. What does it tell us about the model?
6 Why do these state-specific models fit so well, when model for all of New England fits so poorly?
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.