[WMMY] 9.14.
This lecture as: slideshow (html), Rmarkdown (Rmd), notes (pdf).
The entire module: notes (pdf).
Suppose that X
is Binomial(n, p)
.
What is the maximum likelihood estimator (MLE) of p
?
Plot the log likelihood function for n = 10
and X = 5
.
Plot the log likelihood function for n = 100
and X = 50
.
Plot a) and b) in same figure. How and why are they different?
Use the optimise()
(read ?optimise
) to find the MLE of p
in both cases.
Simple linear regression (one explanatory variable)
Write the log likelihood for n
observations.
For the trees
dataset with Volume
as response variable and Girth
as explanatory variable, use the optim()
to find the parameter estimates and compare to those obtained with summary(lm())
.
Finish old exercises.