Introductory Statistics Explained: Comprehensive Review

Principles of Data Collection, Sampling, and Study Design

Statistics is fundamentally an empirical discipline dedicated to learning about an unknown underlying reality through the disciplined collection and analysis of data.

The Path Through Introductory Statistics

Populations, Parameters, Samples, and Statistics
  • Individuals (Units / Cases): The distinct entities or objects on which measurements are recorded.
  • Population: The comprehensive collection of all individuals or units of interest. Populations can be finite (e.g., the 2525 children in a specific preschool class) or conceptual/infinite (e.g., all present and future bags of popcorn manufactured by a standardized industrial process).
  • Parameter: A fixed numerical summary describing a population. Parameters are designated using Greek letters (such as the population mean μ\mu and the population variance σ2\sigma^2). In practice, parameters are almost universally unknown because measuring an entire population is impossible, destructive, or prohibitively costly.
  • Sample: A subset of individuals selected from the population that is directly observed.
  • Statistic: A numerical value computed from sample observations. Statistics are designated using Latin letters (such as the sample mean xˉ\bar{x} and sample variance s2s^2). A statistic is a random variable whose observed value serves as a point estimate of an unknown population parameter.

Population and Sample Relationship

Motivating Case Studies in Sampling and Parameters
  • Popcorn Nutritional Claims: In 19941994, the Center for Science in the Public Interest (CSPI) found theatre popcorn loaded with saturated fat. A 20092009 follow-up revealed actual calorie and fat counts exceeded corporate claims. Consider an establishment claiming an average of 920 calories920\,\text{calories} per large untopped bag. Testing a sample of n=8n = 8 bags yields a sample mean of xˉ=1210 calories\bar{x} = 1210\,\text{calories}. Whether this provides conclusive evidence that the true parameter μ>920 calories\mu > 920\,\text{calories} depends on the sampling distribution of the sample mean.
  • Raccoon Pathogen Surveillance: Trapping 210210 wild raccoons in a conservation area near Guelph, Ontario revealed that 20%20\% tested positive for Salmonella on their paws. The 210210 raccoons represent the sample, and 20%20\% is a sample statistic. Defining the target population is challenging: does it encompass all raccoons in Southern Ontario, or solely raccoons prone to entering traps? Trapping behavior may correlate with health status or foraging habits, introducing subtle selection bias.

Sampling Wild Animals in Traps

  • COVID-19 Clinic Projections: During early 20202020, clinic physicians extrapolated the proportion of symptomatic patients testing positive for SARS-CoV-2 directly to the general population of California. Because clinical patients sought testing due to symptoms or known exposures, their positive rate grossly overestimated the general population prevalence.
Bias and Random Sampling Methods

A sampling design is unbiased if the sample values mirror the target population on average, without systematically over- or under-representing specific sub-demographics.

Sampled Population Versus Target Population

Failure Modes of Non-Random Sampling
  • Voluntary Response Bias: Arises when individuals self-select into the sample (e.g., call-in polls on partisan broadcasts or voluntary student course evaluations). Respondents with extreme negative or positive emotions participate disproportionately, while indifferent individuals abstain.
  • Convenience Sampling: Involves sampling units that are easiest to reach, often distorting sample composition relative to the target population.
Probability Sampling Designs
  1. Simple Random Sampling (SRS): A design where every possible sample of size nn has the exact same probability of being selected. Sampling is typically conducted without replacement. If drawing a sample of size nn from a finite population of size NN, the total number of distinct samples is given by the combination formula (Nn)\binom{N}{n}, and the marginal inclusion probability for any individual is nN\frac{n}{N}.

Simple Random Sample Selection

   Worked Small-Population Example: For a population of N=8N = 8 individuals (Mary, Hal, Eddy, Tony, Tom, Pete, Twiddy, Jemmy), there are exactly:

   (83)=8!3!(8−3)!=56\binom{8}{3} = \frac{8!}{3!(8-3)!} = 56

   possible samples of size n=3n = 3. Each combination has a selection probability of 156\frac{1}{56}, and each individual has a selection probability of 38\frac{3}{8}.

  1. Stratified Random Sampling: The population is partitioned into mutually exclusive, internally homogeneous subgroups called strata. Independent simple random samples are drawn within each stratum, and stratum-specific estimates are combined mathematically. Stratification guarantees proportional representation across critical demographic or geographic boundaries and reduces the variance of population parameter estimators compared to an SRS of equivalent total size.

Stratified Random Sampling Across Subgroups

  1. Cluster Sampling: Applied when the population naturally aggregates into heterogeneous units (clusters). Rather than sampling individuals across all clusters, researchers randomly select a subset of clusters, and then survey all (or a sample of) individuals within the chosen clusters. This design reduces logistics costs when sampling geographically dispersed populations.

   Examples: Assessing rubella immunity across schoolchildren by randomly selecting 44 out of 1212 regional schools; surveying ecological features across lake islands by randomly sampling whole lakes (clusters of islands).

  1. Systematic Sampling (Sampling Every kth Unit\text{Sampling Every } k\text{th Unit}): From an ordered list or continuous stream of items, a random starting point within the first kk units is selected, after which every kthk\text{th} subsequent item is included. While operationally convenient in industrial assembly lines or admissions streams, systematic sampling is vulnerable to severe bias if a latent periodicity in the process aligns with the sampling interval kk.

Systematic Sampling With and Without Periodic Effects

Observational Studies Versus Randomized Experiments
  • Response Variable: The primary outcome measured to answer a research question.
  • Explanatory Variable: A factor hypothesized to explain or cause changes in the response variable.
  • Observational Study: Researchers measure variables of interest without assigning treatments or manipulating conditions. Groups are pre-existing.

  Crucial Limitation: Observational studies cannot isolate cause-and-effect relationships due to lurking variables—unmeasured variables related to both the explanatory and response variables that produce spurious associations.

Lurking Variables Confounding Association

  Case Study (Maternal Cocaine Exposure): A study tracked 361361 cocaine-exposed neonates and 387387 unexposed neonates. While exposed infants exhibited lower birth weights (p<0.05\text{p} < 0.05), maternal cocaine usage was confounded with socioeconomic status, nutritional deficit, alcohol intake, and prenatal medical care.

  • Randomized Controlled Experiment: Researchers actively impose specific treatments on experimental units via random assignment.

  Mechanism of Randomization: Random allocation ensures that all lurking variables—both known and unmeasured—are balanced across treatment groups at baseline up to random chance. Observed differences in the response variable can therefore be attributed directly to the experimental treatments.

  Case Study (Caloric Restriction in Mice): An experiment randomly assigned n=338n = 338 mice across 66 distinct nutritional regimens: a standard unrestricted lab diet (NP\text{NP}) and five progressively restricted diets (R1\text{R1}, R2\text{R2}, R3\text{R3}, R4\text{R4}, R5\text{R5}). Lifespans in months showed systematic increases with caloric restriction, establishing a causal relationship between diet restriction and longevity.

  • Confounding: Two variables are confounded when their individual effects on the response variable cannot be distinguished. Confounding arises from non-randomized observational studies, poorly constructed factorial experiments, or static temporal comparisons (e.g., comparing educational test scores across successive school years, where cohort differences, exam difficulty, and curricular changes are inextricably blended).

  • Causal Inference Criteria in Observational Frameworks: Establishing causality from observational data requires rigorous triangulation: consistent replication across diverse demographics, strong biological/mechanistic plausibility, dose-response gradients, and alignment with natural experiments (e.g., examining ground temperatures after air traffic groundings following September 11, or evaluating state-level employment shifts across contiguous borders following local minimum wage hikes).

Principles of Sample Size and Study Reliability
  • Absolute Sample Size Governs Precision: The reliability and margin of error of a sample statistic depend almost entirely on the absolute sample size nn, not on the sampling fraction nN\frac{n}{N}, provided the population size NN is substantially larger than the sample (N>10nN > 10n or N>20nN > 20n). A random sample of n=1000n = 1000 individuals selected from a nation of 300 million300\,\text{million} provides virtually the same statistical precision as n=1000n = 1000 drawn from a city of 100,000100,000.
  • Sample Size Cannot Cure Bias: Large sample sizes shrink sampling variability but do not reduce systematic bias. An enormous sample drawn via a biased design yields a very precise, highly confident, yet completely incorrect conclusion.
  • Unequal Sample Sizes: Comparing groups with disparate sample sizes (e.g., n1=126n_1 = 126 versus n2=50n_2 = 50) is statistically valid provided appropriate variance models are applied.
  • Publication Bias and Replicability: Empirical literature exhibits publication bias because novel, statistically significant findings (p<0.05\text{p} < 0.05) are accepted for publication far more frequently than null results. Replicating findings across independent labs is essential to verify genuine scientific effects.

