University of Southampton · FACULTY OF STATISTICS

MATH6174 Chap.1 Random Variables and Discrete Distributions

- one subject, every graph, every model, every mark
7 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 1 of 10 · MATH6174

Random Variables and Discrete Distributions

Random Variables and Discrete Distributions sets up the language the whole module uses. A random variable is described by its sample space and the probabilities attached to subsets of it, and the first decision in any question is whether the variable is discrete or continuous.

A discrete variable carries a probability mass function that sums to one over the support; a continuous variable carries a density that integrates to one. The cumulative distribution function is defined for every real number in both cases, which makes it the reliable tool for questions about medians, quantiles and probabilities at awkward points.

For a discrete variable it is a step function that jumps by the mass at each support point and is flat in between. Expectation, variance and the moment generating function follow. Expectation is linear, variance scales with the square of a multiplier and ignores added constants, and the m.g.f. produces every moment through its derivatives at zero. Two further m.g.f. facts carry much of the chapter: the m.g.f.

of a sum of independent variables is the product of their m.g.f.s, and matching m.g.f.s identify the same distribution. The lectures then introduce the discrete families used throughout the course.

The Bernoulli models a single success or failure, the binomial counts successes in a fixed number of independent trials, the Poisson models counts over time or space, and the geometric counts trials up to and including the first success.

Each has a support, an m.g.f., a mean and a variance that should be known without the formula sheet, because later likelihood questions begin by writing one of these probability functions for every observation and multiplying.

In this chapter

What this chapter covers

  • 01

    Discrete and continuous random variables

  • 02

    Probability mass functions and densities

  • 03

    The cumulative distribution function as a step function

  • 04

    Expectation, variance and the variance shortcut

  • 05

    Moment generating functions and the moments they produce

  • 06

    Sums of independent variables through m.g.f. products

  • 07

    Bernoulli, binomial, Poisson and geometric families with their supports

Worked example · free

Find the median and mean of a discrete distribution from its c.d.f.

Q [6 marks]. A count X takes the values 0, 1, 2 and 3 with probabilities 0.25, 0.40, 0.20 and 0.15. Build F(x), find the median as defined in the module and compute E(X) and Var(X). The weighting is our own revision guide, not an official university allocation.
Reading a discrete c.d.f.Reading a discrete c.d.f. For an AskSia p.m.f. with mass 0.25, 0.40, 0.20 and 0.15 on 0 to 3, F(x) is flat between support points and jumps by exactly f(x) at each one; filled dots show the value taken at a jump, so F(1.7) equals F(1) = 0.65.-10123400.250.650.851xF(x)jump at x = 1 is f(1) = 0.40F = 1 from x = 3
Reading a discrete c.d.f. For an AskSia p.m.f. with mass 0.25, 0.40, 0.20 and 0.15 on 0 to 3, F(x) is flat between support points and jumps by exactly f(x) at each one; filled dots show the value taken at a jump, so F(1.7) equals F(1) = 0.65.
  • 2Accumulate the masses: F(0) = 0.25, F(1) = 0.65, F(2) = 0.85 and F(3) = 1, with F constant between the support points and zero below 0.
  • 1A median m needs P(X < m) at most 0.5 and P(X <= m) at least 0.5. At m = 1, P(X < 1) = 0.25 and P(X <= 1) = 0.65, so the median is 1.
  • 1E(X) = 0(0.25) + 1(0.40) + 2(0.20) + 3(0.15) = 1.25.
  • 2E(X squared) = 0.40 + 4(0.20) + 9(0.15) = 2.55, so Var(X) = 2.55 - 1.25 squared = 0.9875.
The median is 1, the mean is 1.25 and the variance is 0.9875. The mean exceeds the median because the upper tail carries mass at 3.
Sia tip — Read the median from the jump in F, not from the middle of the listed values: check both P(X < m) <= 0.5 and P(X <= m) >= 0.5.
Glossary

Key terms

Sample space
The set of values a random variable can take, written S with the variable as subscript.
Cumulative distribution function
The function F(x) = P(X <= x), defined for every real x and non-decreasing from 0 to 1.
Poisson distribution
A count distribution on 0, 1, 2 and upwards whose mean and variance both equal its parameter lambda.
Geometric distribution
The distribution of the trial number at which the first success occurs, with mean 1/p.
FAQ

Random Variables and Discrete Distributions FAQ

When is the c.d.f. more useful than the p.m.f.?

The c.d.f. answers any question of the form P(X <= x) directly, including at points that are not in the support, and it is defined in the same way for discrete and continuous variables. Medians and quantiles are read from it, and for transformations of a continuous variable it is often the cleanest starting point.

Why does the m.g.f. make sums easy?

For independent variables the expectation of a product of exponentials factorises, so the m.g.f. of the sum is the product of the separate m.g.f.s. If that product matches a known m.g.f., uniqueness tells you the distribution, which is how sums of Poisson, binomial and gamma variables are identified.

How can I tell a binomial count from a Poisson count?

A binomial needs a fixed number of independent trials with a constant success probability, so its support stops at n and its variance np(1 - p) is smaller than its mean. A Poisson count has no upper limit and its variance equals its mean. Chapter 2 shows when one approximates the other.

What is the memoryless property of the geometric distribution?

For a geometric count of trials to the first success, the chance of waiting at least k more trials does not depend on how many failures have already occurred. It follows directly from the constant success probability on each independent trial, and it is the discrete counterpart of the same property for an exponential lifetime.

Study strategy

Exam move

Write a one-line card for each of the four discrete families: support, probability function, m.g.f., mean and variance. Then derive the mean and variance of each from its m.g.f. without looking, because the same differentiation appears in exercise and exam questions.

Practise drawing c.d.f.s for small p.m.f.s and reading medians from them, and redo the variance-shift identity Var(a + bX) = b squared Var(X) until the constant never appears in your answer.

Working through Random Variables and Discrete Distributions in MATH6174? Sia is AskSia’s AI Statistics tutor — ask any MATH6174 Random Variables and Discrete Distributions question and get a clear, step-by-step explanation grounded in how MATH6174 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 8 of your subjects at University of Southampton, plus 1,000+ more Bibles across the AskSia library.
Sia - your MATH6174 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works