|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
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
- EmpiricalDistribution returns a DataDistribution object that can be used like any other probability distribution.
- The cumulative distribution function for EmpiricalDistribution for a value x is given by
. - EmpiricalDistribution can be used with such functions as Mean, CDF, and RandomVariate.
ExamplesExamplesopen allclose all
Basic Examples (2)Basic Examples (2)
Create an empirical distribution of univariate data:
| In[1]:= |
| In[2]:= |
Visualize distribution functions:
| In[3]:= |
| Out[3]= | ![]() |
Compute moments and quantiles:
| In[4]:= |
| Out[4]= |
| In[5]:= |
| Out[5]= |
Create an empirical distribution of bivariate data:
| In[1]:= |
| In[2]:= |
| In[3]:= |
| Out[3]= | ![]() |
Compute covariance and general moments:
| In[4]:= |
Out[4]//MatrixForm= | |
| In[5]:= |
| Out[5]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


