Creates a new instance of the RandomVariable class and adds a random variable to the internal table of random variables.
k
-th term is the number of occurrences/or magnitude of the k
-th possible outcome during the experiment considered.An example of a random variable could correspond to the days of a given working week (i.e. 1, 2,...,5) and the number of minutes a daily commute to work took. For example,
The random variable denoted by f
, for this experiment would correspond
to:
f(1) = 28
f(2) = 30
f(3) = 26
f(4) = 32
f(5) = 30
In the above example the values of the random variable are the integers;
{1, 2, 3, 4, 5}
, and the occurrences is the array {28, 30, 26, 32, 30}
.
RandomVariables Class | WebCab.Libraries.Statistics.DiscretePrb Namespace | RandomVariables Constructor Overload List