PS1007 YT#2 Inferential Statistics, Distributions, and Population Parameter Estimation

Fundamentals of Inferential Statistics: Populations, Samples, and Estimations

  • Inferential statistics is a branch of statistics that enables researchers to make conclusions, predictions, or inferences about an entire population based on empirical data collected from a sample.

  • Population and sample definitions:

    • A population is the entire group of individuals, objects, or units of interest in an investigation (for example, the height of all adults residing in The United States, or all 240,000,000,000240{,}000{,}000{,}000 cells composing a human liver).

    • A sample is a smaller, carefully selected subset drawn from the population that is directly observed and measured (for example, a selected group of 150150 adults from The United States, or 55 individual liver cells).

  • Theoretical rationale for inferential sampling:

    • Because researchers rarely possess the time, budget, or resources required to measure every single member of a population, sampling provides an efficient mechanism for drawing population-level conclusions.

    • Sample-derived statistics serve as estimates of true population parameters, establishing findings that can be replicated across future experimental trials.

  • Connection to machine learning:

    • A finite sample of observations acts as a training dataset in machine learning workflows.

    • The continuous mathematical distribution representing the population corresponds to the ground-truth function or pattern that a machine learning model aims to predict and generalize.

Probability Distributions and Continuous Curve Modeling

  • Nature and purpose of statistical distributions:

    • A statistical distribution illustrates how the probabilities of measurements or observations are distributed across possible values.

    • Elevated peaks on a distribution indicate regions of high probability where measurements are most likely to occur.

    • Depressed troughs or tails indicate regions of low probability where measurements are rare (such as extremely tall or extremely short individuals).

  • Construction and mechanics of histograms:

    • Histograms organize raw data by grouping measurements into sequential intervals known as bins.

    • Measurement sequence example for human height:

    • First measurement: 5.2 feet5.2\,\text{feet}, placed into a bin spanning from 5 feet5\,\text{feet} to 5.5 feet5.5\,\text{feet}.

    • Second measurement: 5.8 feet5.8\,\text{feet}.

    • Third measurement: 5.6 feet5.6\,\text{feet}.

    • Fourth measurement: 5.9 feet5.9\,\text{feet}.

    • Fifth measurement: 5.1 feet5.1\,\text{feet}.

    • Sixth measurement: 6.3 feet6.3\,\text{feet}.

    • Aggregating stacked measurements into bins demonstrates that the vast majority of human heights cluster between 5 feet5\,\text{feet} and 6 feet6\,\text{feet}, while values strictly below 5 feet5\,\text{feet} or strictly above 6 feet6\,\text{feet} occur with low frequency.

  • Effects of bin size refinement:

    • Reducing bin widths (for example, cutting bin widths in half) increases the precision and detail of the distribution.

    • Finer bins permit more precise probabilistic statements, such as identifying that half of all sampled individuals measure between 5.25 feet5.25\,\text{feet} and 5.75 feet5.75\,\text{feet}.

    • Combining larger sample sizes with smaller bin dimensions yields a progressively more accurate and precise depiction of the underlying population.

  • Advantages of continuous mathematical curves over empirical histograms:

    • Unobserved bin probabilities: When empirical sample histograms have empty bins containing zero observed counts, a continuous curve can interpolate and provide a valid theoretical probability rather than assuming that the outcome is impossible.

    • Resolution independence: Histograms are bound to discrete bin boundaries. A mathematical curve allows exact probability calculations across arbitrary intervals (such as the probability of observing a height between 5.021 feet5.021\,\text{feet} and 5.317 feet5.317\,\text{feet}) through calculus or computational numerical integration without requiring bin-edge rounding.

    • Resource and cost efficiency: Constructing an approximate curve based on sample summary statistics (specifically the mean and standard deviation) saves significant time and money compared to measuring large populations directly.

