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.

Details

Examples

open allclose all

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]=

Scope  (19)

Applications  (8)

Properties & Relations  (8)

See Also

SurvivalDistribution  HistogramDistribution  SmoothKernelDistribution  KernelMixtureDistribution  ProbabilityDistribution  EstimatedDistribution  FindDistribution

Introduced in 2010
(8.0)
| Updated in 2016
(10.4)