-
Notifications
You must be signed in to change notification settings - Fork 0
Random Variable
medasmarathon edited this page May 25, 2022
·
10 revisions
Simulate the Random Variable operating on the Sample space, and the measure induced by Random variable will be float
.
In the formal mathematical language of measure theory, a random variable is defined as a measurable function from a probability measure space (called the sample space) to a measurable space.
Random Variable definition - Wiki
More on difference between Random variable and Probability measure here.
from probnode import RandomVariable
Constructor | Description | Link |
---|---|---|
RandomVariable( probability_distributionn: ProbabilityDistribution, sample_space: SampleSpace) |
Initialize Random variable with Probability distribution and Sample Space its operating on. probability_distribution : the distribution function to give the probabilities for the input Event passed to Random variable sample_space : Sample space (with its Outcome set) determines which Event can pass through to be processed by Probability function
|
basic |
Method | Description | Link |
---|---|---|
random_variable.__call__(event) or simply random_variable(event)
|
Returns the probability value of the Event passed in, determined by Probability distribution | basic |