MIT18 05S14 Class10slides PDF
MIT18 05S14 Class10slides PDF
T T T H H T H H H T
H T H T H T H T H T
H T T T H T T T T H
H T T H H T H H T H
T T H H H H T H T H
T T T H T H H H H T
T T T H H H T T T H
H H H H H H H T T T
H T H H T T T H H T
H T H H H T T T H H
January 1, 2017 1 / 17
Three ‘phases’
Data Collection:
Informal Investigation / Observational Study / Formal
Experiment
Descriptive statistics
Inferential statistics (the focus in 18.05)
January 1, 2017 2 / 17
Is it fair?
T T T H H T H H H T
H T H T H T H T H T
H T T T H T T T T H
H T T H H T H H T H
T T H H H H T H T H
T T T H T H H H H T
T T T H H H T T T H
H H H H H H H T T T
H T H H T T T H H T
H T H H H T T T H H
January 1, 2017 3 / 17
Is it normal?
0.20
Density
0.10
0.00
−4 −2 0 2 4
x
January 1, 2017 4 / 17
What is a statistic?
January 1, 2017 5 / 17
Concept question
January 1, 2017 6 / 17
Notation
variables.
e.g. x1 , . . . , x10 = 1, 1, 1, 0, 0, 0, 0, 0, 1, 0.
January 1, 2017 7 / 17
Reminder of Bayes’ theorem
P(D|H)P(H)
P(H|D) = .
P(D)
P(data|hypothesis)P(hypothesis)
P(hypothesis|data) =
P(data)
January 1, 2017 8 / 17
Estimating a parameter
Model:
January 1, 2017 9 / 17
Parameters of interest
Example. You ask 100 people to taste cilantro and 55 say it tastes
like soap. Use this data to estimate p the fraction of all people for
whom it tastes like soap.
January 1, 2017 10 / 17
Likelihood
100 55
P(55 soap|p) = p (1 − p)45 .
55
Definition:
100 55
The likelihood P(data|p) = p (1 − p)45 .
55
NOTICE: The likelihood takes the data as fixed and computes the
probability of the data for a given p.
January 1, 2017 11 / 17
Maximum likelihood estimate (MLE)
January 1, 2017 12 / 17
Log likelihood
Example.
100 55
Likelihood P(data|p) = p (1 − p)45
55
100
Log likelihood = ln + 55 ln(p) + 45 ln(1 − p).
55
(Note first term is just a constant.)
January 1, 2017 13 / 17
Board Question: Coins
A coin is taken from a box containing three coins, which give heads
with probability p = 1/3, 1/2, and 2/3. The mystery coin is tossed
80 times, resulting in 49 heads and 31 tails.
(a) What is the likelihood of this data for each type on coin? Which
coin gives the maximum likelihood?
(b) Now suppose that we have a single coin with unknown probability
p of landing heads. Find the likelihood and log likelihood functions
given the same data. What is the maximum likelihood estimate for p?
January 1, 2017 14 / 17
Continuous likelihood
January 1, 2017 15 / 17
Board Question
Work from scratch. Do not simply use the formula just given.
January 1, 2017 16 / 17
MIT OpenCourseWare
https://ocw.mit.edu
For information about citing these materials or our Terms of Use, visit: https://ocw.mit.edu/terms .