Clastify logo
Clastify logo
Exam prep
Exemplars
Review
HOT

Distributions

Master IB Math AA Distributions with notes created by examiners and strictly aligned with the syllabus.

IB Syllabus Requirements for Distributions

4.7

Discrete random variables and expected value

4.8

Binomial distribution

4.9

Normal distribution

4.12

Standardization of normal variables

HL

4.7

DISCRETE RANDOM VARIABLES AND EXPECTED VALUE

Discrete random variables

A random variable gets its value from the outcome of a random process. A discrete random variable can take only separated, countable values, such as 0,1,2,30,1,2,3, rather than every value in an interval.

We normally write XX for the random variable and xx for a particular value it can take. So P(X=x)P(X=x) is the probability that XX takes the value xx.

A probability distribution is a rule, table or formula that pairs each possible value of a random variable with its probability. In a discrete distribution, each probability must lie between 00 and 11. All the probabilities must add to 11:

P(X=x)=1\sum P(X=x)=1

A probability distribution may appear as a table or as a formula, for example P(X=x)=118(4+x)P(X=x)=\frac{1}{18}(4+x) for x{1,2,3}x\in\{1,2,3\}. Either way, start by identifying the allowed values of xx. Calculate each probability if necessary, then check that the total probability is 11.

Discrete distribution and expected value calculation.

xxP(X=x)P(X=x)xP(X=x)xP(X=x)
00.100.00
10.300.30
20.400.80
30.200.60
Total1.001.70

Expected value

The expected value is the long-run mean value of a random variable when the same random process is repeated many times. It doesn’t have to be a value that can actually occur. For instance, the expected score on one fair die is 3.53.5, even though no face marked 3.53.5 exists.

For a discrete random variable,

E(X)=xP(X=x)E(X)=\sum xP(X=x)

Read the calculation as value times probability, then add the results. Don’t divide by the number of entries afterwards. The probabilities already perform the averaging, and they total 11.

Applications and fair games

Before calculating in an application, define XX clearly. If XX represents a gain, positive values usually show that the player wins money, while negative values show a loss. A fair game has an expected gain of zero, so neither side gains a long-run advantage:

E(X)=0E(X)=0

Be a little sceptical here. Clear rules can make a game feel fair, but mathematical fairness requires zero expected gain. Casinos and lotteries usually use games in which the player has negative expected value. The rules may be transparent, but the long-run balance isn’t neutral.

4.8

BINOMIAL DISTRIBUTION

When the binomial model fits

A binomial distribution is a discrete probability model that counts successes across a fixed number of independent trials. Each trial must have exactly two outcomes, and the probability of success must stay constant.

Use a binomial model only if all four conditions hold:

  • the number of trials is fixed;
  • each trial has two outcomes, usually called success and failure;
  • the trials are independent;
  • the probability of success is the same on every trial.

If XX counts the successes, write

XB(n,p)X\sim B(n,p)

The probability of failure is often denoted by qq, where

q=1pq=1-p

The phrase number of is often a clue, but it isn’t enough on its own. If the probability changes from one trial to the next, the model isn’t binomial unless the question tells you to assume independence and a constant probability.

Image

Binomial probabilities

For exactly rr successes, the probability is

P(X=r)=(nr)prqnrP(X=r)=\binom{n}{r}p^rq^{n-r}

In examinations, use technology to find binomial probabilities. Choose the exact-value function for a single value such as P(X=4)P(X=4) and the cumulative function for a range such as P(X4)P(X\le 4). For wording such as at least one, using the complement is often cleaner:

P(X1)=1P(X=0)P(X\ge 1)=1-P(X=0)

Mean and variance

For XB(n,p)X\sim B(n,p),

E(X)=npE(X)=np

Its variance is

Var(X)=npq\operatorname{Var}(X)=npq

A formal proof of these results isn’t required here.

The standard deviation is therefore

σ=npq\sigma=\sqrt{npq}

The binomial coefficients (nr)\binom{n}{r} also appear in the triangular pattern often linked with Pascal, although other mathematical traditions knew the pattern earlier. This reminds us that a mathematical discovery can have a wider history than the name attached to it.

