Probability Basics for Statistical Reasoning

Michael BrenndoerferUpdated December 25, 202546 min read

Covers probability theory fundamentals, covering random variables, probability distributions, expected value and variance.

Machine Learning from ScratchAll chapters
Part 1 of 15Statistical Foundations for Machine Learning
Chapter 3Probability Basics › Probability Basics: Foundation of Statistical Reasoning
Reading the full chapter · 12 sections · 46 min12 sections · 46 min

All 12 sections · 46 min read

Probability Basics › Probability Basics: Foundation of Statistical ReasoningFull chapter · Sections in this chapter1 / 12 ↓
Track your reading progress

Sign in to mark sections as read and track your learning journey

Sign in →
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Probability Basics: Foundation of Statistical Reasoning

Probability theory helps us quantify uncertainty and make inferences from data. It forms the foundation for statistical analysis, machine learning, and data-driven decision making.

Introduction

Every data analysis project involves working with uncertainty: predicting future outcomes, estimating unknown parameters, or making decisions with incomplete information. Probability theory helps us reason about randomness, quantify uncertainty, and draw reliable conclusions from noisy data.

Understanding probability concepts is essential for practical work. When building predictive models, we rely on probability distributions to describe our data. When evaluating model performance, we use probabilistic reasoning to assess whether observed differences are meaningful or merely due to chance. When making business decisions, we use probability to weigh risks and expected outcomes.

This chapter introduces key concepts of probability theory that support statistical inference and machine learning. We'll explore random variables and their distributions, examine measures of central tendency and spread, investigate relationships between events through independence and conditional probability, and learn fundamental theorems that explain why statistical methods work. By the end of this chapter, you'll understand the basics needed for more advanced statistical and machine learning techniques.

Random Variables

A random variable is a quantity whose value is uncertain before it is observed. Unlike ordinary variables in mathematics that take fixed values, random variables represent outcomes of random processes that can vary from one observation to another. Random variables connect abstract probability theory and real-world measurements, allowing us to apply mathematical reasoning to uncertain phenomena.

We distinguish between two types of random variables based on the values they can assume:

  • Discrete random variables take on countable values, often integers, such as the number of customers arriving at a store, the count of defective items in a batch, or the outcome of rolling a die.
  • Continuous random variables can take any value within an interval, such as temperature, time, height, or stock prices. The distinction matters because discrete and continuous random variables require different mathematical tools: probability mass functions for discrete cases and probability density functions for continuous cases.

Consider a simple example: let XX represent the outcome of rolling a fair six-sided die. This discrete random variable can take values in the set {1,2,3,4,5,6}\{1, 2, 3, 4, 5, 6\}, each with equal probability 1/61/6. In contrast, if YY represents the time until the next customer arrives at a store, this continuous random variable could take any positive real value, and we describe its behavior using a continuous probability distribution like the exponential distribution.

Probability Distributions

A probability distribution describes how probabilities are spread across the possible values of a random variable. It tells us which outcomes are likely and which are rare. Different types of random phenomena follow different patterns, and recognizing these patterns helps us model real-world processes effectively.

For discrete random variables, we use a probability mass function (PMF) that assigns probabilities to each possible value. The PMF must satisfy two conditions: all probabilities must be non-negative, and they must sum to one across all possible outcomes. For continuous random variables, we use a probability density function (PDF) that describes the relative likelihood of values in different regions. Unlike discrete probabilities, the PDF itself does not give probabilities directly. Instead, we integrate the PDF over an interval to find the probability that the variable falls within that range.

Example: PMF vs PDF - Understanding Discrete and Continuous Distributions

This visualization contrasts how probabilities are represented for discrete versus continuous random variables. The discrete case shows exact probabilities for specific outcomes (the height of each bar), while the continuous case shows a density curve where probabilities are areas under the curve.

VisualizationsOut [2]
CollapseExpand
Six equal-height bars show that every fair-die outcome from one through six has probability 0.167, with a legend identifying the bars as P(X = k).
Probability Mass Function (PMF): A fair die roll where each outcome has probability 1/6. The bars show exact probabilities at discrete points. The heights sum to 1.0, and we can read probabilities directly from the bar heights. For example, P(X=3) = 0.167.
Uniform density from zero to six with a legend distinguishing the full distribution from the interval two to four, whose shaded area is labeled 0.333.
Probability Density Function (PDF): A continuous uniform distribution on [0,6]. The curve shows probability density, not probability itself. The area under the entire curve equals 1.0. To find probabilities, we calculate areas: for example, P(2 < X < 4) equals the shaded area, which is 0.333.

Several probability distributions appear repeatedly due to their theoretical properties and empirical relevance. The normal distribution (Gaussian distribution) describes many natural phenomena and plays a central role in statistical theory due to the Central Limit Theorem. The binomial distribution models the number of successes in a fixed number of independent trials, such as counting how many emails out of 100 are spam. The Poisson distribution describes the number of events occurring in a fixed interval of time or space, useful for modeling rare events like server failures or customer arrivals. The exponential distribution models waiting times between events in a Poisson process, such as time between website visits.

Choosing the distribution that best describes your data helps you build an appropriate statistical model. Misspecifying the distribution can lead to incorrect inferences, poor predictions, and unreliable uncertainty estimates.

PMF in Practice

The discrete PMF example above is somewhat artificial. We defined specific probabilities for each outcome that conveniently sum to 1. In practice, PMFs are typically derived from theoretical distributions, like binomial or Poisson, that have mathematical formulas governing the probabilities. We use this simple example to build intuition before introducing these more complex distributions.

Example: Comparing Probability Distributions

The following visualization shows three fundamental probability distributions: the normal distribution describing continuous measurements, the binomial distribution describing count data from repeated trials, and the Poisson distribution describing rare event counts.

VisualizationsOut [3]
CollapseExpand
Symmetric bell-shaped standard normal density centered at zero.
Normal Distribution (μ=0, σ=1): The bell-shaped curve describes many natural phenomena due to the Central Limit Theorem. This continuous distribution is symmetric around its mean, with approximately 68% of values within one standard deviation.
Discrete binomial probabilities for the number of successes in 20 fair trials, centered around 10.
Binomial Distribution (n=20, p=0.5): Models the number of successes in a fixed number of independent trials. Here we show the distribution of heads in 20 coin flips.
Right-skewed Poisson probabilities for event counts when the expected count is three.
Poisson Distribution (λ=3): Describes the number of rare events in a fixed interval. The distribution is skewed right for small λ values and becomes more symmetric as λ increases, useful for modeling arrivals, failures, or other count phenomena.

