A random variable is a rule that assigns a numerical value to each outcome of an experiment. Random variables can be either discrete or continuous. A discrete random variable may assume countable values, while a continuous random variable can assume any value in an interval. The probability distribution of a random variable describes the probabilities of the variable assuming different values. For a continuous random variable, the probability of it assuming a value within an interval is given by the area under the probability density function within that interval.