STATHARBOR ANALYTICS · INTRODUCTION TO STATISTICS · CHAPTER 16
Discrete Distributions
This chapter explores common discrete probability distributions, their properties and applications. Understanding these distributions is essential for modelling count data, rare events and for constructing exact tests. We cover the binomial, geometric, negative binomial, Poisson and hypergeometric distributions, with examples and exercises.
Binomial Distribution
The binomial distribution models the number of successes in independent Bernoulli trials with success probability . The probability mass function (pmf) is The expectation and variance are and . For large , is approximately normal with mean and variance . The binomial is widely used in quality control, epidemiology and survey sampling.
Example: Number of Defective Items
Suppose a factory produces parts and each part has a 2% chance of being defective. If we inspect 100 parts, what is the probability of finding at most two defects? Using R:
pbinom(2, size = 100, prob = 0.02)
In Python, use scipy.stats.binom.cdf(2, 100, 0.02).
Geometric and Negative Binomial Distributions
The geometric distribution models the number of trials until the first success. Its pmf is for and , . The negative binomial distribution generalises this to the number of trials until successes. It has pmf The expectation and variance are and .
Poisson Distribution
The Poisson distribution arises as the limit of the binomial when is large and is small such that remains fixed. Its pmf is The mean and variance are both . The Poisson distribution is used to model counts of rare events in time or space, such as number of phone calls per minute or mutations per gene.
Example: Calls to a Call Centre
If calls arrive at a call centre at an average rate of 3 per minute, what is the probability of receiving exactly five calls in a minute? Use Python:
from scipy.stats import poisson
poisson.pmf(5, mu=3)
Hypergeometric Distribution
The hypergeometric distribution models sampling without replacement. Suppose a population contains items of which are successes. If we draw items, the probability of successes is The mean is and the variance is . The hypergeometric distribution is used in quality control and Fisher’s exact test.
Exercises
Practice
A multiple–choice test has 10 questions, each with 4 options. If a student guesses on all questions, what is the probability of exactly 3 correct answers? Compute the probability and simulate 1,000 attempts in R/Python/Julia to verify.
Derive the mean and variance of the geometric distribution. Verify your formulae using simulation.
In a factory, a machine produces defective items with probability 0.01. What is the probability the third defective item occurs on the 20th item inspected? Compute using the negative binomial pmf.
In a lot of 50 items, 5 are defective. If you sample 10 items without replacement, what is the probability of finding exactly 2 defective items? Use the hypergeometric distribution and confirm by simulation.
References
Ross SM. Introduction to Probability Models. 11th ed. Academic Press; 2023.
Rice J. Mathematical Statistics and Data Analysis. 3rd ed. Duxbury; 2007.
Grimmett G, Stirzaker D. Probability and Random Processes. 3rd ed. Oxford University Press; 2001.