Calculating Probabilities from PMFs

Once we have defined a probability distribution, we can calculate the probability of specific outcomes or ranges of outcomes. The approach differs depending on whether we're working with discrete or continuous distributions.

For discrete distributions, we use the Probability Mass Function (PMF), which gives us P(X=x)P(X = x), the probability that the random variable equals exactly a specific value. The PMF must satisfy two key properties:

  1. P(X=x)≥0P(X = x) \geq 0 for all values xx (probabilities are non-negative)
  2. ∑all xP(X=x)=1\sum_{\text{all } x} P(X = x) = 1 (probabilities sum to 1)

To find the probability of a range of outcomes, we simply sum the individual probabilities. For example, P(2≤X≤5)=P(X=2)+P(X=3)+P(X=4)+P(X=5)P(2 \leq X \leq 5) = P(X=2) + P(X=3) + P(X=4) + P(X=5).

For continuous distributions, we use the Probability Density Function (PDF) along with integration to find probabilities over intervals. Unlike the PMF, the PDF does not give probabilities directly. Instead, we must integrate over an interval:

P(a≤X≤b)=∫abf(x) dxP(a \leq X \leq b) = \int_a^b f(x) \, dx
Probability Density Function

Here, f(x)f(x) denotes the probability density function (PDF) of the continuous random variable XX. But where does this function come from?

Each continuous distribution has its own specific PDF formula derived from the properties of that distribution. For example, the normal distribution has the familiar bell-curve formula f(x)=1σ2πe−(x−μ)22σ2f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{(x-\mu)^2}{2\sigma^2}}.

When using statistical software like scipy.stats, these PDF formulas are built-in. Calling stats.norm.pdf(x) evaluates this formula for you. The key point is that while a PDF tells us the density of probability at each point, we must integrate it over an interval to get actual probabilities.

As we recall, integration is a mathematical operation that calculates the area under a curve. Imagine drawing the PDF curve on a graph and shading the region between the curve and the x-axis from point aa to point bb. The integral ∫abf(x) dx\int_a^b f(x) \, dx computes exactly this shaded area. In the context of probability, this area represents the probability that the random variable falls within that interval. Since the total area under the entire PDF curve equals 1 (representing 100% probability), the area under any portion of the curve tells us what fraction of the total probability lies in that range.

An important consequence is that for continuous distributions, P(X=x)=0P(X = x) = 0 for any specific value xx, where xx is any particular point in the continuous range of possible values. This may seem counterintuitive, but it makes sense when you consider that there are infinitely many possible values. What matters is the probability of falling within an interval, not at a specific point.

The Cumulative Distribution Function (CDF) provides another useful tool for calculating probabilities. The CDF, denoted F(x)F(x), gives the probability that the random variable is less than or equal to xx:

F(x)=P(X≤x)F(x) = P(X \leq x)

For continuous distributions, the CDF is obtained by integrating the PDF from −∞-\infty to xx:

F(x)=∫−∞xf(t) dtF(x) = \int_{-\infty}^{x} f(t) \, dt

In other words, the CDF at any point equals the total area under the PDF curve to the left of that point.

Example: Calculating Probabilities with the Binomial Distribution

Let's work through a concrete example to make these concepts clear. Imagine we're flipping a fair coin 10 times and want to calculate various probabilities. This scenario follows a binomial distribution with parameters n=10n = 10 (number of trials) and p=0.5p = 0.5 (probability of success/heads on each flip).

The binomial PMF gives us the exact probability of observing exactly kk heads in 10 flips:

P(X=k)=(10k)(0.5)k(0.5)10−k=(10k)(0.5)10P(X = k) = \binom{10}{k} (0.5)^k (0.5)^{10-k} = \binom{10}{k} (0.5)^{10}

Where (10k)=10!k!(10−k)!\binom{10}{k} = \frac{10!}{k!(10-k)!} is the binomial coefficient (number of ways to get exactly kk heads in 10 flips).

Let's understand where this formula comes from:

  1. (0.5)k(0.5)^k: The probability of getting exactly kk heads, since each head has probability 0.5
  2. (0.5)10−k(0.5)^{10-k}: The probability of getting exactly 10−k10-k tails for the remaining flips
  3. (10k)\binom{10}{k}: The number of different ways to arrange kk heads among 10 flips (since we don't care about the order, just the total count)

Multiplying these together gives us the total probability of observing exactly kk heads.

Binomial Distribution Formula

This formula is specific to the binomial distribution, which models the number of successes in a fixed number of independent trials (like coin flips). The general binomial PMF formula comes from probability theory literature and is given by P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}, where nn is the number of trials, kk is the number of successes, and pp is the probability of success on each trial.

Let's calculate some specific probabilities and visualize the entire distribution:

VisualizationsOut [4]
CollapseExpand
Binomial probability bars for zero through ten heads, with five heads highlighted at probability 0.246 and a legend defining the bars as P(X = k).
Binomial PMF (n=10, p=0.5): The probability mass function shows exact probabilities for each possible number of heads from zero through ten. The distribution is symmetric around its expected value, and the most likely outcome is highlighted at P(X=5)≈0.246.
Increasing binomial cumulative probability step curve with dashed guides and labels at zero, two, five, seven, and ten heads, plus a legend defining F(k) as P(X ≤ k).
Binomial CDF (n=10, p=0.5): The cumulative distribution function shows the probability of getting at most k heads. Dashed guides and labels mark representative cumulative probabilities from F(0)=0.001 through F(10)=1.000, and the legend states F(k)=P(X≤k).

Now let's use this distribution to calculate specific probabilities. Here are some common types of probability questions we might ask:

Exact probabilities (using PMF):

  • P(X=0)P(X = 0) = Probability of no heads (all tails)
  • P(X=5)P(X = 5) = Probability of exactly 5 heads
  • P(X=10)P(X = 10) = Probability of all heads

Cumulative probabilities (using CDF):

  • P(X≤3)P(X \leq 3) = Probability of 3 or fewer heads
  • P(X≥7)P(X \geq 7) = Probability of 7 or more heads
  • P(X>5)P(X > 5) = Probability of more than 5 heads

Range probabilities (using CDF subtraction):

  • P(3≤X≤7)P(3 \leq X \leq 7) = Probability of 4 through 7 heads
  • P(2<X<8)P(2 < X < 8) = Probability of 3 through 7 heads

Let's calculate these probabilities numerically:

ConsoleOut [5]
CollapseExpand
Exact Probabilities (PMF):
P(X = 0)  = 0.000977  # No heads
P(X = 5)  = 0.246094  # Exactly 5 heads
P(X = 10) = 0.000977 # All heads

Cumulative Probabilities (CDF):
P(X ≤ 3)  = 0.171875  # At most 3 heads
P(X ≥ 7)  = 0.171875  # At least 7 heads
P(X > 5)  = 0.376953  # More than 5 heads

Range Probabilities (CDF subtraction):
P(3 ≤ X ≤ 7) = 0.890625  # 3 to 7 heads
P(2 < X < 8)  = 0.890625  # 3 to 7 heads

Notice how the probabilities behave:

  • The most likely outcome is 5 heads (24.6% probability), which matches our intuition for a fair coin
  • Extreme outcomes (0 or 10 heads) are very unlikely (0.1% each)
  • The distribution is symmetric around the mean because p = 0.5
  • Cumulative probabilities increase steadily as we move from left to right
  • Range probabilities are calculated by subtracting CDF values: P(a ≤ X ≤ b) = F(b) - F(a-1)

This example demonstrates why probability calculations are so important: they allow us to quantify uncertainty and make informed decisions based on the likelihood of different outcomes.

Using the scipy.stats Package for Probability Calculations

In the calculations above, we used scipy.stats.binom.pmf() and scipy.stats.binom.cdf() to compute probabilities. These functions efficiently implement the formulas we discussed earlier.

If we were to calculate these from scratch:

  • PMF (Probability Mass Function): We'd compute P(X=k)=(nk)pk(1−p)n−kP(X = k) = \binom{n}{k} p^k (1-p)^{n-k} using math.comb(n, k) for the binomial coefficient and standard arithmetic for the rest.
  • CDF (Cumulative Distribution Function): We'd sum up the PMF values: P(X≤k)=∑i=0kP(X=i)P(X \leq k) = \sum_{i=0}^{k} P(X = i), which involves computing and adding each individual probability.

The scipy.stats package provides optimized implementations that handle numerical precision and edge cases, making it the preferred choice for practical work. However, understanding the underlying formulas is essential for building intuition about how these probabilities behave.

Expected Value and Variance

While a full probability distribution gives complete information about a random variable, we often need summary statistics that capture the key features with just a few numbers. The two most important summary measures are the expected value and variance, which describe the center and spread of a distribution.

Expected Value

The expected value (or mean) of a random variable represents its long-run average value if we repeated the random process infinitely many times. For a discrete random variable XX with values x1,x2,…,xnx_1, x_2, \ldots, x_n and corresponding probabilities p1,p2,…,pnp_1, p_2, \ldots, p_n, the expected value is:

E[X]=∑i=1nxi⋅piE[X] = \sum_{i=1}^n x_i \cdot p_i

Example: Expected Number of Heads in Coin Flips

For a binomial random variable (like counting heads in coin flips), there's a convenient formula: E[X]=n⋅pE[X] = n \cdot p, where nn is the number of trials and pp is the probability of success on each trial. If we flip a fair coin 100 times, the expected number of heads is:

E[X]=100×0.5=50E[X] = 100 \times 0.5 = 50

This means that over many repetitions of 1000 coin flips, the average number of heads will converge to 500.

Example: Expected Value of a Fair Die Roll

Consider rolling a fair six-sided die. The random variable XX represents the outcome, which can be any value from 1 to 6, each with probability 16\frac{1}{6}:

E[X]=1⋅16+2⋅16+3⋅16+4⋅16+5⋅16+6⋅16=216=3.5E[X] = 1 \cdot \frac{1}{6} + 2 \cdot \frac{1}{6} + 3 \cdot \frac{1}{6} + 4 \cdot \frac{1}{6} + 5 \cdot \frac{1}{6} + 6 \cdot \frac{1}{6} = \frac{21}{6} = 3.5

Notice that the expected value of 3.5 is not even a possible outcome of a single die roll! This illustrates an important point: the expected value represents the long-run average, not necessarily an achievable result. If you rolled a die 1000 times and averaged all the results, you'd get very close to 3.5.

For a continuous random variable with probability density function f(x)f(x), the expected value is:

E[X]=∫−∞∞x⋅f(x) dxE[X] = \int_{-\infty}^{\infty} x \cdot f(x) \, dx

The expected value provides a measure of central tendency, answering the question: "What value should I expect on average?" However, knowing only the average doesn't tell us how much variation to expect around that average.

Example: Expected Value of an Exponential Distribution

Consider a continuous random variable XX following an exponential distribution with rate parameter λ=0.5\lambda = 0.5. The exponential distribution models waiting times between events (like time between customer arrivals or component failures). Its probability density function is:

f(x)=λe−λxfor x≥0f(x) = \lambda e^{-\lambda x} \quad \text{for } x \geq 0

To find the expected value, we compute the integral of xx weighted by the probability density function:

E[X]=∫0∞x⋅f(x) dx=∫0∞x⋅λe−λx dxE[X] = \int_0^{\infty} x \cdot f(x) \, dx = \int_0^{\infty} x \cdot \lambda e^{-\lambda x} \, dx

This integral requires integration by parts, which follows the formula:

∫u dv=uv−∫v du\int u \, dv = uv - \int v \, du

We strategically choose our parts to simplify the integral. The key insight is to let uu be the polynomial term (which simplifies when differentiated) and dvdv be the exponential term (which remains manageable when integrated):

u=x⇒du=dxdv=λe−λx dx⇒v=−e−λx\begin{aligned} u &= x & \Rightarrow && du &= dx \\ dv &= \lambda e^{-\lambda x} \, dx & \Rightarrow && v &= -e^{-\lambda x} \end{aligned}

To verify the calculation of vv: when we integrate λe−λx\lambda e^{-\lambda x}, we use substitution. Let w=−λxw = -\lambda x, so dw=−λ dxdw = -\lambda \, dx, which means dx=−1λdwdx = -\frac{1}{\lambda} dw. Then:

∫λe−λx dx=∫λew⋅(−1λ)dw=−∫ew dw=−ew=−e−λx\begin{aligned} \int \lambda e^{-\lambda x} \, dx &= \int \lambda e^{w} \cdot \left(-\frac{1}{\lambda}\right) dw \\ &= -\int e^{w} \, dw \\ &= -e^{w} \\ &= -e^{-\lambda x} \end{aligned}

Now we apply integration by parts:

E[X]=∫0∞x⋅λe−λx dx=[u⋅v]0∞−∫0∞v du=[x⋅(−e−λx)]0∞−∫0∞(−e−λx) dx=[−xe−λx]0∞+∫0∞e−λx dx\begin{aligned} E[X] &= \int_0^{\infty} x \cdot \lambda e^{-\lambda x} \, dx \\[1em] &= \left[u \cdot v\right]_0^{\infty} - \int_0^{\infty} v \, du \\[1em] &= \left[x \cdot \left(-e^{-\lambda x}\right)\right]_0^{\infty} - \int_0^{\infty} \left(-e^{-\lambda x}\right) \, dx \\[1em] &= \left[-x e^{-\lambda x}\right]_0^{\infty} + \int_0^{\infty} e^{-\lambda x} \, dx \end{aligned}

Evaluating the boundary term [−xe−λx]0∞\left[-x e^{-\lambda x}\right]_0^{\infty}:

At the lower limit (x=0x = 0):

−0⋅e−λ⋅0=−0⋅e0=−0⋅1=0-0 \cdot e^{-\lambda \cdot 0} = -0 \cdot e^{0} = -0 \cdot 1 = 0

At the upper limit (x→∞x \to \infty): We need to evaluate lim⁡x→∞−xe−λx\lim_{x \to \infty} -x e^{-\lambda x}. This is an indeterminate form of type ∞⋅0\infty \cdot 0, where the linear term xx grows without bound while the exponential term e−λxe^{-\lambda x} decays to zero. To resolve this, we rewrite it as a fraction and apply L'Hôpital's rule:

lim⁡x→∞−xe−λx=lim⁡x→∞−xeλx\lim_{x \to \infty} -x e^{-\lambda x} = \lim_{x \to \infty} \frac{-x}{e^{\lambda x}}

This is now an ∞∞\frac{\infty}{\infty} form, so we differentiate the numerator and denominator:

lim⁡x→∞−xeλx=lim⁡x→∞ddx(−x)ddx(eλx)=lim⁡x→∞−1λeλx=−1∞=0\lim_{x \to \infty} \frac{-x}{e^{\lambda x}} = \lim_{x \to \infty} \frac{\frac{d}{dx}(-x)}{\frac{d}{dx}(e^{\lambda x})} = \lim_{x \to \infty} \frac{-1}{\lambda e^{\lambda x}} = \frac{-1}{\infty} = 0

The exponential growth in the denominator dominates the linear growth in the numerator. Therefore:

[−xe−λx]0∞=0−0=0\left[-x e^{-\lambda x}\right]_0^{\infty} = 0 - 0 = 0

Evaluating the remaining integral ∫0∞e−λx dx\int_0^{\infty} e^{-\lambda x} \, dx:

Using the antiderivative ∫e−λx dx=−1λe−λx\int e^{-\lambda x} \, dx = -\frac{1}{\lambda} e^{-\lambda x} (which can be verified by differentiation):

∫0∞e−λx dx=[−1λe−λx]0∞=lim⁡x→∞(−1λe−λx)−(−1λe−λ⋅0)=(−1λ⋅0)−(−1λ⋅1)=0+1λ=1λ\begin{aligned} \int_0^{\infty} e^{-\lambda x} \, dx &= \left[-\frac{1}{\lambda} e^{-\lambda x}\right]_0^{\infty} \\[1em] &= \lim_{x \to \infty}\left(-\frac{1}{\lambda} e^{-\lambda x}\right) - \left(-\frac{1}{\lambda} e^{-\lambda \cdot 0}\right) \\[1em] &= \left(-\frac{1}{\lambda} \cdot 0\right) - \left(-\frac{1}{\lambda} \cdot 1\right) \\[1em] &= 0 + \frac{1}{\lambda} \\[1em] &= \frac{1}{\lambda} \end{aligned}

Note: As x→∞x \to \infty, we have e−λx→0e^{-\lambda x} \to 0 since λ>0\lambda > 0.

Combining the results:

E[X]=0+1λ=1λE[X] = 0 + \frac{1}{\lambda} = \frac{1}{\lambda}

For λ=0.5\lambda = 0.5, this gives E[X]=10.5=2E[X] = \frac{1}{0.5} = 2. This means that on average, we expect to wait 2 time units between events. The result is intuitive: a higher rate λ\lambda (more frequent events) leads to a shorter expected waiting time, while a lower rate leads to longer waits. The integral converges beciance

Variance

The variance measures how spread out the distribution is around its expected value. It quantifies the average squared deviation from the mean, giving us a sense of how much uncertainty or variability exists in the random variable. The variance of a random variable XX is defined as:

Var(X)=E[(X−E[X])2]=E[X2]−(E[X])2\text{Var}(X) = E[(X - E[X])^2] = E[X^2] - (E[X])^2

Where:

  • Var(X)\text{Var}(X) is the variance of the random variable XX
  • E[X]E[X] is the expected value (mean)
  • E[X2]E[X^2] is the expected value of the squared random variable

A closely related measure is the standard deviation, which is simply the square root of the variance: σ=Var(X)\sigma = \sqrt{\text{Var}(X)}. The standard deviation has the advantage of being in the same units as the original random variable, making it more interpretable. For example, if we're measuring heights in centimeters, the standard deviation is also in centimeters, while the variance would be in squared centimeters.

These summary statistics prove invaluable in practice. For example, when comparing investment options, the expected value tells us the average return, while the variance indicates the risk. When designing systems, knowing the expected load and its variability helps us provision appropriate capacity.

Example: Variance of the Exponential Distribution

For our exponential distribution with PDF f(x)=λe−λxf(x) = \lambda e^{-\lambda x}, we'll compute the variance using the formula Var(X)=E[X2]−(E[X])2\text{Var}(X) = E[X^2] - (E[X])^2.

We already found that E[X]=1λE[X] = \frac{1}{\lambda}, so (E[X])2=1λ2(E[X])^2 = \frac{1}{\lambda^2}.

Now we need to find E[X2]E[X^2]:

E[X2]=∫0∞x2⋅λe−λx dx=λ∫0∞x2e−λx dxE[X^2] = \int_0^{\infty} x^2 \cdot \lambda e^{-\lambda x} \, dx = \lambda \int_0^{\infty} x^2 e^{-\lambda x} \, dx

We'll use integration by parts twice to evaluate ∫0∞x2e−λx dx\int_0^{\infty} x^2 e^{-\lambda x} \, dx.

