Statistical Modelling and Inference

Context: FIT2086_MOC · the hub of the unit — why we model data with random variables and what we infer from a sample · frames every later technique (MLE, testing, regression)

Quick Revision

  • 🎯 Objective: treat observed data as a sample drawn from a population via a probability model with unknown parameters ➔ use the sample to infer those parameters (and hence the population).
  • ⚡ Key Constraint: modelling data as random does not mean the data is “truly random” — the randomness usually encodes which sample we happened to draw or which factors we failed to measure, not caprice in reality.

📝 The pipeline: three elements, three operations

  • Population ➔ a large collection of objects/items with measurable attributes; its true properties are what we ultimately want.
  • Sample ➔ a finite number of recordings of attributes of items from the population, .
  • Model ➔ a mathematical or algorithmic description of the population, learned/inferred from the sample; carries unknown parameters .
  • Sampling ➔ the act of data collection: recording finitely many attributes on finitely many objects, taken (usually) at random from the population.
  • Inference ➔ short for inductive inference: fitting the model to the sample, i.e. moving from the particular to the general, plus quantifying how accurate that move is.
  • Model checking ➔ examining goodness-of-fit and compatibility of the model with the sample — and by extension with the population. The step that closes the loop.

🧱 What a model is (and is not)

  • Neither correct nor incorrect — only more or less useful ➔ one model aircraft captures the wing/body proportions, another the aerodynamics; the purpose decides which is better.
  • Modelling exposes ignorance ➔ its value is surfacing what we know and don’t know, driving us to find out the rest.
  • Model families touredclassifier (label from ✓/✗ examples) · probabilistic classifier (returns ) · regression (predict a number; crudest version predicts the mean) · clustering (no labels — the “right” grouping depends on the attribute you care about).

🎲 Three sources of randomness

  • Measurement / experimental error ➔ the recording instrument itself is noisy — repeated voltmeter readings of the same voltage differ.
  • Unmeasured factors ➔ the variable is near-deterministic given other variables, but those were never recorded, so its variation appears random. Shower temperature is predictable if you know which other taps switched on; without that record it looks random. ➔ things look random because we did not measure everything that affects them.
  • Random sampling ➔ the attribute is not random at all (a person’s height), but which individuals entered the sample is — so the recorded values vary sample to sample.
  • Consequence ➔ the random-variable framing captures sampling variability, not a claim that reality is indeterministic.

🔭 Descriptive vs inferential

  • Descriptive statisticssummarise the sample in hand — a statistic is any function of the data (mean, variance, correlation). Says nothing beyond the data.
  • Inferential statisticsgeneralise from sample to population — estimate parameters, quantify uncertainty, test hypotheses. This is the unit’s focus.
  • Bridge ➔ a good descriptive statistic often becomes an estimator of a population parameter (e.g. sample mean estimates the population mean).
  • Input data types ➔ categorical-nominal / categorical-ordinal / numeric-discrete / numeric-continuous, i.e. qualitative vs quantitative — see Types of Data (Numeric and Categorical); the type dictates which model is admissible.

🧭 The modelling workflow

  1. Choose a model ➔ a family of distributions believed to fit the data-generating process.
  2. Fit / estimate ➔ use the sample to estimate (later: maximum likelihood). Lecture instance: — a linear relation with coefficients learned from data and an error term treated as a random quantity.
  3. Assess ➔ goodness-of-fit and uncertainty in ; a more flexible curve always fits the sample better but may overfit and describe the population worse (see Bias-Variance Tradeoff (Underfitting vs Overfitting)).
  4. Infer / predict ➔ answer the scientific question or predict new observations.

Why formal methods ➔ objective parameter estimation (not eyeballing a line) · principled model comparison (is the extra complexity warranted?) · many variables at once (impossible by hand).

⚠️ Common Mistakes

  • 💡 Random ≠ meaningless ➔ calling the data “random” is a modelling choice about sampling and unmeasured factors, not a claim that the quantity is unpredictable.
  • 💡 A statistic describes only the sample is a fact about your data; turning it into a claim about the population is inference and needs a model.
  • 💡 Sample ≠ population ➔ conflating them (“the sample mean is the population mean”) ignores sampling variability — the whole reason the unit exists.
  • 💡 “Fits better” ≠ “better model” ➔ a more complex curve fits the sample more closely by construction; only model checking against the population settles it.
  • 💡 Representativeness is assumed, not guaranteed ➔ the unit assumes data was collected randomly and representatively; in practice you must interrogate that assumption before modelling.

🧠 Active Recall