
13 Hypothesis testing
In the previous chapters, we have learned how to describe and summarize data using measures of central tendency and dispersion. These tools help us understand what a sample of data looks like. But in agricultural research or in any research, we often go a step further, where we want to use the sample to draw conclusions about the larger population. This is where the branch of statistics called inferential statistics comes into play, and at its core lies the process of hypothesis testing.
The sample-survey chapter introduced estimators, sampling error, and confidence intervals. Hypothesis testing uses the same idea of repeated-sampling variability, but begins with a specified claim about the population.
13.1 A hypothesis
Scientific research often involves conducting experiments to study natural phenomena or to evaluate the effect of different conditions or practices. In a scientific experiment, observations are made systematically and data are collected to answer specific research questions.
To conduct an experiment in a meaningful way, the researcher must begin with a clear hypothesis. A hypothesis is a tentative and testable statement formulated on the basis of prior knowledge, observations, or scientific reasoning. It provides direction to the study by clearly stating what is to be examined and guides the collection and interpretation of experimental data.
Examples of hypotheses from agriculture:
“Application of nitrogen fertilizer increases the grain yield of rice.”
“Improved seed treatment results in higher germination percentage than untreated seeds.”
“Drip irrigation leads to better water-use efficiency compared to surface irrigation.”
“A new crop variety produces higher average yield than the existing variety.”
These hypotheses can be tested by conducting a properly designed scientific experiment.
A statistical hypothesis is a specific, testable statement about a population distribution or its parameters. It expresses an assumption or claim that can be tested using statistical methods based on sample data. Statistical hypotheses are generally formulated in pairs: the null hypothesis (denoted as \(H_0\)), which represents the default or no-effect assumption, and the alternative hypothesis (denoted as \(H_1\) or \(H_a\)), which represents a statement that contradicts the null hypothesis.
The falsification principle
The falsification principle, proposed by the philosopher Karl Popper, is a way of distinguishing science from non-science. It suggests that for a theory to be considered scientific, it must be capable of being tested and potentially proven false. For example, the hypothesis “all swans are white” can be falsified by observing a single black swan. According to Popper, science should attempt to disprove a theory, rather than continuously seek evidence that confirms it. (Popper 1959)
This provides a useful analogy for questioning a claim. A statistical rejection is not logical proof that a theory is false: it depends on a probability model and permits a controlled risk of error.
13.2 Null and alternative hypothesis
Considering the Popperian Principle of Falsification, we need to translate the working hypothesis into a framework of two competing statements. These are termed the null hypothesis and the alternative hypothesis.
Null hypothesis
The null hypothesis (\(H_0\)) often states that there is no effect, no difference, or no relationship between variables. It may also specify another reference value or a probability distribution. It represents the default or status quo assumption. In hypothesis testing, we assume the null hypothesis is true unless we have strong statistical evidence against it.
Why do we need a null hypothesis?
In an experiment, the results seen in the sample may differ from expectation either because a real effect exists, or simply because of random chance. The null hypothesis begins with the assumption that no real difference or effect exists in the population. Using this assumption, statistical tests examine the sample data and calculate how likely it is to obtain such results purely by chance. This helps us decide whether the observed difference is likely to be real or just a fluke.
For example, suppose a researcher tests a new fertilizer and finds that plants in the sample are 3 cm taller than usual. This difference may be due to the fertilizer or simply to natural variation among plants. By assuming that the fertilizer has no effect (the null hypothesis), a statistical test determines whether the observed difference is likely to have occurred by chance. If it is very unlikely, we reject the null hypothesis and conclude that the fertilizer probably has a real effect.
Alternative hypothesis
The alternative hypothesis (denoted by \(H_1\) or \(H_a\)) is a statement that contradicts the null hypothesis. It proposes that a real effect, difference, or relationship exists in the population rather than the null value. Random sampling variation is present under either hypothesis. In most studies, the alternative hypothesis represents the researcher’s expectation or claim that they aim to find evidence to support.
In statistics, we say “fail to reject” the null hypothesis - not “accept” the null hypothesis. Failing to reject \(H_0\) does not prove that it is true; it only means we do not have sufficient evidence against it.
Definitions
Null hypothesis (\(H_0\)): The hypothesis assessed by the statistical test. It often states no effect, no difference, or no relationship, but may also specify another reference value or an entire probability distribution.
Alternative hypothesis (\(H_1\)): The hypothesis of a difference. It states that there is an effect, a difference, or a relationship between the variables or populations under study.
Example
Suppose a reference seed lot has a germination probability of 0.80. To investigate whether a new treatment changes germination, state \(H_0:p=0.80\) and \(H_1:p\neq0.80\). A random sample provides evidence for assessing these hypotheses; it does not prove either statement with certainty.
Example 13.1 A plant biologist wants to test whether different fertilizers affect plant height.
\(H_0\): There is no difference in plant height among different fertilizer treatments.
\(H_1\): There is a difference in plant height among different fertilizer treatments.
Example 13.2 A pharmaceutical company wants to know if a new drug is more effective than the standard treatment.
\(H_0\): The new drug is no more effective than the standard treatment.
\(H_1\): The new drug is more effective than the standard treatment.
13.2.1 Stating a hypothesis
Exercise 13.1 A researcher applies a certain chemical twice a week after flowering on fruit trees. The reference average fruit weight per plant is 8 kg, and the research question is whether the chemical reduces this average.
Step 1: Identify the hypothesis from the problem.
The reference average fruit weight per plant is 8 kg. If \(\mu\) (pronounced as ‘mu’) denotes the average fruit weight, the null hypothesis is:
\(H_0\): \(\mu\) = 8
Step 2: State the alternative hypothesis.
Because the research question specifies a reduction before the data are examined, the alternative is:
\(H_1\): \(\mu\) < 8
The full one-sided null is \(H_0:\mu\geq8\). The equality \(\mu=8\) is its boundary value, used to calculate the usual test statistic.
But what if the researcher has no prior idea of the direction of the effect?
Exercise 13.2 A researcher is studying the effect of a pesticide chemical on plant yield. He wants to determine whether this chemical has any effect on yield. The chemical could either reduce or boost the yield.
Step 1: Identify the hypothesis.
The researcher expects the change in average yield before and after application of the chemical to be zero. If \(\mu\) denotes this change:
\(H_0\): \(\mu\) = 0
Step 2: Since the researcher does not know whether the chemical will increase or decrease the yield, the alternative hypothesis is:
\(H_1\): \(\mu\) \(\mathbf{\neq}\) 0
13.3 Hypothesis testing
In hypothesis testing, a decision must be made between two alternatives i.e. the null hypothesis and the alternative hypothesis. To make the decision, an experiment is performed, and the null hypothesis is either rejected or not rejected based on a decision rule. Let us learn the concept of hypothesis testing with an example.
Example 13.3 You have a coin and want to check whether it is biased or unbiased. An unbiased coin has a 50:50 chance of landing heads or tails.
If the coin is unbiased, the probability of obtaining a head is 0.5, i.e., \(p\) = 0.5. The hypotheses are:
\(H_0\): \(p\) = 0.5 (coin is unbiased)
\(H_1\): \(p\) \(\mathbf{\neq}\) 0.5 (coin is biased)
Assuming independent tosses with a constant head probability, you toss the coin 10 times and note the outcomes, as shown in Table 13.1.
| Toss No. | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| Result | H | H | H | H | T | H | T | H | H | H |
In hypothesis testing, rejection or non-rejection of the null hypothesis is based on a decision rule, and this rule is driven by a quantity called the test statistic.
A test statistic is a function of the sample observations that summarizes the sample data into a single numerical value. It is calculated using a specific formula and is used to determine whether the observed sample result is consistent with the null hypothesis. Different statistical tests use different test statistics. For example, the z-statistic is used in a z-test, the t-statistic in a t-test, the \(\chi^2\)-statistic in a chi-square test, and the F-statistic in an (F)-test. These test statistics will be discussed in detail in the following chapters.
For a two-sided test, unusually few heads and unusually many heads both count against \(H_0\). At the 5% level, use the rule: reject if the number of heads is at most 1 or at least 9. The binomial calculation justifying this rule is given in the worked example below.
From the experiment:
Number of heads = 8; Number of tosses = 10
The test statistic is the count \(X=8\), or equivalently the sample proportion \(\hat p=8/10=0.8\). Here \(p\) denotes the population probability, not the observed sample proportion.
Since 8 is not in the rejection region, we do not reject \(H_0\). The observed proportion differs from 0.5, but this difference is not sufficient evidence of bias at the chosen level.
Choose the test and its decision rule before examining the result. The rule must agree with the alternative hypothesis and control the Type I error under the null model.
13.4 Errors in hypothesis testing
Since hypothesis testing is based on sample data, it is possible to arrive at an incorrect conclusion. Two types of errors can occur, as shown in Table 13.2.
Type I error: Rejecting the null hypothesis when it is actually true.
Type II error: Failing to reject the null hypothesis when it is actually false.
| In fact \(H_0\) is true | In fact \(H_0\) is false | |
|---|---|---|
| Decision: Do not reject \(H_0\) | Correct Decision | Type II error |
| Decision: Reject \(H_0\) | Type I error | Correct Decision |
Seriousness of Type I and Type II errors
Which error is more serious? The answer depends on the context. Consider the following examples.
Comparing two medications
\(H_0\): \(\mu_1 = \mu_2\) - The two medications are equally effective.
\(H_1\): \(\mu_1 \neq \mu_2\) - The two medications differ in effectiveness.
A Type I error here means concluding the medications differ when they actually do not - perhaps leading to an unnecessary change in treatment. A Type II error means failing to detect a real difference when one is actually better - potentially life-threatening if the inferior medication continues to be prescribed.
Cancer diagnosis
\(H_0\): The patient does not have cancer.
\(H_1\): The patient has cancer.
A Type I error means falsely diagnosing a healthy patient with cancer, leading to unnecessary treatment and distress. A Type II error means missing the diagnosis in a patient who actually has cancer - which could be fatal.
There is an inherent trade-off: reducing Type I error tends to increase Type II error, and vice versa. Think of it this way - a Type I error is like a false alarm: a fire alarm ringing when there is no fire. A Type II error is like a missed alarm: the alarm fails to ring when there actually is a fire.
Consider a person accused of a crime and facing a death sentence.
\(H_0\): He is innocent. \(\quad\) \(H_1\): He is guilty.
A Type I error → an innocent person is executed.
A Type II error → a guilty person is set free.
Most people would agree that wrongly executing an innocent person is the more severe error. This is why many textbooks treat Type I error as more serious.
The relative seriousness of Type I and Type II errors depends on the consequences in the particular study. State the context and explain the consequences rather than assigning a universal ranking.
13.5 Level of significance and power of test
Level of significance (\(\alpha\))
The significance level, denoted as \(\alpha\) (alpha), is the chosen upper bound on the probability of rejecting the null hypothesis when it is true. In other words, it controls the probability of committing a Type I error. For an exact-size test this probability equals \(\alpha\); a conservative test can have a smaller probability. We choose \(\alpha\) before examining the data. (Fisher 1925)
In practice, we control Type I error by selecting a suitable value of \(\alpha\) before the experiment, and reduce Type II error by using an adequate sample size. Common illustrative choices are \(\alpha=0.05\) and \(\alpha=0.01\); the choice should reflect the study objectives and consequences of errors, rather than a fixed rule for a discipline.
Power of test (1 - \(\beta\))
The probability of a Type II error is denoted as \(\beta\) (beta). The quantity \(1 - \beta\) is called the power of the test. Power is the probability of correctly rejecting the null hypothesis when it is false - in other words, the ability of the test to detect a real effect when it exists. (Neyman and Pearson 1933)
Both \(\alpha\) and \(\beta\) play a role in deciding the decision rule for hypothesis testing. Power depends on the particular alternative value, the effect size, variability, sample size, significance level and design. There is no single value of power for every false null hypothesis. For a fixed effect, variance, design and significance level, increasing the number of independent observations generally increases power.
13.6 Region of acceptance and rejection
The test statistic calculated from the sample will follow a probability distribution. The test statistic calculated from a sample varies from one sample to another because of random chance. In Example 13.3, you obtained 8 heads in 10 tosses. If another person repeats the same experiment using the same coin and also tosses it 10 times, they may obtain 4, 5, 6, 7, 8, 9, or even 10 heads. Thus, although the hypothesis being tested remains the same, the value of the test statistic changes from sample to sample. Now imagine that this experiment is repeated thousands of times, each time recording the number of heads obtained in 10 tosses. Some experiments will result in 5 heads, some in 6, many in 4–6 heads, and only a few in 0 or 10 heads. The probability distribution formed by all these possible values of the test statistic is called its sampling distribution.
Sampling distribution of a test statistic: The probability distribution of a statistic under repeated sampling according to the same design and model. For testing, we use its distribution under the null hypothesis; under alternative parameter values the sampling distribution may differ.
You will reject the null hypothesis if the test statistic falls in a particular region of the sampling distribution. This region is called the region of rejection (also known as the critical region). The complementary region, where the test statistic leads to non-rejection of \(H_0\), is called the region of acceptance.

