Probability for Data Science
eBook  ›  Chapter 3 · Discrete Random Variables
Chapter 3

Summary

A random variable is so called because it can take more than one state. The probability mass function specifies the probability for it to land on a particular state. Therefore, whenever you think of a random variable you should immediately think of its PMF (or histogram if you prefer). The PMF is a complete characterization of the distribution of a random variable. Once you have the PMF, you can derive the CDF, expectation, moments, variance, and so on. Note, however, that two random variables with the same PMF are not necessarily the same random variable, as we saw in Section sec: ch3 pmf with \(X\) and \(Y = -X\): they have identical PMFs but map the outcomes differently.

When your boss hands a dataset to you, which random variable (which model) should you use? This is a very practical and deep question. We highlight three steps for you to consider: