Fundamentals of Statistics
Fundamentals of Statistics: Core Ideas and First Examples
What statistics is for
Statistics provides methods for learning from data when outcomes are variable or uncertain. It helps answer questions such as whether a treatment is effective, how common an event is, or what might happen beyond the observations already collected.
The central goal is not merely to calculate a number. Statistical reasoning also asks:
What population or process does the data represent?
What assumptions connect the observations to the question?
How uncertain is the answer?
How strong is the evidence for a conclusion?
What limitations or errors could affect the result?
A conclusion from data is only as reliable as the modeling assumptions and data-collection process behind it.
Translating real questions into statistical questions
Questions in everyday language are often too vague to analyze directly. For example, “Is this drug effective?” needs a more precise definition of effective. It might mean that the treatment improves a particular outcome, over a specified time period, for a defined patient population.
A statistical analysis therefore needs to specify:
The quantity of interest, such as the fraction of patients who improve.
The population, such as patients with a particular condition.
The outcome and time frame, such as improvement within a certain number of weeks.
The form of the desired answer: a yes-or-no decision, a numerical estimate, an uncertainty range, or a prediction.
Once the question is expressed precisely, statistical methods can estimate the relevant quantities and describe how uncertain those estimates are.
Probability and statistics
Probability and statistics address related but opposite directions of reasoning.
Probability: from a model to possible data
In a probability problem, the model is specified. The probabilities or other relevant properties of the process are known, and the task is to reason about what data may result.
For example, if a fair die is assumed to give each face with probability 61, then probabilities for more complex outcomes can be calculated from that assumption.
With one die, the probability of rolling fewer than three dots is 62, because the favorable faces are 1 and 2.
The probability of rolling fewer than two dots is 61, because only the face with 1 dot qualifies.
If Alice receives 1 when a roll is less than three, her expected payoff is 1 multiplied by 62. If Bob receives 2 when a roll is less than two, his expected payoff is 2 multiplied by 61. These expectations are equal: each is 31 of a dollar per roll.
For two dice, the sum of the outcomes is most likely to be 7. There are more pairs of faces that sum to 7 than pairs that produce any other total. A probability model makes it possible to compare the likelihoods of all possible totals.
Statistics: from observed data to an unknown model
In statistics, data are observed but the process that generated them is not fully known. The task is to use the observations to learn about an unknown quantity or model.
For example, a statistician who does not know whether a die is fair could roll it repeatedly, record the outcomes, and use the observed counts to estimate the probabilities of its faces. The estimates will usually differ from 61 because of random variation. The statistician must then decide whether the differences are small fluctuations or evidence that the die is not fair.
Probability predicts data from an assumed model; statistics uses data to learn about an unknown model.
Randomness, models, and uncertainty
Statistical analysis commonly represents a complicated process as a simple model plus random variation. The model captures the aspects of the process that are understood or considered important. Randomness represents variation that is not modeled explicitly.
Some randomness may have a clear physical source:
A random-number generator can select a person from a population.
A coin toss can produce variable outcomes.
Measurement devices can have thermal noise or other measurement error.
In other situations, randomness is a modeling device for the effects of many unobserved influences. A person’s actions may not be intrinsically random, for instance, but a statistical model may treat them as variable because the influences on those actions are too complicated or costly to track.
This use of randomness is a modeling assumption, not proof that the underlying process is truly random. It is a practical way to describe and analyze variation.
Balancing simplicity and realism
A model must be simple enough to estimate and reason with, but realistic enough to preserve important features of the process. If it leaves out a systematically important factor, its conclusions may be biased.
For example, a study of a treatment for breast cancer that ignores whether patients are men or women could omit a relevant feature of the population. That omission may lead to a misleading estimate or conclusion.
Building a good model requires knowledge of the subject being studied. Statistical methods can analyze a model, but they cannot automatically determine whether the model captures the important features of a particular scientific or practical problem.
Model error and uncertainty
A model may be wrong in several ways:
It may omit an important explanatory factor.
It may assume that observations are more alike than they really are.
It may describe the distribution of outcomes poorly.
It may treat dependent observations as independent.
Such problems create model error. Statistical uncertainty calculations are conditional on the model and assumptions being used; they do not automatically account for every possible modeling mistake.
A statistical conclusion should therefore be interpreted as conditional: it describes what follows if the assumptions are a reasonable representation of the data-generating process.
Why statistical assumptions matter
Statistical conclusions depend on how observations were collected and on how they relate to one another.
Independence and identical distribution
A common assumption is that observations are independent and identically distributed, abbreviated IID.
Identically distributed means that each observation follows the same probability distribution, with the same underlying parameters.
Independent means that knowing the value of one observation does not change the probability distribution of another.
These assumptions let information from multiple observations be combined. If observations are dependent—for example, if participants influence one another—the data may contain less independent information than a model assumes. If observations come from systematically different groups, treating them as identically distributed may also be inappropriate.
IID is a useful standard model, but it is not automatically true for every dataset.
Homogeneity and population claims
A model with a shared parameter often treats the population as homogeneous with respect to the quantity being studied. For example, it may assume that every member of a population has the same probability p of producing a particular outcome.
Such a model makes a statement about a population-level tendency, not a guarantee about each individual. A population average or proportion does not imply that every person behaves in the same way.
The population must also be defined carefully. A sample of people in airports, for example, does not automatically represent all couples worldwide. The design and setting of data collection determine which broader populations the results can reasonably describe.
Interpreting studies and statistical claims
A research result is not simply a direct statement about every individual in a study. It is usually an inference about a population, a parameter, or a model based on observed data.
A headline such as “students benefit from waiting to declare a major” should prompt questions:
How was “benefit” defined and measured?
Which students were studied?
How were they selected?
How large was the observed effect?
How much uncertainty remains?
Does the result apply to a particular student or only to an average tendency?
A study can describe a pattern in a sample while offering only limited evidence about a broader population. Even a well-designed study can produce an unusual result by chance.
Multiple testing and chance findings
When many outcomes, locations, or hypotheses are examined, some may appear unusual simply by chance. This is especially important in high-dimensional data, such as brain imaging, where measurements may be taken at many thousands of locations, or voxels.
The “salmon” brain-imaging example illustrates this issue: a scan of a dead salmon appeared to show activated voxels when the animal was presented with images. The apparent activations were a consequence of random variation being examined across many locations, not evidence that the salmon was responding. A few apparently significant results can arise when a sufficiently large number of comparisons are made.
This is why analyses involving many tests often require methods that account for multiple comparisons. A result that looks notable in one location may not be convincing when the number of opportunities to find a chance pattern is considered.
P-hacking and data reuse
P-hacking refers to analysis practices that search repeatedly for a statistically significant result, often by changing hypotheses or analytic choices after seeing the data. Examples include:
Trying many outcomes or subgroups and reporting only the one that appears significant.
Formulating a hypothesis after inspecting the data, then treating it as if it had been specified in advance.
Repeatedly changing the analysis when an initial result is not significant.
If the same data are used both to generate a hypothesis and to test it as though it were new, the usual evidential interpretation may no longer be valid. Repeated searching increases the chance of finding a pattern that is present only because of random variation. Methods for adaptive data analysis seek to address settings in which data and hypotheses are used iteratively.
Scientific evidence and uncertainty
Statistical significance is not the same as practical importance, nor does it prove that a claim is certainly true. A result must be interpreted in light of the study design, assumptions, number of analyses performed, and possible sources of bias.
With a long list of studies or tests, some findings may be wrong by chance. The more opportunities there are to find a positive result, the more important it becomes to understand how the analysis was conducted and how uncertainty was controlled.
Applications of statistical reasoning
Statistics is useful wherever decisions must be made from incomplete or variable data.
Flood protection and extreme events
A flood-protection project can use measurements of past floods to choose a dike height. The decision involves more than covering the observed floods: a future flood may be larger than any recorded one.
Statistical modeling helps estimate quantities beyond the available observations. This may involve estimating how often floods of different sizes occur and extrapolating to rare, extreme events. The quality of such a prediction depends on the amount and relevance of the historical data and the assumptions used to model extremes.
Insurance
Insurance premiums depend on estimates of expected costs. An insurer may use data to estimate the probability of a claim and the expected cost if a claim occurs. These estimates help determine a premium that reflects the anticipated risk, alongside other costs.
The insurer does not know with certainty whether a particular person will make a claim. Statistical methods instead estimate average risk across people or groups using relevant data.
Clinical trials
Clinical trials compare outcomes for treatment and control groups to determine whether a treatment produces a real improvement. A treatment group’s observed number of recoveries must be interpreted against a suitable comparison, because some people may recover without the treatment or through a placebo effect.
A trial therefore requires clear definitions of:
The treatment and comparison conditions.
The outcome being measured.
The patient population.
The amount of evidence needed to distinguish a treatment effect from chance variation.
The question “Is the drug effective?” must be converted into a measurable statistical question, such as whether the treatment increases the probability of recovery.
Genetics and high-dimensional studies
Genetic studies may compare people with a disease to people without it and investigate whether a gene or genetic variant is associated with the condition. A finding of association can motivate further biological research, but it does not by itself establish causation.
These studies may examine many genes or genetic variants. Repeatedly reusing the same data to ask new questions increases the risk of chance findings, so multiple testing and data reuse must be considered.
Parameters, estimators, and estimates
A parameter is an unknown numerical feature of a population or probability model, such as a population proportion or mean. An estimator is a rule or random variable computed from data to estimate that parameter. An estimate is the numerical value produced by applying the estimator to a particular observed dataset.
For example, an estimator may be the sample proportion of people with an outcome. Before the data are collected, that sample proportion is random because a different sample could produce a different value. Once the observations have been collected, the resulting proportion is a fixed estimate.
An estimator is the procedure or random variable; an estimate is the value obtained from the observed data.
Bias and variance
Two important properties of an estimator are its bias and variance.
Bias describes whether an estimator tends, on average, to differ systematically from the parameter it is intended to estimate.
Variance describes how much the estimator fluctuates across repeated samples from the same process.
An estimator that always reports a fixed value has no sample-to-sample fluctuation, but it may be far from the true parameter. An estimator based on a small number of observations may vary considerably from sample to sample. A useful estimator should be close to the target and should not fluctuate excessively.
These goals can compete. For example, a method that is made very stable by imposing a strong simplifying assumption may introduce bias if that assumption is wrong.
Estimator uncertainty and error bars
A single estimate does not show how much it might change if the study were repeated. Statistical methods use uncertainty measures, such as standard errors or confidence intervals, to describe the variability of an estimate under specified assumptions.
An error bar is therefore not a guarantee that an estimate is correct. It summarizes uncertainty arising from the assumed model and sampling process. Model misspecification, biased sampling, or other design problems may not be captured by the error bar.
A worked example: head-turning direction while kissing
Suppose a study asks whether couples more often turn their heads to the right than to the left while kissing. The question must first be defined as a population-level quantity.
Let p denote the proportion of couples in the population of interest who turn their heads to the right. The population must be specified: a sample collected in one setting does not automatically represent every couple.
Representing outcomes with indicator variables
For each sampled couple, define an indicator variable Ri by
The indicator records whether a particular event occurred. The sample proportion turning right is
Because the sum counts the number of right-turning couples, dividing by the sample size gives the observed proportion.
In the example, 80 of 124 couples turned to the right, so
The estimate is therefore approximately 64.5%. It is larger than 50%, but that fact alone does not establish that the population proportion is greater than 50%. A different sample would likely produce a different proportion.
A Bernoulli model
A variable that takes only the values 0 and 1 can be modeled with a Bernoulli distribution. A simple model assumes
where each couple has the same probability p of turning right. The model commonly also assumes that the observations are independent.
Under these assumptions, the sample proportion is an estimator of p. Its value varies from sample to sample. In this model, its expected value is p, and its variance is
The formula shows that uncertainty depends both on the underlying proportion and on the sample size. Larger samples generally make the sample proportion less variable.
The assumptions need scrutiny. For example, the sampled couples must be relevant to the population of interest, and the couples should not have influenced one another’s responses in a way that violates independence.
Significance and sample size
To decide whether the observed proportion provides evidence that p exceeds 50%, the analysis must account for sampling variation. An observed count just above half may easily occur by chance, particularly in a small sample. A larger excess provides stronger evidence, all else being equal, but the required count depends on the sample size and the chosen confidence or significance standard.
For the sample size of 124, the lecture used counts such as 72, 75, and $80 as progressively more conservative illustrative thresholds for concluding that the right-turning proportion exceeds one half. The exact threshold depends on the statistical test and the desired error rate; the observed proportion alone does not determine the conclusion.
Data-collection design
The way observations are collected matters. Pictures from an image search may be posed stock photographs rather than candid observations, so they may not represent spontaneous behavior. A researcher who observes couples in airports faces a different limitation: airport couples may not represent all couples.
This is a sampling and representativeness problem. Statistical analysis cannot correct automatically for a sample that systematically differs from the population the study intends to describe.
Estimating a mean and standard deviation
Suppose a sample of student grades is modeled as coming from a normal distribution with unknown mean μ and variance σ2:
This is a modeling choice, not a fact supplied by the data. A normal model assigns positive probability to negative values, even though grades may not be negative. Such a model may still serve as an approximation if the probability of implausible values is negligible for the intended analysis.
Estimating the mean
A natural estimator of the population mean is the sample average:
For the listed grades
the sum is 1108 and the sample size is 15. Thus the mean of the listed values is
The lecture’s spoken value of 67.5 does not match the listed observations; the arithmetic from those observations gives approximately 73.87.
Estimating variability
The population variance is defined through the expected squared deviation from the population mean:
Because μ is unknown, a practical estimator replaces it with the sample mean and replaces the expectation with an average:
The corresponding estimate of the standard deviation is
For the listed grades, this formula gives a standard deviation of approximately 21.1. The lecture’s spoken value of 18 does not match the listed observations under this calculation.
A related formula divides by n−1 rather than n. This adjustment is commonly used to obtain an unbiased estimator of the population variance under the usual independent, identically distributed sampling assumptions. The choice of denominator depends on the estimator’s intended property; it is not merely a formatting difference.
Practical interpretation and limits of statistical methods
Statistical methods provide a mathematical framework for drawing conclusions from data, but they do not replace careful problem formulation or subject-matter understanding.
A model determines which patterns the method can represent.
A sample determines which observations contribute evidence.
An estimator determines how data are converted into a numerical answer.
An uncertainty measure describes variation under the model’s assumptions.
The results can be misleading if the population is poorly defined, the sample is unrepresentative, relevant factors are omitted, observations are dependent, or many analyses are searched without adjustment.
A strong statistical analysis therefore combines mathematical reasoning with clear assumptions and cautious interpretation. The aim is not to remove uncertainty entirely, but to quantify it well enough to support informed conclusions.

Ask anything
We've read this whole study set, so questions about it get the best answers.