First integration by parts: Let u=x2u = x^2 and dv=e−λx dxdv = e^{-\lambda x} \, dx, then du=2x dxdu = 2x \, dx and v=−1λe−λxv = -\frac{1}{\lambda} e^{-\lambda x}.

∫0∞x2e−λx dx=[−x2λe−λx]0∞+2λ∫0∞xe−λx dx=0+2λ∫0∞xe−λx dx\begin{aligned} \int_0^{\infty} x^2 e^{-\lambda x} \, dx &= \left[-\frac{x^2}{\lambda} e^{-\lambda x}\right]_0^{\infty} + \frac{2}{\lambda} \int_0^{\infty} x e^{-\lambda x} \, dx \\[1em] &= 0 + \frac{2}{\lambda} \int_0^{\infty} x e^{-\lambda x} \, dx \end{aligned}

Note: The boundary term vanishes because lim⁡x→∞x2e−λx=0\lim_{x \to \infty} x^2 e^{-\lambda x} = 0 (exponential decay dominates polynomial growth) and the term at x=0x=0 is also zero.

Second integration by parts: For ∫0∞xe−λx dx\int_0^{\infty} x e^{-\lambda x} \, dx, let u=xu = x and dv=e−λx dxdv = e^{-\lambda x} \, dx, then du=dxdu = dx and v=−1λe−λxv = -\frac{1}{\lambda} e^{-\lambda x}.

∫0∞xe−λx dx=[−xλe−λx]0∞+1λ∫0∞e−λx dx=0+1λ⋅1λ=1λ2\begin{aligned} \int_0^{\infty} x e^{-\lambda x} \, dx &= \left[-\frac{x}{\lambda} e^{-\lambda x}\right]_0^{\infty} + \frac{1}{\lambda} \int_0^{\infty} e^{-\lambda x} \, dx \\[1em] &= 0 + \frac{1}{\lambda} \cdot \frac{1}{\lambda} \\[1em] &= \frac{1}{\lambda^2} \end{aligned}

Combining the results:

∫0∞x2e−λx dx=2λ⋅1λ2=2λ3\begin{aligned} \int_0^{\infty} x^2 e^{-\lambda x} \, dx &= \frac{2}{\lambda} \cdot \frac{1}{\lambda^2} = \frac{2}{\lambda^3} \end{aligned}

Therefore:

E[X2]=λ⋅2λ3=2λ2\begin{aligned} E[X^2] &= \lambda \cdot \frac{2}{\lambda^3} \\[1em] &= \frac{2}{\lambda^2} \end{aligned}

Computing the variance:

Var(X)=E[X2]−(E[X])2=2λ2−1λ2=1λ2\begin{aligned} \text{Var}(X) &= E[X^2] - (E[X])^2 \\[1em] &= \frac{2}{\lambda^2} - \frac{1}{\lambda^2} \\[1em] &= \frac{1}{\lambda^2} \end{aligned}

For λ=0.5\lambda = 0.5, this gives Var(X)=10.25=4\text{Var}(X) = \frac{1}{0.25} = 4, and the standard deviation is σ=4=2\sigma = \sqrt{4} = 2.

Notice that for the exponential distribution, the standard deviation equals the mean (σ=E[X]=1λ\sigma = E[X] = \frac{1}{\lambda}). This is a unique property of the exponential distribution and reflects its memoryless nature.the variability is proportional to the expected waiting time.

Example: Visualizing Expected Value and Variance

This example illustrates how expected value and variance characterize different aspects of a distribution. Two distributions can have the same mean but vastly different spreads.

VisualizationsOut [6]
CollapseExpand
Narrow normal density with a legend identifying μ=0, σ²=1 and the dashed expected-value line E[X]=0.
Low Variance Distribution (σ²=1): The distribution is tightly concentrated around the mean, indicating low uncertainty. Most observations fall within a narrow range, making predictions more reliable.
Wide normal density with a legend identifying μ=0, σ²=4 and the same dashed expected-value line E[X]=0.
High Variance Distribution (σ²=4): The distribution is widely spread around the same mean, indicating high uncertainty. Observations vary considerably, making individual predictions less reliable despite having the same expected value.

Independence and Conditional Probability

Real-world phenomena rarely occur in isolation. Events influence each other in complex ways. Probability theory provides tools to reason about relationships between events, distinguishing between cases where events are unrelated (independent) and cases where knowledge of one event changes our beliefs about another (dependent).

Two events AA and BB are independent if knowing whether one occurred provides no information about whether the other occurred. Mathematically, independence means that the probability of both events occurring equals the product of their individual probabilities:

P(A∩B)=P(A)⋅P(B)P(A \cap B) = P(A) \cdot P(B)

This reads as: "the probability that both AA and BB occur equals the probability of AA multiplied by the probability of BB."

Independence is a simplifying assumption that appears throughout statistical modeling. When we assume observations are independent, we can multiply their probabilities to compute joint likelihoods, enabling tractable inference in complex models. However, incorrectly assuming independence when dependence exists can lead to underestimating uncertainty and making overconfident predictions.

When events are dependent, we use conditional probability to express how the probability of one event changes given knowledge about another. The conditional probability of event AA given that event BB has occurred is written P(A∣B)P(A|B) and defined as:

P(A∣B)=P(A∩B)P(B)P(A|B) = \frac{P(A \cap B)}{P(B)}

This formula says that the conditional probability equals the probability of both events occurring divided by the probability of the conditioning event. Rearranging this definition gives us the multiplication rule:

P(A∩B)=P(A∣B)⋅P(B)P(A \cap B) = P(A|B) \cdot P(B)

Conditional probability forms the basis for Bayes' theorem, one of the most important results in probability theory and the foundation of Bayesian statistical inference:

P(A∣B)=P(B∣A)⋅P(A)P(B)P(A|B) = \frac{P(B|A) \cdot P(A)}{P(B)}

Bayes' theorem allows us to "invert" conditional probabilities, computing P(A∣B)P(A|B) from P(B∣A)P(B|A). This inversion has many applications: in medical diagnosis, we might know the probability of a positive test given a disease, but we really want the probability of the disease given a positive test. In spam filtering, we observe words in an email and want to compute the probability the email is spam. In machine learning, we observe data and want to infer the probability of different model parameters.

Example: Conditional Probability and Bayes' Theorem

This example demonstrates how conditional probability updates our beliefs based on new information. We simulate a medical testing scenario where Bayes' theorem helps us understand the difference between the probability of a positive test given disease presence and the probability of disease given a positive test.

