Hypothesis Testing
Hypothesis Testing
04 Functional
05 06
Specification forms Evaluation
Choosing Explanatory Model selection Model Evaluation
variables
01
Hypothesis
Testing
Significance of Parameters
PRECISION OR STANDARD ERRORS
OF LEAST-SQUARES ESTIMATES
● In statistics the precision of an estimate is measured by its
standard error (se). Given the Gaussian assumptions, the
standard errors of the OLS estimates can be obtained as follows:
2
=
5
PRECISION OR STANDARD ERRORS
OF LEAST-SQUARES ESTIMATES
SE(0) = √ SE(1) = √
6
Test of Hypothesis
for the Parameter Estimates
● A test of hypothesis is a procedure by which sample
results are used to verify the truth or falsity of a
null hypothesis, using a test statistic obtained from
the data at hand.
● Let H0 = k H1 ≠ k
● Test statistic: t =
follows the t distribution with n − 2 degrees of
freedom.
● Accept the null hypothesis if ≤ tα/2
7
Test of Significance
for the Parameter Estimates
● Let H0 = k H1 ≠ k
● Test statistic: t =
follows the t distribution with n − 2 degrees of
freedom.
● Accept the null hypothesis if ≤ tα/2
(n=10)
8
Test of Significance
for the Parameter Estimates
● Let H0 = 0 (parameter is not significant) &
H1 ≠ 0 (parameter is significant)
● Test statistic: t = or t=
follows the t distribution with n − 2 degrees of
freedom.
● Accept the null hypothesis if ≤ tα/2
9
Testing the statistical significance of β1
H 0 : β1 = 0
H1 : β1 ≠0
H0 can be tested using the test statistic:
t1 =
m p ling of
Sa tion
1
ib u
distr
i b u tion
t distr At level of significance α
e g ion
i on r
e c t 95%
r ej rejection region
2.5%
2.5%
^
𝛽1
-t α/2 0 t α/2
Accept the null hypothesis if ≤ tα/2
11
12
Example
i = 55.72 + 0.291 Xi n = 15
SE (5.31) (0.018) R2 = 0.95
Where Y is per capita household expenditure on food and X is
per capita total household expenditure
● Interpret the results
● Test the significance of parameter estimates at
5% level of significance.
13
Example
i = 55.72 +0.291 Xi n = 15
(5.31) (0.018) R2 = 0.95
● Interpret the results
● Test the significance of parameter estimates at 5%
level of significance.
t1 = = = 16.167
tα/2 = 2.16
t1 > tα/2 Reject H0
is significant
15
The confidence interval approach to hypothesis
testing
Confidence Interval approach
[ − tα/2 se () , + tα/2 se () ]
α= 5% p li ng f β1
95% Sam ution o
ib
distr
2.5%
2.5%
^
𝛽1
L? β1 U?
tα/2 se () + tα/2 se ()
17
02
Goodness of Fit
You can enter a subtitle here if you need it
THE COEFFICIENT OF DETERMINATION R 2:
A MEASURE OF “GOODNESS OF FIT”
● The coefficientof determination R2 is a summary measure that tells how well the
sample regression line fits the data.
0 ≤ R2 ≤ 1
19
And tables to compare data
A B C
Yellow 10 20 7
Blue 30 15 10
Orange 5 24 16
20
THE COEFFICIENT OF DETERMINATION r 2:
A MEASURE OF “GOODNESS OF FIT”
● The coefficientof determination R2 is a summary measure that tells how well the
sample regression line fits the data.
R2 = 1 -
R2 =
21
03
Test of Overall
Significance
TEST OF THE OVERALL SIGNIFICANCE OF THE
REGRESSION
● The overall significance of the regression can be
tested with the ratio of the explained to the
unexplained variance. This follows an F
distribution with k – 1 and n – k degrees of
freedom, where n is number of observations and k
is number of parameters estimated:
● H0: β1 = β2 = -- = βk = 0
H1: not all βi values are 0
● Fk – 1;n – k =
Testing the Overall
H0: β0= β1 = 0 significance of regression
H1: not all βi values are 0
Fk – 1;n – k =
=
= 246.75
Fα = 4.67
Fstat > Fα , Reject the null hypothesis,
Regression is significant
24
TEST OF THE OVERALL SIGNIFICANCE OF THE
REGRESSION
● If the calculated F ratio exceeds the tabular value of F at
the specified level of significance and degrees of
freedom, the hypothesis is accepted that the regression
parameters are not all equal to zero and that R2 is
significantly different from zero.
● A ‘‘high’’ value for the F statistic suggests a significant
relationship between the dependent and independent
variables, leading to the rejection of the null hypothesis
that the coefficients of all explanatory variables are
jointly zero.
04
Specification
IModel specification
t0 = 1.25
t3 = 0.390
t4 = 0.7
tα/2 = 1.96
06
Evaluation
Model Evaluation
Different metrics than are used to evaluate regression
models. Regression performance metrics quantify how
close model predictions are to actual (true) values.