Introduction
A random variable assigns a numerical value to each outcome of a random experiment. This permits probability questions to be expressed in algebraic form and provides the basis for probability distributions, expectation and statistical modelling.
Learning Objectives
You should be able to:
- define discrete and continuous random variables;
- use probability mass, density and distribution functions;
- calculate expectations and variances;
- obtain moments and moment generating functions; and
- interpret skewness and kurtosis.
Random Variables and Distributions
A random variable is a measurable function
A discrete random variable has a countable support and probability mass function
where
A continuous random variable has a probability density function satisfying
For a continuous random variable,
and for every single point .
Cumulative Distribution Function
For any random variable,
The CDF is non-decreasing, right-continuous and satisfies
For a continuous random variable,
and, where differentiable,
Expectation
For a discrete random variable,
For a continuous random variable,
More generally, for a function ,
or
This is often called the law of the unconscious statistician.
Variance and Moments
The variance is
An equivalent computational formula is
The standard deviation is
The th raw moment is
and the th central moment is
Linearity
For constants and ,
Expectation is linear even when random variables are dependent:
Moment Generating Function
The moment generating function is
for values of in an open interval containing zero. If it exists, moments are obtained by differentiation:
For independent random variables and ,
Skewness and Kurtosis
The coefficient of skewness is
Positive skewness indicates a longer right tail; negative skewness indicates a longer left tail.
The kurtosis coefficient is
and excess kurtosis is .
Example 5.1: Discrete distribution
Let have the distribution
|
0.1 |
0.3 |
0.4 |
0.2 |
Then
Example 5.2: Finding a constant
Suppose for . Since probabilities sum to one,
so .
Post-Test
- State the defining properties of a PMF and a PDF.
- For the distribution , , , find and .
- If , express and in terms of and .
- Show that .
- Explain why a density value may exceed one without violating probability laws.
Selected answers: 2. , ; 3. , .