Likelihood

Likelihood[dist, {x1, x2, ...}]
gives the likelihood function for observations , , ... from the distribution dist.

DetailsDetails

  • The likelihood function Likelihood[dist, {x1, x2, ...}] is given by , where is the probability density function at , PDF[dist, xi].

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Get the likelihood function for a normal distribution:

In[1]:=
Click for copyable input
Out[1]=

Compute a likelihood for numeric data:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Plot likelihood contours as a function of and on a log scale:

In[3]:=
Click for copyable input
Out[3]=

Compute the likelihood for multivariate data:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »