Sets a probability measure upon a finite set of events when the frequency of each event is known.
k
-th term corresponds to the number of occurrences of the k
-th event during the experiment.Say we have four possible outcomes: 1
, 2
, 3
,
4
; and the number of occurrences of these outcomes was found to be:
5
, 4
, 6
, 5
respectively. Now in
order to set the probability measure reflecting these events we need to pass the
parameters:
numberOfEvents = 5 + 4 + 6 + 5 = 20
occurrences = {5, 4, 6, 5}
Probability Class | WebCab.COM.Statistics.DiscretePrb Namespace | SetProbability | Gets the reference numbers used to identify the events. | Gets the probabilities of the different events taking place.