Let's work through a concrete example step by step. Suppose we have:

  • Prior probability of disease: P(D)=0.01P(D) = 0.01 (1% of the population has the disease)
  • Test sensitivity (true positive rate): P(+∣D)=0.95P(+|D) = 0.95 (95% of sick people test positive)
  • Test specificity (true negative rate): P(−∣¬D)=0.90P(-|\neg D) = 0.90 (90% of healthy people test negative)

From specificity, we can derive the false positive rate:

P(+∣¬D)=1−P(−∣¬D)=1−0.90=0.10P(+|\neg D) = 1 - P(-|\neg D) = 1 - 0.90 = 0.10

Question: If someone tests positive, what is the probability they have the disease?

We want to find P(D∣+)P(D|+) using Bayes' theorem:

P(D∣+)=P(+∣D)⋅P(D)P(+)P(D|+) = \frac{P(+|D) \cdot P(D)}{P(+)}

Step 1: Calculate P(+)P(+) using the law of total probability

The total probability of testing positive considers both paths: having the disease and testing positive, or not having the disease and testing positive (false positive).

P(+)=P(+∣D)⋅P(D)+P(+∣¬D)⋅P(¬D)=0.95×0.01+0.10×0.99=0.0095+0.099=0.1085\begin{aligned} P(+) &= P(+|D) \cdot P(D) + P(+|\neg D) \cdot P(\neg D) \\ &= 0.95 \times 0.01 + 0.10 \times 0.99 \\ &= 0.0095 + 0.099 \\ &= 0.1085 \end{aligned}

Step 2: Apply Bayes' theorem

P(D∣+)=P(+∣D)⋅P(D)P(+)=0.95×0.010.1085=0.00950.1085≈0.0876\begin{aligned} P(D|+) &= \frac{P(+|D) \cdot P(D)}{P(+)} \\ &= \frac{0.95 \times 0.01}{0.1085} \\ &= \frac{0.0095}{0.1085} \\ &\approx 0.0876 \end{aligned}
Notation: ¬\neg means 'not'

In probability and logic, ¬\neg (called "negation" or "not") denotes the complement of an event. So ¬D\neg D means "not D" or "the event D does not occur." In our medical example, ¬D\neg D represents a person who does not have the disease. You may also see this written as DcD^c, Dˉ\bar{D}, or D′D' in different textbooks. They all mean the same thing: the complement of event DD.

Interpretation: Even with a positive test result, the probability of having the disease is only about 8.8%! This counterintuitive result occurs because:

  1. The disease is rare (low prior probability)
  2. The false positive rate (10%) applied to the large healthy population generates many false positives
  3. These false positives "dilute" the true positives

This phenomenon is called the base rate fallacy and highlights why understanding conditional probability is essential for interpreting medical tests, machine learning classifiers, and any diagnostic system.

VisualizationOut [7]
CollapseExpand
Two-bar chart comparing a 1.0% prior probability of disease with an 8.8% posterior probability after a positive medical test.
A positive test raises the estimated probability of disease from the 1% prior prevalence to an 8.8% posterior probability. Despite 95% sensitivity and 90% specificity, most positive results are false positives because the disease is rare.
Understanding Sensitivity and Specificity

Sensitivity (also called the true positive rate) measures how well a test detects the condition when it is present. A sensitivity of 95% means that if 100 people with the disease are tested, 95 will correctly receive a positive result.

Specificity (also called the true negative rate) measures how well a test correctly identifies people without the condition. A specificity of 90% means that if 100 healthy people are tested, 90 will correctly receive a negative result, but 10 will receive a false positive.

Despite the test appearing highly accurate (95% sensitivity, 90% specificity), the posterior probability of having the disease given a positive test is only about 8.8%. This counterintuitive result occurs because the disease is rare (1% prevalence). With 99 healthy people for every 1 sick person, even a 10% false positive rate generates many more false positives than true positives. This example illustrates why screening tests for rare conditions often require confirmation with follow-up testing.

Law of Large Numbers

The Law of Large Numbers is a key result in probability theory, explaining why statistical methods work in practice. It states that as we collect more and more independent observations from a random process, the sample average converges to the expected value (theoretical mean) of the underlying distribution. This theorem justifies using sample statistics to estimate population parameters.

Intuitively, the Law of Large Numbers tells us that randomness "averages out" in the long run. If you flip a fair coin, the proportion of heads might deviate substantially from 50% in small samples, but as you flip the coin thousands or millions of times, the proportion gets arbitrarily close to 50%. This convergence isn't a guarantee that the sample mean will exactly equal the population mean for any finite sample size, but rather that the probability of large deviations decreases as the sample size increases.

This theorem has great importance in statistical practice. It underlies the validity of sample surveys, where we estimate population characteristics from samples. It justifies Monte Carlo simulation methods, where we approximate expectations by averaging over many random samples. It explains why casino gambling is profitable for the house in the long run, despite short-term variability. Every time you compute a sample mean and treat it as an estimate of a population mean, you're implicitly relying on the Law of Large Numbers.

Example: Demonstrating the Law of Large Numbers

This visualization shows how sample averages converge to the population mean as sample size increases. We simulate multiple sequences of coin flips (with probability 0.6 of heads) and track the cumulative average. Despite initial fluctuations, all paths converge toward the true expected value as more observations are collected.

VisualizationOut [8]
CollapseExpand
Five colored cumulative-average paths, identified individually in the legend, fluctuate at small sample sizes and gradually converge toward a dashed line labeled True Mean (μ=0.6).
Five simulated cumulative averages converge toward the population mean μ=0.6 as the sample size grows. Early samples vary substantially, but the paths stabilize around the dashed theoretical reference line as random fluctuations average out.

Central Limit Theorem

While the Law of Large Numbers tells us that sample means converge to population means, the Central Limit Theorem (CLT) tells us something remarkable: regardless of the shape of the underlying distribution, the distribution of sample means approaches a normal distribution as the sample size increases. This result is a common theorems in statistics and gives the basis for much of inferential statistics.

Formally, if X1,X2,…,XnX_1, X_2, \ldots, X_n are independent random variables from any distribution with mean μ\mu and finite variance σ2\sigma^2, then the distribution of the standardized sample mean approaches a standard normal distribution as nn increases:

Xˉ−μσ/n→dN(0,1)\frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \overset{d}{\to} N(0, 1)

Where:

  • Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n}\sum_{i=1}^n X_i is the sample mean
  • μ\mu is the population mean
  • σ\sigma is the population standard deviation
  • nn is the sample size

