Docsity

regression and son=m math tools, Schemes and Mind Maps of Economics

Toggle sidebar
bg1
1
Chapter 3: The Two-variable Model: Hypothesis Testing
3.1 The Classical Linear Regression Model (CLRM)
The CLRM makes the following assumptions:
1. Linear regression model (in parameters)
2. Xvalues are fixed in repeated sampling.
3. Zero mean value of i
u:
| 0
i i
E u X
4. Homoscedasticity (or equal variance of i
u):
2
|
i i
Var u X
Whereas, heteroscedasticity (or unequal variance of i
u): 2
i
Note: variance is the expectation of squared deviation of a random variable, u from its mean,
.
22
2 2
Var u E u E u E u E u
where
0E u
(the expectation of the residual is defined as (
) , which is equal to 0.
5. No autocorrelation between the disturbances:
Covariance Correlation
, | , 0
i j i j
Cov u u X X
with
i j
, | , 0
i j i j
Corr u u X X with
i j
Note:
For two normally distributed variables, the zero covariance or correlation means independence
of them, so i
uand j
u are not only uncorrelated but also independently distributed. Therefore
2
0,
i
u NID is Normal and Independently Distributed.
6. Zero covariance between i
uand i
X
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download regression and son=m math tools and more Schemes and Mind Maps Economics in PDF only on Docsity!

Chapter 3: The Two-variable Model: Hypothesis Testing

3.1 The Classical Linear Regression Model (CLRM)

The CLRM makes the following assumptions:

  1. Linear regression model (in parameters)
  2. X values are fixed in repeated sampling.
  3. Zero mean value of

i

u :  

| 0

i i

E u X 

  1. Homoscedasticity (or equal variance of

i

u ):  

2

|

i i

Var u X 

Whereas, heteroscedasticity (or unequal variance of

i

u ):

2

i

Note: variance is the expectation of squared deviation of a random variable, u from its mean,

     

 

2 2

2 2

Var u E u E u E u  E u 

   

 

         

 

       

where  

E u   0 (the expectation of the residual is defined as (  )  , which is equal to 0.

  1. No autocorrelation between the disturbances:

Covariance Correlation

 

, | , 0

i j i j

Cov u u X X  with i  j

 

, | , 0

i j i j

Corr u u X X  with i j

Note:

For two normally distributed variables, the zero covariance or correlation means independence

of them, so

i

u and

j

u are not only uncorrelated but also independently distributed. Therefore

 

2

0,

i

u  NID  is Normal and Independently Distributed.

  1. Zero covariance between

i

u and

i

X

   

, , 0

i i i i

Cov u X  E u X  , i.e., u and X are uncorrelated.

  1. The number of observations n must be greater than the number of parameters k to be

estimated  

n k

  1. Variability in X values. They must not all be the same (or else

2

b  0 , and see P.3)

  1. The regression model is correctly specified

3.2 VARIANCES AND STANDARD ERRORS OF ORDINARY LEAST SQUARES ESTIMATORS

The variances and standard errors of the OLS estimators given in Eqs. (2.16) and (2.17) are as follows

   

   

2

2

1 1 1 1 1

2

2

2 2 2 2 2

( )

( )

Var b E b E b E b

Var b E b E b E b

 

 

 

   

 

 

 

 

 

 

   

 

1

2

2 2

1 2

i

b

i

X

Var b

n x

   

(Note: This formula involves both small x and capital X .)

   

1 1

se b  varb

 

2

2

2

2 2

b

i

Var b

x

  

   

2 2

se b  Var b

2

2

2

i

i

X

n x

 

 

  

 

  

 

2

2

i

x

 Figure 1

Very small sample

small number of data points  small n , large

2

Var b ( )

 Figure 2

Large sample size ( n ), very scattered (large error variance,

2

i. large number of data points (larger n)

ii. very scattered (large u and

2

iii. large variation in X

 smaller / larger

2

Var b ( )?

 Figure 3

Large sample size ( n ), small error variance (

2

i. large number of data points (n)

ii. not scatteredsmall u and

2

iii. large variation in X

 small

2

Var b ( )

Figure 4 :

Limited range of X values

i. large number of data points (n)

ii. very scattered  large u and

2

iii. clustered near one value for X , i.e. limited variation in X

 large

2

Var b ( )

Question:

 it is unbiased, that is, its average or expected value,

 

 

1 1

2 2

E b

E b

Derivation:

i 1 2 i i

Y    X  u (B)

1 2

Y    X, 0

i

u 

(C)

 

i 2 i i

Y  Y   X  X  u (B) – (C)

i 2 i i

y  x  u (D)

 

 

 

2 2 2 2 2 2 2 2 2

2 2

2

0 ( and are uncorrelated)

i i

i

i i i

i

i i i

i

i i i

i i

i i i i

x y

E b

x

x x u

x

x u x

x

x u x

x x

u x u x

     

 

 

Substitute (D) into (A)

 it has minimum variance in the class of all such linear unbiased estimators.

   

1 1

Var b  Var b , where

1

b  any other linear unbiased estimator of

1

   

2 2

Var b  Var b

, where

2

b  any other linear unbiased estimator of

2

An unbiased estimator with the least variance is known as an efficient estimator.

Monte Carlo Experiment

 The true values of the intercept (

1

 ) and slope coefficients (

2

 ) are 1.5 and 2.0,

respectively, and that the error term follows the normal distribution with a mean of zero

and a variance of 4.

 Now suppose you are given 10 values of X : 1, 2, 3, 4, 5, 6, 7, 8, 9, 10.

 Given this information, you can proceed as follows. Using any statistical package, you

generate 10 values of

i

u from a normal distribution with mean zero and variance 4.

 Given

1 2

B , B ,the 10 values of X , and the 10 values of

i

u generated from the normal

distribution, you will then obtain 10 values of Y from the preceding equation.

 Call this experiment or sample number 1. Go to the normal distribution table, collect

another 10 values of ui, generate another 10 values of Y , and call it sample number 2. In

this manner obtain 21 samples, i.e. there4 are 21 sample data sets.

 For each sample of 10 values, regress

i

Y generated above on the X values and obtain

1 2

b ,b and

2

 Repeat this exercise for all 21 samples. Therefore, you will have 21 values each of

1 2

b ,b

and

2

 ˆ. We conducted this experiment and obtained the results shown in Table 3-2.

 From the data given in this table, we have computed the mean, or average, values of

1

b ,

2

b and

2

 , which are, respectively, 1.4526, 1.9665, and 4.4743, whereas the true

values of the corresponding coefficients, as we know, are 1.5, 2.0, and 4.0.

 What conclusion can we draw from this experiment? It seems that if we apply the

method of least squares time and again, on average, the values of the estimated

parameters will be equal to their true (population parameter) values.

 

1 1

E b 

 

2 2

E b 

 That is, OLS estimators are unbiased. In the present example, had we conducted more than

21 sampling experiments, we would have come much closer to the true values.

THE CENTRAL LIMIT THEOREM (CLT)

 If there is a large number of independent and identically distributed random variables, then, with a

few exceptions, their distribution of their sum tends to be a normal distribution as the number of such

variables increases indefinitely

u

represents the influence of all forces that affect

Y

but are not specifically included in the

regression model

 If these forces are random,

u

follows the normal distribution by invoking the CLT

 If

1

b

and

2

b

are linear functions of the normally distributed variable

i

u

, then they are also normally

distributed

 Any linear function of a normally distributed variable is itself normally distributed

 

 

1

2

2

1 1

2

2 2

b

b

b N

b N

Figure 3-4 (Normal) sampling distribution of

1

b and

2

b

3.5 Hypothesis Testing

A hypothesis is a tentative statement or explanation that proposes a possible

relationship between variables and is subject to testing and verification.

In general, we do not know the true value of population parameters

1

B and

2

B - they must be estimated

with sample data. (In Chapter 2 we showed how OLS helps us to estimate the parameters of linear regression

models). However, we do have hypotheses about what the true values are.

The major purpose of hypothesis testing is to choose between two competing hypotheses (

0

H and

A

H )

about the value of a population parameter,

2

B .

The hypothesis actually to be tested is usually given the symbol

0

H , and is commonly referred to as the null

hypothesis.

The other hypothesis, which is assumed to be true when the null hypothesis is false, is referred to as the

alternative hypothesis, and is often symbolized by

A

H or

1

H. Both the null and alternative hypothesis

should be stated before any statistical test of significance is conducted.

Suppose someone suggests that annual family income has no relationship to a student’s math S.A.T. score.

0 2

H : B  0

To perform hypothesis, we can use either:

  1. The confidence interval approach 95% confidence interval for     2 2 2

  b  1.96 se b or

  1. The test of significance approach:
  2. P-value approach

to test any hypotheses about

2

B as well as

1

B.

Test of significance approach

Since

2

b follows the normal distribution, with the mean and the variance stated in expression (3.19), we

know that

 

 

2 2

2

2 2

2

0,

/

i

b B

Z

se b

b B

N

 x

However, the true  is unknown (unobservable). To solve this problem, we use the t distribution with

degrees of freedom ( d f..  n 2 ; not the standard normal distribution), to get

2 2

2

2 2

ˆ /

n

i

b B

t

 x

Or, more generally,

 

2 2

2

2

n

b B

t

se b

Note that we lose 2 d f.. in computing

2

 ˆ for reasons stated earlier.

Therefore, to test the null hypothesis in the present case, we have to use the t distribution in lieu of the

(standard) normal distribution. But the procedure of hypothesis testing remains the same, as explained in

Appendix D.

Question: if  

n  30 or 50 , which test should we use, Z or t?

Recall the general form of 3.22,

 

b

computed t

se b

 

Where

 can be any value, e.g.

  0, 3,  4 …… we can perform one-tailed or two tailed test:

   

   

 

 

2

9

ˆ

432.4138 0.

: 16.9061 0.

: 25.5774 5.44 0.

: 5.85 10 0.0006.. 8

t i

Y X

se

t r

p value d f

 

  

Hypothesis Testing (

A

H ):

Consider the following model:

i 1 2 i i

Y    X u

Two tailed test

Step1: State the hypothesis:

0 2

2

: 0 (income has no impact on SAT score)

: 0 (income has a significant impact on SAT score)

A

H

H

Step 2: Calculate t-statistics

2 2

2

2

ˆ /

n

i

b B

t

 x

 

2 2

2

2

estimator hypothesized value

, 5.

standard error of the estimator 0.

n

b B

t t

se b

 

   

Step 3: Find critical value

Find the critical value at the level of significance α, usually 5%, with the degrees of freedom ( df ) n  k=

n k

t

at 5% significance level = 2.

Step 4: Make a decision

The absolute value of calculated t , t  5.435> the critical t  2.306 fall out of the acceptance region 

Reject

0

H that

2

B  0 , i.e., income has significant impact on SAT score.

One-Tailed Test (Left-tail):

Step1 State the hypothesis:

 

0 2 2

2

: 0 0

: 0 income has a significant negative impact on SAT score

A

H or

H

 

 

Step 2: Calculate t statistics

 

2 2

2

b B

t

se b

  

Step 3: Find critical value

With df  n  k 10  2  8 ,

n k

t

at 5% significance level = 1.

Step 4: Make a decision

The calculated  

t  5.4354 , critical value at 5% = 1.86  fall into the acceptance region  Do not

reject

0

H that

2

  0 , i.e., income has a non-negative effect on SAT score.

The calculated  

t  35 51. , critical value at 5%= 1.86  fall out of the acceptance region

 Reject

0

H that  0.01, i.e.,

2

 0.

Summary

Type of

Hypothesis

0

H

1

H

Reject

0

H if

Two-tail

2 2

  

2 2

  

/2,df

t t

Right-tail

2 2

  

2 2

  

,df

t t

Left-tail

2 2

  

2 2

   ,df

t t



Application

The value of  to be tested has economic meaning:

Example (1): Stock return

it mt t

R    R u

Where

it

R represents the rate of retuen on a stock (e.g. in percentage returns), and

mt

R is the rate of

return on the makret or the rate of reutrn of an index of the market (e.g. Hang Seng Index).

A security whose beta coefficient is greater than 1 is called a volatile or aggressive security. Set up the

appropriate null and alternative hypotheses and test them using the t test. Note: Use  5%

0

1 1

1

A

H or

H

 

  

 

Example (2): Monetary Policy

The money supply ( MS ) has a significant positive impact on GDP. How would you test this hypothesis?

t t t

GDP    MS u

0

: 0 0

: 0

A

H or

H

 

 

Hypothesis:

0

A

H   H 

 Compute the t

value under

0 2

H :   0

 Is it statistically significant at the 5 percent level?

 Is the estimated slope coefficient statistically significant?

 Is

2

 significantly different from zero?

 Test the hypothesis that there is no relationship between Y and X whatsoever.

3.6 HOW GOOD IS THE FITTED REGRESSION LINE: THE COEFFICIENT DETERMINATION, r

2

Recall that

i i i

Y  Y  e

(Eq. 2.6)

Let us express this equation in a slightly different but equivalent from (see Figure 3-8) as

Now, letting small letters indicate deviations from mean values i.e.

i i

y  Y  Y , we can write

i i

y  Y  Y the preceding equation as

i i i

y  y  e

(Note:

i i

y  Y Y etc). Also, note that e  0 , as a result of which

Y  Y; that is, the mean values of the

actual Y and the estimated Y are the same.

Now squaring Equation (3.32) on both sides and summing over the sample, we obtain, after simple

algebraic manipulation,

2

2 2 2

i i i i i i i

y y e y e y e

Since

i i

y e 

2 2 2

i i i

y  y  e

(see point 4 in p.9 of Ch.2)

It can be defined as

TSS  ESS RSS

Total sum of squares (TSS):

2

i

y 

total variation of the actual Y values about their sample mean Y.

Explained sum of squares (ESS):

2

i

y 

total variation of the estimated Y values about their mean value.

Residual sum of squares (RSS):

2

i

e 

total unexplained variation of the Y values about the regression

line.

Notes that ESS represent how good SRF fits the data

 If

X

explain all variation in

Y

ESS  TSS

and

RSS  0

(i.e.,

2

R  1 )

 If

X

explain no variation in

Y

RSS  TSS

and

ESS  0

 (i.e.,

2

R  0 )

 Divide both side by TSS

ESS RSS

TSS TSS

 A standardized measure. Define

2

ESS

R

TSS

2

R is the (sample) coefficient of determination

 Most commonly used measure of the goodness of fit of a regression line

 It measures the proportion or percentage of the total variation in Y explained

by the regression model

 Two properties of

2

R

 It is a non-negative quantity

2

0  R  1

2

R  1 means “perfect fit”;

2

R  0 means no relationship between 𝑋 and 𝑌

 As 1

ESS RSS

TSS TSS

2

R can be computed by

2 2 2 2 2 2 2

i

i

i

i

RSS

R

TSS

e R y e R y

 Compute the

2

R of the SAT example:

2

R   

 X explain about 79 percent of the variation in Y

 

2

1  R is the proportion of unexplained variation

 The coefficient of alienation