wanna mathMath ain't scary (not anymore)
4-Tier Textbook Index • Vol → Mod → Ch → Lab

Engineering Mathematics Volumes I–VI

6 Volumes • 20 Modules • 85 ChaptersFull Matrix →
4-Tier Statistics Index • Vol S → Mod → Ch → Lab

Interactive Statistics (S.1–S.6)

6 Modules • 18 ChaptersStatistics Index →
CHAPTER S.2.3 • 2DPublished Interactive Labs~30 min study

Discrete Random Variables: Bernoulli, Binomial, Geometric & Poisson

Drop balls through a Galton pegboard to connect coin flips, waiting times, and rare-event Poisson arrivals.

Engineering & Physical Application Context

Packet loss bursts, manufacturing defect counts, radioactive decay arrivals, and A/B conversion counts.

Governing Mathematical Formulation
P(X=k)=(nk)pk(1−p)n−k,P(Y=k)=λke−λk!P(X = k) = \binom{n}{k}p^k(1-p)^{n-k}, \qquad P(Y = k) = \frac{\lambda^k e^{-\lambda}}{k!}
Volume S • Module S.21 Interactive Lab(s)

The Question You Should Ask

How do repeated yes/no Bernoulli trials build Binomial counts and Geometric waiting times—and why does Binomial(n,p)\text{Binomial}(n,p) morph smoothly into Poisson(λ)\text{Poisson}(\lambda)?

In Simple Words & Math

Summing nn independent Bernoulli(pp) flips creates (nk)pk(1−p)n−k\binom{n}{k}p^k(1-p)^{n-k} paths down a Galton pegboard, while waiting for the first success shifts the index to memoryless Geometric steps.

In the rare-event limit n→∞,p→0n\to\infty, p\to 0 with fixed rate np=λnp = \lambda, the Binomial mass function simplifies directly into the Poisson arrival law λke−λ/k!\lambda^k e^{-\lambda}/k!.

4-Step Pedagogical Chapter Rhythm • Geometric Intuition First
Ch. S.2.3
STEP 1 • GEOMETRIC QUESTION

How do simple yes/no coin flips build the Binomial bell—and why does Binomial morph seamlessly into the Poisson law when trials are huge and events are rare?

STEP 2 • INTERACTIVE LAB EXPLORATION

Simulate beads dropping through a Galton pegboard, adjust n and p (or arrival rate λ), and overlay Binomial(n, p) directly onto Poisson(np).

STEP 3 • SYMBOLIC FORMALIZATION
P(X=k)=(nk)pk(1−p)n−k→n→∞,  np=λλke−λk!P(X = k) = \binom{n}{k}p^k(1-p)^{n-k} \xrightarrow{n\to\infty,\; np=\lambda} \frac{\lambda^k e^{-\lambda}}{k!}
STEP 4 • EDGE CASES & NEXT BRIDGE

Discrete PMFs assign probability to individual spikes; in Module S.3, smooth continuous measurements replace bars with curves and reveal the Central Limit Theorem.

Interactive Laboratories in Chapter S.2.3
FIRST-TIMER GUIDE • FROM MESSY STORIES TO NUMBERED BARS

What Is a Random Variable? Four Discrete Laws That Power Counting & Arrivals

A Random Variable XX is just a translator turning messy real-world outcomes (H, T, H, H) into clean numbers you can average (3 heads). Drop balls through the Galton Pegboard below: at every brass peg, a bead bounces right with chance pp or left with chance 1−p1-p. Watching beads pile up turns abstract factorial formulas into living geometry!

1. BERNOULLI(p)

One single yes/no coin flip (X∈{0,1}X \in \{0, 1\}). Example: does one user click the button?

2. BINOMIAL(n, p)

Total successes out of nn independent Bernoulli flips. Example: defective chips in a batch of 20.

3. GEOMETRIC(p)

How many trials until your first success (k=1,2,3,…k = 1, 2, 3, \dots). Memoryless!

4. POISSON(λ)

Number of rare, independent arrivals in a fixed window (emails per minute, photons per second).

Initializing Interactive Laboratory
LOADING MODULE

Preparing interactive canvas & numerical solver…

wanna math drafting viewport

Why Binomial Counts Paths & Morphs Into Poisson

