Probability Mass Function
A PMF assigns probability to discrete values
A probability mass function, or PMF, describes a discrete random variable by assigning a probability to each value it can take. Each assigned mass is nonnegative, and the masses over the complete support add to one.
The quantity p(x) is the probability of the exact value x, not the probability density near x. For an event made of several mutually exclusive values, add the masses for precisely those values. Values outside the support have mass zero even if a formula would look algebraically defined there.
Start every PMF problem by writing the support, checking that every mass is nonnegative, and testing normalization. These checks catch a missing supported value, a negative mass, or a formula applied outside its declared domain before later arithmetic conceals the defect. A sum of one alone does not rule out a negative mass.
A variable X has p(1) = 0.20, p(2) = 0.35, p(3) = 0.45, and p(x) = 0 otherwise. What is P(X is 1 or 3)?
For x in {1, 2, 3, 4}, let p(x) = kx. What value of k makes this a PMF?