The Central Limit Theorem explains why the normal distribution appears so frequently in practice. Even when the underlying process doesn't follow a normal distribution, averages and totals often do. Heights, test scores, measurement errors, and countless other phenomena approximately follow normal distributions because they result from combining many small independent effects. This convergence typically occurs quite rapidly; sample sizes of 30 or more often suffice for reasonable normal approximation, even when the underlying distribution is quite non-normal.

The CLT has several practical implications for statistical inference:

  1. Confidence Intervals: When estimating a population mean, the CLT tells us that the sampling distribution of Xˉ\bar{X} is approximately normal. This allows us to construct confidence intervals of the form Xˉ±zα/2⋅σn\bar{X} \pm z_{\alpha/2} \cdot \frac{\sigma}{\sqrt{n}}, where zα/2z_{\alpha/2} is the appropriate critical value from the standard normal distribution. We can make probabilistic statements like "we are 95% confident the true mean lies within this interval" without knowing the exact shape of the population.

    For example, suppose a factory produces light bulbs and we want to estimate the average lifespan. We take a random sample of 100 bulbs and find a sample mean of 1,200 hours with a known population standard deviation of 100 hours. Using the CLT, we know the sampling distribution of the mean is approximately normal. For a 95% confidence interval, we use z0.025=1.96z_{0.025} = 1.96, giving us 1200±1.96×100100=1200±19.61200 \pm 1.96 \times \frac{100}{\sqrt{100}} = 1200 \pm 19.6 hours. We can state that we are 95% confident the true average lifespan of all bulbs lies between 1,180.4 and 1,219.6 hours.

  2. Hypothesis Testing: The CLT enables us to perform z-tests and t-tests for means. Under the null hypothesis, we can calculate how likely our observed sample mean would be if the true mean were some hypothesized value. The test statistic z=Xˉ−μ0σ/nz = \frac{\bar{X} - \mu_0}{\sigma / \sqrt{n}} follows a standard normal distribution, allowing us to compute p-values and make decisions about statistical significance.

    Consider a coffee shop chain that claims their medium cups contain exactly 16 ounces of coffee. A consumer group suspects the cups are underfilled and collects a random sample of 50 cups, finding a sample mean of 15.7 ounces. Assuming the population standard deviation is 0.8 ounces, we can test the null hypothesis H0:μ=16H_0: \mu = 16 against Ha:μ<16H_a: \mu < 16. The test statistic is z=15.7−160.8/50=−0.30.113=−2.65z = \frac{15.7 - 16}{0.8 / \sqrt{50}} = \frac{-0.3}{0.113} = -2.65. Looking up this value in the standard normal table gives a p-value of about 0.004. Since this is less than the typical significance level of 0.05, we reject the null hypothesis and conclude there is strong evidence that the cups contain less than 16 ounces on average.

  3. Quantifying Uncertainty: The standard error σ/n\sigma / \sqrt{n} provides a measure of how much sample means vary from sample to sample. This quantifies the precision of our estimates. Larger samples yield smaller standard errors and more precise estimates.

    To illustrate, imagine polling voters about their support for a candidate. If we survey 100 voters and find 55% support, the standard error is approximately 0.55×0.45/100=0.05\sqrt{0.55 \times 0.45 / 100} = 0.05 or 5 percentage points. If we instead survey 2,500 voters and find the same 55% support, the standard error drops to 0.55×0.45/2500=0.01\sqrt{0.55 \times 0.45 / 2500} = 0.01 or just 1 percentage point. This is why major polls use large sample sizes. The larger sample gives us much more precision in our estimate, even though both samples show the same proportion of support.

  4. Justification for Normal-Theory Methods: ANOVA and regression are among the parametric techniques that assume normality of residuals or sampling distributions. The CLT explains why these methods remain effective even when underlying data are not perfectly normal. We are often working with means or sums of many observations, which are approximately normal regardless of the original distribution.

    For instance, in linear regression we assume that residuals are normally distributed, but this assumption is really about the sampling distribution of coefficient estimates. Even if individual residuals are somewhat skewed, each coefficient estimate is essentially a weighted average of many data points. Thanks to the CLT, these averages tend toward normality as sample size increases. This is why regression analysis often produces reliable results even with moderately non-normal data, as long as the sample size is reasonably large and there are no extreme outliers.

Example: Central Limit Theorem in Action

This visualization demonstrates the remarkable power of the Central Limit Theorem. We start with a highly skewed exponential distribution and show how the distribution of sample means becomes increasingly normal as sample size grows. Even with samples as small as n=5, we see movement toward normality, and by n=30, the distribution of means is nearly perfectly normal despite the non-normal underlying population.

VisualizationsOut [9]
CollapseExpand
Strongly right-skewed exponential population density that starts at one and decays toward zero.
Underlying Exponential Distribution (λ=1): The population distribution is strongly right-skewed with most values near zero and a long tail. This non-normal distribution will be our source population for sampling.
Histogram of means from samples of five exponential observations, showing reduced but visible right skew.
Distribution of Sample Means (n=5): With small samples of size 5, the distribution of means already shows less skewness than the population. The CLT is beginning to work its magic, pulling the distribution toward normality.
Narrow, nearly symmetric histogram of means from samples of 30 with a legend identifying the simulated bars and the dashed normal approximation.
Distribution of Sample Means (n=30): With moderate samples of size 30, the distribution of means is remarkably normal despite the highly skewed population. The legend distinguishes the simulated histogram from the dashed magenta normal approximation.

One more time in the most simple terms, the Central Limit Theorem tells us something remarkable: if you take many samples from any population (regardless of its original shape) and calculate the average of each sample, those averages will form a bell-shaped normal distribution. The larger your samples, the more bell-shaped the distribution of averages becomes. This is why the normal distribution shows up everywhere in statistics: we're often working with averages, and averages tend to be normally distributed even when the underlying data isn't.

Practical Applications

Probability theory finds applications across many domains. In machine learning, probabilistic models are the basis of many algorithms. Logistic regression predicts class probabilities, naive Bayes classifiers use conditional independence assumptions, and Bayesian inference provides a principled framework for learning from data while quantifying uncertainty. Understanding the probabilistic basis of these methods helps us diagnose problems, choose appropriate techniques, and interpret results correctly.

