A procedure for modelling and inference:
Subject-matter question needs answering.
Data are, or become, available to address this question.
Look at the data – exploratory analysis.
Propose a model.
Check the model fits.
Use the model to address the question.
The likelihood function is the probability of the observed data for instances of a parameter. Often we use the log-likelihood function as it is easier to work with. The likelihood is a function of an unknown parameter.
The maximum likelihood estimator (MLE) is the value of the parameter that maximises the likelihood. This is intuitively appealing, and later we will show it is a theoretically justified choice. The MLE should be found using an appropriate maximisation technique.
If the parameter is continuous, we can often (but not always) find the MLE by considering the derivative of the log-likelihood. If the parameter is discrete, we usually evaluate the likelihood at a range of possible values.
DON’T JOIN UP POINTS WHEN PLOTTING THE LIKELIHOOD FOR A DISCRETE PARAMETER.
DO NOT DIFFERENTIATE LIKELIHOODS OF DISCRETE PARAMETERS!