Statistics[Distributions]
ProbabilityTable
probability table
Calling Sequence
Parameters
Description
Examples
References
ProbabilityTable(plist)
plist
-
list of real constants in the range 0..1, summing to 1; probabilities
The probability table distribution is a discrete probability distribution with probability function given by:
f⁡t=0t<1plisttt≤nops⁡plist0otherwise
subject to the following conditions, where n is defined as the number of indices in plist:
∑t=1n⁡plistt=1
0≤plistk,plistk≤1,k=1..n
The probability table distribution is defined by the sequence of integer variates 1..n. This distribution wrapper allows bounded discrete distributions to be easily represented in tabular form. If you would like to use a distribution that has values other than positive integers, consider using the EmpiricalDistribution, potentially with the probabilities option.
Note that the ProbabilityTable command is inert and should be used in combination with the RandomVariable command.
with⁡Statistics:
P≔12,14,18,116,116
X≔RandomVariable⁡ProbabilityTable⁡P:
ProbabilityFunction⁡X,1
12
CDF⁡X,2
34
Sample⁡X,1000
Evans, Merran; Hastings, Nicholas; and Peacock, Brian. Statistical Distributions. 3rd ed. Hoboken: Wiley, 2000.
Johnson, Norman L.; Kotz, Samuel; and Balakrishnan, N. Continuous Univariate Distributions. 2nd ed. 2 vols. Hoboken: Wiley, 1995.
Stuart, Alan, and Ord, Keith. Kendall's Advanced Theory of Statistics. 6th ed. London: Edward Arnold, 1998. Vol. 1: Distribution Theory.
See Also
Statistics
Statistics[RandomVariable]
Download Help Document