Open your copy of Fitting a Model: State Demographics Starter File. If you haven’t already, Save a Copy now.

1 Which two columns will you explore? x-axis and y-axis.

2 Fill in the code to make a scatter plot exploring the relationship between those columns:

scatter-plot​(​states-table, "state",  ,  ​)

3 Pick two states to use for your first model: and .

4 Based on these two points, define your model in Function and Pyret Notation:

Function Notation Pyret Notation

f(x) = x +

fun f​(​x​): (​  ​* x​) +   end

5 Type this model into Pyret, and fit it to your data use fit-model. What S value did you get?

6 What’s the best model you can build? In the table below, record your models and the S values you got for them, then draw a star next to the one with the best S-value.

Model (Function or Pyret Notation - whatever you prefer!) S

What does this model actually mean? Try completing the sentences below:

This model predicts that a 1 percentx-axis units increase in x-axis is associated with a slope, y-units increaseincrease / decrease in y-axis. Based on the S of S and y-axis ranging from lowest y-value to highest y-value, I would say this model fits real well / not great / poorly / terribly.

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.