Discrete Probability Distributions
Learning Objectives
- Understand the concepts of probability mass functions (PMF) and cumulative distribution functions (CDF).
- Calculate the expected value (mean) and variance of a discrete random variable.
- Apply the Binomial and Poisson distributions to model relevant civil engineering scenarios.
- Apply the Geometric and Negative Binomial distributions for scenarios involving trials to achieve successes.
- Use the Hypergeometric distribution to model probabilities when sampling without replacement from finite batches.
Discrete probability distributions are foundational for modeling scenarios where outcomes are countable, such as the number of structural defects, rainfall events, or equipment failures. This lesson covers key distributions including Binomial, Poisson, Geometric, Negative Binomial, and Hypergeometric, and how to apply them to solve practical engineering problems.
Introduction to Random Variables
When analyzing engineering data, we often deal with variables whose outcomes are determined by chance. A random variable is a numerical description of the outcome of an experiment. A discrete random variable can take on a countable number of distinct values (e.g., the number of potholes on a 10km stretch of road, the number of defective bricks in a pallet, or the number of extreme weather events in a year). Understanding these variables allows engineers to quantify risk and predict the frequency of specific events.
Probability Mass Functions and Mathematical Expectation
Probability Functions and Expectation
The foundational math behind discrete random variables.
Probability Mass Function (PMF), or
A function that assigns a probability to each possible value of a discrete random variable.
PMF Conditions
- for all .
- .
Cumulative Distribution Function (CDF),
The probability that the random variable will take a value less than or equal to .
Cumulative Distribution Function
Formula for calculating the CDF of a discrete random variable.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Cumulative Distribution Function | - | |
| Discrete random variable | - | |
| Specific value of the random variable | - | |
| Probability Mass Function evaluated at t | - |
Mathematical Expectation
Mathematical Expectation and Variance
The expected value represents the theoretical mean of the random variable.
Expected Value (Mean), or
The long-run average value of the random variable over infinitely many trials. It is the center of the probability distribution.
Expected Value (Mean)
Formula for calculating the expected value.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Expected value or mean | - | |
| Expected value of random variable X | - | |
| Specific value of the random variable | - | |
| Probability Mass Function evaluated at x | - |
Variance, or
A measure of the dispersion or spread of the probability distribution around the mean.
Variance
Formula for calculating the variance.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Variance | - | |
| Expected value operator | - | |
| Discrete random variable | - | |
| Expected value or mean | - | |
| Specific value of the random variable | - | |
| Probability Mass Function evaluated at x | - |
Computational Formula for Variance
An alternative, easier formula for calculating variance.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Variance | - | |
| Expected value of the square of X | - | |
| Expected value of X | - |
Common Discrete Distributions in Engineering
Common Discrete Distributions
Specific models used to describe common engineering scenarios.
The Binomial Distribution
Introduction to the Binomial Distribution
The Binomial distribution models the number of successes in a fixed number of independent Bernoulli trials with the same success probability. In civil engineering, an example is the number of independently selected concrete cylinders that exceed a specified strength threshold in a fixed sample. Repeated days affected by weather should not be treated as independent trials unless that assumption is justified.
Binomial Distribution
A distribution that models the probability of exactly successes in independent trials.
Binomial Distribution Conditions
- There are a fixed number of trials ().
- Each trial has only two possible outcomes (Success or Failure).
- The probability of success () remains constant for each trial.
- The trials are mutually independent.
Binomial Distribution Formula
Formula to calculate the probability of exactly x successes in n trials.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Probability of exactly x successes | - | |
| Total number of trials | - | |
| Number of successes | - | |
| Probability of success on a single trial | - | |
| Probability of failure on a single trial | - |
Binomial Mean and Variance
Formulas for the mean and variance of a Binomial distribution.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Expected value or mean | - | |
| Variance | - | |
| Total number of trials | - | |
| Probability of success on a single trial | - |
The Poisson Distribution
Introduction to the Poisson Distribution
The Poisson distribution models a count over a defined time, length, area, volume, or other exposure when the count process is adequately described by a Poisson model. For a homogeneous Poisson process, the event rate is stable over the stated exposure and counts in disjoint intervals are independent. Rarity alone does not establish that a Poisson model is appropriate.
Poisson Distribution
Models the nonnegative integer count in a specified exposure when its distribution is Poisson with mean count . Under a homogeneous Poisson process with rate per unit exposure , . This is a count model with stated assumptions, not a rule that every rare event follows a Poisson distribution. Separately, a Poisson distribution may approximate a Binomial count when the fixed-trial model and approximation accuracy support it.
Poisson Distribution Formula
Formula to calculate the probability of exactly x events occurring in a given interval.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Probability of exactly x events | - | |
| Expected event count over the specified exposure | - | |
| Euler's number (approximately 2.71828) | - | |
| Number of events | - |
Poisson Counts Scale with Exposure
Analytical schematic of a homogeneous Poisson count model: for a stable rate r per unit exposure, the expected count over exposure E is λ=rE. Event marks are illustrative locations, not measured data, and an individual count is random.
Poisson Mean and Variance
Formulas for the mean and variance of a Poisson distribution.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Expected value or mean | - | |
| Variance | - | |
| Average rate of occurrence in the interval | - |
Unique Property of Poisson Distribution
A unique property of the Poisson distribution is that its mean equals its variance.
The Geometric and Negative Binomial Distributions
Geometric and Negative Binomial Models
The Geometric and Negative Binomial distributions model the number of trials needed to achieve a specific number of successes. For instance, testing identical soil samples until the first one fails a compaction test (Geometric), or testing until exactly three samples fail (Negative Binomial).
Geometric Distribution
Models the number of independent trials needed to get the first success. (e.g., How many times must we test a newly designed joint until we observe the first failure, assuming a constant failure probability ?)
Geometric Distribution Formula
Formula for calculating the probability of getting the first success on the x-th trial.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Probability of first success on the x-th trial | - | |
| Probability of success on a single trial | - | |
| Trial number on which the first success occurs | - |
Geometric Mean and Variance
Formulas for calculating the mean and variance of a geometric distribution.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Expected value or mean | - | |
| Variance | - | |
| Probability of success on a single trial | - |
Negative Binomial Distribution
A generalization of the geometric distribution. It models the number of independent trials needed to get exactly successes.
Negative Binomial Distribution Formula
Formula for calculating the probability of getting the r-th success on the x-th trial.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Probability of r-th success on the x-th trial | - | |
| Trial number on which the r-th success occurs | - | |
| Total number of successes desired | - | |
| Probability of success on a single trial | - |
Negative Binomial Mean and Variance
Formulas for calculating the mean and variance of a negative binomial distribution.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Expected value or mean | - | |
| Variance | - | |
| Total number of successes desired | - | |
| Probability of success on a single trial | - |
The Hypergeometric Distribution
Sampling Without Replacement
The Hypergeometric Distribution models sampling without replacement from a finite population. This is critical in quality control where inspecting an item destroys it or removes it from the batch, changing the probability for subsequent selections.
Hypergeometric Distribution
Unlike the Binomial distribution where is constant (sampling with replacement), the Hypergeometric distribution is used when sampling without replacement from a finite population of size , containing exactly successes. (e.g., Selecting 5 concrete cylinders from a batch of 50, where 3 are known to be defective).
Hypergeometric Distribution Formula
Formula for calculating hypergeometric probabilities.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Probability of exactly x successes in the sample | - | |
| Total population size | - | |
| Total number of successes in the population | - | |
| Sample size | - | |
| Number of successes in the sample | - |
Hypergeometric Mean and Variance
Formulas for the mean and variance of a hypergeometric distribution.
Variables
| Symbol | Description | Unit |
|---|---|---|
| Expected value or mean | - | |
| Variance | - | |
| Total population size | - | |
| Total number of successes in the population | - | |
| Sample size | - |
Replacement Changes the Next-Draw Probability
Illustrative finite batch with 3 marked items among 8. With replacement, the next-draw probability remains 3/8; without replacement it becomes 2/7 after a marked item or 3/7 after an unmarked item. These values explain why finite sampling without replacement follows a Hypergeometric model rather than independent Binomial trials.
Interactive Simulation
Interact with the simulation below to visualize various discrete probability distributions.
Engineering Data Analysis
Discrete Probability Distributions Explorer
Theoretical Properties
Interactive Simulation
Compare the geometric and hypergeometric distributions under different parameters to see how sampling without replacement alters success probabilities.
Engineering Data Analysis • Topic 5
Discrete Probability Distributions Sandbox
Select a Discrete Count Model
Match the random variable and sampling mechanism to a discrete probability model before calculating probabilities.
Use Hypergeometric for a finite population sampled without replacement, with N, K, and n identified. Use Binomial for a fixed number of independent Bernoulli trials with common p. A Poisson approximation to a Binomial count is a separate option only when its accuracy is adequate for the intended use; no universal rarity cutoff establishes that. A Poisson count over exposure E with mean λ = rE requires a suitable count process; a homogeneous Poisson process has a stable rate r and independent increments. Geometric and Negative Binomial models count independent constant-p trials to the first or r-th success. If the data-generation process is unclear or these conditions are unsupported, hold and establish an appropriate model.
Define the count, sampling plan, and exposure → Finite population sampled without replacement?; Finite population sampled without replacement? — Yes → Hypergeometric count; identify N, K, n; Finite population sampled without replacement? — No → Fixed n independent Bernoulli trials with common p?; Fixed n independent Bernoulli trials with common p? — Yes → Binomial count; Poisson approximation only if adequate; Fixed n independent Bernoulli trials with common p? — No → Stable rate and independent increments over exposure?; Stable rate and independent increments over exposure? — Yes → Poisson count, λ = rate × exposure; Stable rate and independent increments over exposure? — No → Independent constant-p trials continue until r successes?; Independent constant-p trials continue until r successes? — Yes → Is r = 1?; Is r = 1? — r = 1 → Geometric: trials to first success; Is r = 1? — r > 1 → Negative Binomial: r > 1 successes; Independent constant-p trials continue until r successes? — No → Hold: resolve the process or model assumptions
- Define the count, sampling plan, and exposure: terminator
- Finite population sampled without replacement?: decision
- Hypergeometric count; identify N, K, n: document
- Fixed n independent Bernoulli trials with common p?: decision
- Binomial count; Poisson approximation only if adequate: document
- Stable rate and independent increments over exposure?: decision
- Poisson count, λ = rate × exposure: document
- Independent constant-p trials continue until r successes?: decision
- Is r = 1?: decision
- Geometric: trials to first success: document
- Negative Binomial: r > 1 successes: document
- Hold: resolve the process or model assumptions: terminator
- Random Variables: Numerical values assigned to experimental outcomes.
- Expected Value (): The long-run average of a discrete distribution.
- Binomial: Used for independent trials with exactly two outcomes (success/failure) and constant probability .
- Poisson: Models a count over a stated exposure when the Poisson count assumptions are adequate; for a homogeneous process, the expected count is rate times exposure (). A fixed-trial Poisson approximation is a separate modeling choice.
- Geometric/Negative Binomial: Focuses on the number of trials needed to achieve a specified number of successes.
- Hypergeometric: Used for finite populations when sampling without replacement (probability changes trial-to-trial).
References
- NIST/SEMATECH e-Handbook: Binomial Distribution — fixed number of independent trials with two outcomes and a common success probability.
- NIST/SEMATECH e-Handbook: Poisson Distribution — count model for events in a specified interval.
- NIST/SEMATECH e-Handbook: Poisson Approximation for Counts — context-dependent approximation of Binomial counts; its criteria are not universal acceptance thresholds.
- NIST Dataplot Reference Manual: Hypergeometric Distribution — finite-population sampling without replacement.