Random Variables
A random variable assigns a number to the outcome of an uncertain process. X = items_purchased (per purchasing session) is discrete: it can only take a finite, countable set of values (1, 2, 3, …). Y = number of purchases generated in N sessions is also discrete, and is treated fully below (as an expected value here, and as a full probability model on the Conversion Forecast Simulator). Z = order_value is continuous: it can take any value in a range, not just whole numbers. All three are studied here directly from the observed dataset.
Probability Mass Function — Items Purchased
Cumulative Distribution Function
The PMF answers “what is the probability X is exactly k?” The CDF answers “what is the probability X is at most k?” A CDF is always monotonically non-decreasing and climbs to 1 as k reaches the largest possible value — here F(9) = 100.0%, since almost every purchasing session buys 9 items or fewer.
Expected Business Value
Expected value is a probability-weighted average of all possible outcomes — the long-run average you would see if the same random process repeated many, many times. It is not a prediction or guarantee for any single session or customer; an individual purchase could easily land above or below it.
Variance & Standard Deviation by Segment
Two segments can have a very similar average order value while behaving completely differently in practice, if one is far more variable than the other. The table below compares mean, variance, standard deviation, and sample size for every customer segment.
Bernoulli Random Variable — Did This Session Convert?
Zoom into a single session and ask one yes/no question: did it end in a purchase? That outcome is a Bernoulli trial — a random variable that takes value 1 (“success”, a purchase) with probability p, or 0 (“failure”) with probability 1−p. Here p is simply the dataset’s observed overall conversion rate.