Difference between revisions of "Probability density and mass graphs"

(Created page with "Category:Analytica User Guide <breadcrumbs>Analytica User Guide > Probability Distributions > {{PAGENAME}}</breadcrumbs> __TOC__ ==See Also== <footer>Parametric discr...")
 
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<breadcrumbs>Analytica User Guide > Probability Distributions > {{PAGENAME}}</breadcrumbs>
 
<breadcrumbs>Analytica User Guide > Probability Distributions > {{PAGENAME}}</breadcrumbs>
  
__TOC__
 
  
 +
When you select the '''Probability density''' as the [[Uncertainty views|uncertainty view]] for a ''continuous'' variable, it graphs the distribution as a '''''Probability Density function'''''. The height of the density shows the relative likelihood the variable has that value.
  
 +
:[[File:Chapter15_3.png]]
  
 +
Technically, the probability density of variable <code>X</code>, means the probability per unit increment of <code>X</code>. The units of probability density are the reciprocal of the units of <code>X</code> — if the units of <code>X</code> are dollars, the units of probability density are probability per dollar increment.
 +
 +
If you select '''Probability density''' as the uncertainty view for a ''discrete'' variable, it actually graphs the '''Probability Mas'''s function — using a bar graph style to display the ''probability'' of each discrete value as the height of each bar.
 +
 +
:[[File:Chapter15_4.png]]
 +
 +
Similarly, if you choose the '''cumulative probability''' uncertainty view for a ''discrete'' variable, it actually displays the '''cumulative probability ''mass''''' distribution as a bar graph. Each bar shows the cumulative probability that <code>X</code> has that value or any lower value.
 +
 +
:[[File:Chapter15_5.png]]
 +
 +
'''Is a distribution discrete or continuous?''' Almost always, Analytica can figure out whether a variable is discrete or continuous, and so choose the probability density or probability mass view as appropriate — so you don’t need to worry about it. If the values are text, it knows it must be discrete. If the numbers are integers, such as generated by [[Bernoulli]], [[Poisson]], [[binomial]], and other discrete parametric distributions, it also assumes it is discrete.
 +
 +
Infrequently, a discrete distribution can contain numbers that are not integers, which it might not recognize as discrete, for example:
 +
 +
:<code>Chance Indiscrete := Poisson(4)*0.5</code>
 +
 +
In this case, you can make sure it does what you want by specifying the domain attribute of the variable as discrete (or continuous). The next section on the domain attribute explains how.
  
 
==See Also==
 
==See Also==
 +
* [[Choosing_an_appropriate_distribution#Is_the_quantity_discrete_or_continuous.3F|Is the quantity discrete or continuous?]]
 +
 +
 
<footer>Parametric discrete distributions / {{PAGENAME}} / The domain attribute and discrete variables</footer>
 
<footer>Parametric discrete distributions / {{PAGENAME}} / The domain attribute and discrete variables</footer>

Latest revision as of 17:33, 17 May 2016


When you select the Probability density as the uncertainty view for a continuous variable, it graphs the distribution as a Probability Density function. The height of the density shows the relative likelihood the variable has that value.

Chapter15 3.png

Technically, the probability density of variable X, means the probability per unit increment of X. The units of probability density are the reciprocal of the units of X — if the units of X are dollars, the units of probability density are probability per dollar increment.

If you select Probability density as the uncertainty view for a discrete variable, it actually graphs the Probability Mass function — using a bar graph style to display the probability of each discrete value as the height of each bar.

Chapter15 4.png

Similarly, if you choose the cumulative probability uncertainty view for a discrete variable, it actually displays the cumulative probability mass distribution as a bar graph. Each bar shows the cumulative probability that X has that value or any lower value.

Chapter15 5.png

Is a distribution discrete or continuous? Almost always, Analytica can figure out whether a variable is discrete or continuous, and so choose the probability density or probability mass view as appropriate — so you don’t need to worry about it. If the values are text, it knows it must be discrete. If the numbers are integers, such as generated by Bernoulli, Poisson, binomial, and other discrete parametric distributions, it also assumes it is discrete.

Infrequently, a discrete distribution can contain numbers that are not integers, which it might not recognize as discrete, for example:

Chance Indiscrete := Poisson(4)*0.5

In this case, you can make sure it does what you want by specifying the domain attribute of the variable as discrete (or continuous). The next section on the domain attribute explains how.

See Also


Comments


You are not allowed to post comments.