Modelling judgement

A TOK question sits behind binomial work: what makes a model acceptable? A calculator’s ability to produce an answer doesn’t make the binomial model true. The model is appropriate when its assumptions reasonably approximate the context. If the trials affect one another or the probability of success changes, the calculation may be precise while the model itself is invalid.

4.9

NORMAL DISTRIBUTION

The normal curve

A normal distribution is a continuous probability model. Its graph is a symmetric, bell-shaped curve centred at the mean. When the context supports the assumption, it often models naturally varying measurements well—for example, biological measurements, manufactured dimensions or test scores.

We write

XN(μ,σ2)X\sim N(\mu,\sigma^2)

For a continuous random variable, probability comes from the area under the curve rather than the curve’s height at a point. Thus, P(a<X<b)P(a<X<b) is the area between two vertical lines, whereas P(X=a)P(X=a) is 00 for one exact value.

Image

Properties you should recognize

The normal curve is symmetric about μ\mu. The mean, median and mode therefore sit together at the centre, where the curve reaches its highest point. Its points of inflection are at μσ\mu-\sigma and μ+σ\mu+\sigma.

You should know these empirical percentages:

  • approximately 68%68\% of values lie between μσ\mu-\sigma and μ+σ\mu+\sigma;
  • approximately 95%95\% lie between μ2σ\mu-2\sigma and μ+2σ\mu+2\sigma;
  • approximately 99.7%99.7\% lie between μ3σ\mu-3\sigma and μ+3σ\mu+3\sigma.

Use these percentages to interpret scale and catch unreasonable answers. A calculated probability that makes a value within one standard deviation seem extremely rare signals that something has gone wrong.

Probability and inverse normal calculations

Use technology for normal probability and inverse normal calculations. In a probability calculation, you start with values of the variable and find an area. An inverse normal calculation works the other way round: start with an area and find a value of the variable.

At this stage, inverse normal questions give you the mean and standard deviation. You don’t need to transform to a standardized normal variable here. Draw or picture the curve, mark the mean and shade the required area. Then let the technology complete the calculation.

The normal model is powerful, not automatic

The normal distribution appears naturally in many settings, particularly when many small independent sources of variation combine. It can still be misused. Not every bell-ish histogram is normal, and distance from an average shouldn’t be used to judge every human measurement. The model can help us make predictions, but those predictions are only valid when the assumptions behind the model and the supporting data are valid.

4.12

STANDARDIZATION OF NORMAL VARIABLES

HL

What a z-value means

A standardized value shows how many standard deviations a value lies from the mean. For a normally distributed variable, this is called a z-value.

Use the standardization formula

z=xμσz=\frac{x-\mu}{\sigma}

If zz is positive, the value lies above the mean; if zz is negative, it lies below the mean. For example, z=2z=2 means two standard deviations above the mean. It does not mean that the original value is 22.

Image

Connecting the original scale and the standard scale

If XN(μ,σ2)X\sim N(\mu,\sigma^2), standardizing it gives a variable ZZ that follows the standard normal distribution:

ZN(0,1)Z\sim N(0,1)

The standardization formula can also be rearranged:

x=μ+zσx=\mu+z\sigma

I use this form most often when an inverse normal calculation gives me a z-value and I need to convert it back into the original units of the problem.

Unknown mean or standard deviation

If the mean or standard deviation is unknown, use technology to find the appropriate z-value from the probability. Then form an equation using

z=xμσz=\frac{x-\mu}{\sigma}

When μ\mu is unknown, rearrange to

μ=xzσ\mu=x-z\sigma

When σ\sigma is unknown and z0z\ne 0, rearrange to

σ=xμz\sigma=\frac{x-\mu}{z}

Use technology to find probabilities and variable values. The z-value then shows how the unknown parameter fits the probability statement. This topic links descriptive statistics with probability modelling: standardizing removes the original units, so different normal variables can be compared on the same scale.

4.14

FURTHER PROPERTIES OF RANDOM VARIABLES

HL

Variance of a discrete random variable

The variance of a random variable measures spread by finding the expected squared distance from the mean. For a discrete random variable XX with mean μ\mu,

