1. Home
  2. Explore
  3. Statistics
  4. Fundamentals of Statistics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Fundamentals of Statistics

How Statistics Turns Data into Conclusions

Statistics provides a way to reason from incomplete, variable data. It helps answer questions such as whether a treatment works, how large a flood might be, or what patterns are present in a population. The key challenge is that observed data rarely gives a perfectly certain answer. Statistics makes that uncertainty explicit and helps determine how strong a conclusion the data can support.

Why statistics matters

Many claims in science, health, and public life are based on studies. A headline such as “students benefit from waiting to declare a major” sounds like a statement about every student, but a study usually examines only a sample of people. Its conclusion depends on how those people were selected, what was measured, and what assumptions were made when interpreting the results.

A statistical conclusion is usually not a promise about one particular person. It is more often a claim about a population parameter: a numerical feature of a broader group or process. For example, a study might estimate the average benefit of waiting to declare a major, rather than predict exactly what will happen to every student.

That distinction explains why a result can be informative without applying identically to every individual. A finding might describe an average effect, or an effect that holds for most people, while leaving room for individuals who differ from the average.

Statistics is useful whenever data must guide a decision under uncertainty. Examples include:

  • Engineering and flood protection: Historical flood measurements can help determine how high a protective barrier should be. Because future floods may exceed those already observed, statistical models can help estimate risks beyond the available data.
  • Insurance: An insurer uses data to estimate the expected cost of covering a person or object, then uses that estimate to help set a premium.
  • Clinical trials: Researchers compare outcomes for people receiving a treatment with outcomes for a control group, which may receive a placebo. The comparison helps distinguish a treatment effect from improvement that might have occurred anyway.
  • Genetics: Researchers may compare genetic information from people with a disease and people without it to investigate whether particular genes are associated with the disease.

In each setting, the point is not merely to produce a number. The number must be interpreted in light of uncertainty, the way the data were collected, and the question the study is meant to answer.

Think About It

If a study finds an average benefit from a treatment, why might that not guarantee the same benefit for every person?

Probability and statistics answer different questions

Probability studies what data may look like when the process that generates it is already described. If the model says that a fair die has six equally likely faces, probability can calculate the chance of a particular result or pattern.

Statistics works in the opposite direction. It begins with observed data and asks what process or parameter could have produced it. If a die’s fairness is unknown, repeated rolls can be used to estimate the chance of each face.

Probability reasons from a model to possible data; statistics reasons from observed data back toward a model or its parameters.

A pair of dice illustrates probability. The sum of the two dice can range from 222 to 121212, but those sums are not equally likely. A sum of 777 can be formed in more ways than a sum of 222 or 121212, so 777 is the most likely result. Once the probability model is known, the likelihood of each sum can be calculated.

Statistics would ask a different question: if the dice were unfamiliar, how could repeated rolls reveal whether their outcomes were equally likely? The observed counts would provide evidence about the underlying probabilities, but the counts would fluctuate from one set of rolls to another. Statistics must account for that fluctuation.

Modeling makes complex problems manageable

Real processes can involve many influences that are difficult or impossible to track individually. A statistical model simplifies the process by representing its important features with a small number of parameters and treating remaining variation as random noise.

This simplification makes analysis possible, but it also introduces the possibility of model error. If an important feature is left out, the model may give systematically misleading answers. For example, a model of a breast-cancer treatment that ignores whether patients are men or women could overlook a relevant difference between groups.

Good modeling therefore requires more than algebra. It requires knowledge of the subject being studied. A model must be simple enough to analyze while still including the features that matter for the question. This is why statistical work often involves close discussion with domain experts in areas such as biology, engineering, or sociology.

Some randomness is generated by genuinely random mechanisms, such as selecting a person at random or recording measurement noise. In other cases, “randomness” is a practical way to represent influences that are unknown or too complicated to track. Treating those influences as random can be useful, but it is a modeling assumption—not proof that every underlying event is literally random.

A common modeling idea is to represent a complicated process as a simpler, understandable part plus noise. The simple part captures the structure the model can describe; the noise represents variation it does not explain. If the model leaves out an important systematic influence, that influence may be mistakenly absorbed into the noise, causing bias.

Think About It

What might go wrong if a model treats a meaningful difference between groups as though it were just random noise?

What makes an estimate trustworthy?

A parameter is a fixed, unknown feature of the process or population being studied. An estimator is a rule—a quantity calculated from data—that aims to estimate that parameter. Once actual data are inserted into the rule, the resulting number is called an estimate.

For instance, an estimator might be the fraction of sampled couples who turn their heads to the right when kissing. The estimator is a rule that could be applied to many possible samples. The estimate is the particular fraction obtained from one sample.

Because a different sample would usually give a different result, an estimator is itself a random variable. Two important qualities help describe it:

  • Variance describes how much the estimator tends to fluctuate across repeated samples.
  • Bias describes how far its average value is from the parameter it is meant to estimate.

An estimator that always reports 72%72\%72% has no variation across samples. However, it could be far from the true population value, so its lack of variation does not make it useful. By contrast, an estimator that uses the observed data may fluctuate, but it can still be preferable if it tends to be near the parameter of interest.

A useful estimator must therefore be assessed both for its variability and for its relationship to the truth. A result that is very stable but systematically wrong is not reliable, and a result that is centered on the truth but wildly variable may be too uncertain to support a strong conclusion.

Sampling, uncertainty, and statistical significance

Consider a study of head-turning during kisses. Let ppp be the proportion of couples in the population who turn their heads to the right. A study observes nnn couples and records each outcome as an indicator:

Ri={1,if the ith couple turns right,0,otherwise.R_i = \begin{cases} 1, & \text{if the } i\text{th couple turns right},\\ 0, & \text{otherwise}. \end{cases}Ri​={1,0,​if the ith couple turns right,otherwise.​

The sample proportion is

p^=1n∑i=1nRi.\hat{p} = \frac{1}{n}\sum_{i=1}^{n} R_i.p^​=n1​i=1∑n​Ri​.

Suppose 808080 of 124124124 observed couples turn right. Then the sample proportion is

p^=80124≈0.645.\hat{p} = \frac{80}{124} \approx 0.645.p^​=12480​≈0.645.

This estimate is about 64.5%64.5\%64.5%. It is higher than 50%50\%50%, but that alone does not settle whether the broader population has a genuine right-turning preference. A different sample might produce a different proportion simply because of sampling variation.

The size of the sample matters. If only three couples were observed, even a result of two right turns out of three would provide little evidence about the wider population. A larger sample generally gives more information, but whether a particular sample is large enough depends on the size of the effect being investigated and on how much uncertainty the researchers are willing to accept.

A statistical test can assess whether an observed difference from a reference value—such as 50%50\%50%—is larger than would be expected from chance variation alone under a specified model. Statistical significance is about how surprising the data would be under that model. It does not, by itself, show that an effect is important in practical terms or that the model’s assumptions are correct.

Uncertainty can also be reported with error bars or an interval estimate. Instead of presenting only one estimated value, the analysis gives a range intended to show how uncertain that estimate is under the method’s assumptions. More demanding confidence requirements generally require stronger evidence, often including a larger sample or a more pronounced observed effect.

Sampling quality matters

A large sample is not automatically representative. A study based on couples observed at airports may not represent all couples if the airport setting affects who is observed or how people behave. Likewise, images found online may be staged stock photographs rather than natural observations. The people and behavior in those images may therefore differ systematically from the population the study is meant to describe.

The target population must be clear: a study’s conclusion applies only to the population that its sampling and modeling assumptions reasonably support. Sampling bias can distort a result even when the arithmetic is correct.

Think About It

Would a very large sample fix a study that consistently selects people unlike the population it is meant to describe?

Chance findings and repeated testing

Random variation can create apparently meaningful patterns even when no real effect exists. In a brain-imaging experiment, for example, researchers may record activity across many thousands of locations, or voxels. Measurements contain noise, so some voxels may appear active by chance. If enough locations are examined, a few may look unusual even when the stimulus has no genuine effect.

This creates a multiple testing problem: the more separate effects researchers search for, the more opportunities there are to find a false positive. Methods that account for the number of tests can help distinguish a credible pattern from isolated chance findings. The details depend on the setting; simply finding a few active locations may not be enough evidence when thousands were examined.

A striking illustration involved a frozen, thawed salmon placed in an MRI scanner and shown images. Some voxels appeared activated in response to the images, despite the salmon being dead. The apparent activity was a statistical fluke arising from noise and the many locations examined. The example shows why a result must be evaluated in relation to the scale of the search, not just by whether some measurements look notable.

Researchers must also be cautious about p-hacking: repeatedly searching data, changing analyses, or inventing new hypotheses after seeing the results until something appears significant. Standard statistical conclusions rely on a disciplined relationship between the question, the data, and the analysis. If the data are repeatedly used to generate and test new claims without accounting for those choices, the apparent evidence can become misleading.

This matters because scientific publishing often rewards positive findings. If many studies are conducted, some will produce apparently significant results by chance. A collection of reported successes can therefore give an overly optimistic picture if unsuccessful tests are not also considered.

Turning a question into a statistical one

A broad question such as “Is a drug effective?” is not yet precise enough for a statistical analysis. The answer depends on what “effective” means: which outcome is measured, over what time period, and compared with what alternative.

The question must be translated into a measurable quantity. For example, a study might model whether each patient is cured and estimate the probability of cure. A particular claim could then be expressed as a comparison between that probability and a specified threshold. The statistical method can analyze the measurable quantity, but the choice of outcome and threshold depends on the scientific question.

Clinical trials commonly include a control group so that treatment outcomes can be compared with outcomes without the active treatment. A placebo can help account for improvement that might occur because of expectation or the natural course of a condition. The comparison is essential: observing that some treated patients improve does not, by itself, establish that the treatment caused the improvement.

The same care is needed in genetic research. Comparing people with a disease to controls without it can reveal associations between genetic features and disease status. But if researchers inspect many genes, variations, or subgroups and repeatedly reuse the same data, the risk of chance findings increases. A statistical association is evidence of a relationship in the data; it does not automatically establish the cause or the effect of changing a gene.

A basic probability model: Bernoulli observations

For the head-turning example, each observation takes one of two values: right or not right. A two-outcome random variable is modeled with a Bernoulli distribution. If every couple has the same probability ppp of turning right, then

Ri∼Bernoulli⁡(p).R_i \sim \operatorname{Bernoulli}(p).Ri​∼Bernoulli(p).

A common simplifying assumption is that the observations are independent and identically distributed, often abbreviated as IID:

  • Identically distributed means that every observation is modeled with the same probability ppp.
  • Independent means that one observation does not affect the others.

These assumptions allow information from many observations to be combined. If each observation had its own unrelated probability, one sample would not provide a useful estimate of a single shared probability. If observations influenced one another—for example, if participants copied one another’s behavior—the usual independent-observation analysis might not be appropriate.

IID is a useful starting point, not a universal truth. Whether it is reasonable depends on how the data were generated. Shared settings, repeated measurements on the same person, or communication among participants can all create dependence.

Estimating averages and variability

The same principles apply to numerical data, such as exam grades. Suppose observations X1,X2,…,XnX_1, X_2, \ldots, X_nX1​,X2​,…,Xn​ are modeled as independent draws from a normal distribution with mean μ\muμ and variance σ2\sigma^2σ2:

Xi∼N(μ,σ2).X_i \sim \mathcal{N}(\mu,\sigma^2).Xi​∼N(μ,σ2).

The mean μ\muμ describes the model’s central value, while σ2\sigma^2σ2 describes its variability. The sample average estimates the mean:

Xˉn=1n∑i=1nXi.\bar{X}_n = \frac{1}{n}\sum_{i=1}^{n} X_i.Xˉn​=n1​i=1∑n​Xi​.

The sample average changes from sample to sample, so it is an estimator; the number calculated from one particular set of grades is its estimate.

A model must still be judged for plausibility. A normal model assigns some probability to every real number, including negative grades. Since grades cannot be negative, the model is not literally exact. It may nevertheless be a useful approximation if the probability of impossible values is negligible for the purpose at hand.

A basic estimate of variance replaces the theoretical mean with the sample average:

σ^2=1n∑i=1n(Xi−Xˉn)2.\hat{\sigma}^2 = \frac{1}{n}\sum_{i=1}^{n}(X_i-\bar{X}_n)^2.σ^2=n1​i=1∑n​(Xi​−Xˉn​)2.

The corresponding standard-deviation estimate is the square root of this quantity. Some methods instead divide by n−1n-1n−1 rather than nnn to obtain an unbiased variance estimator under particular assumptions. The choice depends on the goal and method; it is not a different way to describe the data’s basic spread.

This procedure illustrates a central statistical move: replace an unknown population quantity with a corresponding quantity calculated from the sample. The sample average stands in for the population mean, and deviations from that sample average stand in for deviations from the unknown mean.

A broader view of statistical practice

Statistical methods are built on mathematical ideas, including probability, calculus, linear algebra, and optimization. For example, a maximum likelihood estimator selects parameter values that make the observed data most plausible under a chosen model. The method depends on the model: a mathematically precise estimate can still mislead if the model is inappropriate.

Statistics therefore combines calculation with judgment. The method can quantify uncertainty and clarify what conclusions follow from stated assumptions, but it cannot automatically decide whether those assumptions match the real-world process. That requires attention to the question, the data-collection procedure, and relevant subject-matter knowledge.

Comprehensive Review

Statistics begins with data and asks what can reasonably be inferred about the process that produced them. Probability begins with a specified process and predicts what data might result. Statistical models make complex processes manageable by representing important structure with parameters and treating remaining variation as noise, but omitted influences can create systematic error.

An estimator is a data-based rule for estimating an unknown parameter; an estimate is the number produced from a particular sample. A useful estimator should be considered for both bias and variance. Sample proportions and averages are common estimators, but their reliability depends on the amount and quality of data, the sampling procedure, and assumptions such as independence and identical distributions.

Finally, apparently strong findings can arise by chance, especially when many tests or analyses are performed. Sound interpretation therefore requires more than noticing a numerical result: it requires understanding the population being studied, the model being used, the uncertainty in the estimate, and the possibility of bias or chance findings.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent