Euler Hall — free maths guides

Read a probability mass function

Check the two conditions that make a table a mass function. The idea in plain words, a worked example, and a check with the answers shown — part of the free Statistics guides.

A mass function is a table with rules

For a discrete variableXX, the probability mass function (pmf) isp(x)=P(X=x)p(x)=P(X=x). Reading one means checking it against two conditions and then answering questions from it.

Condition 1: every value is at least 0. A negative probability is not a small probability; it is meaningless.

Condition 2: the values sum to 1. The values ofXX are disjoint events that together cover everything that can happen, so their probabilities exhaust the sample space.

A table satisfying both is a law. A table failing either is not, and no calculation built on it means anything.

Reading a pmf is then three separate skills, and students conflate them:

  • - one value — read the cell,P(X=3)=0.2P(X=3)=0.2;
  • - an interval — add the cells,P(2≤X≤4)=p(2)+p(3)+p(4)P(2\le X\le 4)=p(2)+p(3)+p(4);
  • - a complement —P(X>4)=1−P(X≤4)P(X>4)=1-P(X\le 4), usually the faster route.

None of these is a new formula. All three are the two conditions applied to a subset of the support.

Why the two conditions are enough

The two conditions are not arbitrary housekeeping: they are exactly the axioms of probability restricted to a countable support.

- Eachp(x)=P(X=x)p(x)=P(X=x) is the probability of an event, so it is non-negative (axiom 1). - The events{X=x}\{X=x\} for differentxx are disjoint, and together they cover the sample space, so their probabilities add (axiom 3) toP(something happens)=1P(\text{something happens})=1.

Conversely, any table of non-negative numbers summing to 1 can be realised by some random variable — put the values on disjoint slices of a unit interval and read off which slice you land in. So the conditions do not merely describe a pmf; they characterise it. That is why a question can hand you a table and ask "is this a law?" without telling you anything about the underlying experiment: the table alone is the whole story.

Worked example: three readings of one table

A variable hasP(0)=0.1P(0)=0.1,P(1)=0.2P(1)=0.2,P(2)=0.4P(2)=0.4,P(3)=0.3P(3)=0.3.

Check. Non-negative, and0.1+0.2+0.4+0.3=1.00.1+0.2+0.4+0.3=1.0. It is a law.

One value.P(X=2)=0.4P(X=2)=0.4 directly.

An interval.P(1≤X≤2)=0.2+0.4=0.6P(1\le X\le 2) = 0.2+0.4 = 0.6.

A complement.P(X≥2)=0.4+0.3=0.7P(X\ge2) = 0.4+0.3 = 0.7, or equivalently1−P(X≤1)=1−0.3=0.71-P(X\le1)=1-0.3=0.7.

Check the two routes agree.0.7=0.70.7=0.7. When a table is a law, the complement route always matches the direct sum, and using both is a free arithmetic check.

By the end you can
  • Check the two conditions that make a table a mass function
  • Read one value, an interval and a complement from a mass function
  • Find a missing entry by using the total of 1
Check yourself
  1. 1. IsP(1)=0.5P(1)=0.5,P(2)=0.5P(2)=0.5,P(3)=0P(3)=0 a mass function?
  2. 2. ForP(0)=0.1P(0)=0.1,P(1)=0.3P(1)=0.3,P(2)=0.6P(2)=0.6, findP(X≥1)P(X\ge1).
  3. 3. What is the fastest check that a table is not a law?
Answers

1. Yes: non-negative and the total is 1. A zero entry is allowed; it just means that value never occurs. 2.0.90.9, or1−P(X=0)=0.91-P(X=0)=0.9. 3. Add the entries. A total other than 1 settles it immediately, and a negative entry settles it even faster.

Work out where to start — free, no accountAnswer six real questions — free, no account