Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to use the DiscreteRandomVariable class?

The reference manual talks about DiscreteRandomVariable class. But, I do not understand how it should be initialized? There are variables "X" and "f" but the docs do not explain what they are, nor there is any example...

click to hide/show revision 2
No.2 Revision

How to use the DiscreteRandomVariable class?

The reference manual talks about DiscreteRandomVariable class. But, I do not understand how it should be initialized? There are variables "X" and "f" but the docs do not explain what they are, nor there is any example...

Additionally: is it possible to calculate functions on DiscreteRandomVariables? E.g, if X and Y are random variables, can I write "Z = X * Y" and have a new random variable Z?