1. PASCAL'S PATH MULTIPLIER
P(X=k)=(nk)⏟# paths⋅pk(1−p)n−k⏟prob per pathP(X=k) = \underbrace{\binom{n}{k}}_{\text{\# paths}} \cdot \underbrace{p^k(1-p)^{n-k}}_{\text{prob per path}}

To land in bin kk on the Galton board, a bead must bounce right kk times and left n−kn-k times. Every specific path has probability pk(1−p)n−kp^k(1-p)^{n-k}, and there are (nk)\binom{n}{k} routes!

2. LAW OF RARE EVENTS
lim⁡n→∞, np=λ(nk)pk(1−p)n−k=λke−λk!\lim_{n\to\infty,\, np=\lambda} \binom{n}{k}p^k(1-p)^{n-k} = \frac{\lambda^k e^{-\lambda}}{k!}

Try clicking Rare-Event Limit (30, 0.06) above! Slice one minute into millions of millisecond coin flips with tiny click chance p=λ/np=\lambda/n, and the Binomial pins snap right onto the Poisson diamonds.

3. TINY WORKED EXAMPLE

Suppose an API sees λ=2\lambda = 2 timeouts per hour. Chance of 00 or 11 timeout next hour:

P(X=0)=e−2≈0.135,P(X=1)=2e−2≈0.271P(X=0) = e^{-2} \approx 0.135, \quad P(X=1) = 2e^{-2} \approx 0.271
TRAP 1 • STEP-CDF OPEN VS. CLOSED CIRCLES

Switch the chart to Step-CDF P(X ≤ x): notice how every bar turns into a flat staircase! The solid dot marks F(k)F(k) (including kk), while the hollow dot sits below at F(k−1)F(k-1). The vertical jump height at kk is literally P(X=k)P(X=k).

BRIDGE TO MODULE S.3 • SMOOTH BELL CURVES

Look at the Binomial pins when n=16,p=0.5n = 16, p = 0.5: that symmetric dome is already screaming to become a continuous Normal Bell Curve—our starting point in Module S.3!

Discrete Probability Laws • Ch. S.2.3

Indicator Sums, Geometric Memorylessness & Proof of the Poisson Limit

Open Discrete Table →
1. INDICATOR DECOMPOSITION FOR BINOMIAL
X=∑i=1nIi  ⟹  E[X]=np,Var⁡(X)=np(1−p)X = \sum_{i=1}^{n} I_i \implies \mathbb{E}[X] = np, \quad \operatorname{Var}(X) = np(1-p)

Instead of grinding through combinatorial sums, splitting Binomial XX into nn independent Bernoulli indicators immediately yields both mean npnp and variance nVar⁡(Ii)=np(1−p)n\operatorname{Var}(I_i) = np(1-p).

2. GEOMETRIC MEMORYLESS PROPERTY
P(X>m+k∣X>m)=(1−p)m+k(1−p)m=(1−p)k=P(X>k)P(X > m + k \mid X > m) = \frac{(1-p)^{m+k}}{(1-p)^m} = (1-p)^k = P(X > k)

If a coin has landed tails mm times in a row, the remaining waiting time restarts completely fresh—curing the gambler's fallacy that heads is “due.”

3. STEP-BY-STEP POISSON LIMIT (np = λ)
n!k!(n−k)!(λn)k ⁣(1−λn)n−k→n→∞λkk!e−λ\frac{n!}{k!(n-k)!}\left(\frac{\lambda}{n}\right)^k\!\left(1-\frac{\lambda}{n}\right)^{n-k} \xrightarrow{n\to\infty} \frac{\lambda^k}{k!}e^{-\lambda}

Since n(n−1)⋯(n−k+1)nk→1\frac{n(n-1)\cdots(n-k+1)}{n^k} \to 1 and (1−λ/n)n→e−λ(1-\lambda/n)^n \to e^{-\lambda}, rare-event counts over large trial batches depend only on the average rate λ=np\lambda = np.

Chapter S.2.3 Laboratory Specifications

1 Interactive Lab(s)
LAB S.2.3.1Component: GaltonBoardDiscreteLab

Galton Pegboard, Binomial & Poisson Limit Lab

Animate Galton board drops and compare theoretical PMFs and step-CDFs across Bernoulli, Binomial, Geometric, and Poisson laws.

E[X]=np,Var⁡(X)=np(1−p)\mathbb{E}[X] = np, \quad \operatorname{Var}(X) = np(1-p)