Fundamentals of Statistics


Fundamentals of Statistics

Anna
Welcome to our introduction to Fundamentals of Statistics, MIT course 18.650. The course used to be called Statistics for Applications, but the instructor says Fundamentals of Statistics better describes what students will learn: mathematical foundations for statistical methods, rather than a tour of applications or software.

Michael
And the starting point is important: students aren’t expected to have studied statistics before, but they are expected to know probability. The course also uses calculus and basic linear algebra—vectors, matrices, and orthonormal vectors—and later revisits topics like eigenvalues and eigenvectors when they become relevant.

Anna
The central goal is to learn how to express a real-world question in mathematical terms. “Is this drug effective?” isn’t precise enough by itself. You first need to define what “effective” means, what quantity you’ll measure, over what period, and what kind of answer you want: a yes-or-no decision, a numerical estimate, uncertainty bounds, or a prediction.

Michael
That translation from an application to a well-defined statistical question takes domain knowledge, and the course doesn’t promise a recipe for doing it in every field. Instead, it aims to give students a catalog of methods and the mathematical understanding to choose among them, interpret their guarantees, and recognize their limitations.

Anna
That’s why the course is more mathematical than data-centered. It will focus on models, estimators, and theoretical guarantees—not spending lots of time exploring real datasets or learning software implementation. The instructor describes it as a toolbox that can prepare students for statistical machine learning, where algorithms learn from data and statistical reasoning is a crucial part of the picture.

Michael
The course also asks students to be skeptical in a useful way. A method can produce a number, but the important questions are how uncertain that number is, what assumptions support it, and whether the conclusion could be wrong. Error bars, for example, communicate more than a bare point estimate.

Anna
The lecture motivates that skepticism with headlines announcing that a study has found something. A study might report that students benefit from waiting to declare a major, but that statement doesn’t mean every student benefits. It may describe a parameter in a model of a population, and applying it to one individual requires care.

Michael
Nor does a study’s scientific appearance automatically make its conclusion sound. The instructor points out that if many studies are conducted, some can produce apparently interesting results just by chance. That’s one reason to ask how the study was designed, what assumptions were made, and how many comparisons or questions were tried.

Anna
The famous salmon example makes the chance problem vivid. A researcher put a previously frozen and thawed salmon in an MRI scanner, showed it images, and found a few apparently active brain voxels. The salmon wasn’t responding: with many voxels and noisy measurements, a few can look active simply by chance.

Michael
That illustrates why statistical procedures need to account for the scale of the search. Finding a few active voxels among a huge number is not automatically persuasive; a stronger pattern, such as a sufficiently large cluster, might be needed. The important lesson is to distinguish a genuine effect from a result that noise happened to produce.

Anna
The lecture also introduces p-hacking: searching through many analyses or hypotheses until something looks significant, then presenting that result as though it had been the plan all along. Looking at the data, inventing a hypothesis to fit it, and testing that same data as if the hypothesis were independent can invalidate the usual theoretical guarantees.

Michael
That creates a real tension. Researchers may have invested enormous effort in collecting data and may not want to discard it when an initial hypothesis fails. The lecture mentions adaptive data analysis as an area seeking ways to handle repeated use of data, while stressing that the clean theory developed in the course generally assumes a cleaner process.

Anna
Statistics matters well beyond headlines and scientific papers. One historical motivation was flood protection in the Netherlands: use data from earlier floods to decide how high to build dikes. The challenge is that the observed floods may be few, and a future flood could exceed anything in the data.

Michael
That means statistical modeling is not just describing observations—it can help reason beyond them. Insurance offers another example. A company estimates expected costs, such as the chance that a customer will break a phone and the cost of repair, and uses that information to set a premium.

Anna
Clinical trials are another major application. To judge whether a drug works, researchers need to think about treatment and control groups, placebo effects, sample size, and what counts as convincing evidence. Saying “the drug is effective” needs to be reduced to a precise question about a measurable quantity.

Michael
Genetics makes the scale of the problem especially clear. A study might compare thousands of people with Alzheimer’s to thousands of controls and ask whether a gene is associated with the disease. As researchers ask more questions about genes or particular genetic variations using the same data, they also need to account for the risk of chance findings and repeated testing.

Anna
So what do these applications have in common? Randomness—or, more broadly, variation we don’t fully understand. It might be genuine randomness, like selecting a person through a random procedure, or measurement noise in an instrument. Sometimes it’s a convenient way to represent everything about a complicated process that we haven’t modeled.

Michael
Probability gives us language for describing that randomness. It helps summarize things such as averages, chances, variability, and significant departures from what we would expect. Those summaries are useful because randomness is complicated, but we often need compact quantities that support decisions.

Anna
Probability and statistics approach the problem from opposite directions. In a probability problem, the model or distribution is given, and we work out what data or outcomes it implies. In statistics, we observe data and try to infer which model, or which parameter values, could have generated it.

Michael
Think of a fair die. In probability, we’re told each face has probability one-sixth and can calculate the chance of an event. For instance, if Alice earns one dollar when a roll is less than three, her expected winnings are one-half dollar. If Bob earns two dollars when it’s less than two, his expected winnings are two-thirds of a dollar, so Bob has the higher expectation.

Anna
Or roll two dice and choose a total from two to twelve. The probability of winning a hundred dollars depends on how likely your chosen total is, and seven is the most likely sum. Probability can answer that because we already know how the dice behave.

Michael
A statistician arriving without that knowledge would instead roll the die and count outcomes to estimate the face probabilities. The observed counts would fluctuate, so they might not be exactly equal. A modeling choice—perhaps assuming all six faces have the same probability—can simplify the problem, but if that assumption is wrong, it introduces model error.

Anna
That trade-off appears everywhere. A complicated process may be approximated as a simpler model plus random noise. The model needs to include features that systematically matter, but it also has to be simple enough to estimate from the available data. Leaving out an important factor—for example, a factor that changes how a treatment works—can create serious bias.

Michael
And deciding what matters requires expertise from the application area. A statistician may need to ask a biologist, engineer, or social scientist detailed questions before a plausible model can be chosen. The course mostly takes a model as given so it can focus on the mathematics of what follows.

Anna
Here’s a helpful way to picture the difference. Probability starts with a description of the truth and asks what data might come from it. Statistics starts with data and asks what truth could have generated it. Because many possible models could fit limited observations, modeling often involves choosing a manageable description rather than trying to memorize every observed value.

Michael
For example, if you want to describe a group’s GPAs, a model summarized by a mean and standard deviation may be more useful than a complete list of every GPA. Those parameters give a compact account that can help describe or predict the group, although the usefulness of the summary depends on whether its assumptions are reasonable.

Anna
The drug example makes the reversal concrete. If we’re told a drug is 80 percent effective, probability lets us predict what might happen in a study of 100 patients, including the expected number cured and the range of plausible results. But if we observe that 78 of 100 patients were cured, statistics asks what the effectiveness might be and how uncertain our estimate is.

Michael
That uncertainty matters. We shouldn’t treat the observed 78 percent as unquestionably equal to the true effectiveness. We need an estimate and some way to quantify its error, then use that uncertainty when making predictions or decisions.

Anna
A first classroom example uses a study of couples kissing. The question “Do people tend to turn their heads to the right?” becomes a parameter question: what proportion of the target population turns right? The instructor warns that the target population must be clear. Couples observed in airports, for instance, might not represent every couple.

Michael
The study observed 124 couples, and 80 turned right. If we code a right turn as one and a non-right turn as zero, the estimated proportion is 80 divided by 124, or about 64.5 percent. That’s larger than 50 percent, but we still need to ask whether the difference could reasonably be due to sampling variation.

Anna
The sample size makes a difference. If you had observed only three couples, two turning right would give you 66.7 percent—an even larger percentage—but hardly strong evidence about all couples. A statistical method can help determine how much evidence a sample provides and how large a sample needs to be for a conclusion at a chosen level of confidence.

Michael
The lecture also points out a potential problem with using pictures found online. They may be stock photos with actors directed to pose, rather than a representative sample of natural behavior. Even a study with a mathematical analysis can give a misleading answer if the data-collection process doesn’t represent the population it claims to describe.

Anna
To model the kissing data, let each observation be an indicator: one if couple number i turns right and zero otherwise. Assume each indicator is a Bernoulli random variable with the same unknown probability p, and assume the observations are independent. The sample average, the sum of the indicators divided by the sample size, is the estimator for p.

Michael
Those assumptions do important work. A common p says the observations come from a homogeneous population for the purpose of this question; independence says one couple’s outcome doesn’t determine another’s. If either assumption is implausible, the analysis may not apply as intended.

Anna
It also helps to distinguish an estimator from an estimate. The estimator is a random variable defined before we see the data; it could take different values in different samples. The estimate is the particular numerical value we get after observing one sample—in this example, about 64.5 percent.

Michael
When comparing estimators, the lecture highlights two properties. Variance describes how much an estimator fluctuates across samples, while bias describes whether it is centered on the quantity we want to estimate. An estimator that always reports 72 percent has no sample-to-sample fluctuation, but it may be far from the truth. Low variance alone doesn’t make an estimator good.

Anna
The final exercise begins to apply the same ideas to exam grades. Suppose 15 sampled scores are modeled as independent draws from a normal distribution with mean mu and variance sigma squared. The sample average is a natural estimator of mu, and inserting the observed scores gives an estimate.

Michael
For the variance, the lecture demonstrates a basic principle: replace an expectation with an average. Since the population mean is unknown, use the sample mean in the squared deviations, average those deviations, and take the square root for an estimate of the standard deviation. A calculator may use n minus one instead of n to adjust for bias; that refinement is something the course will explain later.

Anna
That principle—replacing expectations with averages—comes up repeatedly in statistics. The exercise is also a reminder that a model is an assumption, not a fact: a normal model for grades is convenient, even though it assigns a tiny probability to impossible negative scores.

Michael
Practically, the course uses weekly problem sets, recitations focused on problem-solving, two midterms, and a final. The 10 best of 11 problem sets count for 30 percent; the better of the two midterms counts for 30 percent; and the three-hour final counts for 40 percent. Midterms are closed-book and closed-notes, with a two-sided letter-size cheat sheet allowed; the final allows notes, but not books.

Anna
The lecture recommends attending recitation, registering for one of the Wednesday sections, and checking the syllabus and course calendar for authoritative exam dates. There’s no required textbook; slides, problem sets, and recitations provide the core material, and the instructor recommends Wasserman’s All of Statistics as a broad supplementary overview.

Michael
The course does not teach software implementation, although R is described as widely used in statistics and Python as an increasingly capable option. The emphasis is on understanding the mathematics behind methods such as maximum likelihood and optimization, so students can reason about what statistical procedures do instead of memorizing a checklist.

Anna
And that brings the episode back to the main idea: statistics turns data into claims about uncertain, partly understood processes. To do it responsibly, define the question precisely, choose and examine a model, account for variation, and be honest about how much the data can support.

Michael
Probability tells us what to expect when a model is known; statistics uses observed data to learn about that model. Once you understand that distinction—and why assumptions, sampling, bias, and variance matter—you have the foundation for the methods and applications the course sets out to teach.

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