Descriptive Statistics: Visualizing and Summarizing Data

Descriptive statistics provides numerical and graphical methods to summarize the central features, spread, and shape of observed data.

Categorical Data Summaries

A categorical (qualitative) variable allocates individuals into mutually exclusive qualitative groups.

  • Nominal Variables: Categories have no inherent rank or order (e.g., blood types A,B,AB,O\text{A}, \text{B}, \text{AB}, \text{O}; modes of transport).
  • Ordinal Variables: Categories possess an inherent progression (e.g., gun calibers categorized as Small, Medium, Large; survey scales ranging from Strongly Disagree to Strongly Agree).
  • Frequency: The raw count of observations in category ii.
  • Relative Frequency: The proportion of total observations belonging to category ii:

Relative Frequency=Frequencyn\text{Relative Frequency} = \frac{\text{Frequency}}{n}

  • Percent Relative Frequency: Relative Frequency×100%\text{Relative Frequency} \times 100\%.
Case Study: Road Rage Victim Transport Modes (Hamburg, Germany)

A clinical study assessed n=108n = 108 physical assault road rage victims:

Transportation MethodFrequencyRelative FrequencyPercent Relative Frequency
Pedestrian303030108≈0.278\frac{30}{108} \approx 0.27827.8%27.8\%
Cyclist161616108≈0.148\frac{16}{108} \approx 0.14814.8%14.8\%
Motorist545454108=0.500\frac{54}{108} = 0.50050.0%50.0\%
Public Transport888108≈0.074\frac{8}{108} \approx 0.0747.4%7.4\%
Total1081.000100.0%

Bar Chart of Transportation Modes

Bar charts depict category proportions through lengths along a standardized scale. Pie charts encode proportions through two-dimensional angular slices. Human visual perception judges linear differences along a shared axis with substantially higher accuracy than angular areas, making bar charts superior for comparative analysis.

Comparing Groups: Gun Buyback Programs (Milwaukee)

Comparing gun calibers surrendered during a city buyback program against guns recovered from homicides and suicides demonstrates how categorical distributions differ across contexts:

CaliberBuybacksHomicidesSuicides
Small71971975754040
Medium1821822022027272
Large202040401313

Side-by-Side and Stacked Bar Charts of Gun Calibers

Citizens selectively surrendered inexpensive, small-caliber firearms (78%78\% small) to collect financial incentives, while criminal homicides involved predominantly medium-caliber weapons (64%64\% medium).

Quantitative Data Summaries

Quantitative variables represent numeric measurements where standard arithmetic operations are meaningful.

Frequency Tables and Histograms

To construct a frequency table, the numeric domain is partitioned into contiguous, non-overlapping intervals called classes or bins of uniform width:

Class Width≈Maximum−MinimumNumber of Classes\text{Class Width} \approx \frac{\text{Maximum} - \text{Minimum}}{\text{Number of Classes}}

  • Cumulative Frequency: The count of observations falling in a given class or any lower class.
  • Cumulative Relative Frequency: The cumulative frequency divided by the sample size nn.

Worked Example (Midterm Exam Scores, n=40n = 40):

Scores: 21,32,32,33,37,39,41,44,46,48,48,48,54,55,57,57,63,64,65,65,66,67,67,69,69,71,72,72,73,73,75,77,77,78,82,87,87,88,94,9721, 32, 32, 33, 37, 39, 41, 44, 46, 48, 48, 48, 54, 55, 57, 57, 63, 64, 65, 65, 66, 67, 67, 69, 69, 71, 72, 72, 73, 73, 75, 77, 77, 78, 82, 87, 87, 88, 94, 97.

Class BoundariesFrequencyRelative FrequencyCumulative FrequencyCumulative Relative Frequency
20–2920\text{--}29110.0250.025110.0250.025
30–3930\text{--}39550.1250.125660.1500.150
40–4940\text{--}49660.1500.15012120.3000.300
50–5950\text{--}59440.1000.10016160.4000.400
60–6960\text{--}69990.2250.22525250.6250.625
70–7970\text{--}79990.2250.22534340.8500.850
80–8980\text{--}89440.1000.10038380.9500.950
90–9990\text{--}99220.0500.05040401.0001.000

Exam Score Histogram

Histograms plot bin frequencies (or relative frequencies) as contiguous vertical bars against bin intervals. Bin width selection is critical: too many bins produce noisy, jagged plots; too few bins obscure structural features.

Effect of Class Bin Width

Structural Characteristics of Distributions
  1. Modality: The number of prominent peaks in the distribution. Distributions can be unimodal (one peak), bimodal (two peaks), or multimodal. Bimodality frequently signals that data from two distinct sub-populations have been pooled together.
  2. Symmetry and Skewness:
    • Symmetric: The left and right halves form approximate mirror images.
    • Right-Skewed (Positively Skewed): Characterized by a long tail extending toward higher positive values. Commonly seen in variables with a hard physical lower bound (such as zero) but no restrictive upper bound (e.g., survival times, housing prices, individual wealth).
    • Left-Skewed (Negatively Skewed): Characterized by a long tail extending toward lower values. Arises when data cluster near an upper limit with occasional small values (e.g., scores on an easy exam) or due to specific pathological mechanisms (e.g., human birth weights, where premature births form an extended lower tail).

Symmetric, Right-Skewed, and Left-Skewed Distributions

  1. Outliers: Isolated observations that lie far from the central pattern of the data.
Additional Visual Displays
  • Empirical Cumulative Distribution Function (eCDF): Plots the running proportion of sample observations less than or equal to xx, forming a non-decreasing step function from 00 to 11.

Empirical Cumulative Distribution Function

  • Time Plots: Sequential line charts displaying quantitative values against chronological time. Useful for identifying temporal trends, structural regime shifts, and ecological collapses (e.g., Newfoundland northern cod harvests dropping toward zero prior to the 19921992 moratorium).

Newfoundland Northern Cod Catch Time Series

  • Stemplots (Stem-and-Leaf Displays): Tabular arrangements where each value is split into a leading digit (stem) and trailing digit (leaf). Stemplots retain raw data values while approximating the shape of a histogram on its side. Stemplots require an explicit key/legend detailing the placement of the decimal point relative to the stem.
Numerical Measures of Central Tendency
  • Sample Mean (xˉ\bar{x}): The arithmetic balance point of all observations:

xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^n x_i}{n}

  • Median: The physical middle observation when values are ordered from smallest to largest. If nn is odd, it is the value at rank n+12\frac{n+1}{2}. If nn is even, it is the arithmetic average of the two middle values at ranks n2\frac{n}{2} and n2+1\frac{n}{2} + 1.
  • Mode: The most frequently occurring value in the sample. For continuous variables, it corresponds to the modal class containing the highest frequency.
Sensitivity to Extreme Values

The mean incorporates the numerical magnitude of every observation, making it sensitive to extreme values and skewness. The median depends on rank order, making it resistant to outliers.

Comparative Example (Oldest NHL Players, n=5n = 5):

Ages: 33,34,34,35,3733, 34, 34, 35, 37.

xˉ=33+34+34+35+375=34.6 years\bar{x} = \frac{33 + 34 + 34 + 35 + 37}{5} = 34.6\,\text{years}

Median=34 years,Mode=34 years\text{Median} = 34\,\text{years}, \quad \text{Mode} = 34\,\text{years}

If the maximum value had been recorded erroneously as 370370 instead of 3737, the median remains 3434, whereas the sample mean becomes:

xˉ=33+34+34+35+3705=101.2 years\bar{x} = \frac{33 + 34 + 34 + 35 + 370}{5} = 101.2\,\text{years}

Relationship Between Mean, Median, and Distribution Shape
  • Symmetric Distributions: The mean and median are equal: Mean=Median\text{Mean} = \text{Median}.
  • Right-Skewed Distributions: Extreme high values pull the mean into the right tail, resulting in: Mean>Median\text{Mean} > \text{Median}.
  • Left-Skewed Distributions: Extreme low values pull the mean into the left tail, resulting in: Mean<Median\text{Mean} < \text{Median}.

Case Study (Guinea Pig Lifetimes, n=60n = 60): In guinea pigs inoculated with tubercle bacilli, the survival times are right-skewed, yielding a median of 214.5 days214.5\,\text{days} and a mean of 241.2 days241.2\,\text{days}.

