Skip to main content
Back

L4.2 Discrete Random Variables and Probability Distributions: STA103 Lecture 4 Study Notes

Study Guide - Smart Notes

Tailored notes based on your materials, expanded with key definitions, examples, and context.

Discrete Random Variables & Probability Distributions

Introduction to Random Variables (RV)

Random variables are fundamental concepts in probability and statistics, providing a practical way to describe outcomes of random experiments. Instead of working directly with sample spaces and events, random variables allow us to assign numerical values to outcomes, facilitating analysis and interpretation.

  • Definition: A random variable (RV) is a function that maps outcomes from a sample space to real numbers: .

  • Notation: Capital letters such as , , or are typically used to denote random variables.

  • Examples:

    • Throwing a fair die: is the number obtained.

    • Flipping two fair coins: is the number of heads.

    • Counting bike accidents in a month: is the number of accidents.

    • Measuring unemployment rate: is the rate.

Discrete random variables take values from a countable set (e.g., integers), while continuous random variables can take any value within an interval of real numbers.

Probability Distributions

Probability distributions describe the likelihood of different outcomes for a random variable. The type of function used depends on whether the variable is discrete or continuous.

  • Probability Mass Function (PMF): For discrete RV , the PMF is .

  • Probability Density Function (PDF): For continuous RV , the PDF is , and probabilities are computed as .

  • Cumulative Distribution Function (CDF): For any RV , the CDF is .

Discrete Random Variable

Probability Mass Function (PMF)

The PMF assigns probabilities to each possible value of a discrete random variable.

  • Example: Suppose a box contains three balls labeled 1, 2, and 2. Let be the number written on the ball drawn at random.

x

1

2

Function form:

Properties of PMF

Not every function is a valid PMF. The following properties must be satisfied:

  • for every

Examples of Valid PMFs

x

0

1

2

This PMF describes the number of heads in two flips of a fair coin (Binomial distribution).

y

1

2

3

This PMF describes the number of flips until the first head (Geometric distribution).

Verifying a PMF

To verify if a function is a PMF, check the two properties above. For example:

x

-1

0

0

1

Here, , so this is not a valid PMF.

For for , , so this is a valid PMF.

To find a missing probability so that the PMF sums to 1:

x

0

0.2

1

?

2

0.4

3

0.1

Normalizing Constant in PMF

Sometimes, a PMF is defined up to a constant that must be determined so the total probability is 1.

  • Given for , find :

, ,

Expectation (Expected Value)

Definition and Calculation

The expected value of a discrete random variable is the weighted average of its possible values, using the PMF as weights.

  • Also called the population mean

  • For a sample, the sample mean is

Interpretation: is the long-run average value of over repeated experiments.

Examples

  • Coin Flip Game: Win x = -10, 10p_X(x) = 0.5, 0.5$

  • Insurance Example: Gain p_X(x) = 0.994, 0.006$

Linearity of Expectation

  • For constants and RVs :

Expectation of Functions of RVs

  • For any function and discrete RV :

Note: in general.

Variance and Standard Deviation

Definition

Variance measures the spread of a random variable around its mean.

  • Standard deviation:

  • Variance is in squared units; standard deviation is in original units.

Calculation

  • Alternative formula:

  • Compute using the PMF:

Properties of Variance

  • If , then is constant.

  • If and are independent:

  • In general:

Conditional Distributions

Conditional PMF

The conditional probability mass function describes the probability of given some condition .

  • For example, is the probability that given .

Conditional Expectation and Variance

  • Once the conditional PMF is known, compute expectation and variance as usual:

Interpretation: is the updated best prediction of given ; is the variability of within .

Example: Light Bulb Lifetimes

Suppose is the lifetime (in years) of a light bulb, with PMF:

x

1

0.1

2

0.2

3

0.3

4

0.25

5

0.15

  • Conditional PMF for :

x

4

0.625

5

0.375

  • Conditional expectation:

  • Conditional variance:

Summary Table: Key Concepts

Concept

Discrete RV

Continuous RV

Probability Function

PMF:

PDF:

Cumulative Function

CDF:

CDF:

Expectation

Variance

References: Mittelhammer, R. C. (2013). Mathematical Statistics for Economics and Business. Springer.

Pearson Logo

Study Prep