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,}.

Details

Examples

open allclose all

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

Scope  (29)

Applications  (8)

Properties & Relations  (6)

Possible Issues  (4)

See Also

Quantity  QuantityArray  UnitConvert  RandomVariate  EstimatedDistribution  Expectation  Probability  TransformedDistribution

Introduced in 2016
(10.4)