Alternative Measures of Center
  • Geometric Mean: (∏i=1nxi)1/n\left(\prod_{i=1}^n x_i\right)^{1/n}
  • Harmonic Mean: n∑i=1n1xi\frac{n}{\sum_{i=1}^n \frac{1}{x_i}}
  • Trimmed Mean: Computes the arithmetic mean after removing a fixed percentage (e.g., 5%5\% or 10%10\%) of the lowest and highest observations, reducing sensitivity to outliers.
Numerical Measures of Dispersion (Variability)
  • Range: Range=Maximum−Minimum\text{Range} = \text{Maximum} - \text{Minimum}
  • Deviations from the Mean: The directed differences (xi−xˉ)(x_i - \bar{x}). The sum of deviations about the sample mean is identically zero for any dataset:

∑i=1n(xi−xˉ)=∑i=1nxi−nxˉ=nxˉ−nxˉ=0\sum_{i=1}^n (x_i - \bar{x}) = \sum_{i=1}^n x_i - n\bar{x} = n\bar{x} - n\bar{x} = 0

  • Mean Absolute Deviation (MAD): Measures the average linear distance from the mean:

MAD=∑i=1n∣xi−xˉ∣n\text{MAD} = \frac{\sum_{i=1}^n |x_i - \bar{x}|}{n}

  • Sample Variance (s2s^2): The average squared deviation using n−1n-1 degrees of freedom:

s2=∑i=1n(xi−xˉ)2n−1=∑i=1nxi2−(∑i=1nxi)2nn−1s^2 = \frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n - 1} = \frac{\sum_{i=1}^n x_i^2 - \frac{(\sum_{i=1}^n x_i)^2}{n}}{n - 1}

  • Sample Standard Deviation (ss): The positive square root of the variance, restoring units to the original measurement scale:

s=s2=∑i=1n(xi−xˉ)2n−1s = \sqrt{s^2} = \sqrt{\frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n - 1}}

Degrees of Freedom and the n−1n-1 Denominator

Using nn in the denominator creates a sample variance that systematically underestimates the true population variance σ2\sigma^2. Because the sample mean xˉ\bar{x} mathematically minimizes the sum of squared differences ∑(xi−c)2\sum (x_i - c)^2 across any choice of cc, the sample sum of squares satisfies:

∑i=1n(xi−xˉ)2<∑i=1n(xi−μ)2\sum_{i=1}^n (x_i - \bar{x})^2 < \sum_{i=1}^n (x_i - \mu)^2

Dividing by n−1n-1 inflates the denominator by a factor of nn−1\frac{n}{n-1}, exactly correcting this negative bias and making s2s^2 an unbiased estimator of σ2\sigma^2. The denominator n−1n-1 reflects the degrees of freedom—the number of independent pieces of information remaining after estimating the single parameter μ\mu with xˉ\bar{x}.

Interpreting the Standard Deviation
  • The Empirical Rule: For unimodal, symmetric, bell-shaped (approximately normal) distributions:

    • Approximately 68.3%68.3\% of observations lie within 11 standard deviation: xˉ±1s\bar{x} \pm 1s
    • Approximately 95.4%95.4\% of observations lie within 22 standard deviations: xˉ±2s\bar{x} \pm 2s
    • Approximately 99.7%99.7\% of observations lie within 33 standard deviations: xˉ±3s\bar{x} \pm 3s
    • The full data range typically spans between 4s4s and 6s6s.
  • Chebyshev's Inequality: For any distribution regardless of shape, the proportion of observations lying within kk standard deviations of the mean (k>1k > 1) is at least:

1−1k21 - \frac{1}{k^2}

  • For k=2k = 2: at least 1−14=0.751 - \frac{1}{4} = 0.75 (75%75\%) of observations lie within xˉ±2s\bar{x} \pm 2s.
  • For k=3k = 3: at least 1−19≈0.8891 - \frac{1}{9} \approx 0.889 (88.9%88.9\%) of observations lie within xˉ±3s\bar{x} \pm 3s.
Linear Transformations

A linear transformation transforms a variable xx into x∗x^* via:

x∗=a+bxx^* = a + bx

Applying this transformation affects summary statistics as follows:

  • Measures of Center and Position: Transform directly by applying the function:

xˉ∗=a+bxˉ,Median∗=a+b(Median)\bar{x}^* = a + b\bar{x}, \quad \text{Median}^* = a + b(\text{Median})

  • Measures of Spread: Are invariant to the additive constant aa and scale by the magnitude of bb:

sx∗=∣b∣sx,sx∗2=b2sx2,IQRx∗=∣b∣IQRxs_{x^*} = |b|s_x, \quad s_{x^*}^2 = b^2 s_x^2, \quad \text{IQR}_{x^*} = |b|\text{IQR}_x

Temperature Conversion Example (Death Valley, July 2021):

Converting Fahrenheit (xx) to Celsius (x∗x^*) via x∗=−1609+59xx^* = -\frac{160}{9} + \frac{5}{9}x:

  • Mean: 116.4∘F  ⟹  −1609+59(116.4)=46.9∘C116.4^\circ\text{F} \implies -\frac{160}{9} + \frac{5}{9}(116.4) = 46.9^\circ\text{C}
  • Median: 117.0∘F  ⟹  −1609+59(117.0)=47.2∘C117.0^\circ\text{F} \implies -\frac{160}{9} + \frac{5}{9}(117.0) = 47.2^\circ\text{C}
  • Standard Deviation: 3.1∘F  ⟹  59(3.1)=1.72∘C3.1^\circ\text{F} \implies \frac{5}{9}(3.1) = 1.72^\circ\text{C}
  • Variance: 3.12=9.61  ⟹  (59)2(9.61)=2.96 (∘C)23.1^2 = 9.61 \implies \left(\frac{5}{9}\right)^2(9.61) = 2.96\,(^\circ\text{C})^2
Measures of Relative Standing
Standardized Scores (zz-Scores)

A zz-score indicates how many standard deviations an individual observation xix_i falls above or below the mean:

zi=xi−xˉsz_i = \frac{x_i - \bar{x}}{s}

Because zi=−xˉs+(1s)xiz_i = -\frac{\bar{x}}{s} + \left(\frac{1}{s}\right)x_i, a set of zz-scores is a linear transformation with a=−xˉsa = -\frac{\bar{x}}{s} and b=1sb = \frac{1}{s}. As a consequence:

zˉ=−xˉs+(1s)xˉ=0,sz=∣1s∣s=1\bar{z} = -\frac{\bar{x}}{s} + \left(\frac{1}{s}\right)\bar{x} = 0, \quad s_z = \left|\frac{1}{s}\right|s = 1

zz-scores are dimensionless quantities. Under empirical normality, zz-scores outside [−3,3][-3, 3] represent extreme outliers.

Comparative Height Example: Adult American male heights follow μ≈176.3 cm,σ≈7.6 cm\mu \approx 176.3\,\text{cm}, \sigma \approx 7.6\,\text{cm}.

  • Barack Obama (185 cm185\,\text{cm}): z=185−176.37.6≈+1.1z = \frac{185 - 176.3}{7.6} \approx +1.1
  • Shaquille O'Neal (216 cm216\,\text{cm}): z=216−176.37.6≈+5.2z = \frac{216 - 176.3}{7.6} \approx +5.2
  • Danny DeVito (147 cm147\,\text{cm}): z=147−176.37.6≈−3.9z = \frac{147 - 176.3}{7.6} \approx -3.9
Percentiles, Quartiles, and Boxplots

The kthk\text{th} percentile is the value such that k%k\% of the ordered data values fall at or below it.

  • Quartiles:
    • First Quartile (Q1Q_1): 25th25\text{th} percentile
    • Second Quartile (Q2Q_2): 50th50\text{th} percentile (the median)
    • Third Quartile (Q3Q_3): 75th75\text{th} percentile
  • Interquartile Range (IQR): IQR=Q3−Q1\text{IQR} = Q_3 - Q_1. A robust measure of spread.
  • Five-Number Summary: Minimum, Q1Q_1, Median, Q3Q_3, Maximum.
