Lecture 22
Confidence Intervals
DATA 8
Spring 2017
Slides created by John DeNero (denero@berkeley.edu) and Ani Adhikari (adhikari@berkeley.edu)
Announcements
Midterm
Score Distribution
Percentiles
Computing Percentiles
The 80th percentile is the value in a set that is at least as large as 80% of the elements in the set
For s = [1, 7, 3, 9, 5], percentile(80, s) is 7
The 80th percentile is ordered element 4: (80/100) * 5
For a percentile that does not exactly correspond to an element, take the next greater element instead
Percentile
Size of set
The percentile Function
percentile(p, values)
Discussion Question
Which are True, when s = [1, 7, 3, 9, 5]?
percentile(10, s) == 0
percentile(39, s) == percentile(40, s)
percentile(40, s) == percentile(41, s)
percentile(50, s) == 5
(Demo)
Estimation (Review)
Inference: Estimation
(Demo)
Variability of the Estimate
(Demo)
Where to Get Another Sample?
Attendance
The Bootstrap
The Bootstrap
Why the Bootstrap Works
population
sample
resamples
All of these look pretty similar, most likely.
Key to Resampling
(Demo)