Chapter5 - Hypothesis Testing and Statistical Inference
Chapter5 - Hypothesis Testing and Statistical Inference
STATISTICAL INFERENCE
β 5-1
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-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-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
• 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:
Yi = 𝛽 + 𝛽 𝑖 + 𝛽 𝑖 + 𝜀𝑖 (5.1)
• t-statistic for the
𝛽𝑘 −𝛽𝐻0
kth coefficient: 𝑡𝑘 = 𝑘 = , , . . 𝑘 (5.2)
𝐸 𝛽𝑘
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-25
Examples of t-Tests
• There are four steps to conducting a t-test:
β 5-26
Examples of t-Tests (continued)
Example: One-sided t-test: aggregate annual retail sales
of new cars
β 5-27
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 𝑡𝑐 = .9
β 5-28
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-29
Examples of t-Tests (continued)
β 5-30
Examples of t-Tests (continued)
β 5-31
Examples of t-Tests (continued)
Example: Two-sided t-test whether an estimated
coefficient is statistically different than zero: Woody’s
restaurant location
β 5-32
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 𝑡𝑐 = .9
β 5-33
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-34
Examples of t-Tests (continued)
• For a two-sided t-test with a specific nonzero coefficient
value, the null and alternative hypotheses become:
𝐻 : 𝛽𝑘 = 𝛽𝐻0
𝐻 : 𝛽𝑘 ≠ 𝛽𝐻0
β 5-35
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-37
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-38
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 = 𝛽 ± 𝑡𝑐 ∗ 𝑆 𝛽
β 5-39
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-41
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-42
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-43
The F-Test (continued)
• The fits of the equations are compared with the general
F-statistic:
𝑀− /
= (5.10)
/ −𝐾−
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-44
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-45
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-47
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-48
β 5-49
β