Discrete Random Variables: Probability Functions, Cumulative Distributions and Expectation | Analysis and Approaches IB Maths notes

Free preview: Discrete Random Variables: Probability Functions, Cumulative Distributions and Expectation

Probability Distributions as Tables and Functions

Analysis and approaches and Applications and interpretation: SL and HL (common content, SL 4.7)

Let's start with a question. You roll a die and win the score in pounds. Before you roll, can you say anything useful about how much you will win? You can't say the exact amount. But you can say which amounts are possible and how likely each one is. That list is the whole story of the game, and it is what this note is about.

This is a new idea, so here it is step by step, with the notation the IB uses.

The words we need

  • A random variable is a number decided by chance, such as the score on a die. We name it with a capital letter, X.
  • A small letter, x, stands for a value X can take. So P(X=3) means "the probability that X takes the value 3".
  • Discrete means X can only take separate, countable values, with gaps between them (like 0, 1, 2, ...). Height is not discrete; the number of heads is.
  • The probability distribution lists every value of X with its probability.

Here's the one fact that drives most questions. X must take one of its values, so all the probabilities together make 1.

∑all xP(X=x)=1

💡 In plain words

  • Something has to happen, so the chances of all the possible values add up to exactly 1.
  • Also, every single probability must be between 0 and 1. Both checks matter.

Way 1: as a table

x1234
P(X = x)0.10.20.30.4

Check: 0.1+0.2+0.3+0.4=1. So this is a valid distribution.

Way 2: as a function

Notice a pattern in the table: each probability is the value of x divided by 10. So we can write the same distribution as a probability function:

P(X=x)=x10,x=1,2,3,4

  • Check: 110+210+310+410=1010=1.
  • Always state the values x can take. Outside them the probability is 0. Without the list, the function is incomplete.

Finding an unknown constant

Often the function has an unknown constant k, such as P(X=x)=kx. The recipe:

  1. Write out each probability by putting in each allowed value of x. Why: you can't add what you haven't listed.
  2. Add them and set the total equal to 1. Why: that is the key fact above.
  3. Solve for k, then check that every probability is between 0 and 1. Why: a negative or too-large value means a slip.

👀 Watch me do it: find k when P(X=x)=kx for x=1,2,3,4

What I writeWhy I do it
k, 2k, 3k, 4kPut x = 1, 2, 3, 4 into kx, one at a time.
k+2k+3k+4k=10k=1The probabilities must add to 1.
k=0.1Divide by 10.
Probabilities 0.1, 0.2, 0.3, 0.4All between 0 and 1, so it works. This is the table above.

Bar chart of P(X = x) = x/10 for x = 1, 2, 3, 4, with bar heights 0.1, 0.2, 0.3, 0.4 and the mean E(X) = 3 marked with a dashed line

What the picture shows

  • Each bar is one value of X. Its height is the probability of that value.
  • The heights 0.1, 0.2, 0.3 and 0.4 add up to 1.
  • The bars lean to the right, so large values are more likely.
  • The dashed line at 3 is the expectation E(X), the balance point of the bars. We find it on page 2.

✏️ YOUR TURN 1

Try this first:

X has probability function P(X=x)=kx2 for x=1,2,3. Find k and P(X⩾2).

Answer:

  • The probabilities are k, 4k, 9k.
  • Add and set equal to 1: 14k=1, so k=114.
  • P(X⩾2)=414+914=1314.
  • Quicker check: 1−P(X=1)=1−114=1314.

✏️ YOUR TURN 2

Try this first:

X takes the values 0, 1, 2, 3 with probabilities 0.15, 0.25, k and 3k. Find k and write out the table.

Answer:

  • 0.15+0.25+k+3k=1, so 4k=0.6 and k=0.15.
  • Table: P(X = 0) = 0.15, P(X = 1) = 0.25, P(X = 2) = 0.15, P(X = 3) = 0.45.
  • Check: they add to 1 and each is between 0 and 1.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in · Subscribe · Start free trial

All notes in Random variables, binomial and normal (SL 4.7–4.9, 4.12)

  1. Discrete Random Variables: Probability Functions, Cumulative Distributions and Expectation
  2. The Binomial Distribution: Conditions, Notation and the Probability Formula
  3. Cumulative Binomial Probabilities: At Most, At Least and Between
  4. The Binomial Mean and Variance, and Expected Frequencies
  5. The Normal Distribution: Shape, Symmetry and the 68–95–99.7 Rule
  6. Normal Probabilities: Standardising and the Inverse Normal
  7. Finding an Unknown Mean or Standard Deviation of a Normal Distribution

What's inside for this topic

7 teacher notes, 70 practice questions, 40 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Next note: The Binomial Distribution: Conditions, Notation and the Probability Formula

Discrete Random Variables: Probability Functions, Cumulative Distributions and Expectation on other exam boards

All Analysis and Approaches IB Maths topics · IB Maths