- Under \(H_0\), the rejection probability is at most \(\alpha\) for a level-\(\alpha\) test. It equals \(\alpha\) for an exact-size test.
- Under \(H_0\), the non-rejection probability is at least \(1-\alpha\), with equality for an exact-size test.
The value of the test statistic that separates the region of acceptance from the region of rejection is called the critical value. Decision on null hypothesis is made based on Section 13.8.

13.7 One-tailed and two-tailed tests
The type of alternative hypothesis \(H_1\) determines whether a test is one-tailed or two-tailed.
One-tailed tests
Consider Exercise 13.1, where the alternative hypothesis is:
\(H_1\): \(\mu\) < 8
Here, we reject \(H_0\) if the test statistic falls towards the left side of the sampling distribution. This is called a left-tailed test.
If instead the alternative hypothesis were:
\(H_1\): \(\mu\) > 8
We would reject \(H_0\) if the test statistic falls towards the right side. This is called a right-tailed test.
Left-tailed test: Critical region is on the left side of the sampling distribution.

Right-tailed test: Critical region is on the right side of the sampling distribution.

Two-tailed test
Consider Exercise 13.2, where the alternative hypothesis is:
\(H_1\): \(\mu\) \(\mathbf{\neq}\) 0
Or consider another example:
\(H_1\): \(\mu\) \(\mathbf{\neq}\) 8
In both cases, the critical region lies on both sides of the null sampling distribution. An equal-tail test allocates \(\alpha/2\) to each tail. For a discrete distribution, the attainable tail probabilities may be smaller.