Parametric Distribution Families: Normal, Exponential, and Gamma

  • The Normal (Gaussian) Distribution:

    • Characterized by a symmetrical, bell-shaped geometry commonly known as a bell-shaped curve.

    • The vertical axis (yy-axis) represents the relative probability of observing a measurement, while the horizontal axis represents the measurement values.

    • The curve is centered symmetrically over the average (mean) value.

  • Determinants of normal curve geometry:

    • Exactly two parameters define a normal distribution:

    • Mean (average): Determines the central location of the distribution along the horizontal axis.

    • Standard deviation (SDSD): Determines the horizontal width and spread of the distribution around the mean.

    • Inverse relationship between width and height: As the standard deviation increases, the curve widens horizontally and flattens vertically; as the standard deviation decreases, the curve narrows horizontally and grows taller to preserve total probability.

  • Case study: Newborn infant height vs. adult male height:

    • Newborn infant distribution:

    • Mean: 20 inches20\,\text{inches}.

    • Standard deviation: 0.6 inches0.6\,\text{inches}.

    • High probability interval: Most newborn infants measure between 19 inches19\,\text{inches} and 21 inches21\,\text{inches}.

    • Geometry: Extremely tall and narrow because infants have a restricted range of height possibilities.

    • Adult male distribution:

    • Mean: 70 inches70\,\text{inches}.

    • Standard deviation: 4 inches4\,\text{inches}.

    • Spread: Adult heights routinely span between 60 inches60\,\text{inches} and 80 inches80\,\text{inches}.

    • Geometry: Shorter and wider because the broader spectrum of adult height possibilities lowers the relative probability of observing any single specific measurement.

  • The 95%95\% empirical rule for normal distributions:

    • Exactly 95%95\% of all observations within a normal distribution fall within plus or minus two standard deviations (±2 SD\pm 2\,SD) of the mean.

    • Infant application: 95%95\% of newborn heights fall within 20±(2×0.6)=20±1.2 inches20 \pm (2 \times 0.6) = 20 \pm 1.2\,\text{inches} (18.8 inches18.8\,\text{inches} to 21.2 inches21.2\,\text{inches}), indicating a high probability of measuring an infant within 1.2 inches1.2\,\text{inches} of the infant mean.

    • Adult application: 95%95\% of adult heights fall within 70±(2×4)=70±8 inches70 \pm (2 \times 4) = 70 \pm 8\,\text{inches} (62 inches62\,\text{inches} to 78 inches78\,\text{inches}), indicating a very low probability of measuring an adult within 1.2 inches1.2\,\text{inches} of the adult mean.

  • Natural prevalence and the Central Limit Theorem:

    • Normal distributions naturally describe numerous variables, including human heights, body weights, and commuting times.

    • The fundamental mathematical driver behind the frequent emergence of the normal distribution in empirical settings is the Central Limit Theorem.

  • Alternative continuous distribution families:

    • Exponential distribution: Governed by a single rate parameter (for example, a population rate of 0.10.1).

    • Gamma distribution: Governed by two population parameters: a shape parameter and a rate parameter.

Population Parameters vs. Sample Estimates and Reproducibility

  • Population parameters defined:

    • Population parameters are fixed numerical characteristics that define the probability distribution of an entire population.

    • Examples include the population mean, the population standard deviation (population SDSD), the population rate (in exponential distributions), and the population shape and rate (in gamma distributions).

  • Empirical case study: mRNA transcript counts in liver cells:

    • Experimental setup: Counting gene X mRNA transcripts across individual liver cells (conceptually parallel to counting green apples across all stores in a grocery retail chain or green t-shirts across clothing stores).

    • Population magnitude: A human liver contains approximately 240,000,000,000240{,}000{,}000{,}000 individual cells.

    • Ground-truth population distribution: A normal distribution with a population mean of 2020 and a population standard deviation of 1010.

  • Probability calculations: Empirical histogram vs. continuous distribution:

    • Histogram method: Calculating the probability of observing a cell with 3030 or more mRNA transcripts:

    • Number of cells with ≥30\ge 30 transcripts: 38,000,000,00038{,}000{,}000{,}000.

    • Total number of liver cells: 240,000,000,000240{,}000{,}000{,}000.

    • Empirical probability: 38,000,000,000240,000,000,000=0.16\frac{38{,}000{,}000{,}000}{240{,}000{,}000{,}000} = 0.16.

    • Continuous curve method: Calculating the probability of observing a cell with 3030 or more mRNA transcripts:

    • Area under the normal curve for values ≥30\ge 30: 0.160.16.

    • Total area beneath the normal curve: 11.

    • Theoretical probability: 0.161=0.16\frac{0.16}{1} = 0.16.

    • Perfect agreement between the empirical fraction (0.160.16) and the curve's area (0.160.16) confirms that the normal curve provides an accurate model of the data.

  • Sample parameter estimation and sampling error:

    • Measuring all 240,000,000,000240{,}000{,}000{,}000 units is generally impossible, requiring parameter estimation from small samples.

    • Initial sample of 55 cells (n=5n = 5) with counts: 33, 1313, 1919, 2424, and 2929:

    • Estimated population mean: 17.617.6.

    • Estimated population standard deviation: 10.110.1.

    • Replicate experiment using 55 new cells (n=5n = 5):

    • Estimated population mean: 19.219.2.

    • Estimated population standard deviation: 12.712.7.

    • Because random samples contain sampling error, estimates vary across experimental runs and differ from the true parameters (mean=20\text{mean} = 20, standard deviation=10\text{standard deviation} = 10).

  • Sample size dynamics and parameter convergence:

    • Sample size n=2n = 2: Estimated mean = 1111; estimated standard deviation = 11.311.3 (the estimated mean diverges substantially from 2020).

    • Sample size n=3n = 3: Estimated mean = 15.315.3; estimated standard deviation = 1111 (closer to the true values).

    • Sample size n=5n = 5: Estimated mean = 17.617.6; estimated standard deviation = 10.110.1.

    • Sample size n=10n = 10: Parameter estimates converge even closer to the true population parameters.

    • Core statistical principle: As sample size increases, confidence and precision in the accuracy of population parameter estimates systematically increase.

  • Quantifying confidence and experimental reproducibility:

    • Statisticians calculate pp-values and confidence intervals to quantify confidence in estimated parameters.

    • When replicate samples produce different numerical estimates (such as means of 17.617.6 and 19.219.2), inferential testing can verify that the estimates are not significantly different, confirming that experimental results are reproducible.

