Statistical Inference and Hypothesis Testing
This material builds a bridge from the normal distribution into the two big tools of statistics: estimation and hypothesis testing. We first revisit the normal distribution and the Z score, then see how a single sample can stand in for an entire population, how the central limit theorem lets us treat sample means as normal, how to build confidence intervals for a population mean, and finally how hypothesis testing works — the logic of null and alternative hypotheses and the two kinds of error that every test must manage.
The lecture moves along one continuous path. It starts with the machinery you already know (the normal distribution, the Z score, and the normal tables), then asks a bigger question: how can a sample of 30 people speak for a population of thousands? That question leads to the sampling distribution of the sample mean and the central limit theorem, which in turn justify the two tools of the lecture — estimating an unknown mean with a confidence interval, and deciding between two competing claims with a hypothesis test. The coin-tossing game that opens the hypothesis-testing part is worth remembering: it is the same logic that appears in courtrooms, grading rooms, and research labs, and it will reappear in every later lecture on testing procedures.
3.1 The Normal Distribution and the Z-Score: A Recap
3.1.1 Why the normal distribution matters
Hook: How does a university decide how many students in a thousand-person course deserve an A, a B, or a C? The answer uses one of the most important objects in statistics: the normal distribution.
The normal distribution is one of the most important and fascinating continuous distributions we have. Beyond being a theoretical object, it is widely used in practical problems and in companies, in many different facets. One everyday example comes from teaching itself: when a large class has to be graded, the normal distribution is used as a tool to classify the number of grades — to decide how many students fall into each grade band. That is only one of many applications.
The shape explains why it keeps appearing. If you plot the normal distribution, you get a smooth, symmetric, bell-shaped curve: most of the data sits close to the middle, and values farther from the middle become rarer and rarer, tailing off on both sides in exactly the same way. Height, exam scores, measurement errors in an instrument, the weight of a packaged product, and the monthly return of a stock index are all examples of quantities that are often at least roughly normal. When a process adds up many small independent influences — and much of business and engineering data does — the result tends to look like this bell.
Real-world: grading systems for large classes, plus countless business and engineering problems, rely on the normal distribution — from setting grade bands and quality-control limits on a production line to risk calculations in finance.
3.1.2 Probabilities from normal tables instead of calculus
Earlier we saw how to compute probabilities with the help of normal tables. These tables are used extensively whenever we need probabilities for normal random variables. They made our life easy: instead of doing the calculus — integrating the normal density function and then extracting probabilities from the integral — we read the probability straight from a table. Nobody in this course computes probabilities by integrating complicated functions.
To see what the tables are doing, the normal density for a random variable with mean and standard deviation is
where is Euler's number (about 2.718) and is about 3.142. A probability such as is the area under this curve between and — and computing that area by hand requires calculus. The normal tables skip all of it: the areas have already been worked out for one standard curve, and we simply look them up.
The tables are built cumulatively: the probability accumulates from the far left of the distribution up to each value. In other words, each table entry reports the area under the curve to the left of a given point. That is why a "probability between two values" is always read as a difference of two cumulative entries — you take the left area up to the upper value and subtract the left area up to the lower value. We will use exactly this subtraction in the worked example of Section 3.3.
3.1.3 Standardizing the variable: the Z score
To avoid the calculus entirely, we introduced the idea of standardizing the variable. Any normal random variable can be converted into its standard normal variable — the standard normal distribution, which is the normal distribution with mean 0 and standard deviation 1. This object goes by many names: the standard normal variable, the Z score, the Z tables, or the Z test. People use these words interchangeably whenever they talk about the standard normal distribution, and the notation we use is .
The transformation itself is the basic formula:
Here is any normal random variable, (mu) is the population mean, (sigma) is the population standard deviation, and is the resulting standard normal variable.
The formula is easy to verify at the two most important points. If equals the mean, then
If sits one standard deviation above the mean, so , then
So can be read as a distance: the number of standard deviations that the value lies away from the mean . A value two standard deviations below the mean gives ; a value half a standard deviation above the mean gives . Every normal distribution, whatever its and , is converted by this formula into the same standard normal distribution with mean 0 and standard deviation 1 — and it is the tables for that one standard distribution that we read everywhere.
Why transform at all? The logical point is this: a probability is a number between 0 and 1, and between 0 and 1 you can fit infinitely many values. Once the variable is expressed in Z units, infinitely many probability values can be accommodated through the tables. That is the main idea behind converting every normal random variable into its standard normal variable — one standard curve, one set of tables, every normal problem solved the same way.
Mini-example: turning raw scores into Z. Suppose IQ scores in a population are normal with mean and standard deviation .
For a score of :
The score is 2 standard deviations above the mean. For a score of :
The score is 1 standard deviation below the mean. So the same raw numbers (130, 85) become comparable Z units (2, −1) that can be looked up in one table. Sense-check: 85 is closer to 100 than 130 is, so its |Z| is smaller (1 < 2) — the formula behaves as expected.
Assumptions & scope: The formula is a pure re-scaling — it works for any , , and . But the probabilities you read from the normal tables are valid only when is actually normal, or at least roughly normal. If the population is strongly skewed or bimodal, the Z value is still computable, but the table probabilities no longer apply. In this course the transformation is always used in contexts where normality (or a large sample, via the central limit theorem, coming in Section 3.3) justifies the tables.
Visual intuition. Picture the standard normal curve: the horizontal axis carries the Z values (unitless, from about −3.5 to +3.5 in practice), and the vertical axis carries the density (a height, not a probability). The curve is a symmetric bell peaking at (the mean), where the height is about 0.4, and it falls off toward zero in both tails. The total area under the curve is exactly 1 — the total probability. Landmarks: the inflection points (where the curve stops curving down and starts turning outward) sit at , and about 68 percent of the area lies between them, which is the empirical rule we will meet again in Section 3.3.5. The takeaway: any normal problem, drawn in any units, becomes this one fixed picture once standardized.
Pitfalls:
- Forgetting the sign: a value below the mean gives a negative Z, not a positive one. A negative Z does not mean something went wrong — it means "below average."
- Using the sample standard deviation in place of the population in this formula. The Z score for a single value always uses the population ; the sample belongs to a different formula (the t statistic) that appears later.
- Misplacing the subtraction: and are not the same — only the first gives the standard deviation count above the mean.
Recap + bridge: The normal distribution, with its bell shape and its precomputed cumulative tables, is the workhorse of probability work in this course; the Z score is the unit converter that lets every normal distribution borrow the same table. Next, Z leaves probability and goes to work in data analysis — spotting outliers — and later it becomes the foundation of the t, chi-square, and F distributions, and then of every test in the course.
3.1.4 Z-scores for spotting outliers
One interesting application of the Z score is anticipating outliers in a dataset. Box plots and other pictorial representations are one way to extract outliers; the Z score is another tool that helps us figure out whether any outliers exist in our data.
The working rule of thumb follows from the bell curve's landmarks: a value whose Z is beyond (outside about 95 percent of a normal population) — and especially beyond (outside about 99 percent) — is a candidate outlier worth inspecting. A box plot flags the same observations from the raw data (the points beyond the whiskers); the Z score reaches the same verdict on a common scale, which is convenient when variables have different units and cannot be compared directly.
Mini-example. A class test has mean and standard deviation . One student scores 95:
The score sits 2.5 standard deviations above the mean — outside the ±2 band, so it is flagged as a candidate outlier before any analysis begins. Sense-check: 95 is far above 70, and a 2.5-sigma distance is rare (about 1.2 percent of values are that high or higher), so the flag is reasonable. Whether this score is meaningful hidden information is a separate question — see below.
Note that detecting an outlier is a separate question from what that outlier means: whether it carries meaningful hidden information depends on the nature of the dataset, and that debate comes later. An outlier could be a data-entry mistake, a genuine extreme observation, or the most interesting record in the file — the Z score only tells you it is unusual, not what to do about it.
Real-world: outlier screening with Z scores and box plots is routine in data analysis before any modeling work begins — salary audits looking for unusual payments, sensor readings that might be faulty, and fraud-screening where one transaction sits many standard deviations above the typical amount.
3.1.5 Z as the foundation for T, chi-square, and F
From here onward, estimation and hypothesis testing lean on the normal distribution. Depending on the context, later we will use the t distribution, the chi-square distribution, or the F distribution. The underlying point is that once you understand the Z distribution thoroughly, the rest behave in a very similar way — you simply pick the respective distribution and read its tables. The textbook covers these distributions in chapter 3.
The family logic is worth stating once: the Z distribution is the standard normal. The t distribution is a close cousin used when the population standard deviation is unknown and the sample is small; the chi-square and F distributions are built from sums of squared normal values and are used for variances, goodness-of-fit, and analysis of variance. In each case the habit is the same — standardize the quantity of interest, choose the right table, read the probability. If you master the reading of one table, you have learned the reading of them all.
Real-world & domain: this is where the normal distribution earns its keep outside the classroom. In quality control, control charts flag a process as "out of control" when a sample statistic moves beyond standard errors — the 3-sigma rule that traces straight back to the bell curve. In finance, value-at-risk calculations estimate the worst loss a portfolio might face using normal quantiles. In education, the grading example from 3.1.1 is itself the applied version: the normal curve decides how many students fall into each grade band. The same curve, the same tables, different industries.
3.2 Statistical Inference: From Samples to Populations
3.2.1 Population parameters versus sample statistics
Hook: Why would a company trust the answers of 30 managers instead of asking all 2500? Because statistical inference exists: using a small, affordable slice of data to draw conclusions about the whole population.
Statistical inference is a fascinating area of statistics, and ultimately it is the point of everything: whatever analysis you do on a given dataset, you must be able to infer something and give the manager some insightful information. The foundation is the distinction between population and sample. The population is the entire group of interest; the sample is the subset we actually measure. Population characteristics are called parameters; sample characteristics are called statistics. For example, the population mean , the population standard deviation , and the population proportion are parameters; their sample counterparts — the sample mean , the sample standard deviation , and the sample proportion — are statistics.
| Parameter | Statistic | |
|---|---|---|
| What it describes | The whole population | A sample drawn from it |
| Typical symbols | , , | , , |
| Is it a constant? | Yes — one fixed number | No — changes from sample to sample |
| Do we usually know it? | Almost never (that is why we sample) | Yes — we computed it |
The name is worth saying out loud once: an "estimate" is a sample value standing in for an unknown population value. estimates , estimates , and estimates the population proportion .
There are many situations where getting information about the whole population is highly difficult, time consuming, or costly. When the population parameters are unknown, we take a sample of observations and generalize the pattern to the whole population. And here common sense must be admitted: once we come down from the population level to the sample level, committing an error is inevitable. No sample is a perfect photograph of the population — the best we can promise is a well-chosen sample that gets close, with the size of the likely error quantified. That quantification is exactly what the sampling distribution (Section 3.3) and confidence intervals (Section 3.5) provide.
3.2.2 The managers example
The running example: finding the profile of a set of managers, around 2500 of them, and in some companies that number rises much higher. The characteristics of interest are the mean salaries and the proportion of managers who have completed the company's training program. If we consider the entire set of 2500 managers, the characteristics we compute are the population parameters — but that information may not be readily available in the databases, and collecting it for everyone may be impractical in terms of time and cost.
So we take a sample of 30 managers and compute the same characteristics: the sample mean , the sample standard deviation , and the sample proportion . We then use these to address the population level. The open question — how adequate and reliable sample information really is — is explored later; the full worked data for the 30 managers is in the textbook, worth going through when you have time.
One very essential point: the population mean is a constant, known if you consider the entire set. But a random sample varies from one set to another: take another 30 individuals and observe their mean and variance, and you will see the values change. So the sample mean is a random variable, not a constant. This single sentence is the seed of the entire next section: because is a random variable, it has a distribution — the sampling distribution — and understanding that distribution is what lets us say how reliable the sample really is.
Concretely: with one random sample of 30 managers you might get ; with a second sample of 30 (a different set of names) you might get . Both are perfectly valid samples; neither equals the unknown exactly, and both differ from each other. It is the spread of these possible sample means — not the spread of the 2500 salaries — that determines how far the sample mean is likely to land from the truth.
Real-world: companies routinely estimate workforce characteristics — salaries, training completion — from samples of employees rather than from surveys of everyone. The same logic runs through market research (surveying 1000 households to describe a national market), political polling (a few thousand voters standing in for millions), and quality control (inspecting a few parts to certify a whole production batch).
3.2.3 Why we accept error and try to minimize it
Because we drop from the population level to the sample level, error is inevitable. The modern view of quality is not about eliminating error; it is about reducing error. We admit that we may commit a mistake, and we try to minimize it.
The entire concept of inference and hypothesis testing is about how best to use a sample when generalizing it to the whole population. Sample information is acceptable to address the population level; how reliable it is, we will convince ourselves as we go deeper into the topic. The honest starting point is humility: perfect accuracy from a sample is impossible, so the goal is to make the error small and to know how small it is.
This philosophy — quality as error reduction, not error elimination — is not a slogan. It is the working principle of statistical design: larger samples shrink sampling error, random sampling removes bias, and the formulas in the coming sections put a number on the remaining uncertainty. When we later meet hypothesis testing, the same mindset reappears in its sharpest form: the two possible mistakes (type 1 and type 2 errors, Section 3.7) cannot be made to vanish; the craft is choosing which one to suppress and how far to push it down.
Real-world & domain: the "reduce, don't eliminate" view of quality is the modern quality-management position that drives statistical process control in manufacturing, where the target is never "zero defects" but "defects reduced to a known, acceptable rate and monitored continuously." It also shapes the reporting culture of data-driven business: a manager who asks for certainty is asking for the wrong thing — the right question is "how big is the error, and is it small enough for this decision?"
3.3 The Sampling Distribution of the Sample Mean and the Central Limit Theorem
3.3.1 The sample mean is a random variable
Hook: Draw a second sample of 30 managers and you get a second — different from the first. So the sample mean is not one number; it is a random variable with its own distribution. Once we know that distribution, we can put probabilities on how close the sample mean comes to the truth.
Since the sample mean is a random variable, a probability distribution is associated with it: the sampling distribution of . The sampling distribution of is the probability distribution of all possible sample means that we would see if we drew every possible random sample of size and computed from each one. It has a mean, a standard deviation, and a shape — just like any distribution.
The key visual from this part is a figure that observes the pattern of the sample mean while the sample size changes. The parent distributions shown are a uniform distribution, a bimodal distribution, and an exponential distribution. If we keep the sample size large, the sample mean can be approximated with a normal distribution, without any doubt. This is a very fundamental result.
The displayed variance of also appeared; its formula carried a typographical error that was corrected on the screen. The correct statement is the pair of formulas
The first says that the mean of the sampling distribution of is the population mean — on average, the sample mean aims at the truth, so is an unbiased estimator of . The second says that the variance of the sample mean shrinks as the sample size grows. The standard deviation of — called the standard error of the mean — is , the value that will appear in every formula in this lecture.
Why ? Because the sample mean is an average of independent observations, the variances combine in a manageable way:
Taking the square root gives the standard error . Two consequences worth remembering: the sample mean is more precise than a single observation (its variance is divided by ), and precision grows slowly — to halve the standard error you must quadruple the sample size, because the square root only shrinks as .
Visual intuition. The lecture's figure shows three columns, one per parent population. Column 1 is a uniform distribution (flat, every value equally likely, like a single die roll). Column 2 is a bimodal distribution (two separate humps, like a two-lobed "rabbit-eared" curve). Column 3 is an exponential distribution (sharply skewed right, a steep peak near zero with a long tail). Each column shows the shape of the parent distribution on top, and below it the shape of the sampling distribution for samples of size , , and . With the three sampling distributions still look nothing like each other and nothing like a bell; with the uniform and bimodal columns are already turning bell-shaped, while the exponential still drags to the right; by all three columns are nearly normal. The one-sentence takeaway: sample means forget their parents — the shape of 's distribution is decided by , not by the population.
Scope: These formulas assume simple random sampling and independent observations. If the population is finite, the standard error has a finite-population correction factor , but in this course the population is treated as large (the sample is at most 5 percent of it), so is the working formula. Also note the distinction: is how much individual values spread around ; is how much sample means spread around . The second is always smaller.
3.3.2 The central limit theorem
The statement above is the central limit theorem (CLT): if is sufficiently large, the sample mean is approximately normally distributed, irrespective of whatever the parent distribution is — uniform, bimodal, exponential, or anything else. It is a very fundamental theorem that one must know. Because of it, you can use the normal tables whenever the sample mean is in question.
Convention on sample size: many textbooks treat greater than 30 — 30 or 40 is acceptable — as a large sample. For you can safely use the z distribution, or the normal tables, without any doubt.
Intuition — the dice story. Roll one fair die: the outcomes 1 to 6 are equally likely — a uniform parent distribution, flat, nothing like a bell. Now roll ten dice and average them. The average cannot be 1 (one die could show 1, but ten dice averaging 1 would need all ten to show 1 — nearly impossible) and it cannot be 6 either; the average is almost always somewhere near 3.5, with values close to 3.5 far more common than values like 2 or 5. The distribution of the average of many dice is a bell, even though the parent (one die) is flat. Mapping: each die roll is one observation , the parent distribution is uniform, the average of the dice is , and the theorem guarantees that with enough dice the average is nearly normal. Where the analogy stops: the dice story gives the feel, but the CLT is far stronger and more precise — it applies to any parent distribution with finite variance, and it also tells us the spread (), which the dice picture alone does not.
Scope: The CLT needs three things: (1) a random sample — the observations are drawn independently from the same population; (2) a population with a finite variance — the theorem does not apply to extreme heavy-tailed distributions; (3) a large enough . How large is large enough depends on the parent distribution: covers most applications, but a highly skewed population or one with serious outliers may need or more before the approximation is good. The convention is safe in this course's problems, where is the stated rule.
Q: Why can the sample mean be approximated with a normal distribution even when the population itself is not normal? A: That is exactly what the central limit theorem is about: if you maintain sufficiently large, you can approximate the distribution of the sample mean with a normal distribution, irrespective of whatever the parent distribution is. It is a convention the field relies on, and the theorem is called the central limit theorem.
3.3.3 The z transformation for sample means
For a single random variable X, the transformation was . When we move from single observations to sample means, the transformation changes to:
Here is the sample mean, is the population mean, is the population standard deviation, is the sample size, and is the standard deviation of the sampling distribution of — how much sample means spread around the population mean. Remember this particular formula; it is the one that lets you use the normal tables for sample means.
The only structural difference from the single-value version is the denominator: instead of (the spread of individual values), we divide by (the spread of sample means). The sample mean's variability is smaller than the data's variability, so the z statistic for a sample mean is inflated relative to the single-value version — a small gap between and can be very surprising when is large. That is the mechanism by which bigger samples produce sharper conclusions: the same observed gap yields a larger , which corresponds to a more extreme, less likely position in the standard normal.
Exam note: expect to use this z transformation for in numerical problems; it was explicitly flagged as one to remember. The companion facts you will need in the same problems: the standard error , the cumulative table-reading (left area of the upper value minus left area of the lower value), and the anchor values and .
3.3.4 Worked example: probability that is within of
This is textbook problem Chapter 7, page 326, problem 19. The setup: a population has mean 200 and standard deviation 50. Suppose a sample of size 100 is selected, and is used to estimate . What is the probability that the sample mean will be within plus or minus 5 of the population mean?
Given values: , , . The population distribution is not specified — it is a general distribution — but satisfies the large-sample condition, so we can invoke the central limit theorem and use the normal tables.
Step 1 — Translate the question. "Within plus or minus 5 of the population mean" means should lie between and . The target probability is:
Step 2 — Find the standard error. , so
The sample means spread around 200 with a standard error of 5.
Step 3 — Standardize both endpoints with .
For :
For :
Step 4 — Rewrite in Z units. The original question becomes a question about the standard normal:
Because the normal tables are cumulative — the probability from the far left up to a value — you read two areas and subtract. At , the table gives 0.8413. At , it gives 0.1587.
Step 5 — Subtract.
Answer: the probability that the sample mean is within of the population mean is 0.6826 — the sample mean lands between 195 and 205 roughly 68 percent of the time.
Sense-check: is exactly one standard error (5), and the empirical rule says about 68 percent of a normal distribution sits within one standard deviation of the mean. The answer 0.6826 matches that landmark, so the arithmetic is credible.
Q: Without looking at the normal tables, can anyone tell the probability that Z lies between -1 and 1? A: Read the tables in a cumulative sense: the probability that Z is less than or equal to 1 is 0.8413, and the probability that Z is less than or equal to -1 is 0.1587. Subtracting gives 0.8413 - 0.1587 = 0.6826. A rough answer of about 0.68 was first given, and the exact value 0.6826 corrected it — the sample mean lies within plus or minus 5 of the population mean about 68 percent of the time. The rough guess and the exact table value agree closely, but on the exam the table values are the answer.
Exam note: this problem type — a probability statement about a sample mean, solved through the CLT and the normal tables — is a classic numerical question; the values 0.8413 at and 0.1587 at appear constantly. The same machinery with different numbers is the standard variant: change the interval (e.g., within , giving z endpoints and probability 0.9544) or change , and the recipe stays the same.
Pitfalls:
- Forgetting to divide by — using for a sample mean understates the z value and would give 0.6826 → 0.3829 territory errors. The denominator is always the standard error.
- Confusing the two spreads: describes individual values; describes sample means. A sample mean within of when is not "typical" — it is a 68 percent event, which is exactly what we computed.
- Subtracting in the wrong order: is negative. Keep the larger cumulative area first.
- Applying the CLT to a small sample from a wildly skewed population: with and an exponential parent, the sample mean is still visibly skewed, and the normal-table answer is an approximation with real error.
3.3.5 The empirical rule
The answer matches the empirical rule: one-sigma limits hold about 68 percent of the observations, two-sigma limits hold about 95 percent, and three-sigma limits hold about 99 percent.
The empirical rule is a simple and famous fact about the normal distribution: 68-95-99.
Visual intuition. Picture the bell curve again, with the horizontal axis in units around . Mark the points : the region between them is the central band containing about 68 percent of the area — the tall middle of the bell. Widen to : about 95 percent of the area, leaving only 2.5 percent in each tail. Widen to : about 99 percent, with the tiny remaining slivers beyond. The landmarks read like a ruler: the height of the curve where the band stops tells you nothing directly — it is the area inside the band that is the probability. The one-sentence takeaway: a value more than 2 standard deviations from the mean is uncommon (about 5 percent of the population), and more than 3 is very uncommon (about 1 percent) — the same numbers that make the ±2 and ±3 Z-score outlier rules of Section 3.1.4 work.
The rule rounds the exact normal probabilities: the precise values are 0.6827 (one sigma), 0.9545 (two sigma), and 0.9973 (three sigma) — and the exact 95 percent multiplier is , not . The rounded 68-95-99 form is what everyone quotes for quick interpretation; the table values are what you compute with.
Exam note: these percentages are expected knowledge whenever you interpret intervals around the mean. They are also the fastest sanity check on any normal-probability answer: any result that says "within one sigma" holds about 68 percent, "within two sigma" about 95 percent, and "within three sigma" about 99 percent is in the right ballpark.
Recap + bridge: The central limit theorem turned the random-variable into a calculable object — nearly normal with mean and standard error — and the worked example turned that into numbers (0.6826). With probabilities about the sample mean in hand, the next step is the natural one: stop asking "how often is within 5 of ?" and start asking "which numbers are plausible values of ?" — that is, point and interval estimation, and then confidence intervals.
Real-world & domain: the CLT is the silent engine behind nearly every published poll and every margin of error in the news — the "±3 percent" attached to an opinion poll is built from and the normal tables. In manufacturing, control charts plot successive sample means and flag any mean beyond , the 99 percent CLT band, as a signal that the process has changed. Wherever someone quotes an average with a confidence interval — customer satisfaction scores, quality metrics, election predictions — the sampling distribution of the sample mean is doing the work.
3.4 Point Estimates and Interval Estimates
3.4.1 Point estimate
Hook: Before the results are out, how would you guess your own total marks in the comprehensive exam — with one number, a range, or the whole 0-to-100 scale? Each answer is a different way of estimating the unknown, and the choice matters.
When a population parameter such as is unknown, we replace it with sample information. There are two ways to represent that replacement. The first is with a single number: we replace with . Reporting a single number is a point estimate.
The everyday version — the professor's own: before results are out, estimate your total marks in the comprehensive exam. A confident student says "80", another says "70", another says "30" — each is reporting a point estimate, one number standing for the unknown value. Notice what these three guesses share: they are single numbers, easy to state, easy to compare, and all of them are almost certainly wrong in the exact sense that none equals the true score. A point estimate's virtue is simplicity; its weakness is that it carries no information about how wrong it might be.
The formal picture: the point estimate replaces the unknown constant . We already know from Section 3.3 that is a random variable centered at with standard error — so a point estimate is best understood as "a draw from a distribution," and the size of that distribution's spread tells you how far off the single number might be. That link between point estimation and the sampling distribution is the bridge to the interval approach.
3.4.2 Interval estimate
The alternative is to report a range: "I expect marks between 60 and 80", or "between 70 and 80". That is an interval estimate — we estimate the population parameter not with a single number but with an interval.
The interval approach enhances the confidence of expecting: it is generally better to represent the unknown over an interval than with a single value, which is why confidence intervals come next. The trade is visible in the marks example: "between 60 and 80" hedges against the guess being off by a few marks, and "between 70 and 80" is a tighter, more informative range. An interval answers the question the point estimate leaves open: not just "where do I think it is?" but "how far off could I be?" The width of the interval is the honest admission of uncertainty.
Real-world: interval reporting is standard in business and public discourse — polling results are published as "53 percent, with a margin of error of plus or minus 3 points," never as a bare point estimate — because a range conveys both the estimate and its reliability.
3.4.3 Why a 0 to 100 interval is not useful
A clever student could say "I will get marks between 0 and 100" — that interval certainly contains the outcome, but it is useless. The question was raised as: why settle for a confidence level of 95 percent when a level of 100 percent is available? The answer: such large intervals are not precise and they give fuzzy estimates.
The confidence–precision trade-off: an interval can be made so wide that it is guaranteed to contain the truth (0 to 100 contains every possible score, so it is "100 percent confident" by construction), but a guarantee bought at the price of width is worthless for decisions — it tells you nothing you did not already know. The useful question is never "how wide an interval is certain?" but "how much confidence can I buy at a width I can actually use?" That is exactly the motivation for confidence intervals: fix the confidence level (traditionally 95 percent), let the sampling distribution decide the width, and accept that a 95 percent interval will miss the truth 5 percent of the time — the 5 percent being the price of precision.
This is exactly the motivation for confidence intervals — the trade-off between how confident we are and how precise the interval is. (The derivation of confidence intervals is in the textbook; here we apply the formulas to problems.)
Pitfalls:
- Treating a point estimate as the truth: is one draw from the sampling distribution, not the population mean itself.
- Celebrating a "100 percent confidence" interval: a certain-but-useless interval like 0 to 100 is the degenerate case that motivated the whole confidence-interval construction.
- Confusing width with correctness: a narrow interval is not automatically right and a wide one not automatically wrong — what matters is whether the confidence level matches the width.
Recap + bridge: A point estimate is one number standing in for an unknown parameter; an interval estimate is a range that admits uncertainty; and an interval so wide it is guaranteed is an interval so wide it is useless. The bridge to the next section: turn the rough "between 60 and 80" intuition into a principled formula — the confidence interval for the population mean, built from , the standard error, and the normal tables.
Real-world & domain: the confidence-versus-precision trade-off is negotiated daily in business reporting and public statistics — audit reports, market-share estimates, and election polls all state a margin of error precisely because an unaccompanied point estimate would overstate certainty, and a 0-to-100-style range would say nothing. The skill of reading any published number is really the skill of asking: what is the interval, and at what confidence?
3.5 Confidence Intervals for the Population Mean (Sigma Known)
3.5.1 The confidence interval formula
Hook: A point estimate says "the mean salary is $52,000." A confidence interval says "we are 95 percent confident the mean salary lies between $51,300 and $52,700." Which statement would you stake a decision on?
We now build confidence intervals for the population mean — the context of averages. When the target is the population mean and is known — meaning the population standard deviation is given in the problem — the confidence interval is:
The lower limit is and the upper limit is .
Here is the sample mean, the known population standard deviation, the sample size, and (z alpha by 2) a value read from the normal table. Previously we replaced with the single number ; now we estimate over an interval. Remember this expression — it is the confidence interval for the population mean when sigma is known.
Why this particular form? The interval is the point estimate plus or minus a margin of error, and the margin of error is standard errors. The logic: from Section 3.3, about 95 percent of all sample means lie within standard errors of — that is, within of the truth. So for 95 percent of all samples, the interval built by walking standard errors out from the sample's own reaches across to cover . The other way to see it: each sample produces its own interval, centered at its own , and 95 percent of those intervals succeed in capturing .
The correct interpretation. "95 percent confidence" is a statement about the procedure, not about any single interval. If we repeatedly drew samples of size and built this interval each time, about 95 out of every 100 intervals would contain the population mean — and about 5 would miss it. Picture three sample means drawn from a sampling distribution centered at : the intervals built from the first two cover ; the interval built from a sample mean far out in the tail does not. Before the data arrive, the probability that the interval will cover is 0.95; after the data arrive, the specific interval is just "one of the 95 percent" (or unluckily, one of the 5 percent) — the interval itself either contains or it does not. Never say "there is a 95 percent chance that lies in this particular interval" — is a fixed constant, not a random quantity; the randomness is in the sample, and that is what makes the interval random.
Exam note: the confidence interval expression was explicitly flagged as one to remember. In numerical problems the recipe is always the same: identify , , , pick for the requested confidence level, compute the margin, write the two limits.
3.5.2 The z alpha by 2 notation
The only piece to compute beyond the given values is . Its definition: is the z value providing an area of in the upper tail of the standard normal distribution:
For a 95 percent confidence interval, the confidence level equals 0.95, so and . We need : the z value such that the area to its right is 0.025. Because the tables are cumulative, the area to the left of that same value is . We search the body of the normal table for 0.975: it sits at 1.9 in the row and 6 in the column, giving . Equivalently, .
The reading works because of the symmetry of the bell curve: the area in the upper tail (0.025) and the area in the lower tail (0.025) are equal, so the remaining middle 0.95 of the distribution lies between and . The notation makes the split explicit: the Greek (alpha) is the total risk of missing, and it is divided by 2 because the misses can happen on either side of the interval.
For quick work, the standard multipliers for the three common confidence levels are:
| Confidence level | |||
|---|---|---|---|
| 90 percent | 0.10 | 0.05 | 1.645 |
| 95 percent | 0.05 | 0.025 | 1.960 |
| 99 percent | 0.01 | 0.005 | 2.576 |
These are the values you will use again in the B and C parts of the worked problem below, and they are worth memorizing along with the 68-95-99 empirical rule: 1.645, 1.96, 2.576.
3.5.3 Worked example: a 95 percent confidence interval
This is textbook problem Chapter 8, page 355, problem 2. Given: , , and . Construct a 95 percent confidence interval for the population mean.
Step 1 — Pick the multiplier. For a 95 percent interval, .
Step 2 — Compute the standard error.
Step 3 — Compute the margin of error.
Step 4 — Write the interval in the professor's compact form:
The lower limit is and the upper limit is .
Answer: the 95 percent confidence interval for the population mean is to (rounding to two decimals).
Sense-check: with and , the standard error is under 1, so a margin of about around 32 is exactly the right size — wide enough to be realistic, narrow enough to be useful. The interval's width is about 3.3, roughly standard errors, as expected.
This is a very simple problem: normal tables plus the confidence interval formula. The same problem has further parts (the B and C parts) at other confidence levels; spend time on them for practice, and the full solutions will be shared later.
Q: What about the remaining B and C parts of this confidence interval problem? A: Work them out yourself — that is exactly the practice needed. The full solutions will be worked out and shared later, along with more practice problems with detailed solutions. Any remaining confusion will be addressed next time. To check your arithmetic: part B is a 90 percent interval (, giving about 30.60 to 33.40), and part C is a 99 percent interval (, giving about 29.81 to 34.19). Notice the pattern — higher confidence means a wider interval, and the 99 percent interval is the widest of the three.
Pitfalls:
- Using the wrong multiplier: builds a 90 percent interval, not a 95 percent one. The 0.025 in is half of 0.05, and it is the half that many students forget.
- Misreading the table direction: is found from the body value (for 95 percent, 0.975), not from directly — a body area of 0.025 corresponds to , the wrong sign.
- Adding without subtracting: an interval is two numbers — write both limits, not just the margin.
- Confusing the confidence level with the coverage of a single interval: "95 percent confident" is about the procedure over repeated sampling, not a probability that this one interval contains .
3.5.4 Z versus t: choosing the distribution by sample size
For large we use the z test and the z distribution. On a similar note, when is less than 30, we can make use of the t distribution: everything stays the same except that we read the t distribution tables and replace z with t. Whether we take up the t distribution in detail depends on need; the reason for stressing the z distribution is that once you understand z, the rest follows easily.
The decision rule is a simple threshold, and the machinery is identical on both sides of it:
| Large sample () | Small sample () | |
|---|---|---|
| Distribution | z (standard normal) | t |
| Table to read | Normal table | t table |
| Multiplier symbol | ||
| Extra input | none | degrees of freedom () |
| Interval form |
The conceptual link between them: the t distribution is the z distribution's small-sample cousin — wider (heavier-tailed) than the bell when the sample is tiny, because the sample standard deviation is itself uncertain, and converging toward the z distribution as grows. When you have understood z, switching to t is a matter of swapping the table, which is exactly the professor's point about the family of distributions behaving similarly. The reason the threshold convention matters on the exam: the problem statement tells you which table to carry into the formula, and reaching for the wrong table is the classic way to lose marks.
Exam note: the threshold convention — large sample () for z, small sample () for t — is the decision rule to apply. In this lecture's problems is given (sigma known), so the z interval is the one you will build; the t variant appears when the sample is small and must be replaced by the sample .
Recap + bridge: The confidence interval turned the sampling distribution into a decision tool: a point estimate plus a measured margin of error, interpreted over repeated sampling. The same two ingredients — a sampling distribution and a chosen error risk — will now be rearranged into the second big tool: hypothesis testing, which starts with a coin-tossing game and a question about how much evidence a strange pattern really carries.
3.6 Hypothesis Testing: Motivation from a Coin Tossing Game
3.6.1 The game
Hook: Your friend tosses a coin and wins a dollar every time heads appears. After five heads in a row, do you keep paying — or does something start to feel wrong? That feeling of "wrong" is where hypothesis testing begins.
The standard opening example for hypothesis testing is a simple game between two friends: coin tossing. If heads appears, the tosser wins; if tails appears, he loses. By agreement, the loser pays one dollar to the winner. Watch how the story builds:
- Toss once: heads. The friend pays 1 dollar.
- Toss twice: heads and heads. The friend pays 2 dollars.
- Toss three times: heads, heads, heads. The friend pays 3 dollars, and we say the winner is a very lucky guy.
- Toss four times: all heads. The friend pays 4 dollars, and again we say the winner is very lucky.
- Toss five times: all heads. The friend pays 5 dollars — and at this point, doubt rises.
The structure of the story is its own lesson. The first few heads are absorbed as luck; the payments are small and the pattern short. Each new head adds one more dollar and one more piece of evidence, and somewhere between the fourth and fifth toss the interpretation flips — the same data (heads) that looked like luck at toss two starts looking like something else at toss five. The game is designed so that the tipping point is felt before it is quantified: nobody needs a formula to get suspicious at five heads in a row.
3.6.2 When luck turns into suspicion
Five heads in a row change the conversation. The question is: is there any possibility that tossing a coin five times gives five heads? Yes — the possibility exists, though it is very small. Bias is one explanation, cheating is another, but the rare pattern itself does not settle the matter. We cannot simply conclude that the coin is biased because of this unusual pattern, yet we also cannot simply ignore it.
There is a dilemma: whether to start from "the coin is unbiased" or "the coin is biased" as the initial hypothesis. Hypothesis testing is built exactly around such dilemmas: how to decide, with uncertainty acknowledged, whether a pattern is evidence or just bad luck. Two candidate explanations compete — the coin is fair and the pattern is a coincidence, or the coin is not fair and the pattern is a signal — and the data are too few to prove either one. Testing is the discipline of making that call anyway, with the chance of being wrong made explicit.
Notice the three positions available to a decision maker, and what each gets wrong. Concluding "biased" from five heads risks convicting an innocent coin — the fair coin produces exactly this pattern once in every 32 attempts. Concluding "fair" risks being fleeced — the coin may genuinely be rigged, and the evidence to prove it will only arrive after more losses. Declining to decide is a decision too. Hypothesis testing's answer is to pick a starting assumption, measure how surprising the data are under that assumption, and set a threshold for how much surprise is too much — the framework of the next section.
3.6.3 The student exchange on five heads
Q: Is there really a possibility of getting all five heads when tossing the coin five times? A: Yes. With tosses and (the probability of heads on each toss of a fair coin), the probability is one half to the power five — — which is very, very small, but it is still a possibility:
That is about 3.1 percent — roughly 3 times out of every 100 runs of five tosses. So a rare pattern like five heads in a row does not by itself prove the coin is biased. (The spoken wording of the probability was garbled in the room; the calculation above is the correct reading — one half to the power five.)
The arithmetic is a straight binomial calculation: let be the number of heads in 5 tosses. For a fair coin, follows a binomial distribution with and , and the probability of the specific outcome "all heads" is
The numbers for the shorter streaks put the surprise in perspective:
| Streak | Probability | Decimal |
|---|---|---|
| 1 head in 1 toss | 0.5 | |
| 2 heads in 2 tosses | 0.25 | |
| 3 heads in 3 tosses | 0.125 | |
| 4 heads in 4 tosses | 0.0625 | |
| 5 heads in 5 tosses | 0.03125 |
The expected number of heads in 5 tosses is , so five heads sits 2.5 above expectation — far out in the right tail of the distribution. Yet the tail still has area: 3.125 percent of the time, a perfectly fair coin does this. That gap — "surprising but possible" — is precisely the gap hypothesis testing is designed to navigate. Note also the comparison that matters: the probability of "at least one head in 5 tosses" is , very different from the probability of "all five heads" — a reminder always to check whether a question asks about an exact outcome or an "at least" outcome.
Pitfalls:
- Treating a small probability as proof of bias: 0.03125 is small but not zero, and rare events do happen with a fair coin. The pattern raises suspicion; it does not convict.
- Confusing with — these answer different questions.
- Ignoring the base rate: before concluding "the coin is rigged," remember that fair coins produce this exact streak once every 32 trials, so 1 in 32 innocent coins will look this suspicious.
- Starting from the biased hypothesis: the framework's safe starting assumption is "unbiased" (the null), and switching to "biased" without testing would skip the entire logic.
Exam note: understand the hypothesis testing motivation from the coin game and the logic of type 1 and type 2 errors before the procedures are introduced. The coin game is the mental model for everything that follows: an assumption (the coin is fair), an observation (five heads), a probability under the assumption (0.03125), and a judgment about whether the observation is too unlikely to keep trusting the assumption.
Recap + bridge: The coin game turns "I feel suspicious" into a question with a number attached: under the assumption of fairness, five heads has probability 0.03125 — small enough to doubt, large enough to forbid certainty. The next step is to make that intuition formal: name the two competing claims (the null and alternative hypotheses), admit that either decision can be wrong, and classify the two kinds of error. That is the framework of Section 3.7, and the numbers from this game — the 0.03125 pattern probability — will be the seed of the decision rules to come.
Real-world & domain: this exact pattern-recognition logic runs through medical screening and fraud detection, where a rare event under the "normal" assumption triggers an investigation: a cluster of identical transactions flagged by a bank, a test result that lands far outside the healthy range, or a process reading that drifts past its control limits. In each case the question is the coin game's question — how surprising is this pattern if nothing is actually wrong? — and the answer decides whether the anomaly is investigated as evidence or written off as bad luck.
3.7 Hypothesis Testing: Null and Alternative Hypotheses
3.7.1 The criminal and judge example
Hook: A court assumes the accused is innocent and demands evidence to overturn that assumption. Hypothesis testing runs on the same principle — with a defendant named the null hypothesis.
The classic example for hypothesis testing: a person is caught by the police and produced before a judge. Two statements are in play: the defendant is innocent, or the defendant is a criminal. The police officer's intention is to present evidence that the defendant is a criminal, so that he may be punished. The judge then decides.
For the time being we set aside the question of severity and just fix the framing: assuming that the defendant is innocent is always the safe assumption, so "the defendant is innocent" is the null hypothesis , and its negation — "the defendant is a criminal" — is the alternative hypothesis .
The roles are worth dwelling on. The null hypothesis is the working assumption — the status quo that stands until evidence knocks it down. The alternative hypothesis is the claim that requires proof; in the courtroom the police must supply the evidence, and the judge's default is release. Hypothesis testing formalizes exactly this asymmetry: the burden of proof sits with the alternative, and the null is let go only when the evidence against it is strong enough.
The judge can pass right decisions: the innocent is released, or the criminal is punished. But the judge can also commit a mistake. Even the judge is going to commit a mistake sometimes — no decision system is free of error.
3.7.2 Type 1 and type 2 errors
The two wrong decisions are the heart of the framework:
- Even though the person is innocent, he may be punished. Rejecting the null hypothesis when is true — treating an innocent as a criminal — is a type 1 error.
- Even though the person is criminal, he may be released. Failing to reject the null when is false — releasing a criminal — is a type 2 error.
The four outcomes of the judge's decision fit the classic two-by-two table:
| true (innocent) | false (criminal) | |
|---|---|---|
| Reject (punish) | Type 1 error — punishing the innocent | Correct — punishing the criminal |
| Fail to reject (release) | Correct — releasing the innocent | Type 2 error — releasing the criminal |
The definitions are anchored by the truth of , not by the court's mood: a type 1 error is always "rejecting a true null," and a type 2 error is always "failing to reject a false null." If you can identify which claim is the null and whether the decision was to reject it, the error type follows mechanically.
Which error is more severe depends on the context, and that can be debated. In the judiciary there is a saying: better to release a thousand criminals than to punish a single innocent. In that view, the type 1 error is more severe than the type 2 error, and the whole framework is built so that the type 1 error gets controlled first. Whatever you decide — accept or reject — you are guaranteed to risk a wrong decision; the entire craft of hypothesis testing is how best to minimize those two errors.
The severity ranking is a value judgment, not a mathematical fact, and different fields rank differently. In law, punishing the innocent is the worst failure, so type 1 is suppressed first. In medical screening, missing a disease (type 2) may be the costlier failure, so some screening tests deliberately inflate the type 1 rate to catch everything. The framework itself is neutral — it simply forces you to declare which error you are treating as worse, because that choice decides where the test's thresholds go.
3.7.3 The instructor grading example
A second, personal example: evaluating answers in an examination. The instructor assumes that all the students have written the question correctly — that is the null, just as the defendant was assumed innocent at the start. If the question is correct, giving full marks is right; if the question is wrong, giving zero is right. With a small class of 20 students, each paper can be corrected meticulously. But with a thousand students, in a hurry, mistakes slip in.
The two wrong decisions an instructor can commit mirror the judge's exactly:
- Even though the question is correct, giving zero marks — rejecting when is true — is a type 1 error: a correct question gets punished.
- Even though the question is wrong, giving full marks is a type 2 error.
In this context too, the guiding principle is: a correct question should not be punished. So the type 1 error is the one we fight hardest to minimize.
The two examples are the same table wearing different costumes. Judge: punish the innocent / release the criminal. Instructor: give zero for a right answer / give full marks for a wrong answer. In both, the null is the benevolent assumption (innocence, correctness), the type 1 error is the false conviction (punishing the blameless), and the type 2 error is the false acquittal (rewarding the guilty). Mapping the error definitions onto both stories — and being able to re-map them onto a new story in an exam — is the surest way to fix the labels.
3.7.4 Minimizing the two errors
The crux of the whole framework: how best to balance the two errors. Given that the type 1 error is treated as the more severe one, the framework is built to keep it as small as possible. At our institute, there is a practical mitigation: the recheck request — a student can request re-evaluation of a graded paper. When a recheck comes in, the type 1 error gets a second look and can be corrected. There is also the honest side: a genuine student who spots a wrongly awarded mark will come back and say "give me zero, you gave me marks by mistake" — that has happened too.
A useful benchmark: if the type 1 error rate is 0.5 — say, 10 of 20 papers wrongly corrected — there is no point in correcting at all. That is the target: the type 1 error should be as close to zero as possible. Everything in the framework — which null, which alternative, which test — is designed around minimizing those two errors, with the type 1 error getting priority.
Scope: The two errors cannot both be driven to zero at once with a fixed sample. Tightening the test against type 1 (raising the evidence bar for rejection) automatically weakens it against type 2 (more guilty verdicts get missed), and the reverse holds as well. The only lever that shrinks both simultaneously is more data — a larger sample narrows the sampling distribution and separates the two hypotheses more cleanly. This is why the sample-size conventions of Section 3.3 matter, and why the recheck mechanism is a structural fix rather than a statistical one: it does not change the test, it re-runs the evaluation.
The benchmark example is deliberately absurd to make the principle vivid: a grader whose "corrections" are wrong half the time — 10 of 20 papers wrongly marked — adds nothing but noise, so the entire enterprise of grading collapses. A test procedure that cannot hold its error near zero is not a test at all. That is why the machinery that follows in later lectures is built the way it is: the choice of null, the choice of alternative, and the choice of test statistic are all made with the type 1 error fixed first, at a small, declared level.
3.7.5 General guidelines for building hypotheses
Three general guidelines close the session and frame the procedures to come:
- When testing a hypothesis about the value of some parameter (theta), the statement of equality will always be the null hypothesis, and whatever is to be detected or supported is the alternative hypothesis.
- Since the alternative is the hypothesis we hope to establish, it is to be hoped that the evidence leads us to reject the null hypothesis so that we may accept the alternative.
- In some situations it is easier to identify the alternative first and then develop the null hypothesis. Many applications of hypothesis testing involve gathering evidence in support of research: in that situation it is often best to begin by writing the alternative, then conclude by rejecting the null so that you can accept the alternative.
Different books phrase these guidelines differently; for this course we follow this convention, and the problems will be addressed accordingly. The next step — the procedures themselves: after constructing the two logical statements, we accept that errors are possible, and the question is how to anticipate and minimize them. That is what the coming material covers, logically and conceptually.
The guidelines are easiest to see in a concrete pair of textbook-style situations. Research framing — a new fuel-injection system is claimed to beat the current 24 miles per gallon: the claim to be supported is , so the alternative is written first, , and the null becomes the complement . Quality framing — a bottling line is designed to fill at 67.6 fluid ounces: the claim to be detected is any deviation, so with . Notice the pattern both follow and the guideline states: the equality sign lives in the null, and the thing to be detected lives in the alternative.
Pitfalls:
- Putting the equality in the alternative. The statement of equality always belongs to the null hypothesis; an alternative written as is a construction error that will break every later step.
- Mixing up the error labels: type 1 = rejecting a true null (a false alarm — punishing the innocent); type 2 = failing to reject a false null (a miss — releasing the criminal). The labels attach to the decision and the truth, not to the severity of the outcome.
- Saying "accept " when the test fails to reject it. The correct phrase is "fail to reject ": a lack of evidence against the null is not proof of the null, and saying "accept" papers over the type 2 risk.
- Forgetting which hypothesis carries the burden of proof: the alternative is the claim being supported, so the evidence must be strong before the null is rejected — the default assumption wins ties.
Exam note: the framing rules — equality goes to the null, what is to be detected goes to the alternative — are the foundation for every hypothesis-testing problem that follows. On any exam question, the first two marks are won by writing and correctly; the whole rest of the procedure depends on that pair.
Recap + bridge: Hypothesis testing frames every decision as a contest between a safe working assumption (the null) and a claim that needs evidence (the alternative); either decision risks a wrong outcome — type 1, rejecting a true null, and type 2, failing to reject a false null — and the framework prioritizes minimizing type 1. The bridge ahead: with the two statements constructed and the two errors named, the coming material supplies the procedures — the test statistic, the threshold, and the rule for when the evidence is enough to reject.
Exam Guidance Summary
Scope and coverage. Revisiting chapters 6 to 8 is what is required at this stage of the course. The textbook, Statistics for Business and Economics, covers the distributions in chapter 3, and the two exam-relevant worked problems appear at chapter 7, page 326, problem 19 and chapter 8, page 355, problem 2. More practice problems with detailed solutions will be shared.
Formulas to remember (each was explicitly flagged during the material):
- The z transformation for a single value: .
- The z transformation for the sample mean: .
- The confidence interval for the population mean with sigma known: .
- The empirical rule: 68 percent within one sigma, 95 percent within two sigma, 99 percent within three sigma.
- Normal table anchors: , , and for a 95 percent interval (with for 90 percent and for 99 percent).
- The pattern probability from the coin game: .
Distribution choice. Use the z distribution for large samples (n greater than 30); for small samples (n less than 30) switch to the t distribution — same machinery, t tables instead of z tables.
Hypothesis testing. Understand the motivation (the coin game), the two errors (type 1 = reject a true null, type 2 = fail to reject a false null), and the guidelines for building hypotheses: the statement of equality becomes the null, what is to be detected or supported becomes the alternative, and we hope to reject the null so the alternative can be accepted. The procedures of hypothesis testing are the focus of the coming material and are highly relevant for the upcoming sessions.
Q: Is revisiting chapters 6 to 8 enough for now? A: Yes — revisiting chapters 6 to 8 is what is required at this stage. The coming material goes further, especially the procedures of hypothesis testing, and more sessions will be arranged if needed. The two worked problems to have mastered by then are chapter 7, page 326, problem 19 (the sample-mean probability) and chapter 8, page 355, problem 2 (the confidence interval built from , , at the 90, 95, and 99 percent levels).
The one-page picture: every numerical problem in this lecture reduces to the sampling distribution of the sample mean — normal with mean and standard error . Point and interval estimation read that distribution from the sample side (how far is from ?), and hypothesis testing will read it from the hypothesis side (how surprising is this if is what we assumed?). Master the standard error, the table reading, and the error framework, and the rest of the course's inference follows.
Key Industry Applications
- Grading large classes (education): the normal distribution is used as a classification tool to decide how many students fall into each grade band — the everyday opening example of the lecture, and a template for any "bucketize a large population" problem.
- Outlier screening (data analysis): Z scores and box plots are standard tools for detecting outliers in datasets before analysis — Z flags values beyond roughly or standard deviations, box plots flag points beyond the whiskers; either way, screening runs before any modeling work begins.
- Workforce estimation (human resources): mean salaries and training-program completion are estimated from samples of employees instead of surveying everyone — the managers example of 2500 people with a sample of 30, generalized to any workforce analytics task.
- Quality philosophy (quality management): modern quality management is about reducing error, not eliminating it — the same mindset drives statistical inference, from sampling design to control charts built on the CLT's standard-error bands.
- Interval reporting (business reporting, polling): businesses report estimates with confidence intervals rather than single point values to convey precision — "53 percent plus or minus 3 points" instead of a bare number, because the width carries the reliability information.
- Hypothesis testing in research (research practice): research applications gather evidence in support of a claim; the alternative hypothesis is written first and the null is rejected to accept it — the framing used for claims like "the new method is better than the current one" in product research, drug trials, and teaching experiments.
- Judicial and institutional processes (law, administration): the judge example is the classic way to reason about the two kinds of decision errors — punishing the innocent (type 1) versus releasing the criminal (type 2); the recheck-request mechanism is a real institutional response to type 1 error, giving every decision a second look.
- Pattern-vs-luck decisions (finance, medicine, fraud detection): the coin game's logic — is this pattern evidence or bad luck? — drives anomaly detection everywhere, from flagging a cluster of unusual transactions to judging whether an extreme medical test result means the underlying process has changed.
ASM Lecture 3 notes · Statistical Inference and Hypothesis Testing
Sections Breakdown
The bell curve's role in computing probabilities without calculus, the cumulative normal tables, and the Z score transformation that standardizes any normal variable.
Population parameters versus sample statistics, the managers example of 2500 people sampled 30 at a time, and why error is inevitable but reducible.
The sample mean as a random variable, the central limit theorem, the z transformation for sample means, the worked plus-or-minus-5 probability, and the empirical rule.
Single-number point estimates versus interval estimates, and why a guaranteed 0-to-100 interval is useless for decisions.
The confidence interval formula, the z alpha by 2 notation and table multipliers, the worked 95 percent example, and the z-versus-t choice by sample size.
The coin-tossing game between two friends, when five heads in a row turns luck into suspicion, and the probability of five heads with a fair coin.
The criminal-and-judge and instructor-grading examples, type 1 and type 2 errors, minimizing the errors, and the general guidelines for building hypotheses.
The professor's exam strategy: revisiting chapters 6 to 8, the formulas to remember, the two worked problems, and the z-versus-t threshold convention.
Real-world uses of the lecture: grading large classes, outlier screening, workforce estimation, quality philosophy, interval reporting, research framing, and anomaly detection.
Exam Revision Notes
Below is the distilled, exam-ready core. Every entry comes from the full explanation above. Use this section for rapid review; return to the main notes when a point needs more context.
The Normal Distribution and the Z-Score: A Recap
Must-know: The Z transformation Z = (X - mu)/sigma converts any normal random variable into the standard normal; Z is the number of standard deviations X lies from mu, and the cumulative normal tables make probabilities computable without calculus.
⚠️ Top pitfall: Using the sample standard deviation s instead of the population sigma in the Z formula, or dropping the sign when X is below the mean.
Self-check: If mu = 100 and sigma = 15, what is the Z score of X = 130?
Connects to: the sampling distribution and the central limit theorem.
Statistical Inference: From Samples to Populations
Must-know: Parameters describe the population (mu, sigma, p); statistics describe the sample (x-bar, s, p-hat). The population mean is a constant, but the sample mean is a random variable that changes from sample to sample.
⚠️ Top pitfall: Treating a sample statistic as if it were the exact population value; error is inevitable when dropping from the population level to the sample level.
Self-check: Why is the sample mean a random variable while the population mean is a constant?
Connects to: the sampling distribution and the central limit theorem.
The Sampling Distribution of the Sample Mean and the Central Limit Theorem
Must-know: For n > 30 the sample mean is approximately normal with mean mu and standard error sigma/sqrt(n); the z transformation z = (x-bar - mu)/(sigma/sqrt(n)) is the formula to remember for sample-mean probability problems, read through the cumulative normal tables.
⚠️ Top pitfall: Forgetting to divide sigma by sqrt(n) when standardizing a sample mean, and confusing the spread of the data (sigma) with the spread of sample means (sigma/sqrt(n)).
Self-check: With mu = 200, sigma = 50, n = 100, what is the probability that x-bar is within +/-5 of mu?
Connects to: the normal distribution and the Z score; confidence intervals for the population mean.
Point Estimates and Interval Estimates
Must-know: A point estimate is a single number replacing an unknown parameter (mu replaced by x-bar); an interval estimate is a range; intervals that are too wide (like 0 to 100) are useless because they are imprecise — this trade-off motivates confidence intervals.
⚠️ Top pitfall: Thinking a wider interval is better: 100 percent confidence bought with a 0-to-100 interval carries no information.
Self-check: Why is an interval from 0 to 100 useless even though it certainly contains the true marks?
Connects to: confidence intervals for the population mean.
Confidence Intervals for the Population Mean (Sigma Known)
Must-know: The confidence interval for the population mean when sigma is known is x-bar +/- z(alpha/2) * sigma/sqrt(n); for 95 percent confidence z(0.025) = 1.96 (area 0.975 in the cumulative table), with 1.645 for 90 percent and 2.576 for 99 percent.
⚠️ Top pitfall: Using z(0.05) = 1.645 for a 95 percent interval, or searching the table for 0.025 instead of 1 - 0.025 = 0.975.
Self-check: With x-bar = 32, sigma = 6, n = 50, what is the 95 percent confidence interval for the population mean?
Connects to: the sampling distribution and the central limit theorem; point estimates and interval estimates.
Hypothesis Testing: Motivation from a Coin Tossing Game
Must-know: Five heads in a row with a fair coin has probability (0.5)^5 = 1/32 = 0.03125: very small but possible, so a rare pattern alone does not prove the coin is biased — this is the motivation for hypothesis testing.
⚠️ Top pitfall: Concluding the coin is biased from a rare pattern, or confusing P(5 heads) = (0.5)^5 with P(at least one head) = 1 - (0.5)^5.
Self-check: What is the probability of five heads in five tosses of a fair coin, and why does it not prove the coin is biased?
Connects to: null and alternative hypotheses.
Hypothesis Testing: Null and Alternative Hypotheses
Must-know: The statement of equality becomes the null hypothesis and what is to be detected or supported becomes the alternative; type 1 error rejects a true null, type 2 error fails to reject a false null, and the type 1 error is controlled first.
⚠️ Top pitfall: Putting the equality in the alternative hypothesis, or confusing type 1 (false alarm) with type 2 (miss); prefer 'fail to reject H0' over 'accept H0'.
Self-check: In the judge example, which decision is a type 1 error and which is a type 2 error?
Connects to: hypothesis testing motivation from the coin game.
Exam Guidance Summary
Must-know: Chapters 6 to 8 coverage with the two exam-relevant problems (chapter 7 page 326 problem 19, chapter 8 page 355 problem 2); formulas to remember: Z = (X - mu)/sigma, z = (x-bar - mu)/(sigma/sqrt(n)), x-bar +/- z(alpha/2) sigma/sqrt(n), and the empirical rule.
⚠️ Top pitfall: Using the wrong distribution for the sample size: z for large samples (n > 30) and t for small samples (n < 30).
Self-check: Which two textbook problems are the exam-relevant worked examples of this lecture?
Connects to: the normal distribution and the Z score; the sampling distribution and the central limit theorem; confidence intervals for the population mean; null and alternative hypotheses.
Key Industry Applications
Must-know: The normal distribution, Z-score outlier screening, sampling-based workforce estimation, and the confidence-interval reporting habit are the direct industry applications of this lecture.
Self-check: How does the coin-game logic apply to fraud detection in banking?
Connects to: the normal distribution and the Z score; statistical inference from samples to populations; the sampling distribution and the central limit theorem; confidence intervals for the population mean; hypothesis testing motivation from the coin game; null and alternative hypotheses.
Was this lecture useful?
BitsNotes AI Assistant
Subject Notes AssistantConfigure AI Chat
Choose how to access the chatbotSigned in as
Powered by BitsNotes — 20 messages per day. No API key needed. Want unlimited access? Use "Bring Your Own Key" mode.
Sign in to use AI Chat
Get 20 free AI messages per day to ask questions about your lecture notes. Sign in with Google or GitHub — it takes 5 seconds.
Sign In to BitsNotesSwitch to "Bring Your Own Key" tab above for unlimited access with any OpenAI-compatible provider.