ArticleslgStudy

mathematics

Statistical hypothesis test

Statistical hypothesis test is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Statistical hypothesis test rather than just read about it. In short: A statistical hypothesis test is a method of statistical inference used to decide whether the data provides sufficient evidence to reject a particular hypothesis. A statistical hypothesis test typically involves a calculation of a test statistic.

Statistical hypothesis test — main illustration
Statistical hypothesis test — illustration

Key takeaways

  • Statistical hypothesis test belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Statistical hypothesis test to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Statistical hypothesis test from memory before moving on to harder problems.

Reference excerpt

A statistical hypothesis test is a method of statistical inference used to decide whether the data provides sufficient evidence to reject a particular hypothesis. A statistical hypothesis test typically involves a calculation of a test statistic. Then a decision is made, either by comparing the test statistic to a critical value or equivalently by evaluating a p-value computed from the test statistic. Roughly 100 specialized statistical tests are in use.

Definition of terms

The goal of a hypothesis test is to establish whether certain properties of a statistical population are true by examining sample data. Typically, the population is modelled by a random variable whose distribution has unknown parameters. For example, a medical trial may wish to establish whether a particular drug is effective in treating high blood pressure, with "the change in blood pressure observed in a patient who takes the drug" being the random variable. An example hypothesis could be "the mean change in blood pressure is zero" or "the mean change in blood pressure is negative". In general, any statement about the parameters describing a population can be a hypothesis (but not a statement about the sample). The test compares two hypotheses: a default null hypothesis (denoted H0) and its negation, the alternative hypothesis (H1). A null hypothesis typically states that the experiment has no effect. If the sample data are consistent with the null hypothesis, then the null hypothesis is not rejected; if the sample data are inconsistent with the null hypothesis, then the null hypothesis is rejected, and the alternative hypothesis is accepted as true. Typically the test will select a null hypothesis that the intervention being studied has no effect, or that the population parameter takes some "obvious" value. A test statistic is computed from the given sample data, and the tester calculates the conditional probability of observing a value at least this extreme, supposing the null hypothesis is true. If this probability (called the p-value) is less than, or equal to, the significance level of the test (denoted α), then the null hypothesis is rejected. The test does not conclude that the null hypothesis is false, or that the probability that the null hypothesis is true is less than α. Because it is usually impossible to definitely establish whether the hypothesis being tested is true or false from a sample, the conclusion of a hypothesis test is not certain to be correct. There are two possible classes of error:

A type I error, in which the null hypothesis is rejected despite the null hypothesis being true, with probability α=P(reject H0|H0). This is the same as the significance level of the test. A type II error, in which the null hypothesis is accepted despite the alternative hypothesis being true, with probability β=P(accept H0|H1). The quantity 1−β is called the power of the test. Some further definitions:

Simple hypothesis: Any hypothesis which specifies the population distribution completely. Composite hypothesis: Any hypothesis which does not specify the population distribution completely. Positive data: Data that enable the investigator to reject a null hypothesis.

Critical values of a statistical test are the boundaries of the acceptance region of the test. The acceptance region is the set of values of the test statistic for which the null hypothesis is not rejected. Depending on the shape of the acceptance region, there can be one or more than one critical value. Region of rejection / Critical region: The set of values of the test statistic for which the null hypothesis is rejected. Size: For simple hypotheses, this is the test's probability of incorrectly rejecting the null hypothesis. The false positive rate. For composite hypotheses this is the supremum of the probability of rejecting the null hypothesis over all cases covered by the null hypothesis. The complement of the false positive rate is termed specificity in biostatistics. ("This is a specific test. Because the result is positive, we can confidently say that the patient has the condition.") See sensitivity and specificity and type I and type II errors for exhaustive definitions. Statistical significance test: A predecessor to the statistical hypothesis test (see the Origins section). An experimental result was said to be statistically significant if a sample was sufficiently inconsistent with the (null) hypothesis. This was variously considered common sense, a pragmatic heuristic for identifying meaningful experimental results, a convention establishing a threshold of statistical evidence or a method for drawing conclusions from data. The statistical hypothesis test added mathematical rigor and philosophical consistency to the concept by making the alternative hypothesis explicit. The term is loosely used for the modern version which is now part of statistical hypothesis testing. Conservative test: A test is conservative if, when constructed for a given nominal significance level, the true probability of incorrectly rejecting the null hypothesis is never greater than the nominal level. Exact test In the case of a scalar parameter, there are four principal types of alternative hypothesis:

Point. Point alternative hypotheses occur when the hypothesis test is framed so that the population distribution under the alternative hypothesis is a fully defined distribution, with no unknown parameters; such hypotheses are usually of no practical interest but are fundamental to theoretical considerations of statistical inference and are the basis of the Neyman–Pearson lemma. One-tailed directional. A one-tailed directional alternative hypothesis is concerned with the region of rejection for only one tail of the sampling distribution. Two-tailed directional. A two-tailed directional alternative hypothesis is concerned with both regions of rejection of the sampling distribution. Non-directional. A non-directional alternative hypothesis is not concerned with either region of rejection; rather, it is only concerned that null hypothesis is not true. A statistical hypothesis test compares a test statistic (z or t for examples) to a threshold. The test statistic (the formula found in the table below) is based on optimality. For a fixed level of Type I error rate, use of these statistics minimizes Type II error rates (equivalent to maximizing power). The following terms describe tests in terms of such optimality:

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Statistical hypothesis test

Start with the simplest possible case. Write down what Statistical hypothesis test claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Statistical hypothesis test before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Statistical hypothesis test ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Statistical hypothesis test

In research
Statistical hypothesis test appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Statistical hypothesis test in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Statistical hypothesis test is common in secondary-school and first-year university syllabi. It links to neighbouring topics Design of experiments, Logic and statistics, Mathematical and quantitative methods (economics), so understanding it makes those chapters shorter.
In everyday life
Look for Statistical hypothesis test outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Statistical hypothesis test” →

How to study Statistical hypothesis test in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Statistical hypothesis test means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Statistical hypothesis test out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Statistical hypothesis test in simple terms?

A statistical hypothesis test is a method of statistical inference used to decide whether the data provides sufficient evidence to reject a particular hypothesis. A statistical hypothesis test typically involves a calculation of a test statistic.

Why does Statistical hypothesis test matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Statistical hypothesis test?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Statistical hypothesis test.

Tags

  • Design of experiments
  • Logic and statistics
  • Mathematical and quantitative methods (economics)
  • Statistical hypothesis testing

Keep exploring