Open the State Demographics Starter File.
What columns do you think might have a relationship? (e.g. is the number of veterans related to the land-area? Is the population in 2010 related to the population in 2020?) |
|
---|---|
1 I think that |
2 I think that |
What do you predict the relationships will look like? (e.g. Negative? Positive? Curves?) | |
---|---|
Label the axes on the graphs below with your variables from 1 and 2. Then sketch how you imagine they might be related. |
|
3
|
4
|
# scatter-plot :: (Table, Stringlabels, Stringexplanatory, Stringresponse) -> Image
Use the Contract above to make a scatter plot for each relationship. (Use "state" as the label, so that clicking on a point will show you which state you’re looking at.) |
|
---|---|
If there’s a pattern, describe it so that someone else could sketch it. What does it mean? If there isn’t a pattern, what does that mean? |
|
5 |
6 |
More Relationships
Pyret allows us to generate many scatter plots, quite quickly! Take advantage of that to identify two relationships that appear to be strong. Hint: If you’re working in the Interactions Area of Pyret, you can hit the up arrow to bring back previously used lines of code.
7 There appears to be a negative / positive relationship between explanatory variable (x-axis) and response variable (y-axis)
8 There appears to be a negative / positive relationship between explanatory variable (x-axis) and response variable (y-axis)
★ What have you learned about our state and the others we decided to focus on?
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.