Introduction to Hypothesis Testing (College Board AP® Statistics): Revision Note
Introduction to hypothesis testing
What is a hypothesis test?
A hypothesis test is a procedure for determining whether or not a population parameter has changed significantly from its previous (or previously assumed or accepted) value
e.g. you suspect the mean height of all the trees on an island has increased from its original value of 5.2 meters
What is the null hypothesis?
A null hypothesis, , is the assumption that the population parameter has not changed
e.g. : The mean height of all trees on an island is still 5.2 meters ()
It is assumed to be correct, unless there is convincing evidence against it
For a one-sided test, the null hypothesis can include an inequality, such as
or
but it is still tested at the boundary of equality,
What is the alternative hypothesis?
An alternative hypothesis, , is how you think the population parameter has changed
e.g. The mean height of all trees on an island has increased from 5.2 meters ()
It is the situation for which evidence is being collected
Examiner Tips and Tricks
After writing out your hypotheses, always fully define the symbol used for the population parameter in context, e.g. '... where is the mean height of all trees on the island'.
What is a one-sided test?
A one-sided (or one-tailed) test is when you suspect the population parameter has either increased or decreased
i.e. has changed in a particular direction
The alternative hypothesis is a strict one-sided inequality
Examiner Tips and Tricks
You will know from the wording of the question if it is a one-tailed test. For example:
The manager worries that the mean salary has gone up
The biologist suspects a reduction in mean weight
What is a two-sided test?
A two-sided (or two-tailed) test is when you suspect the population parameter has changed
but you do not know if it has increased or decreased
The alternative hypothesis is a not-equal-to statement
Examiner Tips and Tricks
Common wording used for two-tailed tests include:
The mathematician feels that the mean scores are different from last year
The scientist suspects a change in mean temperature
The journalist does not know if it is rising or falling
What is a sample statistic?
To test a claim, you take a random sample from the population and calculate a sample statistic
This is an estimate of the population parameter in the null hypothesis
e.g. you randomly sample 30 trees and find that their mean height is 6.5 m
The sample statistic is the sample mean, m
The sample statistic you use depends on the parameter in the hypotheses
Use a sample mean to test a claim about a population mean
Use a sample proportion to test a claim about a population proportion
Examiner Tips and Tricks
Do not confuse the sample statistic (e.g. the sample mean, ) with the population parameter (e.g. the population mean, )!
What is a test statistic?
A sample statistic will usually not be exactly equal to the value in the null hypothesis, even if the null hypothesis is true
So you need to know whether the sample statistic is unusually far from the null value
The test statistic (or standardized test statistic) measures how far the sample statistic is from the value in the null hypothesis
Here “parameter” means the value of the parameter in the null hypothesis
It shows how many standard errors the sample statistic is from the null value
The standard error is the standard deviation of the sampling distribution of the statistic
The further the test statistic is from 0, the stronger the evidence against the null hypothesis
You will see specific test statistics, such as z- and t-test statistics, later in the course
Examiner Tips and Tricks
The formula for the standardized test statistic is given in the exam, along with tables of parameters and standard errors.
What are conditions for a hypothesis test?
Each type of hypothesis test has its own set of conditions that must be met
A common condition is the independence condition which states that items in the sample (or experiment) must be independent
This is checked in two stages, first:
verify that data is collected by random sampling
or random assignment (in an experiment)
Second, if sampling without replacement (this is not needed for random assignment):
verify that the sample size is less than or equal to 10% of the population size
Sometimes written
Examiner Tips and Tricks
You must learn the conditions relevant to each type of hypothesis test.
What is the p-value?
A p-value is used to decide whether a sample result is unusual
You need the probability of getting a result like it if the null hypothesis were true
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 the null hypothesis is true
Note that this is the probability of an extreme region
not just of one extreme value
The further the sample statistic (e.g. the sample mean, ) is from the value in the null hypothesis, the more extreme the test statistic is
e.g. a z- or t-test statistic further from 0
This gives a smaller p-value
and stronger evidence against the null hypothesis
How do I calculate the p-value?
The p-value is calculated by finding probabilities from the distribution of the test statistic
Use the value of the parameter in the null hypothesis
as p-values are calculated assuming the null hypothesis is true
Work out the standardized test statistic
This allows you to use the appropriate probability tables
What is the significance level?
The significance level, , is a probability boundary (threshold) at which you reject the null hypothesis
If the p-value is less than or equal to the significance level, you reject the null hypothesis
It must be set before a hypothesis test is carried out
It will usually be 1%, 5%, or 10%
written as , or
if it is not given in the question, use 5%
How do I conclude a hypothesis test?
Conclusions to a hypothesis test need to contain two things:
a decision about the null hypothesis
an interpretation of this decision in the context of the question
To make the decision, compare the p-value to the significance level
If then we reject the null hypothesis
If then we fail to reject the null hypothesis
In a two-tailed test, the p-value is double the probability used for a one-tailed test
This is because there are two regions that are as extreme as, or more extreme than, the one observed in the sample
Examiner Tips and Tricks
In the exam, your decision should say whether you reject or fail to reject the null hypothesis. Avoid using 'accepted' or talking about the 'alternative hypothesis' at this point.
How do I interpret a conclusion in context?
One or two sentences are needed at the end that interpret the conclusion in context
Start by saying whether the data provides convincing statistical evidence
or does not provide convincing statistical evidence
It must mention convincing or sufficient
It is not correct to say 'no / zero evidence' or 'this proves' or 'we accept that...'
Then continue by writing out the relevant hypothesis in context
Copy out exact phrases from the question
Make sure the population parameter is mentioned in context
For example, a good interpretation is:
'The data provides convincing statistical evidence that the mean height of all trees on the island has increased'
but not:
'this proves the heights of all trees have increased'
How do I lay out a hypothesis test in the exam?
STEP 1
Hypotheses:
or or
Define the population parameter in context
'...where is the ...'
State the significance level,
e.g.
STEP 2
Identify the appropriate inference procedure:This is the type of test you want to perform
e.g. 'The appropriate inference procedure is a one-sided t-test for a population mean'
STEP 3
Verify any conditions relevant to that testSTEP 4
Find the p-value:Calculate the standardized test statistic
Calculate the p-value
Mention any degrees of freedom where relevant
STEP 5
Conclusion:Compare the p-value to
Provide a correct decision about
e.g. 'we reject '
Interpret the conclusion in context
e.g. the data provides convincing statistical evidence that the mean of ... etc
Unlock more, it's free!
Was this revision note helpful?
Build on this topic