In A/B testing and experimental design, probability theory allows us to determine whether observed differences between treatment groups are statistically significant or merely due to random chance. We use probability distributions to model variation in user behavior, compute p-values to assess evidence against null hypotheses, and construct confidence intervals to quantify uncertainty in estimated effects. The concepts of independence and conditional probability are important for complex experimental setups involving multiple factors or sequential testing.

Risk assessment and decision making rely on probabilistic reasoning. Organizations use probability distributions to model asset returns and calculate value-at-risk measures. Companies use probability models to price policies and manage reserves. Businesses use probabilistic forecasting to manage inventory under uncertainty. In all these applications, expected values guide decisions about average outcomes, while variances and tail probabilities inform risk management strategies.

Quality control and reliability engineering use probability theory to design sampling inspection plans, compute defect rates, and assess system reliability. The binomial distribution models the number of defective items in a sample, the Poisson distribution describes the rate of manufacturing defects, and the exponential distribution characterizes time-to-failure for components. Understanding these probability models enables engineers to design reliable systems and implement effective monitoring procedures.

Limitations and Considerations

While probability theory provides powerful tools for reasoning under uncertainty, it depends on assumptions that may not always hold in practice. The concept of independence, which greatly simplifies probability calculations, rarely holds perfectly in real-world data. Financial returns exhibit dependence over time, survey responses from the same household are correlated, and measurements on the same individual are dependent. Ignoring such dependencies can lead to severe underestimation of uncertainty and overconfident conclusions.

The assignment of probabilities itself raises challenges. In frequentist interpretations, probabilities represent long-run frequencies of repeatable events, but many real-world situations involve unique, non-repeatable events where frequency interpretations don't apply naturally. How do we assign probabilities to one-time events like "this startup will succeed" or "this patient will respond to treatment"? Bayesian approaches offer an alternative interpretation of probability as degree of belief, but this requires specifying prior distributions that may be subjective or difficult to elicit.

The theoretical results we've discussed, particularly the Law of Large Numbers and Central Limit Theorem, require assumptions that need consideration. These theorems assume independence and identically distributed observations, finite variance, and often require sample sizes larger than those available in practice. Real data frequently violate these assumptions through dependence structures, heavy-tailed distributions, or small samples. While the theorems often provide reasonable approximations even when assumptions are mildly violated, we must use judgment in assessing whether asymptotic results apply to our finite-sample situations.

Finally, probability models are always simplifications of reality. The map is not the territory. A probability distribution is a mathematical abstraction that captures certain features of a phenomenon while ignoring others. A normal distribution might adequately describe the center and spread of a dataset while missing important skewness or tail behavior. A Poisson process might model average arrival rates while ignoring time-of-day effects. Good statistical practice requires applying probability models thoughtfully, assessing model fit, checking assumptions, and understanding the limitations of the chosen probabilistic framework.

Summary

Probability theory helps us quantify uncertainty and make inferences from data. Random variables give us a way to represent uncertain quantities, while probability distributions describe the patterns of randomness we observe in different contexts. Expected values and variances summarize the central tendency and spread of distributions.

The concepts of independence and conditional probability allow us to reason about relationships between events and update our beliefs in light of new information. Bayes' theorem formalizes this updating process and underlies Bayesian statistical inference. The Law of Large Numbers guarantees that sample averages converge to population means as sample sizes grow, justifying the use of samples to estimate population parameters. The Central Limit Theorem goes further, explaining why normal distributions appear so ubiquitously and enabling standard inferential procedures even when underlying distributions are non-normal.

These probability concepts are the basis for all of statistical inference and most of machine learning. Understanding them deeply means grasping the intuition and recognizing their application, rather than only memorizing formulas. As we move forward to more advanced topics in statistical modeling, hypothesis testing, and machine learning, we will repeatedly draw upon these fundamental probabilistic ideas.

Quiz

Ready to test your understanding of probability basics? Take this quiz to reinforce what you've learned about random variables, distributions, and fundamental theorems.

Probability Basics Quiz

Question 1 of 100 of 10 completed
What is the key difference between discrete and continuous random variables?
Track your reading progress

Sign in to mark sections as read and track your learning journey

Sign in →
Join the discussion1 comment

Comments

Add to the conversation

A question, a correction, or an example from your own work.

1 comment

  1. Vikas C CMember

    Hey why is all the answers to the quiz option a?

    1. Michael BrenndoerferMember

      Thanks for the feedback, Vikas. They are usually randomly assigned. Thanks for flagging

A different angle
All writing
Machine Learning · Vol. 1

Variable Relationships: Covariance, Correlation

Compare covariance, correlation, and regression for relationships between variables. Covers interpretation, assumptions, pitfalls, and Python examples.

26 min read
Machine Learning · Vol. 1

Data Quality & Outliers: Measurement Error, Missing Data

Assess data quality through measurement error, systematic bias, missing-data mechanisms, and outlier detection. Covers diagnosis, treatment, and validation.

34 min read
Machine Learning · Vol. 1

Statistical Modeling: Overfitting, Bias and Variance

Covers statistical modeling fundamentals, including measuring model fit with R-squared and RMSE.

19 min read

About the author

Reference

Citation details

Cite or share this article.

BIBTEXAcademic
@misc{brenndoerfer2025probabilitybasics, author = {Michael Brenndoerfer}, title = {Probability Basics for Statistical Reasoning}, year = {2025}, url = {https://mbrenndoerfer.com/writing/probability-basics-foundation-statistical-reasoning}, organization = {mbrenndoerfer.com}, note = {Accessed: 2026-10-24} }
APAAcademic
Michael Brenndoerfer (2025). Probability Basics for Statistical Reasoning. Retrieved from https://mbrenndoerfer.com/writing/probability-basics-foundation-statistical-reasoning
MLAAcademic
Michael Brenndoerfer. "Probability Basics for Statistical Reasoning." 2026. Web. October 24, 2026. <https://mbrenndoerfer.com/writing/probability-basics-foundation-statistical-reasoning>.
CHICAGOAcademic
Michael Brenndoerfer. "Probability Basics for Statistical Reasoning." Accessed October 24, 2026. https://mbrenndoerfer.com/writing/probability-basics-foundation-statistical-reasoning.
HARVARDAcademic
Michael Brenndoerfer (2025) 'Probability Basics for Statistical Reasoning'. Available at: https://mbrenndoerfer.com/writing/probability-basics-foundation-statistical-reasoning (Accessed: October 24, 2026).
SimpleBasic
Michael Brenndoerfer (2025). Probability Basics for Statistical Reasoning. https://mbrenndoerfer.com/writing/probability-basics-foundation-statistical-reasoning
Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy