Difference between revisions of "Working with Random Variables"
From Rave Documentation
(Created page with "=Introduction= Random variables are useful for modeling uncertainty in a system. Unlike regular variable, which are defined by (deterministic) values, random variables are define...") |
(→Introduction) |
||
Line 8: | Line 8: | ||
'''Note:''' only independent variables can be treated as random. Function variables become random when one or more of their input variables are random. | '''Note:''' only independent variables can be treated as random. Function variables become random when one or more of their input variables are random. | ||
+ | |||
+ | =Defining and Modifying Distributions= | ||
+ | |||
+ | |||
+ | |||
+ | =Working with Random Variables= | ||
+ | ==Method 1: Declaring a Variable to be Random== | ||
+ | |||
+ | |||
+ | ==Method 2: Sampling Data from Distributions== |
Revision as of 15:26, 14 August 2013
Contents
Introduction
Random variables are useful for modeling uncertainty in a system. Unlike regular variable, which are defined by (deterministic) values, random variables are defined by distributions. Rave supports the use of random variables through various sampling (Monte Carlo) based approaches. The main ways to use random variables in Rave are:
- Declare a variable to be random, in which case it is treated as being random for all purposes in Rave.
- Sample data according to random distributions. This lets you generate a data set that involves randomness, but Rave otherwise treats this data as if it were a deterministic sampling.
In either case, Rave samples the random variables according to distributions that you define in Rave. The process of defining distributions is described below.
Note: only independent variables can be treated as random. Function variables become random when one or more of their input variables are random.