A random variable is a variable whose possible values depend on a set of random outcomes and is a function that maps probability to a physical outcome, denoted as a capital italic letter (e.g., X). A random variable X can be either continuous or discrete. For a random variable, an event for a specific value x can be defined as X = x, X > x, or X < x.