1 of 14

Lecture 17

Statistics

DATA 8

Spring 2017

Slides created by John DeNero (denero@berkeley.edu) and Ani Adhikari (adhikari@berkeley.edu)

2 of 14

Announcements

3 of 14

Probability & Simulation (Review)

(Demo)

4 of 14

Statistics

5 of 14

Why sample?

Probability

Statistics

Sampling

6 of 14

Estimation

Statistical Inference:

Making conclusions based on data in random samples

Example:

Use the data to guess the value of an unknown number

Create an estimate of the unknown quantity

fixed

depends on the random sample

7 of 14

Terminology

Parameter

A number associated with the population

Statistic

A number calculated from the sample

A statistic can be used as an estimate of a parameter

(Demo)

8 of 14

Attendance

9 of 14

Estimation

10 of 14

How many enemy planes?

11 of 14

Assumptions

  • Planes have serial numbers 1, 2, 3, …, N.
  • We don’t know N.
  • We would like to estimate N based on the serial numbers of the planes that we see.

The main assumption

  • The serial numbers of the planes that we see are a uniform random sample drawn with replacement from 1, 2, 3, …, N.

12 of 14

Discussion question

If you saw these serial numbers, what would be your estimate of N?

170 271 285 290 48

235 24 90 291 19

One idea: 291. Just go with the largest one.

13 of 14

The largest number observed

  • Is it likely to be close to N?
    • How likely?
    • How close?

Option 1. We could try to calculate the probabilities and draw a probability histogram.

Option 2. We could simulate and draw an empirical histogram.

(Demo)

14 of 14

Verdict on the estimate

  • The largest serial number observed is likely to be close to N.
  • But it is also likely to underestimate N.

Another idea for an estimate:

Average of the serial numbers observed ~ N/2

New estimate: 2 times the average

(Demo)