Chapter 5 Slides
Chapter 5 Slides
Using Econometrics
A. H. Studenmund
Chapter 5
What Is Hypothesis Testing?
• Hypothesis testing and statistical inference allow us to
answer questions about the real world from a sample.
• It is used in a variety of settings:
• FDA product testing
• Testing theories of Keynes and Friedman
• It’s almost impossible to prove a theory is “correct” with
hypothesis testing.
• All that can be done with hypothesis testing is to state
that a particular sample conforms to a particular
hypothesis.
β 5-2
What Is Hypothesis Testing? (continued)
• The first step in hypothesis testing is to state the
hypotheses to be tested.
β 5-3
What Is Hypothesis Testing? (continued)
Example: If you expect a positive coefficient
Null hypothesis: H0: β ≤ 0
(the values you do not expect)
Alternative hypothesis: HA: β > 0
(the values you expect)
β 5-4
What Is Hypothesis Testing? (continued)
• A two-sided test (or a two-tailed test) tests an
alternative hypothesis with values on both sides of the
null hypothesis.
β 5-5
What Is Hypothesis Testing? (continued)
• Typical testing technique in econometrics:
1. Hypothesize an expected sign (or value) for each
regression coefficient (except constant).
2. Determine whether to reject the null hypothesis.
β 5-6
What Is Hypothesis Testing? (continued)
Example: Suppose the following null and alternative
H0: β ≤ 0
HA: β > 0
β 5-7
What Is Hypothesis Testing? (continued)
• A decision rule is a method of deciding whether to
reject a null hypothesis.
• Typically a decision rule involves comparing a sample
statistic with a critical value.
• A decision rule should be formulated before regression
estimates are obtained.
• Divide the range of possible values of into two
regions:
1. “Acceptance” region
2. Rejection region
β 5-8
What Is Hypothesis Testing? (continued)
• A critical value divides “acceptance” and rejection
regions.
• For a two-tailed test, two critical values are selected.
β 5-10
What Is Hypothesis Testing? (continued)
β 5-11
The t-Test
• The t-test is used to test hypotheses about individual
slope coefficients.
• Since these are usually the case, the use of the t-test for
hypothesis testing has become standard in
econometrics.
β 5-12
The t-Test (continued)
• We can calculate t-values for each estimated coefficient
of a typical multiple regression equation:
Where:
= the estimated regression coef. for the kth variable
β 5-14
The t-Test (continued)
Example: Consider Woody’s restaurant from Section 3.2
β 5-15
The t-Test (continued)
• Whether to reject or not to reject a null hypothesis is
based comparing calculated t-value to a critical t-value.
β 5-16
The t-Test (continued)
• Once a critical t-value (tc) has been selected and
calculated t-value (tk) obtained, apply the following
decision rule:
Reject H0 if |tk| > tc
and
if tk has the sign implied by HA.
β 5-17
The t-Test (continued)
• This decision rule is used for:
β 5-18
The t-Test (continued)
• It is also used for:
β 5-19
The t-Test (continued)
Example: Woody’s restaurant: test βP to be positive.
• One-sided test: H0: βP ≤ 0
HA : β P > 0
• There are 29 degrees of freedom (N – K - 1, or 33 – 3
- 1) so appropriate tc at 5-percent significance: 1.699.
• Decision rule:
Reject H0 if |tP| > 1.699 and if tP is positive
• Recall tP = +4.88
• Since |4.88| > 1.699 and 4.88 is positive, reject H0.
β 5-20
The t-Test (continued)
• The level of significance indicates the probability of
observing an estimated t-value greater than the critical
value if the null hypothesis were correct.
β 5-21
The t-Test (continued)
• Unfortunately, a low level of significance dramatically
increases the probability of a Type II Error.
β 5-22
The t-Test (continued)
• The p-value, or marginal significance level, is an
alternative to the t-test.
β 5-23
The t-Test (continued)
• How do you use a p-value to run a t-test?
• Apply p-value decision rule:
β 5-24
Examples of t-Tests
• There are four steps to conducting a t-test:
β 5-25
Examples of t-Tests (continued)
Example: One-sided t-test: aggregate annual retail sales
of new cars
β 5-26
Examples of t-Tests (continued)
Step 2: Choose a level of significance and therefore a
critical t-value.
5-percent significance level
degrees of freedom = 6
β 5-27
Examples of t-Tests (continued)
Step 4: Apply the decision rule by comparing the
calculated t-value with the critical t-value in order to
reject or not reject the null hypothesis.
β 5-28
Examples of t-Tests (continued)
β 5-29
Examples of t-Tests (continued)
β 5-30
Examples of t-Tests (continued)
Example: Two-sided t-test whether an estimated
coefficient is statistically different than zero: Woody’s
restaurant location
β 5-31
Examples of t-Tests (continued)
Step 2: Choose a level of significance and therefore a
critical t-value.
5-percent significance level
degrees of freedom = 29
β 5-32
Examples of t-Tests (continued)
Step 4: Apply the decision rule by comparing the
calculated t-value with the critical t-value in order to
reject or not reject the null hypothesis.
β 5-33
Examples of t-Tests (continued)
• For a two-sided t-test with a specific nonzero coefficient
value, the null and alternative hypotheses become:
H0:
HA:
β 5-34
Limitations of the t-Tests
• One problem with the t-test is that it is easy to misuse.
• Three limitations:
1. The t-test does not test theoretical validity
β 5-36
Limitations of the t-Tests (continued)
3. The t-test is not intended for tests of the entire
population.
• The t-test helps make inferences about the true value of
a parameter from a sample of the population.
• A unbiased coefficient calculated from entire population,
already measures the population value.
• A significant t-test adds nothing to this knowledge.
• If the sample size is large enough to approach the
population, then the standard error will approach zero
and the t-score will become:
β 5-37
Confidence Intervals
• Confidence intervals are a third way to do hypothesis
testing.
• A confidence interval is a range of values that will
contain the true value of β a certain percentage of the
time.
• The confidence interval formula:
confidence interval =
• tc is the two-sided critical value of the t-statistic for the
chose significance level.
β 5-38
Confidence Intervals (continued)
Example: Woody’s restaurant site location
• If testing: H0: βI = 1
HA: βI ≠ 1
• We cannot reject null hypothesis at the 10-percent level
because 1 is in the confidence interval.
β 5-40
Confidence Intervals (continued)
• Confidence intervals are also very useful in telling how
precise a coefficient estimate is.
Example: Contractor Grace and value of a bathroom
β 5-41
The F-Test
• The F-test is a formal hypothesis test designed to deal
with a null hypothesis that contains multiple hypotheses
or a single hypothesis about a group of coefficients.
• The way an F-test works is fairly ingenious:
1. Translate the null hypothesis into constraints that
will be placed on the equation.
2. Estimate the constrained equation with OLS and
compare the fit of the constrained equation with the fit of
the unconstrained equation.
β 5-42
The F-Test (continued)
• The fits of the equations are compared with the general
F-statistic:
where:
RSS = residual sum of squares from the
unconstrained equation
RSSM = residual sum of squares from the
constrained equation
M = number of constraints
(N-K-1) = degrees of freedom in the unconstrained
equation.
β 5-43
The F-Test (continued)
• Decision rule is reject the null hypothesis if calculated
F-value (F) is greater than the critical F-value (Fc)
β 5-44
The F-Test (continued)
• F-test of overall significance provides a formal
hypothesis test of overall fit.
• It tests all slope coefficients equal to zero simultaneously.
H0: β1 = β1 = … = βK = 0
HA: H0 is not true
• The overall F-statistic is:
β 5-45
The F-Test (continued)
• There are many uses of the F-test.
• One example is testing the significance of seasonal
dummies (dummy variables used to account for
seasonal variation in time-series models).
• For example, in a quarterly model, if:
X1t = 1 if quarter 1 and 0 otherwise
X2t = 1 if quarter 2 and 0 otherwise
X3t = 1 if quarter 3 and 0 otherwise
then:
β 5-46
The F-Test (continued)
• To test the hypothesis of significant seasonality in the
data, one must test the hypothesis that all dummies
equal zero simultaneously.
• In this case, the hypothesis statement would be:
H0: β1 = β2 = β3 = 0
HA: H0 is not true
β 5-47
β