Distribution with Quantity Parameters
Approximate height distribution with normal distribution with mean of 70 inches and standard deviation of 6.5 inches. The distribution can be constructed using Quantity as a corresponding mean and standard deviation parameters and will yield an appropriate QuantityDistribution.
In[1]:=

height\[ScriptCapitalD] =
NormalDistribution[Quantity[70, "Inches"], Quantity[6.5, "Inches"]]
Out[1]=

The distribution represents a random variable in the specified units.
In[2]:=

averageHeight = Mean[height\[ScriptCapitalD]]
Out[2]=

Compute with the distribution using appropriate quantity arguments.
In[3]:=

CDF[height\[ScriptCapitalD], Quantity[170, "Centimeters"]]
Out[3]=

Compute probability that a person's height is between 65 and 72 inches.
In[4]:=

Probability[Quantity[65, "in"] < x < Quantity[72, "in"],
x \[Distributed] height\[ScriptCapitalD]]
Out[4]=

Assuming this height distribution, find an average time of a hat falling from a person's head on Earth.
In[5]:=

NExpectation[Sqrt[(2 h)/Entity["Planet", "Earth"]["Gravity"]],
h \[Distributed] height\[ScriptCapitalD]]
Out[5]=
