Calculates the expected value of a random variable within the table of random variables set.
The mean of the random variable lying at the index
th position within the table of random variables which has been set.
In order to apply this method to the study of random variables you will first need to set the random variables within the internal table (i.e. an ordered collection of random variables) by using one or more of the following:
i
th position within the random variable table.
Note: If one of the random variables is either incorrectly set or is no longer in use then it can be removed from the table by using (int).
This method will return the mean of the random variable which is the weighted arithmetic average of the possible outcomes. If for example the experiment considered had been to measure the height of a group of people where the random variable describing this experiment mapped a person onto their height, then the mean of this random variable describing this experiment would be equal to the average height of the group of people.
RandomVariables Class | DiscreteProbability Namespace