Hypothesis Testing and Interval Estimation
Hypothesis Testing and Interval Estimation
1. Hypothesis testing
𝓡 𝓑 𝒓 F test
𝛽0 𝓡∙𝓑=𝒓
(Joint test)
0 2 1 0 𝛽1 2
𝐻0 : [ ][ ] = [ ]
0 1 0 0 𝛽2 0
𝛽3
A. Testing for single hypothesis (using the t test)
We can apply a:
Graphically we have:
̂
log(𝑤𝑎𝑔𝑒) = 0.284 + 0.092 𝐸𝑑𝑢𝑐 + 0.004 𝐸𝑥𝑝𝑒𝑟 + 0.022 𝑇𝑒𝑛𝑢𝑟𝑒
(0.11) (0.0073) (0.001) (0.003)
Where:
𝑤𝑎𝑔𝑒: hourly wage for workers (the worker can be from a certain region or city)
𝐸𝑑𝑢𝑐: years of education
𝐸𝑥𝑝𝑒𝑟: years of work experience
𝑇𝑒𝑛𝑢𝑟𝑒: years of loyalty (working for the same company)
a) Test whether return to education is statistically different from zero at the 1% critical value
(significance level). NB: different from zero means that it can be greater than or less than zero.
This is a two-tail test (this is the test that Stata will perform)
𝐻0 : 𝛽1 = 0
𝐻1 : 𝛽1 ≠ 0 (two-tail test)
We reject the null hypothesis that the estimated 𝛽1 is equals to zero. There is enough evidence to
suggest that the return to education is different from zero at the 1% significance level.
b) Some researchers claim that the return to education is greater than 0.05 (this is, a 1-year increase
in education leads to an average increase in workers’ wage of 0.05 or 5%). We can test this
hypothesis using the t-test statistics at the 1% significance level. We write the hypotheses as
follows:
We reject the null hypothesis that the estimated 𝛽1 is equals to 0.05. There is enough evidence to
say that return to education is greater than 0.05 at the 1% significance level.
E.g.2:
𝒚𝒊 = 𝜷𝟎 + 𝜷𝟏 𝒙𝒊 + 𝒖𝒊
Where:
𝑦: 𝑓𝑜𝑜𝑑 𝑒𝑥𝑝𝑒𝑛𝑑𝑖𝑡𝑢𝑟𝑒 (𝑤𝑒𝑒𝑘𝑙𝑦)
𝑥: 𝑖𝑛𝑐𝑜𝑚𝑒 (𝑤𝑒𝑒𝑘𝑙𝑦)
𝑛 = 40 (Number of observations)
𝛼 = 0.05 (significance level -critical value); the error level
This is a 5% probability of being wrong with the results
̂𝒊 = 𝟒𝟎. 𝟏𝟖 + 𝟎. 𝟕𝟎𝒙𝒊
𝒚
se (0.1434) se is the standard error
t (4.88) t is the t-test statistic (student’s t-test)
a) Test whether the impact of income on food expenditure is different from zero at the 1% critical
value.
𝐻0 : 𝛽1 = 0
𝐻1 : 𝛽1 ≠ 0 (two-tail test)
We reject the null hypothesis at the 1% critical value (the t calculated is greater than the t table).
There is enough statistical evidence to suggest that changes in income leads to changes in food
expenditure at the 1% critical value (or significance level).
Note that we can reject the null hypothesis at the 5% significance level (an at the 10% level, too):
T table 𝑡0.05,40−1−1 so T table 𝑡0.05,38 = 2.02
b) Test whether the impact of income on food expenditure is greater than zero at the 1% critical
value (like the income elasticity of demand). Note that we always write our statement as the
alternative (H1) hypothesis.
We do not reject the null hypothesis at the 1% significance level. So, there is not enough statistical
evidence to suggest that a one-unit increase in income causes an increase in food expenditure
greater than $0.41
Note that we can reject the null hypothesis at the 5% significance level:
T table 𝑡0.05,40−1−1 so T table 𝑡0.05,38 = 1.68
0.70−0.41
T calculated 𝑡 = 0.1434 = 2.02
There is statistical evidence to suggest that a one-unit increase in income cause increase in food
expenditure greater than $0.41 at the 5% critical value.
B. Testing for joint hypotheses (using the F test to compare two variances)
We have: 𝑦𝑖 = 𝛽0 + 𝛽1 𝑥1𝑖 + 𝛽2 𝑥2𝑖 + 𝛽3 𝑥3𝑖 + 𝑢𝑖
MSE: Mean Squares Explained (or Model); MSR: Mean Squares Residual 15.62/0.1943=80.39
As F (3, 522) = 80.39 (and Prob > F = 0.0000), we can reject the null hypothesis that all betas
are simultaneously equal to zero. This suggest that at least one beta is different from zero,
and, therefore, it can serve to predict the dependent variable.
𝑆𝑆𝑅𝑟 − 𝑆𝑆𝑅𝑢𝑟 /𝑞
𝐹=
𝑆𝑆𝑅𝑢𝑟
𝑛−𝑘−1
Where:
𝑆𝑆𝑅𝑟 : sum of squares residual (restricted) (only with intercept)
𝑆𝑆𝑅𝑢𝑟 : sum of squares residual (unrestricted) (intercept and coefficients)
𝑞 = 𝑑𝑓𝑟 − 𝑑𝑓𝑢𝑟 where:𝑑𝑓 = 𝑛 − 𝑘; 𝐹~𝐹𝑞 , 𝑛 − 𝑘 − 1
𝑑𝑓: degrees of freedom
𝑹𝟐𝒖𝒓 − 𝑹𝟐𝒓 /𝒒
𝑭=
(𝟏 − 𝑹𝟐𝒖𝒓 )⁄𝒏 − 𝒌 − 𝟏
Where:
𝑅𝑟2 : R-squared (restricted) (only with intercept)
2
𝑅𝑢𝑟 : R-squared (unrestricted) (intercept and coefficients)
𝑞 = 𝑑𝑓𝑟 − 𝑑𝑓𝑢𝑟 where:𝑑𝑓 = 𝑛 − 𝑘; 𝐹~𝐹𝑞 , 𝑛 − 𝑘 − 1
𝑑𝑓: degrees of freedom
In economic growth:
𝐻0 : 𝛽1 + 𝛽2 = 1 constant return to scale
𝐻1 : 𝛽1 + 𝛽2 > 1 increasing return to scale
In economic growth:
𝐻0 : 𝛽1 + 𝛽2 = 1 constant return to scale
𝐻1 : 𝛽1 + 𝛽2 ≠ 1 increasing return to scale
̂
log(𝑤𝑎𝑔𝑒) = 0.284 + 0.092 𝐸𝑑𝑢𝑐 + 0.004 𝐸𝑥𝑝𝑒𝑟 + 0.022 𝑇𝑒𝑛𝑢𝑟𝑒
(0.11) (0.0073) (0.001) (0.003)
𝐻0 : 𝛽1 = 0
𝐻1 : 𝛽1 ≠ 0 (two tail)
̂𝒊 = 𝟒𝟎. 𝟏𝟖 + 𝟎. 𝟕𝟎𝒙𝒊
𝒚
se (0.1434)
t (4.88)
𝐻0 : 𝛽1 = 0
𝐻1 : 𝛽1 ≠ 0 (two tail)