EmpiricalDistribution

EmpiricalDistribution[{x1,x2,}]
represents an empirical distribution based on the data values .

EmpiricalDistribution[{{x1,y1,},{x2,y2,},}]
represents a multivariate empirical distribution based on the data values .

EmpiricalDistribution[{w1,w2,}{d1,d2,}]
represents an empirical distribution where data values occur with weights .

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Create an empirical distribution of univariate data:

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

Visualize distribution functions:

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

Compute moments and quantiles:

In[4]:=
Click for copyable input
Out[4]=
In[5]:=
Click for copyable input
Out[5]=

Create an empirical distribution of bivariate data:

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

Visualize the estimated CDF:

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

Compute covariance and general moments:

In[4]:=
Click for copyable input
Out[4]//MatrixForm=
In[5]:=
Click for copyable input
Out[5]=
Introduced in 2010
(8.0)