Summary of Hypothesis Testing
Carl Lee
A. Procedure for Testing a Hypothesis mean -Large Sample Cases
1. The following table summarizes the procedure.
|
Step 1: Setup the alternative (research hypothesis, Ha, and set H0: m = m 0) |
|||
|
Hypothesis |
Left-sided |
Two-sided |
Right-sided |
|
Null vs. Alternative |
H0: m = m 0, Ha: m < m 0 |
H0: m = m 0, Ha: m ¹ m 0 |
H0: m = m 0, Ha: m > m 0 |
|
Step 2: Setup the appropriate rule and test statistic
|
|||
Rule: use z-statistic
|
Step 3: Compute the observed z-value using observed sample mean |
|||
|
Reject H0 (in favor of Ha) |
zobs < -z a |
zobs < -z a or zobs > za |
zobs > z a |
|
Step 4: Make a concluding statement based on the question asked. |
|||
B. Note, in all hypothesis testing situations, the direction of the alternative hypothesis determines the direction of the rejection region. For example, in the large-sample test of hypothesis about a population mean, for Ha:
m > m 0, the rejection region is z > za ; for Ha: m < m 0, the rejection region is z < -za ; for Ha: m ¹ m 0, the rejection region is z < -za /2 or z > za /2. Note also, that, whenever Ha is two-tailed, a is divided into 2 equal parts to determine the rejection region.C. p-value and
a-value:The
a-value is the predetermined level of significance. Typical a-value is 1%, 2%, 5% or 10%. This value sets up the rejection region. The reason that a-value is usually small is because , in real applications, we should not reject null hypothesis unless we have a strong evidence that the sample mean is far away from the null hypothesis. Setting a-value as small as 5% indicates that if the sample mean really falls into the 5% region, then, it must be very rare compared with the null, and hence, we should strong evidence to reject the null hypothesis.On the contrast, p-value is the observed level of significance. One can compare the p-value with the
a -value to make the decision in hypothesis test problems. This is a common approach when computer software is available. It is not easy to be computed by hand. However, all statistical software gives the p-value for the intended test.D. The difference between p-value and
a -value. Consider a right-sided test situation,a
-value = P(Z > za ). This is the probability of Z higher than the critical value za .p-value = P(Z > zobs) This is the probability of Z higher than the observed zobs. For example, consider
a = .05. Then za = 1.645, and suppose we obtain zobs = 1.02
Based on the rule using z
a and zobs, we see, since zobs = 1.02 < za = 1.645, we do not reject H0. If we compute thep-value, P(Z > zobs) = P(Z > z1.02) = 0.5 - .3461 = .1539. Then, in stead of comparing the two z-values (zobs vs. z
a ), we can compare the corresponding "rejection region" probabilities (p and a ).E. The rule based on the p-value will be:
If the p-value <
a , then, reject H0, otherwise do not reject H0.Based on this rule, p-value = .1539 >
a = .05. We do not reject H0.Note: the final decision using either (zobs, z
a ) or (p-value, a ) are the same.F. Computation of the p-value and the corresponding rule-large sample case
Left-sided test: p-value = P(Z < zobs)
Two-sided test: p-value = 2P(Z > |zobs|)
Right-sided test: p-value = P(Z > zobs)
G. The rule for using the p-value, regardless of the type of test is
If p-value <
a , the reject H0If p-value
³ a , then do not reject H0H. Procedure for Testing a Hypothesis mean-Small Sample Cases
1. The following table summarizes the procedure.
|
Step 1: Setup the alternative (research hypothesis, Ha, and set H0: m = m 0) |
||||||
|
Hypothesis |
Left-sided |
Two-sided |
Right-sided |
|||
|
Null vs. Alternative |
H0: m = m 0, Ha: m < m 0 |
H0: m = m 0, Ha: m ¹ m 0 |
H0: m = m 0, Ha: m > m 0 |
|||
|
Step 2: Setup the appropriate rule and test statistic |
||||||
|
|
|
|
|
|||
Rule: use t-statistic
|
Step 3: Compute the observed t-value using observed sample mean |
||||
|
Reject H0 (in favor of Ha) if |
tobs < -t( a ,n ) |
tobs < -t( a /2, n ) or tobs > t(a /2, n ) |
tobs > t( a , n ) |
|
|
Or use p-value to make a decision |
||||
|
|
p-value = P(t < tobs) |
p-value = 2P(t > |tobs|) |
p-value = P(t > tobs |
|
|
Decision based on p-value If p-value < a then reject H0. If p-value ³ a then do not reject H0. |
||||
|
Step 4: Make a concluding statement based on the question asked. |
||||
2. The difference between small sample and large sample hypothesis testing problems is the choice of test statistics. A test statistic is a standardization of the sample statistic. For large sample cases, the standardized
is
. For small sample cases, the standardized
is
even though the computation is the same.
I. The concept that a test-statistic is the standardized sample statistic is true for most of statistical hypothesis testing problems, including all test statistics that are/will be covered in this course and many others that are not covered I this course. The reasons behind using the standardized sample statistics as test statistics is that standardized measures can be compared without worrying about the units, and probability distributions for the standardized sample statistics are either known or easier to derive.
J. Procedure for Testing a Hypothesis on Proportion.
1. Procedure for testing a hypothesis on population proportion is similar to the large sample test for mean, except that we are interested in p (population proportion) not in
m (population m ).|
Step 1: Setup the alternative (research hypothesis, Ha, and set H0: p = p0) |
||||||
|
Hypothesis |
Left-sided |
Two-sided |
Right-sided |
|||
|
Null vs. Alternative |
H0: p = p0, Ha: p < p0 |
H0: p = p0, Ha: p ¹ p0 |
H0: p = p0, Ha: p > p0 |
|||
|
Step 2: Setup the appropriate rule and test statistic |
||||||
|
|
|
|
|
|||
Rule: use z-statistic
|
Step 3: Compute the observed z-value using the sample proportion
|
|||
|
Reject H0 (in favor of Ha) |
zobs < -z a |
zobs < -z a or zobs > za |
zobs > z a |
|
Step 4: Make a concluding statement based on the question asked. |
|||
2. In step 3 of the procedure, Z is the standardized variable for
through
where ![]()