Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

QuantityDistribution

QuantityDistribution[dist,unit]
represents a distribution dist of quantities with unit specified by unit.

QuantityDistribution[dist,{unit1,unit2,}]
represents a multivariate distribution with units {unit1,unit2,}.

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Define a distribution for a random position:

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

Compute the probability of the position exceeding a threshold:

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

Define a distribution of life expectancy:

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

Compute conditional life expectancy:

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

Fit a model to data with units:

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

Convert the distribution to another compatible unit:

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

Compare with fitting to distribution in hours:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2016
(10.4)