Boxplot Construction Rules
  1. Draw a central box extending from Q1Q_1 to Q3Q_3, with a line across the box at the median.
  2. Compute the step fences: Lower Fence=Q1−1.5×IQR\text{Lower Fence} = Q_1 - 1.5 \times \text{IQR}; Upper Fence=Q3+1.5×IQR\text{Upper Fence} = Q_3 + 1.5 \times \text{IQR}.
  3. Draw the lower whisker to the smallest sample observation that is ≥Q1−1.5×IQR\ge Q_1 - 1.5 \times \text{IQR}.
  4. Draw the upper whisker to the largest sample observation that is ≤Q3+1.5×IQR\le Q_3 + 1.5 \times \text{IQR}.
  5. Plot any observations outside these fences individually as outliers.

Annotated Boxplot Anatomy

Worked Boxplot Calculation: Sample of n=9n = 9 values: 112,114,120,126,134,139,142,159,179112, 114, 120, 126, 134, 139, 142, 159, 179.

  • Minimum = 112112, Q1=120Q_1 = 120, Median = 134134, Q3=142Q_3 = 142, Maximum = 179179
  • IQR=142−120=22\text{IQR} = 142 - 120 = 22
  • Lower Fence: 120−1.5(22)=87120 - 1.5(22) = 87. Smallest observation ≥87\ge 87 is 112112 (lower whisker endpoint).
  • Upper Fence: 142+1.5(22)=175142 + 1.5(22) = 175. Largest observation ≤175\le 175 is 159159 (upper whisker endpoint).
  • Value 179>175179 > 175 is identified and plotted as an outlier.

Atlantic Puffin Surface Count Displays

Advanced Displays: Jittered Boxplots and Violin Plots
  • Jittered Boxplot: Superimposes raw data points onto the boxplot with minor random horizontal noise to reveal local point densities.
  • Violin Plot: Uses kernel density estimation to depict the continuous probability profile of the data. Violin plots can distinguish between uniform spreads and bimodal distributions that share identical five-number summaries.

Violin Plots Comparing Regimens

Probability Foundations and Theoretical Frameworks

Probability provides the mathematical foundation for quantifying uncertainty in statistical inference.

Interpretations of Probability
  • Frequentist Interpretation: The probability of an event is the limiting relative frequency with which it occurs in an infinite sequence of identical, independent trials:

P(A)=lim⁡N→∞nANP(A) = \lim_{N \to \infty} \frac{n_A}{N}

  • Bayesian Interpretation: Probability represents a subjective degree of belief regarding an outcome or proposition, updated systematically as new evidence emerges.
Sample Spaces, Events, and Set Operations
  • Sample Space (SS): The set of all possible mutually exclusive and collectively exhaustive outcomes of an experiment. Can be discrete finite, countably infinite, or continuous.
  • Sample Point: An individual elementary outcome in SS.
  • Event: Any subset of the sample space SS.
  • Equally Likely Outcomes: If a discrete sample space contains NN equally likely sample points, the probability of event AA is:

P(A)=Number of sample points in ANP(A) = \frac{\text{Number of sample points in } A}{N}

Fundamental Probability Axioms and Set Relations
  1. For any event AA, 0≤P(A)≤10 \le P(A) \le 1.
  2. For the entire sample space, P(S)=1P(S) = 1.
  3. Intersection (A∩BA \cap B): The event that both AA and BB occur simultaneously.
  4. Mutually Exclusive (Disjoint) Events: Two events are mutually exclusive if they share no sample points: A∩B=∅A \cap B = \emptyset, implying P(A∩B)=0P(A \cap B) = 0.
  5. Union (A∪BA \cup B): The event that either AA occurs, BB occurs, or both occur.

Union and Intersection Venn Diagram

  1. General Addition Rule:

P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)

  1. Complement (AcA^c): The event that AA does not occur. Since A∪Ac=SA \cup A^c = S and A∩Ac=∅A \cap A^c = \emptyset:

P(Ac)=1−P(A)P(A^c) = 1 - P(A)

Diagnostic Medical Comorbidity Example

Consider a population where 10%10\% have diabetes (DD), 30%30\% have hypertension (HH), and 7%7\% have both:

  • P(D)=0.10,P(H)=0.30,P(D∩H)=0.07P(D) = 0.10, \quad P(H) = 0.30, \quad P(D \cap H) = 0.07
  • Diabetes only: P(D∩Hc)=P(D)−P(D∩H)=0.10−0.07=0.03P(D \cap H^c) = P(D) - P(D \cap H) = 0.10 - 0.07 = 0.03
  • Hypertension only: P(Dc∩H)=P(H)−P(D∩H)=0.30−0.07=0.23P(D^c \cap H) = P(H) - P(D \cap H) = 0.30 - 0.07 = 0.23
  • Union: P(D∪H)=0.10+0.30−0.07=0.33P(D \cup H) = 0.10 + 0.30 - 0.07 = 0.33
  • Neither condition: P((D∪H)c)=1−0.33=0.67P((D \cup H)^c) = 1 - 0.33 = 0.67
  • Exactly one condition: P(D∩Hc)+P(Dc∩H)=0.03+0.23=0.26P(D \cap H^c) + P(D^c \cap H) = 0.03 + 0.23 = 0.26

Comorbidity Venn Diagram Decomposition

Conditional Probability and Independence
Conditional Probability Formula

The conditional probability of event AA given that event BB has occurred (P(B)>0P(B) > 0) represents the probability of AA within the reduced sample space defined by BB:

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

Worked Example: Using the diabetes-hypertension population:

P(H∣D)=P(H∩D)P(D)=0.070.10=0.70P(H \mid D) = \frac{P(H \cap D)}{P(D)} = \frac{0.07}{0.10} = 0.70

Knowing an individual has diabetes increases the probability that they also have hypertension from 0.300.30 to 0.700.70.

Independence of Events

Events AA and BB are independent if and only if:

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

When P(A)>0P(A) > 0 and P(B)>0P(B) > 0, this is mathematically equivalent to:

P(A∣B)=P(A)andP(B∣A)=P(B)P(A \mid B) = P(A) \quad \text{and} \quad P(B \mid A) = P(B)

If AA and BB are independent, then their complements are also pairwise independent: (A,Bc)(A, B^c), (Ac,B)(A^c, B), and (Ac,Bc)(A^c, B^c).

Warning Regarding Mutual Exclusivity and Independence: Mutually exclusive events with positive probabilities cannot be independent. If A∩B=∅A \cap B = \emptyset, then P(A∩B)=0P(A \cap B) = 0, whereas P(A)P(B)>0P(A)P(B) > 0. If event AA occurs, event BB cannot occur (P(B∣A)=0P(B \mid A) = 0), demonstrating complete dependency.

The Multiplication Rule and Applications

Rearranging the conditional probability identity gives the general multiplication rule:

P(A∩B)=P(A)P(B∣A)=P(B)P(A∣B)P(A \cap B) = P(A)P(B \mid A) = P(B)P(A \mid B)

For three events A,B,CA, B, C:

P(A∩B∩C)=P(A)P(B∣A)P(C∣A∩B)P(A \cap B \cap C) = P(A)P(B \mid A)P(C \mid A \cap B)

Sampling Without Replacement (Urn Problem)

An urn contains 3 red3\,\text{red} and 6 blue6\,\text{blue} balls (9 total9\,\text{total}). Two balls are drawn sequentially without replacement:

P(R1∩R2)=P(R1)P(R2∣R1)=39×28=672=112P(R_1 \cap R_2) = P(R_1)P(R_2 \mid R_1) = \frac{3}{9} \times \frac{2}{8} = \frac{6}{72} = \frac{1}{12}

If three balls are drawn without replacement:

P(R1∩R2∩R3)=39×28×17=6504=184P(R_1 \cap R_2 \cap R_3) = \frac{3}{9} \times \frac{2}{8} \times \frac{1}{7} = \frac{6}{504} = \frac{1}{84}

Urn Probability Tree Diagram

Multi-Stage Demographic Intersection

Calculating the probability that a randomly chosen Canadian is a senior grandparent living in Alberta:

  • Probability lives in Alberta (AA): P(A)=0.12P(A) = 0.12
  • Probability senior given lives in Alberta (E∣AE \mid A): P(E∣A)=0.14P(E \mid A) = 0.14
  • Probability grandparent given senior in Alberta (G∣A∩EG \mid A \cap E): P(G∣A∩E)=0.78P(G \mid A \cap E) = 0.78

P(A∩E∩G)=P(A)P(E∣A)P(G∣A∩E)=0.12×0.14×0.78=0.013104P(A \cap E \cap G) = P(A)P(E \mid A)P(G \mid A \cap E) = 0.12 \times 0.14 \times 0.78 = 0.013104

Reliability in Engineering Systems
  • Parallel Redundancy: A satellite guidance system incorporates three independent parallel components, each with a failure probability of p=0.02p = 0.02. The system functions as long as at least one component operates:

P(System Operates)=1−P(All 3 Fail)=1−(0.02)3=1−0.000008=0.999992P(\text{System Operates}) = 1 - P(\text{All } 3 \text{ Fail}) = 1 - (0.02)^3 = 1 - 0.000008 = 0.999992

  • Series Configuration: A string of 2020 older holiday lights is wired in series; if any bulb fails, the circuit opens. If each bulb has an independent failure probability of p=0.03p = 0.03:

P(String Functions)=P(All 20 Function)=(1−0.03)20=(0.97)20≈0.5438P(\text{String Functions}) = P(\text{All } 20 \text{ Function}) = (1 - 0.03)^{20} = (0.97)^{20} \approx 0.5438

The Law of Total Probability and Bayes' Theorem

Let B1,B2,…,BkB_1, B_2, \dots, B_k form a partition of the sample space SS (mutually exclusive and collectively exhaustive events, so ∑P(Bi)=1\sum P(B_i) = 1).

  • Law of Total Probability: For any event AA:

P(A)=∑i=1kP(A∩Bi)=∑i=1kP(Bi)P(A∣Bi)P(A) = \sum_{i=1}^k P(A \cap B_i) = \sum_{i=1}^k P(B_i)P(A \mid B_i)

  • Bayes' Theorem: Inverts the conditioning to update the prior probability P(Bj)P(B_j) to the posterior probability P(Bj∣A)P(B_j \mid A):

P(Bj∣A)=P(Bj∩A)P(A)=P(Bj)P(A∣Bj)∑i=1kP(Bi)P(A∣Bi)P(B_j \mid A) = \frac{P(B_j \cap A)}{P(A)} = \frac{P(B_j)P(A \mid B_j)}{\sum_{i=1}^k P(B_i)P(A \mid B_i)}

Case Study: Rare Disease Diagnostic Screening

A disease has a population prevalence of 0.5%0.5\% (P(D)=0.005P(D) = 0.005, P(Dc)=0.995P(D^c) = 0.995). A test provides a true positive rate (sensitivity) of 94%94\% (P(T∣D)=0.94P(T \mid D) = 0.94) and a false positive rate of 2%2\% (P(T∣Dc)=0.02P(T \mid D^c) = 0.02).

  1. Probability an individual tests positive (P(T)P(T)) via the Law of Total Probability:

P(T)=P(D)P(T∣D)+P(Dc)P(T∣Dc)=(0.005)(0.94)+(0.995)(0.02)=0.0047+0.0199=0.0246P(T) = P(D)P(T \mid D) + P(D^c)P(T \mid D^c) = (0.005)(0.94) + (0.995)(0.02) = 0.0047 + 0.0199 = 0.0246

  1. Probability an individual who tests positive actually has the disease via Bayes' Theorem:

P(D∣T)=P(D)P(T∣D)P(T)=0.00470.0246≈0.191P(D \mid T) = \frac{P(D)P(T \mid D)}{P(T)} = \frac{0.0047}{0.0246} \approx 0.191

Despite testing positive on a test with 94%94\% sensitivity, the probability of having the disease is only 19.1%19.1\%. Because the disease is rare, false positives (0.01990.0199) outnumber true positives (0.00470.0047) by more than four to one.

Case Study: Factory Defect Source Attribution

Three machines manufacture parts for a factory:

  • Machine 1: makes 60%60\% of parts (P(M1)=0.60P(M_1) = 0.60); defect rate 7%7\% (P(D∣M1)=0.07P(D \mid M_1) = 0.07)
  • Machine 2: makes 30%30\% of parts (P(M2)=0.30P(M_2) = 0.30); defect rate 15%15\% (P(D∣M2)=0.15P(D \mid M_2) = 0.15)
  • Machine 3: makes 10%10\% of parts (P(M3)=0.10P(M_3) = 0.10); defect rate 30%30\% (P(D∣M3)=0.30P(D \mid M_3) = 0.30)
  1. Overall probability a randomly selected part is defective:

P(D)=(0.60)(0.07)+(0.30)(0.15)+(0.10)(0.30)=0.042+0.045+0.030=0.117P(D) = (0.60)(0.07) + (0.30)(0.15) + (0.10)(0.30) = 0.042 + 0.045 + 0.030 = 0.117

  1. Probability a defective part originated from Machine 1:

P(M1∣D)=P(M1)P(D∣M1)P(D)=0.0420.117≈0.359P(M_1 \mid D) = \frac{P(M_1)P(D \mid M_1)}{P(D)} = \frac{0.042}{0.117} \approx 0.359

Combinatorial Counting Rules
  • Fundamental Counting Principle: If a process comprises kk successive stages with n1,n2,…,nkn_1, n_2, \dots, n_k possible choices, there are ∏i=1kni\prod_{i=1}^k n_i total pathways.
  • Factorial: The number of ways to arrange nn distinct items:

n!=n(n−1)(n−2)⋯(2)(1),with 0!=1n! = n(n-1)(n-2)\cdots(2)(1), \quad \text{with } 0! = 1

  • Permutations: The number of ordered arrangements of xx items chosen from nn distinct items:

Pxn=n!(n−x)!P^n_x = \frac{n!}{(n - x)!}

  Bus Driver Example: Assigning 44 drivers from a pool of 99 to 44 distinct routes:

  P49=9!(9−4)!=362880120=3024P^9_4 = \frac{9!}{(9 - 4)!} = \frac{362880}{120} = 3024

  • Combinations: The number of unordered selections of xx items chosen from nn distinct items:

Cxn=(nx)=n!x!(n−x)!C^n_x = \binom{n}{x} = \frac{n!}{x!(n - x)!}

  Anti-Doping Example: Selecting 44 athletes from 6060:

  (604)=60!4!56!=60×59×58×5724=487635\binom{60}{4} = \frac{60!}{4!56!} = \frac{60 \times 59 \times 58 \times 57}{24} = 487635

  Lotto 6/49 Example: Drawing 66 winning numbers from 4949:

  (496)=49!6!43!=13983816  ⟹  P(Jackpot)=113983816\binom{49}{6} = \frac{49!}{6!43!} = 13983816 \implies P(\text{Jackpot}) = \frac{1}{13983816}

The Law of Large Numbers and the Fallacy of "Evening Out"
  • The Law of Large Numbers (LLN): As the number of independent, identically distributed trials n→∞n \to \infty, the empirical sample proportion p^n\hat{p}_n converges in probability to the true theoretical probability pp:

P(∣p^n−p∣<ϵ)→1as n→∞P(|\hat{p}_n - p| < \epsilon) \to 1 \quad \text{as } n \to \infty

  • Misconception (Gambler's Fallacy): The law of large numbers does not operate via compensatory mechanics. Nature does not generate tails to balance an early run of heads. Early imbalances are not cancelled; they are simply diluted by the denominator as the number of trials increases.
  • Divergence of Absolute Differences: While the relative proportion Headsn\frac{\text{Heads}}{n} converges to 0.50.5, the absolute difference ∣Heads−Tails∣|\text{Heads} - \text{Tails}| typically drifts outward on the order of n\sqrt{n}.

Convergence of Proportions and Absolute Disparity

Coin Betting Simulation: Two players wager $1\$1 on the outcome of a fair coin. Over 100,000 tosses100,000\,\text{tosses}, Player B leads by $608\$608 (heads count = 4969649696, tails count = 5030450304). Although the empirical proportion of tails (0.503040.50304) is close to 0.50.5, Player A faces an absolute loss of $608\$608. The probability that two bettors remain within a fixed dollar boundary ($100,$500,$1000\$100, \$500, \$1000) decreases toward zero as the number of trials increases.

Continuous Probability Distributions

Continuous random variables assume any value across a real interval, modeling quantities such as time, weight, concentration, and length.

Properties of Continuous Distributions

Every continuous random variable XX is characterized by a continuous probability density function (PDF), denoted f(x)f(x).

  1. Height is Not Probability: The vertical coordinate f(x)f(x) represents density, not probability.
  2. Probabilities Correspond to Areas: Probability over an interval [a,b][a, b] is given by the integral of the PDF:

P(a≤X≤b)=∫abf(x) dxP(a \le X \le b) = \int_a^b f(x)\,dx

Probability as Area Under Density Function

  1. Probability of a Single Point is Zero: Because a single mathematical point has width zero, the area above it is zero:

P(X=c)=∫ccf(x) dx=0for any constant cP(X = c) = \int_c^c f(x)\,dx = 0 \quad \text{for any constant } c

   Consequently, boundary inclusion does not alter probabilities for continuous distributions:

P(a≤X≤b)=P(a<X≤b)=P(a≤X<b)=P(a<X<b)P(a \le X \le b) = P(a < X \le b) = P(a \le X < b) = P(a < X < b)

  1. Non-negativity: The density function cannot fall below the horizontal axis: f(x)≥0f(x) \ge 0 for all xx.
  2. Total Area Equals One:

∫−∞∞f(x) dx=1\int_{-\infty}^{\infty} f(x)\,dx = 1

  1. Cumulative Distribution Function (CDF): Gives the cumulative area to the left of xx:

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

   By the Fundamental Theorem of Calculus, the PDF is the first derivative of the CDF:

f(x)=ddxF(x)f(x) = \frac{d}{dx}F(x)

  1. kthk\text{th} Percentile: The value xkx_k such that the area to its left under the PDF equals k100\frac{k}{100}:

F(xk)=∫−∞xkf(t) dt=k100F(x_k) = \int_{-\infty}^{x_k} f(t)\,dt = \frac{k}{100}

  1. Expected Value (Theoretical Mean): Represents the physical center of mass of the density:

E(X)=μ=∫−∞∞xf(x) dxE(X) = \mu = \int_{-\infty}^{\infty} x f(x)\,dx

  1. Variance:

Var(X)=σ2=E((X−μ)2)=∫−∞∞(x−μ)2f(x) dx=E(X2)−(E(X))2\text{Var}(X) = \sigma^2 = E((X - \mu)^2) = \int_{-\infty}^{\infty} (x - \mu)^2 f(x)\,dx = E(X^2) - (E(X))^2

   where E(X2)=∫−∞∞x2f(x) dxE(X^2) = \int_{-\infty}^{\infty} x^2 f(x)\,dx.

Worked Integration Example

Consider the parameterized density function:

f(x)={cx2for 1<x<20elsewheref(x) = \begin{cases} cx^2 & \text{for } 1 < x < 2 \\ 0 & \text{elsewhere} \end{cases}

  1. Find constant cc:

∫12cx2 dx=1  ⟹  c[x33]12=1  ⟹  c(83−13)=1  ⟹  73c=1  ⟹  c=37\int_1^2 c x^2\,dx = 1 \implies c \left[ \frac{x^3}{3} \right]_1^2 = 1 \implies c \left( \frac{8}{3} - \frac{1}{3} \right) = 1 \implies \frac{7}{3}c = 1 \implies c = \frac{3}{7}

  1. Compute P(X<1.5)P(X < 1.5):

P(X<1.5)=∫11.537x2 dx=[x37]11.5=(1.5)3−137=3.375−17=2.3757≈0.3393P(X < 1.5) = \int_1^{1.5} \frac{3}{7}x^2\,dx = \left[ \frac{x^3}{7} \right]_1^{1.5} = \frac{(1.5)^3 - 1^3}{7} = \frac{3.375 - 1}{7} = \frac{2.375}{7} \approx 0.3393

  1. Derive the CDF, F(x)F(x):

    • For x≤1x \le 1: F(x)=0F(x) = 0
    • For 1<x<21 < x < 2: F(x)=∫1x37t2 dt=[t37]1x=x3−17F(x) = \int_1^x \frac{3}{7}t^2\,dt = \left[ \frac{t^3}{7} \right]_1^x = \frac{x^3 - 1}{7}
    • For x≥2x \ge 2: F(x)=1F(x) = 1
  2. Determine the 75th75\text{th} percentile (aa):

F(a)=0.75  ⟹  a3−17=0.75  ⟹  a3−1=5.25  ⟹  a3=6.25  ⟹  a=(6.25)1/3≈1.8420F(a) = 0.75 \implies \frac{a^3 - 1}{7} = 0.75 \implies a^3 - 1 = 5.25 \implies a^3 = 6.25 \implies a = (6.25)^{1/3} \approx 1.8420

  1. Calculate the expected value (E(X)E(X)):

E(X)=∫12x(37x2) dx=37∫12x3 dx=37[x44]12=37(16−14)=4528≈1.6071E(X) = \int_1^2 x \left(\frac{3}{7}x^2\right)\,dx = \frac{3}{7} \int_1^2 x^3\,dx = \frac{3}{7} \left[ \frac{x^4}{4} \right]_1^2 = \frac{3}{7} \left( \frac{16 - 1}{4} \right) = \frac{45}{28} \approx 1.6071

Special Continuous Probability Distributions
The Continuous Uniform Distribution

A continuous uniform random variable X∼Unif(L,U)X \sim \text{Unif}(L, U) has constant probability density over a bounded interval [L,U][L, U].

Uniform Distribution PDF and CDF

  • Probability Density Function:

f(x)={1U−Lfor L≤x≤U0elsewheref(x) = \begin{cases} \frac{1}{U - L} & \text{for } L \le x \le U \\ 0 & \text{elsewhere} \end{cases}

  • Cumulative Distribution Function:

F(x)={0for x<Lx−LU−Lfor L≤x≤U1for x>UF(x) = \begin{cases} 0 & \text{for } x < L \\ \frac{x - L}{U - L} & \text{for } L \le x \le U \\ 1 & \text{for } x > U \end{cases}

  • Moments:

μ=L+U2,σ2=(U−L)212\mu = \frac{L + U}{2}, \quad \sigma^2 = \frac{(U - L)^2}{12}

Worked Example (X∼Unif(100,150)X \sim \text{Unif}(100, 150)): Here L=100,U=150L = 100, U = 150, so f(x)=150=0.02f(x) = \frac{1}{50} = 0.02 for 100≤x≤150100 \le x \le 150.

  • Mean and Median: μ=Median=100+1502=125\mu = \text{Median} = \frac{100 + 150}{2} = 125
  • P(85≤X≤137.25)=P(100≤X≤137.25)=(137.25−100)×0.02=0.745P(85 \le X \le 137.25) = P(100 \le X \le 137.25) = (137.25 - 100) \times 0.02 = 0.745
  • P(X>130)=(150−130)×0.02=0.40P(X > 130) = (150 - 130) \times 0.02 = 0.40
  • P(113.2≤X≤127.4)=(127.4−113.2)×0.02=14.2×0.02=0.284P(113.2 \le X \le 127.4) = (127.4 - 113.2) \times 0.02 = 14.2 \times 0.02 = 0.284
  • 17th17\text{th} Percentile (aa): a−10050=0.17  ⟹  a=100+50(0.17)=108.5\frac{a - 100}{50} = 0.17 \implies a = 100 + 50(0.17) = 108.5
The Normal (Gaussian) Distribution

The normal distribution X∼N(μ,σ2)X \sim N(\mu, \sigma^2) is symmetric, unimodal, and bell-shaped.

  • Probability Density Function:

f(x)=12πσe−12σ2(x−μ)2for −∞<x<∞f(x) = \frac{1}{\sqrt{2\pi}\sigma} e^{-\frac{1}{2\sigma^2}(x - \mu)^2} \quad \text{for } -\infty < x < \infty

  • Parameters: Mean μ∈(−∞,∞)\mu \in (-\infty, \infty) controls distribution location; standard deviation σ>0\sigma > 0 controls spread. The curve exhibits inflection points at x=μ−σx = \mu - \sigma and x=μ+σx = \mu + \sigma.
  • Standard Normal Distribution (Z∼N(0,1)Z \sim N(0, 1)): A normal distribution with μ=0\mu = 0 and σ=1\sigma = 1. The linear transformation:

Z=X−μσZ = \frac{X - \mu}{\sigma}

converts any normal random variable XX into a standard normal variable ZZ.

Standard Normal Distribution Curve

Worked Clinical Example (Infant Arm Length): Upper arm length in one-year-old American girls follows X∼N(16.1,1.32)X \sim N(16.1, 1.3^2).

  1. Find P(X<18.0)P(X < 18.0).
    • Standardize: z=18.0−16.11.3=1.91.3≈1.462z = \frac{18.0 - 16.1}{1.3} = \frac{1.9}{1.3} \approx 1.462
    • Using the standard normal CDF: P(Z<1.462)≈0.9281P(Z < 1.462) \approx 0.9281
  2. Determine the 20th20\text{th} percentile.
    • Find zz such that Φ(z)=0.20\Phi(z) = 0.20, which yields z≈−0.8416z \approx -0.8416.
    • Unstandardize: x=μ+zσ=16.1+(−0.8416)(1.3)=16.1−1.094=15.006 cmx = \mu + z\sigma = 16.1 + (-0.8416)(1.3) = 16.1 - 1.094 = 15.006\,\text{cm}.
The Chi-Square (χ2\chi^2) Distribution
  • Mathematical Origin: If Z1,Z2,…,ZνZ_1, Z_2, \dots, Z_\nu are independent standard normal random variables (Zi∼N(0,1)Z_i \sim N(0, 1)), then the sum of their squares follows a chi-square distribution with ν\nu degrees of freedom:

X=∑i=1νZi2∼χ2(ν)X = \sum_{i=1}^\nu Z_i^2 \sim \chi^2(\nu)

  • Probability Density Function:

f(x)={12ν/2Γ(ν/2)x(ν/2)−1e−x/2for x≥00elsewheref(x) = \begin{cases} \frac{1}{2^{\nu/2}\Gamma(\nu/2)} x^{(\nu/2) - 1} e^{-x/2} & \text{for } x \ge 0 \\ 0 & \text{elsewhere} \end{cases}

  • Moments: Mean μ=ν\mu = \nu, variance σ2=2ν\sigma^2 = 2\nu.
  • Shape: Right-skewed for all finite ν\nu. As ν→∞\nu \to \infty, the distribution approaches a normal distribution by the Central Limit Theorem.

Chi-Square Distributions Across Degrees of Freedom

Student's tt Distribution
  • Mathematical Origin: Arises as the ratio of an independent standard normal random variable ZZ to the square root of an independent chi-square variable U∼χ2(ν)U \sim \chi^2(\nu) divided by its degrees of freedom:

T=ZU/ν∼t(ν)T = \frac{Z}{\sqrt{U/\nu}} \sim t(\nu)

  • Application: When sampling nn observations from a normal distribution N(μ,σ2)N(\mu, \sigma^2), the sample variance S2S^2 estimates the unknown parameter σ2\sigma^2. The standardized statistic follows a tt distribution with ν=n−1\nu = n - 1 degrees of freedom:

Xˉ−μS/n∼t(n−1)\frac{\bar{X} - \mu}{S/\sqrt{n}} \sim t(n - 1)

  • Properties: Symmetric about 00. Has heavier tails and a lower central peak than the standard normal distribution. As ν→∞\nu \to \infty, t(ν)→N(0,1)t(\nu) \to N(0, 1).
  • Moments: Mean μ=0\mu = 0 (for ν>1\nu > 1; undefined for ν=1\nu = 1). Variance σ2=νν−2\sigma^2 = \frac{\nu}{\nu - 2} (for ν>2\nu > 2; infinite for 1<ν≤21 < \nu \le 2; undefined for ν≤1\nu \le 1).

Student's t Distribution Versus Standard Normal

Snedecor's FF Distribution
  • Mathematical Origin: Formed by the ratio of two independent chi-square random variables, each divided by its respective degrees of freedom:

F=U1/ν1U2/ν2∼F(ν1,ν2)F = \frac{U_1 / \nu_1}{U_2 / \nu_2} \sim F(\nu_1, \nu_2)

  where U1∼χ2(ν1)U_1 \sim \chi^2(\nu_1) and U2∼χ2(ν2)U_2 \sim \chi^2(\nu_2).

  • Application: Used in hypothesis tests comparing two population variances. If independent samples of size n1n_1 and n2n_2 are drawn from normal populations with equal variances (σ12=σ22\sigma_1^2 = \sigma_2^2), the ratio of sample variances follows an FF distribution:

S12S22∼F(n1−1,n2−1)\frac{S_1^2}{S_2^2} \sim F(n_1 - 1, n_2 - 1)

  • Moments and Properties: Positive domain (x≥0x \ge 0), right-skewed. The mean is:

μ=ν2ν2−2for ν2>2\mu = \frac{\nu_2}{\nu_2 - 2} \quad \text{for } \nu_2 > 2

  When ν1=ν2\nu_1 = \nu_2, the median is exactly 11.

F Distributions Across Varying Degrees of Freedom

Model Diagnostics: Quantile-Quantile (QQ) Plots

Quantile-Quantile plots provide a graphical diagnostic to assess whether sample data originate from a specific theoretical distribution.

Normal Quantile-Quantile Diagnostic Plot

Construction of a QQ Plot
  1. Sort the sample observations in ascending order: x(1)≤x(2)≤⋯≤x(n)x_{(1)} \le x_{(2)} \le \dots \le x_{(n)}.
  2. Compute corresponding theoretical quantiles from the comparison distribution (e.g., standard normal) by partitioning the theoretical distribution into n+1n+1 equal probability segments (using probabilities in+1\frac{i}{n+1} for i=1,…,ni = 1, \dots, n).
  3. Plot the ordered sample values x(i)x_{(i)} against the theoretical quantiles qiq_i.
Diagnostic Interpretation of Normal QQ Plots
  • Conformity with Normality: The points cluster tightly along a straight line.
  • Right Skewness: Points curve upward away from the line at both ends. Extreme large values lie above the reference line, while small values are compressed upward.
  • Left Skewness: Points curve downward away from the line at both ends.
  • Heavy Tails (Compared to Normal): Points exhibit an S-shaped curve: the smallest observations fall below the line (more negative than expected), while the largest observations fall above the line (more positive than expected).
  • Light Tails (Compared to Normal): Points exhibit an inverse S-curve: extreme observations fall closer to the center than predicted by a normal distribution.

Sampling Distributions and the Central Limit Theorem

Statistical inference uses sample statistics to draw conclusions about population parameters. Because sample statistics vary from sample to sample, they are random variables governed by their own probability distributions.

The Sampling Distribution of a Statistic

The sampling distribution of a statistic is the theoretical probability distribution that describes the values the statistic would take across all possible independent samples of the same size nn drawn from the target population.

Conceptual Representation of Repeated Sampling

Introductory Class Age Example

Consider an instructor with a class of N=16N = 16 students with the following ages in months: 234,241,233,227,251,227,242,239,241,238,230,246,231,243,238,276234, 241, 233, 227, 251, 227, 242, 239, 241, 238, 230, 246, 231, 243, 238, 276.

The true population mean is:

μ=383616=239.8 months\mu = \frac{3836}{16} = 239.8\,\text{months}

If the registrar releases only the sample mean of n=3n = 3 randomly selected students:

  • Sample A (individuals 3,6,153, 6, 15 with ages 233,227,238233, 227, 238) yields xˉ=232.67\bar{x} = 232.67
  • Sample B (individuals 5,15,165, 15, 16 with ages 251,238,276251, 238, 276) yields xˉ=255.00\bar{x} = 255.00

There are (163)=560\binom{16}{3} = 560 possible distinct samples of size 33. Simulating 1,000,0001,000,000 independent random samples of size n=3n = 3 produces a histogram of sample means that approximates the exact theoretical sampling distribution, centered at μ=239.8 months\mu = 239.8\,\text{months}.

Sampling Distribution of 1,000,000 Sample Means

Properties of the Sample Mean (Xˉ\bar{X})

Let X1,X2,…,XnX_1, X_2, \dots, X_n be an independent, identically distributed random sample drawn from an infinite (or very large) population with mean μ\mu and variance σ2\sigma^2. The sample mean is:

Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n} \sum_{i=1}^n X_i

Mathematical Derivations of Expected Value and Variance

Mathematical Derivation of Mean and Variance of X-bar

  1. Expected Value (E(Xˉ)E(\bar{X})): Applying the linearity of expectation:

E(Xˉ)=E(X1+X2+⋯+Xnn)=1n∑i=1nE(Xi)=1n(nμ)=μE(\bar{X}) = E\left(\frac{X_1 + X_2 + \dots + X_n}{n}\right) = \frac{1}{n} \sum_{i=1}^n E(X_i) = \frac{1}{n} (n\mu) = \mu

   Because E(Xˉ)=μE(\bar{X}) = \mu, the sample mean is an unbiased estimator of the population mean.

  1. Variance (Var(Xˉ)\text{Var}(\bar{X})): Using the property that Var(aX)=a2Var(X)\text{Var}(aX) = a^2 \text{Var}(X) and that the variance of the sum of independent random variables equals the sum of their variances:

Var(Xˉ)=Var(1n∑i=1nXi)=(1n)2∑i=1nVar(Xi)=1n2(nσ2)=σ2n\text{Var}(\bar{X}) = \text{Var}\left(\frac{1}{n} \sum_{i=1}^n X_i\right) = \left(\frac{1}{n}\right)^2 \sum_{i=1}^n \text{Var}(X_i) = \frac{1}{n^2} (n\sigma^2) = \frac{\sigma^2}{n}

  1. Standard Deviation of Xˉ\bar{X}:

σXˉ=Var(Xˉ)=σn\sigma_{\bar{X}} = \sqrt{\text{Var}(\bar{X})} = \frac{\sigma}{\sqrt{n}}

   As the sample size nn increases, the spread of the sampling distribution decreases at a rate proportional to 1n\frac{1}{\sqrt{n}}.

Estimator Comparison and Efficiency
  • Standard Error (SE(Xˉ)SE(\bar{X})): In practice, the true population standard deviation σ\sigma is almost always unknown. The standard error is the sample estimate of the standard deviation of the sampling distribution:

SE(Xˉ)=snSE(\bar{X}) = \frac{s}{\sqrt{n}}

  where ss is the sample standard deviation.

  • Efficiency: An estimator is more efficient than another if it has smaller variance across samples of the same size.
  • Mean versus Median for a Normal Population: When sampling from a normal population, both the sample mean Xˉ\bar{X} and the sample median are unbiased estimators of μ\mu. However, the variance of the sample median is substantially larger than the variance of the sample mean. The sample mean achieves the Cramér-Rao Lower Bound, meaning no unbiased estimator of μ\mu can have lower variance.
Sampling from a Normally Distributed Population

If the population distribution is normal (X∼N(μ,σ2)X \sim N(\mu, \sigma^2)), then the sampling distribution of the sample mean is exactly normal for any sample size nn:

Xˉ∼N(μ,σ2n)\bar{X} \sim N\left(\mu, \frac{\sigma^2}{n}\right)

Standardizing yields:

Z=Xˉ−μσ/n∼N(0,1)Z = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \sim N(0, 1)

Worked Example: Fast Food Sodium Content

Burger sodium content follows X∼N(980,502) mgX \sim N(980, 50^2)\,\text{mg}.

Single Burger Versus 4-Burger Sodium Distributions

  1. Single Burger (n=1n = 1): Probability sodium exceeds 1000 mg1000\,\text{mg}:

z=1000−98050=2050=0.40z = \frac{1000 - 980}{50} = \frac{20}{50} = 0.40

P(X>1000)=P(Z>0.40)=1−Φ(0.40)=1−0.6554=0.3446P(X > 1000) = P(Z > 0.40) = 1 - \Phi(0.40) = 1 - 0.6554 = 0.3446

  1. Sample of Four Burgers (n=4n = 4): Probability the sample mean Xˉ\bar{X} exceeds 1000 mg1000\,\text{mg}. The standard deviation of Xˉ\bar{X} is:

σXˉ=504=25 mg\sigma_{\bar{X}} = \frac{50}{\sqrt{4}} = 25\,\text{mg}

z=1000−98025=2025=0.80z = \frac{1000 - 980}{25} = \frac{20}{25} = 0.80

P(Xˉ>1000)=P(Z>0.80)=1−Φ(0.80)=1−0.7881=0.2119P(\bar{X} > 1000) = P(Z > 0.80) = 1 - \Phi(0.80) = 1 - 0.7881 = 0.2119

The Central Limit Theorem (CLT)
Formal Statement

Let X1,X2,…,XnX_1, X_2, \dots, X_n be independent and identically distributed random variables drawn from any arbitrary distribution having finite mean μ\mu and finite variance σ2\sigma^2. As the sample size nn increases toward infinity, the standardized sample mean converges in distribution to the standard normal distribution:

Zn=Xˉ−μσ/n→dN(0,1)as n→∞Z_n = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}} \xrightarrow{d} N(0, 1) \quad \text{as } n \to \infty

This implies that for sufficiently large nn:

Xˉ≈N(μ,σ2n)\bar{X} \approx N\left(\mu, \frac{\sigma^2}{n}\right)

Implications and Rate of Convergence
  • The theorem holds regardless of whether the underlying population is discrete or continuous, symmetric or skewed, unimodal, bimodal, or multimodal.
  • The required sample size nn depends on the shape of the underlying population:
    • For symmetric, roughly bell-shaped parent distributions, Xˉ\bar{X} is approximately normal even for small sample sizes (n=4n = 4 or n=10n = 10).
    • For moderately skewed distributions, the sample mean is typically well approximated by a normal distribution once n>30n > 30.
    • For heavily skewed or heavy-tailed distributions, larger samples (n=50n = 50, 100100, or more) are required to eliminate skewness.

CLT Convergence from an Exponential Distribution

Worked Example (Post-Operative Hospital Stays): Cesarean hospital stays have a mean of μ=4.2 days\mu = 4.2\,\text{days} and standard deviation of σ=1.5 days\sigma = 1.5\,\text{days}. The distribution of individual stays is right-skewed and discrete (measured in whole days).

  1. For a single patient (n=1n = 1), P(X≤4.0)P(X \le 4.0) cannot be determined without knowing the full probability distribution.
  2. For a sample of n=100n = 100 patients, the Central Limit Theorem applies:

Xˉ≈N(4.2,1.52100)=N(4.2,0.0225),σXˉ=1.5100=0.15 days\bar{X} \approx N\left(4.2, \frac{1.5^2}{100}\right) = N(4.2, 0.0225), \quad \sigma_{\bar{X}} = \frac{1.5}{\sqrt{100}} = 0.15\,\text{days}

z=4.0−4.20.15=−0.20.15≈−1.333z = \frac{4.0 - 4.2}{0.15} = \frac{-0.2}{0.15} \approx -1.333

P(Xˉ≤4.0)=P(Z≤−1.333)=Φ(−1.333)≈0.0912P(\bar{X} \le 4.0) = P(Z \le -1.333) = \Phi(-1.333) \approx 0.0912

Questions & Discussion

Dialogue on the Abstract Nature of the Sample Mean
  • Question/Prompt: "Isn’t my sample mean just a number?"
  • Response: In any single study, the sample mean is indeed an observed number. However, that number is a single realization drawn from an underlying conceptual sampling distribution—the distribution of all possible sample mean values that could have been obtained across all potential random samples of size nn.
  • Question/Prompt: "Seems kind of abstract."
  • Response: It is conceptual, but this framework is what enables researchers to quantify how close an estimate is to the true population parameter and to construct confidence intervals.
Dialogue on Probability and Determinism
  • Question/Prompt: "What’s next? Some events with 00 probability can happen?"
  • Response: In continuous probability distributions, the probability of any single exact value occurring is zero (P(X=c)=0P(X = c) = 0), yet an outcome must occur. Probabilities are defined over intervals rather than individual points.
  • Question/Prompt: "I’m tired of all these confusing mathematical exceptions and oddities… this works almost surely but you never know because maybe a mosquito in Havana is about to sneeze. Even if our probability experiment is not directly repeatable, we can conceptualize an infinite number of realities splitting out from this point, and say that the probability of something happening is the proportion of those infinite realities in which that thing occurs."
  • Response: This perspective connects to philosophical questions regarding determinism and the nature of randomness. When events cannot be repeated in practice, probabilities can be interpreted through degrees of belief (Bayesian) or theoretical ensembles of parallel scenarios.
Dialogue on Distinguishing Diagram Types
  • Question/Prompt: "I don't get it [the distinction between Venn and Euler diagrams]."
  • Response: A Venn diagram illustrates all possible intersections between sets regardless of whether those intersections contain elements, while an Euler diagram displays only intersections that are non-empty or possible under the given constraints.
Dialogue on Sample Size versus Population Size
  • Question/Prompt: "A sample of 10001000 individuals from a population of a billion can be informative? That's only 0.0001%0.0001\% of the population."
  • Response: It is the absolute sample size nn that governs statistical precision, not the fraction of the population sampled. As long as the population is large relative to the sample, the standard error σn\frac{\sigma}{\sqrt{n}} depends only on nn, not on the population size NN.
Dialogue on the Practice of Statistics
  • Question/Prompt: "So we finally get to calculate means and stuff?"
  • Response: Calculation is handled by software. The primary discipline of statistics consists of choosing appropriate analytical designs, evaluating assumptions, understanding data collection limitations, and correctly communicating findings within a framework of uncertainty.
  • Question/Prompt: "Why don’t we just manipulate the data and analysis to suit our agenda?"
  • Response: The core purpose of statistics is objective truth-seeking under conditions of uncertainty, whereas manipulating data compromises scientific validity.