Probability and likelihood are closely related concepts in statistics, but they have distinct meanings and are used in different contexts.
Probability is a measure of the chance that a certain event will occur given a set of predefined conditions. It is a fundamental concept in probability theory and is used to quantify the uncertainty of events. The probability of an event is a number between 0 and 1, where 0 indicates that the event is impossible and 1 indicates that the event is certain. For example, the probability of rolling a three with a fair six-sided die is 1/6, because there is one favorable outcome (rolling a three) and six possible outcomes in total.
Likelihood, on the other hand, is a measure used in statistical inference, particularly in the context of parameter estimation. It describes how probable a particular set of observations is, given specific values of the parameters in a statistical model. Unlike probability, likelihood is not constrained to be between 0 and 1, and it is not a probability measure itself. It is a relative measure and is often used to compare different sets of parameter values to see which set makes the observed data most probable.
In simpler terms, you can think of probability as asking "Given a model and its parameters, what is the probability of observing a certain outcome?" whereas likelihood asks "Given a set of observed data, how likely is it that different parameter values of the model generated this data?"
Here's an illustrative example:
- Probability: If we have a model for the weather, and it predicts a 70% chance of rain tomorrow, we are talking about the probability of the event "it will rain tomorrow" given the model's parameters.
- Likelihood: If it rained 70% of the days in the past month, and we have a model where the parameter is the probability of rain on any given day, the likelihood function tells us how likely different probabilities of rain are given the observed data (the fact that it rained on 70% of the days).
In statistical practice, likelihood functions are often used in maximum likelihood estimation (MLE), where we choose the parameter values that maximize the likelihood function, thus making the observed data as probable as possible under the model.