Hypothesis Testing Methodology, p-Values, and Decision Thresholds

  • Purpose of hypothesis testing:

    • Hypothesis testing is a formal statistical method used to evaluate claims regarding population parameters based on sample data.

  • Duality of scientific hypotheses:

    • Alternative hypothesis (H1H_1 or HaH_a): Also designated the research hypothesis, this represents the claim the investigator seeks evidence to support (for example, that a novel pharmaceutical drug exerts an effect on blood pressure among hypertensive patients in The United States).

    • Null hypothesis (H0H_0): States that there is no true difference, effect, or relationship within the population (for example, that the drug has no effect on blood pressure).

    • Testing mechanism: Classical hypothesis testing cannot prove the alternative hypothesis directly. Instead, it assumes the null hypothesis is true and assesses whether the sample data deviates sufficiently from that baseline assumption.

  • The three core steps of classical hypothesis testing:

    • Step 1: State the null hypothesis (H0H_0), asserting no effect or difference in the population.

    • Step 2: Calculate the test statistic to quantify how much the sample data deviates from the null hypothesis.

    • Step 3: Compute the pp-value.

  • Formal definition of the pp-value:

    • The pp-value is the probability of obtaining a sample result that deviates as much as, or more extremely than, the observed sample data, under the assumption that the null hypothesis is completely true.

  • Statistical significance and alpha thresholds:

    • Significance threshold (α\alpha): Typically pre-established at 0.050.05.

    • Small pp-value (p<0.05p < 0.05):

    • The observed sample result is considered unlikely to have arisen by random chance alone under the null hypothesis.

    • The sample data is inconsistent with H0H_0.

    • Decision: Reject the null hypothesis in favor of the alternative hypothesis; the result is deemed statistically significant.

    • Large pp-value (p≥0.05p \ge 0.05):

    • The observed sample data is consistent with the null hypothesis.

    • Decision: Fail to reject (do not reject) the null hypothesis.

  • Epistemological boundaries of pp-values:

    • A small pp-value does not prove the alternative hypothesis is true; it merely indicates that the observed data is improbable if the null hypothesis were true.

    • A large pp-value does not prove the null hypothesis is true; it merely indicates that the observed sample does not provide enough evidence to contradict the null hypothesis.

Statistical Error Typology and Analytical Software Workflow

  • Decision errors in hypothesis testing:

    • Because inferential statistical decisions are made under uncertainty, errors can occur regardless of methodological rigor.

  • Type I Error (False Positive):

    • Definition: Occurs when a true null hypothesis is incorrectly rejected.

    • Reality: In the underlying population, the null hypothesis is true (H0H_0 is correct).

    • Decision: The researcher mistakenly rejects H0H_0.

    • Applied example: A blood pressure drug has zero true effect in the population, but random sample variation produces a large effect, leading the researcher to mistakenly conclude that the drug works.

  • Type II Error (False Negative):

    • Definition: Occurs when a false null hypothesis is not rejected.

    • Reality: In the underlying population, the null hypothesis is false (H0H_0 is incorrect; the alternative hypothesis is true).

    • Decision: The researcher fails to reject H0H_0.

    • Applied example: A blood pressure drug genuinely works in the population, but coincidental sampling variability yields minimal observed difference in the sample, leading the researcher to mistakenly conclude that the drug is ineffective.

  • Analytical workflow in Datadep (datadep.net):

    • Data ingestion: Datasets are imported directly into the platform's data table, causing the variables to populate automatically.

    • Scale level identification: The software diagnoses scale levels (measurement levels) for each variable, allowing users to manually adjust classifications.

    • Test recommendation: Users navigate to the hypothesis testing module and choose variables of interest; the system suggests an appropriate statistical test based on scale levels:

    • Chi-square test: Suggested for testing relationships between categorical variables.

    • Analysis of variance (ANOVA): Suggested for comparing mean differences across multiple groups.

    • Output review: The interface presents the formal hypotheses and calculated results, offering a summary in words option to facilitate plain-language interpretation.

    • Assumption auditing: Users can verify required distributional assumptions to decide whether to calculate a parametric test (relying on distribution assumptions such as normality) or a nonparametric test (distribution-free alternatives).