liveBook · Manning

Chapter 6: Coincidence? I think not!

What you will learn in chapter 6 of Grokking Statistics

The chapter introduction explains the basic logic of testing a claim against sample evidence and distinguishes three ways samples can be compared.

After this chapter you will be able to

What it builds on

Section by section

Introduction

The chapter introduction explains the basic logic of testing a claim against sample evidence and distinguishes three ways samples can be compared.

Key terms: hypothesis, null hypothesis, alternative hypothesis, hypothesis testing, sample mean, standard deviation, population, one-sample, independent samples, paired samples

6.1 Hypothesis testing big ideas

The tea-tasting experiment introduces null and alternative hypotheses, the meaning of a p-value, and the limits of rejecting a hypothesis.

Key terms: null hypothesis, H0, alternative hypothesis, Ha, p-value, guessing at random, posterior, reject the null hypothesis

6.2 Chasing the truth

The section presents hypothesis testing as an ongoing effort to weigh evidence and revise beliefs, rather than a way to prove absolute truths.

Key terms: null hypothesis, alternative hypothesis, hypothesis testing, evidence, objective scientists, biases, compelling evidence

6.3 One-sample tests for normal/t-distributions

This section distinguishes one-sample Z-tests from t-tests and explains why t-tests are more common in practice.

Key terms: Z-tests, t-tests, standard normal distribution, t-distribution, sample mean, population mean

6.4 Two-tailed tests

Introduces two-tailed tests as a way to challenge an existing estimate of a population mean using a sample mean.

Key terms: two-tailed tests, sample mean, alleged population mean

6.5 Level of significance for two-tailed tests

The section explains how a two-tailed test’s significance level relates to its confidence level and how the remaining area is divided between the tails.

Key terms: level of significance, alpha, level of confidence, two tails, critical Z-value

6.6 A two-tailed test

This section uses a potato-chip bag example to set up a two-tailed test and decide whether a sample provides enough evidence to reject an advertised mean.

Key terms: two-tailed testing, null hypothesis, alternative hypothesis, H0, Ha, sample, sample mean, sampling bias, variability, standard normal distribution

6.7 Two-tailed p-values

This section explains what a two-tailed p-value measures, how it comes from both tails of a test distribution, and how to compare it with a chosen significance threshold.

Key terms: p-value, null hypothesis, two-tailed test, test Z-value, α, tail area, norm.cdf(), reject the null hypothesis, fail to reject, level of significance

6.8 One-tailed tests

This section explains when a one-tailed test makes sense and how its directional hypotheses differ from those of a two-tailed test.

Key terms: one-tailed test, two-tailed tests, α, p-value, null hypothesis, alternative hypothesis, H0, Ha, μ

6.9 Level of significance for one-tailed tests

The section explains how a one-tailed test places its significance area and critical Z boundary on the side specified by the alternative hypothesis.

Key terms: one-tailed tests, significance area, left-tailed test, right-tailed test, alternative hypothesis Ha, critical Z-value, critical Z boundary, critical region, null hypothesis, Z-value

6.10 A one-tailed test

This section applies a left-tailed Z-test to the potato chip example and explains why a one-tailed test is less conservative than a two-tailed test at the same significance level.

Key terms: H0, Ha, test Z-value, critical Z-value, alpha region, left-tailed test, one-tailed test, two-tailed test, alpha level, critical values

6.11 One-tailed p-values

The section explains how to interpret one-tailed p-values, use them to reject a null hypothesis, and decide when a one-tailed test is appropriate.

Key terms: p-value, one-tailed test, test Z-value, left-tailed test, right-tailed test, α, null hypothesis, two-tailed test, LEFT_TAIL, TWO_TAIL

6.12 Hypothesis testing with smaller samples

This section applies a t-distribution to a small-sample hypothesis test and interprets the result for a college exam-score claim.

Key terms: t-distribution, standard normal distribution, degrees of freedom, population variance, alternative hypothesis, right-tailed test, one-tailed test, t-value, level of significance, p-value

6.13 Hypothesis testing with proportions

This section applies hypothesis testing to a population proportion, checking sample-size suitability and using a p-value to evaluate a one-sided claim.

Key terms: proportion, p̂, p, right-tailed test, alternative hypothesis, sample size, hypothesis testing on proportions, p-value, alpha, significance level

6.14 Independent samples

The section adapts hypothesis testing to two independent classroom samples, interprets the resulting test, and notes a limitation of the large-sample approach.

Key terms: independent samples, null hypothesis, alternative hypothesis, right-tailed test, Z-test statistic, μ1 − μ2, s1 and s2, σ1 and σ2, p-value, 5% level of significance

6.15 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 5: Sample size superpowers Chapter 7: Number go up (or down)! Correlation and linear regression →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.