Var(X)=(xμ)2P(X=x)\operatorname{Var}(X)=\sum (x-\mu)^2P(X=x)

Here, Var(X)\operatorname{Var}(X) is the variance of XX, xx is a possible value of XX, μ\mu is the mean of XX, and P(X=x)P(X=x) is the probability of that value.

An equivalent form, which is often more convenient, is

Var(X)=E(X2)[E(X)]2\operatorname{Var}(X)=E(X^2)-[E(X)]^2

where E(X2)E(X^2) is the expected value of the square of XX.

To calculate E(X2)E(X^2), square each value before multiplying by its probability:

E(X2)=x2P(X=x)E(X^2)=\sum x^2P(X=x)

The standard deviation measures spread and is equal to the square root of the variance:

σ=Var(X)\sigma=\sqrt{\operatorname{Var}(X)}

Variance can’t be negative. If your answer is negative, don’t take its square root and continue. Check the arithmetic, paying particular attention to the squaring in E(X2)E(X^2) and [E(X)]2[E(X)]^2.

Continuous random variables and probability density functions

A continuous random variable can take any value in an interval. A probability density function is a non-negative function with total area 11 over the real line; the area over an interval gives its probability.

For a density function f(x)f(x),

f(x)dx=1\int_{-\infty}^{\infty} f(x)\,dx=1

where f(x)f(x) is the probability density function and xx is the continuous variable.

For an interval,

P(aXb)=abf(x)dxP(a\le X\le b)=\int_a^b f(x)\,dx

Here, aa and bb are the interval endpoints. With continuous variables, using << or \le at the endpoints makes no difference because the probability of a single exact value is 00.

Piecewise functions appear often. Work with each piece on its own interval, splitting the integral whenever the formula for f(x)f(x) changes.

Image

Mean, median and mode for continuous distributions

For a continuous random variable, the mean is

E(X)=xf(x)dxE(X)=\int_{-\infty}^{\infty} xf(x)\,dx

where E(X)E(X) is the mean of XX.

Its second moment is

E(X2)=x2f(x)dxE(X^2)=\int_{-\infty}^{\infty} x^2f(x)\,dx

The variance is still

Var(X)=E(X2)[E(X)]2\operatorname{Var}(X)=E(X^2)-[E(X)]^2

As before, the standard deviation is the square root of the variance.

A mode of a continuous random variable is a value of xx where the probability density function reaches a maximum. If the density has several equally high peaks, there may be more than one mode.

A median of a continuous random variable is a value mm that divides the total area under the density curve into two equal halves:

mf(x)dx=12\int_{-\infty}^{m} f(x)\,dx=\frac{1}{2}

where mm is the median.

Image

Fair games and expected value

Expected value often helps with decision-making. If XX represents gain, then E(X)>0E(X)>0 is favourable in the long run and E(X)<0E(X)<0 is unfavourable. When E(X)=0E(X)=0, the situation is fair in the strict mathematical sense.

This interpretation can be used in games, insurance and business decisions, though it doesn’t tell the whole story. A risky option may have a positive expected value but still be unacceptable to someone who can’t afford the possible loss. Mathematics clarifies the trade-off, but judgement is still needed.

Linear transformations

A linear transformation of a random variable creates a new random variable by multiplying by a constant and then adding a constant. If

Y=aX+bY=aX+b

where YY is the transformed random variable, aa is the multiplier, XX is the original random variable, and bb is the added constant, then

E(aX+b)=aE(X)+bE(aX+b)=aE(X)+b

and

Var(aX+b)=a2Var(X)\operatorname{Var}(aX+b)=a^2\operatorname{Var}(X)

Adding bb shifts every value. It changes the mean, but not the spread. Multiplying by aa stretches or reflects the distribution, so the variance is multiplied by a2a^2. Don’t miss the square: multiplying by 3-3 changes the variance by a factor of 99, not by 3-3.

In some investigations, another discrete distribution may provide a better model. The relationship between spread measures such as interquartile range and standard deviation also depends on the distribution used. A calculation is only as trustworthy as the model choice behind it.

Were those notes helpful?

bivariate-statistics Bivariate Statistics

probability Probability