Skip to main content
Back

4.1 Discrete Random Variables and Probability Distributions

Study Guide - Smart Notes

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

Random Variables & Probability Distributions

Introduction to Random Variables (RV)

A random variable (RV) is a function that assigns a real number to each outcome in a sample space. Random variables are fundamental in probability and statistics, providing a practical way to quantify outcomes of random experiments.

  • Sample Space (S): The set of all possible outcomes of an experiment.

  • Random Variable (X): A function mapping outcomes in S to real numbers, typically denoted by capital letters such as X, Y, or Z.

Example:

  • Experiment: Observe the first car you see in the morning.

  • Sample space S: All possible cars in Davis.

  • Random variable X: A measurable attribute of the car (e.g., number of people inside, amount of gas, or color).

Why use random variables?

  • The sample space S is often abstract or complex, while random variables provide a clearer, more practical description of outcomes.

  • Random variables are usually the focus of statistical analysis.

Types of Random Variables

  • Discrete Random Variable: Takes values from a countable set (e.g., integers).

  • Continuous Random Variable: Takes values from an interval of real numbers.

Examples:

  • Throwing a fair die: X = number shown (discrete).

  • Flipping two coins: Y = number of heads (discrete).

  • Number of bike accidents in a month: Z (discrete).

  • Unemployment rate: W (continuous).

Probability Distributions

Probability Mass Function (PMF) and Probability Density Function (PDF)

The probability distribution of a random variable describes the likelihood of each possible value the variable can take.

  • Discrete RV: Described by a probability mass function (PMF):

  • Continuous RV: Described by a probability density function (PDF):

  • Cumulative Distribution Function (CDF): For any RV X, the CDF is defined as:

Properties of the PMF

  • For any function p(x) to be a valid PMF, it must satisfy:

    • for every x

Examples of PMFs

Example 1: Number of heads in 2 flips of a fair coin (Binomial distribution):

x

0

1

2

1/4

1/2

1/4

Example 2: Number of flips until the first head (Geometric distribution):

y

1

2

3

...

1/2

1/4

1/8

...

Verifying a PMF

To check if a function is a valid PMF:

  • All probabilities must be nonnegative and not exceed 1.

  • The sum of all probabilities must be 1.

Example:

x

-1

0

1

p(x)

0

1/2

3/4

This is not a valid PMF because .

Example (Finding a missing probability):

x

0

1

2

3

p(x)

0.2

?

0.4

0.1

To find :

Normalizing a PMF

Sometimes, a PMF is given up to a constant. To find the normalizing constant, set the sum of probabilities to 1 and solve for the constant.

Example: for

  • , ,

  • Set

Identically Distributed Random Variables

Two random variables are identically distributed if they have the same PMF, even if they arise from different experiments.

Example: The number of heads in two coin flips and the number of tails in two coin flips have the same PMF.

Cumulative Distribution Function (CDF)

The cumulative distribution function (CDF) gives the probability that a random variable is less than or equal to a certain value.

  • The CDF is non-decreasing and right-continuous.

  • The CDF completely determines the distribution of a random variable.

Example: For a PMF with , :

x

1

2

1/3

2/3

x

0

1/3

1

Expected Value

Definition and Properties

The expected value (or mean) of a discrete random variable X is the long-run average value of X over many repetitions of the experiment.

  • Also called the population mean ().

  • The sample mean () is an estimator of the population mean.

Example: If you flip a fair coin and win $10 for heads and lose $10 for tails, the expected gain is:

x

-10

10

1/2

1/2

Example (Insurance): An insurance company offers a $1,000 policy for a $14 premium. Probability of payout is 0.006.

x

-986

14

0.006

0.994

Properties of Expected Value

  • For constants a and b:

  • For any function f(X):

  • In general, unless f is linear.

Variance and Standard Deviation

Definition and Calculation

The variance of a random variable X measures the spread of its distribution around the mean.

The standard deviation is the square root of the variance:

  • Variance is in squared units; standard deviation is in the same units as X.

  • Sample variance () is an estimator of the population variance.

Alternative formula for variance:

Properties of Variance

  • For constants a and b:

  • If , then X is constant with probability 1.

Summary Table: Key Concepts

Concept

Discrete RV

Continuous RV

Probability Function

PMF:

PDF:

Cumulative Distribution

Expected Value

Variance

Additional info: Some content and examples were expanded for clarity and completeness, including the insurance example and the summary table.

Pearson Logo

Study Prep