API CAN CODE �Data Science Practices
Lesson 3.5: Tests and Estimates for One Variable
This work was made possible through generous support from the National Science Foundation (Award # 2141655).
Warmup
2
Lesson 3.4 Recap
3
Zillow - ZHVI Data
We are going to examine data taken from Zillow Research’s Housing Data page.�
4
Exploratory Practice
5
Comparing State City ZHVIs
6
7
Comparing State City ZHVIs
8
How Much Does a House Cost in DC?
Now, let’s focus on Washington, DC prices. Use this program (remember to clone, rename, and save!) to collect a sample of available properties in DC. �
9
Offline API Backup!
10
How Much Does a House Cost in DC?
Copy the output from your program, and then open CODAP and select “Create New Document.”�
What do you notice? What do you wonder?
11
The Role of “Confidence Intervals”
12
The Role of “Confidence Intervals”
13
How Much Does a House Cost in DC?
If you haven’t already, drag price on the x-axis of a new graph to create a dotplot.
What is the mean of this sample? Add the 2 Standard Error shown on the graph to the Mean, and then subtract the same amount from the Mean. What numbers does this give you? (These are the lower and upper limits of your confidence interval!) How could we interpret these numbers?
14
15
16
Standard Deviation vs. Standard Error
Key term:
“each observation”�
Key Term:
“each sample”
17
}
}
Standard Deviation
18
Standard Deviation as a Measure of Spread
19
Confidence Intervals
20
Confidence Intervals
21
Does this graphic appear to show a 95% confidence interval? �
How do you know?
Are Housing Prices Different?
Samples can be good or bad at representing a population.
Even when samples are collected well, random chance might make them unrepresentative.
22
How could a randomly-selected sample of houses be unrepresentative of the population?
Are Housing Prices Different?
Go back to your program; this time, look for the line that says �querystring = {“location”:”washington, dc”}�
Replace the location with another location you’re interested in. If I wanted to look at San Francisco, I would change the line to read: querystring = {“location”:”san francisco, ca”}�
Run the program again to generate a new set of values for your new chosen location!
23
Offline API Backup!
24
Are Housing Prices Different?
Copy the output from your program with the location modification, and then go back to your CODAP page. �
25
Are Housing Prices Different?
Using the Ruler icon, display the 2SE confidence interval like you did for the DC dataset.
What do you think it means if the confidence intervals overlap? What do you think it means if they do not overlap?
26
Exit Ticket
Open this CODAP file to see Ravens and Commanders NFL game scores from a past season, as well as a constructed confidence interval intended to capture each team’s mean points scored per game.
How could you use the information provided to decide who you think would win if the Ravens and Commanders played each other again this season?
27
Thanks!
apicancode@umd.edu
28
This work was made possible through generous support from the National Science Foundation (Award # 2141655).