Lecture 15
Sampling
DATA 8
Summer 2017
Slides created by John DeNero (denero@berkeley.edu), Ani Adhikari (adhikari@berkeley.edu), and Sam Lau (samlau95@berkeley.edu)
Announcements
Monty Hall Problem
Probability
Probability
Equally Likely Outcomes
Assuming all outcomes are equally likely, the chance of an event A is:
number of outcomes that make A happen
P(A) = ---------------------------------------------------------------
total number of outcomes
(Demo)
Fraction of a Fraction
(Demo)
Multiplication Rule
Chance that two events A and B both happen
= P(A happens) x P(B happens given that A has happened)
(Demo)
Addition Rule
If event A can happen in exactly one of two ways, then
P(A) = P(first way) + P(second way)
Example: At Least One Head
(Demo)
Attendance
Sampling
Sampling
(Demo)
Sample of Convenience
then you don’t have a random sample
Distributions
Probability Distribution
(Demo)
Empirical Distribution
(Demo)
Large Random Samples
Law of Averages
If a chance experiment is repeated many times,
independently and under the same conditions,
then the proportion of times that an event occurs
gets closer to the theoretical probability of the event
As you increase the number of rolls of a die, the proportion of times you see the face with five spots gets closer to 1/6
(Demo)
Large Random Samples
If the sample size is large,
then the empirical distribution of a uniform random sample
resembles the distribution of the population,
with high probability