9.1 Null and Alternative Hypotheses
A hypothesis test is procedure used to determine whether sample data provides enough evidence to determine the validity of claims made about a population.
A hypothesis is a claim or statement about a characteristic of a population of interest to us. A hypothesis test is a way for us to use our sample statistics to test a specific claim[1] about a population parameter.
Null hypothesis is a statement about the value of a population parameter, such as the population mean
Examples:
Alternative hypothesis is the opposite of the null hypothesis. It contains the value of the parameter that we consider plausible and is denoted as H1 (or Ha).
Examples:
If a statement contains the condition of equality (
Understanding the Language of Hypothesis Testing
EXAMPLE 1
A climatologist wants to check the claim on a Wikipedia article that San Diego averages a maximum of 66 days of measurable precipitation per year.
SHOW SOLUTION
Since the question states that “San Diego averages a maximum of 66 days …“, the parameter of interest is the average (or the mean).
Note that for this class we’ll use the words mean and average interchangeably, although mathematically they can be different. Read more about Mean vs Average.
The actual average days of annual precipitation for San Diego is not something the climatologist knows otherwise they could easily see if that average is no more than 66 days. Therefore the unknown parameter here for the researcher is the average number of days of measurable precipitation per year in San Diego. Let’s call that average
Let
Let’s write the claim using mathematical symbols:
the average days of measurable precipitation per year in San Diego
is no more than 66
Putting it together, the claim is:
Of the two statements above, the null hypothesis,
We can represent the null and the alternative hypotheses on a number line. Since the null hypothesis is
Note that the unknown mean,
Some textbook authors prefer to write the null hypothesis for this example as
EXAMPLE 2
An economist claims that lower than 81% of investment portfolios went up in value this past year.
SHOW SOLUTION
Since the 81% given is the percentage of investment portfolios that went up in value this past year, that 81% represents the proportion of portfolios that increased their value. The economist believes that the percentage of portfolios that increased their value is lower, but they don’t know that actual percentage. The unknown parameter here is the proportion (the decimal equivalent of the percentage) of investment portfolios that went up in value. Let’s call that proportion p.
Let
The economist believes that this actual proportion is lower than 81% or 0.81. In symbols:
This is an example of a claim that doesn’t contain the condition of equality. The opposite of the claim is:
Of the two statements above, the null hypothesis,
OR |
EXAMPLE 3
The mean price of mid-sized cars in a region is 42400. A test is conducted to see if the claim is true.
SHOW SOLUTION
Since the test is to see if the claim that the mean price of 42400 is true for mid-sized cars, this would be a test for the mean . The unknown parameter here is the mean price of all mid-sized cars. Let’s call that average
Let
We’d like to see if this mean,
This is an example of a claim that contains condition of equality. The opposite of this claim is
Of the two statements above, the null hypothesis,
PRACTICE
ADDITIONAL Practice
Test statistic is the z or t-score of the sample data. Some textbooks define test statistic as the sample statistic (mean, proportion, difference of means, etc.) and the z or t-score associated with that sample statistic as the standardized test statistic.
Tail-type of a test is the direction favored by the alternative hypothesis.
Types of Tail
Review Types of Tests.
For a visual explanation, watch the following video:
How do you decide the tail type for your study?
Choosing between One-tailed or a two-tailed test for your data analysis