# Wolfram Language™

## 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:= ```height\[ScriptCapitalD] = NormalDistribution[Quantity[70, "Inches"], Quantity[6.5, "Inches"]]```
Out= The distribution represents a random variable in the specified units.

In:= `averageHeight = Mean[height\[ScriptCapitalD]]`
Out= Compute with the distribution using appropriate quantity arguments.

In:= `CDF[height\[ScriptCapitalD], Quantity[170, "Centimeters"]]`
Out= Compute probability that a person's height is between 65 and 72 inches.

In:= ```Probability[Quantity[65, "in"] < x < Quantity[72, "in"], x \[Distributed] height\[ScriptCapitalD]]```
Out= Assuming this height distribution, find an average time of a hat falling from a person's head on Earth.

In:= ```NExpectation[Sqrt[(2 h)/Entity["Planet", "Earth"]["Gravity"]], h \[Distributed] height\[ScriptCapitalD]]```
Out=
{"ft_lang_label":"__label__en","ft_lang_prob":0.6074891,"math_prob":0.97640127,"size":1113,"snap":"2019-35-2019-39","text_gpt3_token_len":274,"char_repetition_ratio":0.18124436,"word_repetition_ratio":0.0,"special_character_ratio":0.25426775,"punctuation_ratio":0.13407822,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99881494,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-08-22T20:18:57Z\",\"WARC-Record-ID\":\"<urn:uuid:ee1b1f78-3b71-4229-b421-94a5f22b4297>\",\"Content-Length\":\"50377\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2c5831ad-303c-486e-9968-913a876d66dd>\",\"WARC-Concurrent-To\":\"<urn:uuid:d166ad20-d149-4516-ba11-37b3d3591efd>\",\"WARC-IP-Address\":\"140.177.205.134\",\"WARC-Target-URI\":\"http://www.wolfram.com/language/11/quantities-in-probability-and-statistics/distribution-with-quantity-parameters.en.html?footer=lang\",\"WARC-Payload-Digest\":\"sha1:F3OUQEDFF53F6FVKLWZ33SCL7IUXXFXH\",\"WARC-Block-Digest\":\"sha1:WJZGJCHOJUQ7UKDAC7TWVYW3MMHLD7V3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-35/CC-MAIN-2019-35_segments_1566027317359.75_warc_CC-MAIN-20190822194105-20190822220105-00375.warc.gz\"}"}