MATH6174 Chap.1 Random Variables and Discrete Distributions
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.
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.
- 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.
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.
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.
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.