13.8 Decision Rule
After calculating the test statistic from the sample, how do we decide whether to reject the null hypothesis?
The decision rule specifies whether the null hypothesis (\(H_0\)) should be rejected based on the calculated value of the test statistic. It depends on the level of significance (\(\alpha\)) selected by the researcher and the alternative hypothesis (\(H_1\)), which determines whether the test is right-tailed, left-tailed, or two-tailed.
The chosen significance level (\(\alpha\)) determines the critical value(s) that divide the sampling distribution into the rejection region and the non-rejection region. After computing the test statistic, it is compared with the critical value(s) to make a decision.
For the continuous test statistics used in the following chapters, the decision rules are:
- Right-tailed test: Reject (\(H_0\)) if the calculated test statistic is greater than the critical value.
- Left-tailed test: Reject (\(H_0\)) if the calculated test statistic is less than the critical value.
- Two-tailed test: Reject (\(H_0\)) if the calculated test statistic is less than the lower critical value or greater than the upper critical value.
For a discrete test, specify whether the boundary count is included in the rejection region, as in the coin rule \(X\leq1\) or \(X\geq9\). With continuous test statistics, a single boundary point has probability zero under the model.
If the calculated test statistic does not fall in the rejection region, we do not reject (\(H_0\)). This does not prove that \(H_0\) is true; it simply indicates that the sample does not provide sufficient evidence to reject it at the chosen level of significance.
A well-designed statistical test has high power (\(1-\beta\)), meaning it has a high probability of correctly rejecting a false null hypothesis while controlling the probability of a Type I error at the chosen significance level (\(\alpha\)).
13.9 A worked example
Returning to the coin-tossing experiment Example 13.3 from Section 13.3. Let \(X\) be the number of heads in 10 tosses. Here \(X\) is our test statistic. Under the null hypothesis (\(p\) = 0.5), \(X\) follows a binomial distribution with \(n\) = 10 and \(p\) = 0.5.
The binomial probability formula is:
\[p(X = x) = \binom{n}{x} p^x q^{n-x} = \frac{n!}{(n-x)!\, x!} \, p^x q^{n-x}\]
The probability distribution of \(X\) (Sampling distribution) under \(H_0\) is given in Table 13.3. This table gives the probabilities of \(X\) when the \(H_0\) is true.
| \(X\) | \(p(x)\) |
|---|---|
| 0 | 0.001 |
| 1 | 0.010 |
| 2 | 0.044 |
| 3 | 0.117 |
| 4 | 0.205 |
| 5 | 0.246 |
| 6 | 0.205 |
| 7 | 0.117 |
| 8 | 0.044 |
| 9 | 0.010 |
| 10 | 0.001 |

For an equal-tail two-sided test at \(\alpha\) = 0.05, allow at most \(\alpha/2\) = 0.025 in each tail. From Table 13.3:
- \(P(X \leq 1)\) = 0.001 + 0.010 = 0.011
- \(P(X \leq 2)\) = 0.011 + 0.044 = 0.055
Using unrounded binomial probabilities, \(P(X\leq1)=11/1024\) and \(P(X\geq9)=11/1024\). Reject when \(X\leq1\) or \(X\geq9\). The actual Type I error is \(22/1024\approx0.0215\), which is below 0.05. Including \(X=2\) and \(X=8\) would give \(P(X\leq2)+P(X\geq8)=112/1024\approx0.1094\), exceeding 0.05. Because the count is discrete, a nonrandomised test need not attain exactly the stated significance level.
In our experiment, we obtained 8 heads. Since 8 is outside the rejection region, we fail to reject \(H_0\) at \(\alpha\) = 0.05. We do not have sufficient evidence to conclude the coin is biased.
Commonly used test statistics are \(t\), \(F\), \(Z\), and \(\chi^2\) (chi-square). Critical values of these statistics are available in standard statistical tables and will be used in later chapters.
13.10 p-value
Traditionally, hypothesis testing involved comparing the calculated test statistic with a critical value obtained from statistical tables. If the test statistic exceeded the critical value (or fell beyond it in the rejection region), the null hypothesis was rejected.
Today, statistical software automatically calculates the p-value along with the test statistic. As a result, researchers rarely use printed statistical tables to make decisions. Instead, they compare the p-value directly with the chosen level of significance (\(\alpha\)).
The p-value provides a more informative and convenient approach because it indicates the smallest level of significance at which the null hypothesis would be rejected. Therefore, modern statistical analysis is primarily based on the p-value rather than on critical values.
The p-value is the probability of obtaining a test statistic as extreme as or more extreme than the one observed in the sample, assuming that the null hypothesis is true.
A small p-value indicates that the observed result is unlikely to have occurred by random chance alone if the null hypothesis is true. Therefore, it provides strong evidence against the null hypothesis. On the other hand, a large p-value indicates that the observed result is reasonably consistent with the null hypothesis, and there is not enough evidence to reject it.
The decision rule based on the p-value is simple:
- If p-value \(\leq \alpha\), reject the null hypothesis (\(H_0\)).
- If p-value \(> \alpha\), do not reject the null hypothesis (\(H_0\)).
Thus, the p-value helps us decide whether the sample provides sufficient evidence to reject the null hypothesis at the chosen level of significance.
In the coin example, the exact two-sided p-value for eight heads is \(P(X\leq2)+P(X\geq8)=0.109375\). This agrees with non-rejection at the 5% level. The p-value is not the probability that the coin is fair, nor is it the probability that the result will be reproduced.
13.10.1 Significance, precision and practical importance
A small p-value does not measure the size or importance of an effect. A large sample may detect a small yield difference that is of little agricultural value, while an imprecise small study may fail to detect an important difference. Report the estimated effect, its units and a confidence interval as well as the test result. Failure to reject equality is not evidence of equivalence; demonstrating equivalence requires a specified practically acceptable margin and an appropriate test.
If many hypotheses are tested, the probability of at least one false rejection can increase. Plan the comparisons in advance and use an appropriate multiple-comparison method when needed. Choosing the direction, significance level or stopping point after observing favourable results can invalidate the stated error probability.
13.11 Steps in hypothesis testing
The following eight steps summarize the process of hypothesis testing.
Step 1: State the null hypothesis (\(H_0\)).
Step 2: State the alternative hypothesis (\(H_1\)).
Step 3: Set the level of significance (\(\alpha\)).
Step 4: Collect data from the experiment or other scientific methods.
Step 5: Calculate the test statistic.
Step 6: Identify the critical value (or critical region) for the specified \(\alpha\).
Step 7: Compare the calculated test statistic with the critical value.
Step 8: If the calculated test statistic falls in the critical region, reject \(H_0\) at the \(\alpha\) level of significance. Otherwise, conclude that there is insufficient evidence to reject \(H_0\).
13.12 Chapter Summary
Fill in the blanks
Answers are given at the end of the chapter.
A testable statement about a population distribution or its parameters is called a statistical __________.
The hypothesis tested for possible rejection is called the __________ hypothesis.
The hypothesis specifying a departure from the null hypothesis is called the __________ hypothesis.
Rejecting a true null hypothesis is a Type __________ error.
Failing to reject a false null hypothesis is a Type __________ error.
The probability of a Type II error is denoted by __________.
The probability of rejecting a false null hypothesis is called the __________ of a test.
The power of a test is equal to __________.
The set of test-statistic values leading to rejection is called the __________ region.
A value separating rejection and non-rejection regions is called a __________ value.
An alternative hypothesis specifying departures in either direction requires a __________-tailed test.
An alternative hypothesis specifying departures in one direction requires a __________-tailed test.
The probability, under the null model, of a result at least as extreme as the observed result is called the __________.
When the p-value exceeds the chosen significance level, we __________ the null hypothesis.
Short-answer questions
Define a hypothesis.
What is a statistical hypothesis?
Explain the role of hypothesis testing in inferential statistics.
Explain the falsification principle.
What is the null hypothesis?
What is the alternative hypothesis?
Distinguish between null and alternative hypotheses.
Why is the null hypothesis used in statistical testing?
Why do we say “fail to reject \(H_0\)” rather than “accept \(H_0\)”?
Explain the meaning of a test statistic.
Give examples of commonly used test statistics.
Explain Type I error with an example.
Explain Type II error with an example.
Distinguish between Type I and Type II errors.
Which type of error is more serious? Explain why the answer depends on context.
Define the level of significance.
What is the relationship between significance level and Type I error?
Define the power of a test.
What is the relationship between \(\beta\) and the power of a test?
Explain how sample size affects the power of a test.
What is a sampling distribution of a test statistic?
Define the region of rejection.
Define the region of acceptance.
What is a critical value?
Explain the relationship between the critical region and the level of significance.
Distinguish between one-tailed and two-tailed tests.
What determines whether a test is left-tailed, right-tailed, or two-tailed?
Explain a left-tailed test with an example.
Explain a right-tailed test with an example.
Explain a two-tailed test with an example.
State the decision rules for right-tailed, left-tailed, and two-tailed tests.
Define p-value.
Explain the meaning of a small p-value.
Explain the meaning of a large p-value.
State the decision rule based on the p-value.
Distinguish between p-value and level of significance.
Explain the eight steps involved in hypothesis testing.
Explain the difference between statistical significance and practical importance.
Explain why hypothesis testing is based on sample data and is therefore subject to error.
Explain the role of random chance in hypothesis testing.
Numerical and conceptual questions
Answers are given at the end of the chapter.
The reference average fruit weight per plant is 8 kg. State the null and alternative hypotheses for testing whether it has decreased.
A researcher wants to determine whether a pesticide has any effect on crop yield, but has no prior idea whether the effect will be positive or negative. State \(H_0\) and \(H_1\).
A researcher wants to determine whether a new fertilizer changes average crop yield from 50 kg. State the null and alternative hypotheses.
A researcher wants to determine whether a new variety produces a yield greater than 40 kg per plant. State \(H_0\) and \(H_1\).
A coin is suspected to be biased. State the null and alternative hypotheses for testing whether the probability of obtaining a head is 0.5.
In 10 independent tosses, 8 heads are obtained. Use the two-sided 5% binomial rejection rule \(X\leq1\) or \(X\geq9\) to test whether the coin is fair. State the statistic and decision.
Explain why obtaining 8 heads in 10 tosses does not by itself prove that the coin is biased.
In a hypothesis test, \(H_0\) is true but the researcher rejects it. Identify the type of error.
In a hypothesis test, \(H_0\) is false but the researcher fails to reject it. Identify the type of error.
A test is conducted at \(\alpha=0.05\). What is the probability of committing a Type I error?
A test has \(\beta=0.20\). Find the power of the test.
A test has power \(0.90\). Find \(\beta\).
A hypothesis test is conducted at \(\alpha=0.01\). What is the size of the rejection region?
In a two-tailed test with \(\alpha=0.05\), determine the area allocated to each tail.
For \(H_1:\mu<10\), identify the type of test and the location of the rejection region.
For \(H_1:\mu>10\), identify the type of test and the location of the rejection region.
For \(H_1:\mu\neq10\), identify the type of test and the location of the rejection region.
A right-tailed test has a critical value of 1.645 and the calculated test statistic is 2.10. State the decision.
A left-tailed test has a critical value of \(-1.645\) and the calculated test statistic is \(-2.00\). State the decision.
A two-tailed test has critical values \(-1.96\) and \(1.96\). The calculated test statistic is 1.50. State the decision.
A two-tailed test has critical values \(-1.96\) and \(1.96\). The calculated test statistic is 2.30. State the decision.
A hypothesis test gives a p-value of 0.03 at \(\alpha=0.05\). State the decision.
A hypothesis test gives a p-value of 0.08 at \(\alpha=0.05\). State the decision.
A hypothesis test gives a p-value of 0.008 at \(\alpha=0.01\). State the decision.
A hypothesis test gives a p-value of 0.012 at \(\alpha=0.01\). State the decision.
In a two-tailed test, the calculated test statistic falls within the non-rejection region. What conclusion should be drawn?
A test has a very small p-value. What does this indicate about the evidence against \(H_0\)?
A test has a large p-value. Does this prove that \(H_0\) is true? Explain.
A researcher rejects \(H_0\) at \(\alpha=0.05\). What does this conclusion mean?
A researcher fails to reject \(H_0\) at \(\alpha=0.05\). What does this conclusion mean?
Important formulae
Level of significance:
\[ P(\text{Reject }H_0\mid H_0\text{ is true})\leq\alpha \]
Probability of Type II error:
\[ \beta=P(\text{Fail to reject }H_0\mid H_0\text{ is false}) \]
Power of a test:
\[ \text{Power}=1-\beta \]
Size of rejection region:
\[ P_{H_0}(\text{Rejection region})\leq\alpha \]
Size of acceptance region:
\[ P_{H_0}(\text{Non-rejection region})\geq1-\alpha \]
Binomial test statistic used in the worked coin example:
\[ \hat p=\frac{x}{n} \]
Binomial probability:
\[ P(X=x)=\binom{n}{x}p^xq^{n-x} \]
Equivalent binomial probability formula:
\[ P(X=x)=\frac{n!}{(n-x)!x!}p^xq^{n-x} \]
Decision rule based on p-value:
\[ \text{Reject }H_0\quad\text{if}\quad p\text{-value}\leq\alpha \]
Non-rejection rule based on p-value:
\[ \text{Do not reject }H_0\quad\text{if}\quad p\text{-value}>\alpha \]
Quick revision
- Inferential statistics → uses sample data to draw conclusions about a population.
- Hypothesis → tentative and testable statement.
- Statistical hypothesis → testable statement about a population parameter.
- \(H_0\) → null hypothesis; generally represents no effect, no difference, or no relationship.
- \(H_1\) or \(H_a\) → alternative hypothesis; represents an effect, difference, or relationship.
- Falsification principle → a scientific hypothesis should be capable of being tested and potentially falsified.
- Karl Popper → associated with the falsification principle.
- Always use “fail to reject \(H_0\)”; do not say “accept \(H_0\)”.
- Test statistic → numerical function of sample observations used to make a statistical decision.
- Common test statistics → \(Z\), \(t\), \(\chi^2\), and \(F\).
- Type I error → reject \(H_0\) when \(H_0\) is true.
- Type II error → fail to reject \(H_0\) when \(H_0\) is false.
- \(\alpha\) → chosen upper bound on the Type I error probability.
- \(\beta\) → probability of Type II error.
- Power → probability of correctly rejecting a false \(H_0\).
- Power → \(1-\beta\).
- Larger sample sizes generally increase power.
- Sampling distribution → probability distribution of possible values of a test statistic under repeated sampling, assuming \(H_0\) is true.
- Rejection region → values of the test statistic for which \(H_0\) is rejected.
- Critical region → another name for rejection region.
- Acceptance region → complementary region where \(H_0\) is not rejected.
- Critical value → value separating the rejection and non-rejection regions.
- Under \(H_0\), the rejection probability is controlled at \(\alpha\); a discrete test can be conservative.
- Under \(H_0\), the non-rejection probability is at least \(1-\alpha\) for a level-\(\alpha\) test.
- \(H_1:\mu<\mu_0\) → left-tailed test.
- \(H_1:\mu>\mu_0\) → right-tailed test.
- \(H_1:\mu\neq\mu_0\) → two-tailed test.
- An equal-tail two-sided test allocates \(\alpha/2\) to each tail; a discrete test may not attain these probabilities exactly.
- Right-tailed test → reject \(H_0\) when the calculated statistic is greater than the critical value.
- Left-tailed test → reject \(H_0\) when the calculated statistic is less than the critical value.
- Two-tailed test → reject \(H_0\) when the statistic falls below the lower critical value or above the upper critical value.
- p-value → probability of obtaining a test statistic as extreme as or more extreme than the observed value, assuming \(H_0\) is true.
- Small p-value → strong evidence against \(H_0\).
- Large p-value → insufficient evidence to reject \(H_0\).
- p-value \(\leq\alpha\) → reject \(H_0\).
- p-value \(>\alpha\) → do not reject \(H_0\).
- Failing to reject \(H_0\) does not prove that \(H_0\) is true.
- The alternative hypothesis determines whether the test is one-tailed or two-tailed.
- The level of significance is selected before conducting the test.
- Common significance levels in the chapter → \(\alpha=0.05\) and \(\alpha=0.01\).
- The eight basic steps are: state \(H_0\), state \(H_1\), set \(\alpha\), collect data, calculate the test statistic, identify the critical value or region, compare, and make the decision.
- A statistical decision can be incorrect because it is based on sample data.
- Type I and Type II errors have different consequences depending on the context.
- Fisher’s tea-tasting experiment is a historical illustration of hypothesis testing and significance testing.
Answers to fill in the blanks
1. Hypothesis 2. Null 3. Alternative 4. I 5. II 6. \(\beta\) 7. Power 8. \(1-\beta\) 9. Critical 10. Critical 11. Two 12. One 13. p-value 14. Fail to reject
Solutions to numerical and conceptual questions
Let \(\mu\) denote the average fruit weight. The hypotheses are \(H_0:\mu\geq8\) and \(H_1:\mu<8\). This is a left-tailed test, calculated at the null boundary \(\mu=8\).
Let \(\mu\) denote the change in average yield. Since there is no expected change but the chemical could either increase or decrease yield, \(H_0:\mu=0\) and \(H_1:\mu\neq0\). This is a two-tailed test.
Let \(\mu\) denote the average crop yield. Since the researcher wants to determine whether the yield changes from 50 kg, \(H_0:\mu=50\) and \(H_1:\mu\neq50\). This is a two-tailed test.
Let \(\mu\) denote the average yield of the new variety. \(H_0:\mu\leq40\) and \(H_1:\mu>40\). This is a right-tailed test, calculated at the null boundary \(\mu=40\).
Let \(p\) denote the probability of obtaining a head. For an unbiased coin \(H_0:p=0.5\), and for a biased coin \(H_1:p\neq0.5\). This is a two-tailed test.
The observed statistic is \(X=8\) heads, with sample proportion \(\hat p=0.8\). Since neither \(X\leq1\) nor \(X\geq9\) holds, do not reject \(H_0:p=0.5\) at the two-sided 5% level. The exact two-sided p-value is \(2P(X\geq8)=0.109375\).
Eight heads in ten tosses may occur simply because of random variation even when the coin is unbiased. Therefore, the observed result must be compared with the sampling distribution of the test statistic and an appropriate decision rule; an observed difference alone does not prove that the null hypothesis is false.
Rejecting \(H_0\) when it is actually true is a Type I error.
Failing to reject \(H_0\) when it is actually false is a Type II error.
The probability of a Type I error is controlled at 0.05 or 5%. It equals 0.05 for an exact-size test and can be smaller for a conservative discrete test.
Given \(\beta=0.20\), and Power \(=1-\beta\), so Power \(=1-0.20=0.80\), or 80%.
Given Power \(=0.90\), and since Power \(=1-\beta\), we have \(\beta=1-0.90=0.10\), or 10%.
Under \(H_0\), the rejection probability is at most 0.01 or 1%, with equality for an exact-size test.
An equal-tail two-sided test allocates \(\alpha/2=0.025\) to each tail. A continuous exact-size test attains these areas; a conservative discrete test may use smaller tail probabilities.
Given \(H_1:\mu<10\), the test is a left-tailed test, and the rejection region lies on the left side of the sampling distribution.
Given \(H_1:\mu>10\), the test is a right-tailed test, and the rejection region lies on the right side of the sampling distribution.
Given \(H_1:\mu\neq10\), the test is a two-tailed test, and the rejection region lies in both tails of the sampling distribution.
For a right-tailed test, reject \(H_0\) if the calculated statistic is greater than the critical value. Since \(2.10>1.645\), we reject \(H_0\).
For a left-tailed test, reject \(H_0\) if the calculated statistic is less than the critical value. Since \(-2.00<-1.645\), we reject \(H_0\).
The critical values are \(-1.96\) and \(1.96\), and the calculated statistic is \(1.50\). Since \(-1.96<1.50<1.96\), the test statistic does not fall in the rejection region. Therefore, we do not reject \(H_0\).
The critical values are \(-1.96\) and \(1.96\), and the calculated statistic is \(2.30\). Since \(2.30>1.96\), the test statistic lies in the rejection region. Therefore, we reject \(H_0\).
Given \(p\text{-value}=0.03\) and \(\alpha=0.05\). Since \(0.03\leq0.05\), we reject \(H_0\).
Given \(p\text{-value}=0.08\) and \(\alpha=0.05\). Since \(0.08>0.05\), we do not reject \(H_0\).
Given \(p\text{-value}=0.008\) and \(\alpha=0.01\). Since \(0.008\leq0.01\), we reject \(H_0\).
Given \(p\text{-value}=0.012\) and \(\alpha=0.01\). Since \(0.012>0.01\), we do not reject \(H_0\).
If the calculated test statistic falls within the non-rejection region, there is insufficient evidence against \(H_0\) at the chosen level of significance. Therefore, we do not reject \(H_0\).
A very small p-value indicates that the observed result would be unlikely if \(H_0\) were true. Therefore, it provides strong evidence against \(H_0\).
No. A large p-value does not prove that \(H_0\) is true. It only indicates that the observed data do not provide sufficient evidence to reject \(H_0\) at the chosen level of significance.
Rejecting \(H_0\) at \(\alpha=0.05\) means that the sample provides sufficient statistical evidence against the null hypothesis at the 5% level of significance.
Failing to reject \(H_0\) at \(\alpha=0.05\) means that the sample does not provide sufficient evidence against \(H_0\) at the 5% level of significance. It does not prove that \(H_0\) is true.
The lady, the tea, and the birth of hypothesis testing
It was an otherwise unremarkable summer afternoon at Rothamsted Experimental Station in Harpenden, England, in the 1920s. A group of colleagues sat down for tea. When statistician Ronald Fisher poured a cup and offered it to his colleague Dr. Muriel Bristol, she politely declined. She preferred tea into which the milk had been added first, she explained - and she could tell the difference just by tasting.
Fisher was sceptical, but Bristol maintained that she could tell the difference. A third colleague, William Roach, suggested they settle the matter with an experiment.
Fisher prepared eight cups of tea - four with milk added first, four with tea added first - and presented them to Dr. Bristol in a random order. She was told that four cups had been prepared each way, and her task was to identify them. The statistical calculation considers the result in which all eight are correctly identified; Fisher’s 1935 account presents the experimental reasoning rather than documenting Bristol’s observed result.
Fisher used this experiment in his landmark 1935 book The Design of Experiments to introduce the concept of the null hypothesis and significance testing. The null hypothesis was that Dr. Bristol had no ability to tell the difference and was merely guessing. Fisher showed that the probability of correctly identifying all eight cups by chance alone was only 1 in 70, or about 1.4% - below the conventional 5% level, though not below 1%. (Fisher 1935)
This charming episode gave the world a framework that now underlies every clinical trial, every agricultural experiment, and every scientific study that draws a conclusion from data. The next time you test a hypothesis in your research, you are following in the footsteps of a tea experiment at Rothamsted.
“To consult the statistician after an experiment is finished is often merely to ask him to conduct a post mortem examination. He can perhaps say what the experiment died of.”
- Sir Ronald A. Fisher