EmpiricalDistribution

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

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

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

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[6]:=
Click for copyable input
Out[6]=
In[7]:=
Click for copyable input
Out[7]=

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)
| Updated in 2016
(10.4)
Translate this page: