ArticleslgStudy

mathematics

Likelihood function

Likelihood function is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Likelihood function rather than just read about it. In short: A likelihood function (often simply called the likelihood) gives the relative merit of various statistical models for describing a data set. Often the models being compared are parameterized by a parameter, with the parameter often written as θ, or they are parameterized by multiple parameters given as the components of a vector.

Likelihood function — main illustration
Likelihood function — illustration

Key takeaways

  • Likelihood function belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Likelihood function to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Likelihood function from memory before moving on to harder problems.

Reference excerpt

A likelihood function (often simply called the likelihood) gives the relative merit of various statistical models for describing a data set. Often the models being compared are parameterized by a parameter, with the parameter often written as θ, or they are parameterized by multiple parameters given as the components of a vector. For a probability function (or probability density function) Pr[x | θ] that gives the probability (or probability density) of data x for a given model-specifying parameter θ, the likelihood is any function of θ equal to cPr[x | θ] for some positive value c. In maximum likelihood estimation, the model parameter(s) or argument that maximizes the likelihood function serves as a point estimate for the unknown parameter, while the Fisher information (often approximated by the likelihood's Hessian matrix at the maximum) gives an indication of the estimate's precision. In contrast, in Bayesian statistics, the estimate of interest is the converse of the likelihood, the so-called posterior probability of the parameter given the observed data, which is calculated via Bayes' rule.

Definition

The likelihood function, parameterized by a (possibly multivariate) parameter θ {\textstyle \theta } , is usually defined differently for discrete and continuous probability distributions (a more general definition is discussed below). Given a probability density or mass function

x ↦ f ( x ∣ θ ) , {\displaystyle x\mapsto f(x\mid \theta ),}

where x {\textstyle x} is a realization of the random variable X {\textstyle X} , the likelihood function is

θ ↦ f ( x ∣ θ ) , {\displaystyle \theta \mapsto f(x\mid \theta ),}

often written

L ( θ ∣ x ) . {\displaystyle {\mathcal {L}}(\theta \mid x).}

In other words, when f ( x ∣ θ ) {\textstyle f(x\mid \theta )} is viewed as a function of x {\textstyle x} with θ {\textstyle \theta } fixed, it is a probability density function, and when viewed as a function of θ {\textstyle \theta } with x {\textstyle x} fixed, it is a likelihood function. In the frequentist paradigm, the notation f ( x ∣ θ ) {\textstyle f(x\mid \theta )} is often avoided and instead f ( x ; θ ) {\textstyle f(x;\theta )} or f ( x , θ ) {\textstyle f(x,\theta )} are used to indicate that θ {\textstyle \theta } is regarded as a fixed unknown quantity rather than as a random variable being conditioned on. The likelihood function does not specify the probability that θ {\textstyle \theta } is the truth, given the observed sample X = x {\textstyle X=x} . Such an interpretation is a common error, with potentially disastrous consequences (see prosecutor's fallacy).

Discrete probability distribution Let X {\textstyle X} be a discrete random variable with probability mass function p {\textstyle p} depending on a parameter θ {\textstyle \theta } . Then the function

L ( θ ∣ x ) = p θ ( x ) = P θ ( X = x ) = Pr { X = x ∣ Θ = θ } , {\displaystyle {\mathcal {L}}(\theta \mid x)=p_{\theta }(x)=P_{\theta }(X=x)={\text{Pr}}\{X=x\mid \Theta =\theta \},}

considered as a function of θ {\textstyle \theta } , a possible value of the deterministic but unknown parameter Θ {\textstyle \Theta } , is the likelihood function, given the outcome x {\textstyle x} of the random variable X {\textstyle X} . Sometimes the probability of "the value x {\textstyle x} of X {\textstyle X} for the parameter value θ {\textstyle \theta } " is written as P(X = x | θ) or P(X = x; θ). The likelihood is the probability that a particular outcome x {\textstyle x} is observed when the true value of the parameter is θ {\textstyle \theta } , equivalent to the probability mass on x {\textstyle x} ; it is not a probability density over the parameter θ {\textstyle \theta } . The likelihood, L ( θ ∣ x ) {\textstyle {\mathcal {L}}(\theta \mid x)} , should not be confused with P ( θ ∣ x ) {\textstyle P(\theta \mid x)} , which is the posterior probability of θ {\textstyle \theta } given the data x {\textstyle x} .

Example

… excerpt ends here. Continue reading the full article.

Illustrations

Likelihood function: Figure 1. The likelihood function (
  
    
      
        
          p
          
            H
          
          
            2
          
        
      
    
    {\textstyle p_{\text{H}}^{2}}
  
) for the probability of a coin landing heads-up (without prior knowledge of the coin's fairness), given that we have observed HH.
Figure 1. The likelihood function ( p H 2 {\textstyle p_{\text{H}}^{2}} ) for the probability of a coin landing heads-up (without prior knowledge of the coin's fairness), given that we have observed HH.
Likelihood function: Figure 2. The likelihood function (
  
    
      
        
          p
          
            H
          
          
            2
          
        
        (
        1
        −
        
          p
          
            H
          
        
        )
      
    
    {\textstyle p_{\text{H}}^{2}(1-p_{\text{H}})}
  
) for the probability of a coin landing heads-up (without prior knowledge of the coin's fairness), given that we have observed HHT.
Figure 2. The likelihood function ( p H 2 ( 1 − p H ) {\textstyle p_{\text{H}}^{2}(1-p_{\text{H}})} ) for the probability of a coin landing heads-up (without prior knowledge of the coin's fairness), given that we have observed HHT.

Worked examples

Example 1 — a first encounter with Likelihood function

Start with the simplest possible case. Write down what Likelihood function claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Likelihood function before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Likelihood function ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Likelihood function

In research
Likelihood function appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Likelihood function in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Likelihood function is common in secondary-school and first-year university syllabi. It links to neighbouring topics Bayesian statistics, Likelihood, so understanding it makes those chapters shorter.
In everyday life
Look for Likelihood function outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Likelihood function in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Likelihood function means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Likelihood function out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Likelihood function in simple terms?

A likelihood function (often simply called the likelihood) gives the relative merit of various statistical models for describing a data set. Often the models being compared are parameterized by a parameter, with the parameter often written as θ, or they are parameterized by multiple parameters give…

Why does Likelihood function matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Likelihood function?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Likelihood function.

Tags

  • Bayesian statistics
  • Likelihood

Keep exploring