Random Variables

A random variable has numerical values with random outcomes. Individual outcomes are unpredictable, but the distribution of outcomes can often be determined or estimated.

A discrete random variable has a finite set of possible outcomes.

A continuous random variable has an infinite set of outcomes, often distributed across a range of possible values.

Expected values and variances

The expected value of a discrete random variable is the average of the possible values weighted by their probabilities.

For large samples, the expected value predicts the mean value of the random variable. This is the law of large numbers.

The expected variance of a discrete random variable is the average of the squared difference from the mean, weighted by the probabilities.

Here's an excel spreadsheet that goes through a couple of examples calculating the expected value, variance and standard deviation of a random variable.

Rules for calculating mean and variance from a random variable

Assume that X and Y are random variables and c is a constant.

We will use the last rule the most. You can use the variance rules to find standard deviation by taking the square-root of the variance. Note that these concepts are presented as rules in section 4.4 in the book.

Programs for generating random variables

With this last program, we will demonstrate the central limit theorem, which states that a random variable constructed from the sum (or mean) of N random variables (N should be sufficiently large) has a normal distribution.


Last modified: Wed Feb 08 13:26:22 Central Standard Time 2006