SlideShare a Scribd company logo
1 of 10
Download to read offline
4-1


4 F-Tests

Reading:
Kennedy (1998) “A Guide to Econometrics”, Chapters 4 and 6
Maddala, G.S. (1992) “Introduction to Econometrics” p. 170-177
Moore and McCabe, chapter 12 is also worth looking at since it gives a good
explanation of the more general use of F-tests (such as comparing means across several
populations).
Field 2001 section 4.1.3

Aim:
The aim of this section is to consider the use of F-tests in regression analysis.

Objectives:
By the end of this chapter, students should be aware of the basic formula for F-tests run
in the context of regression analysis; be able to test for the existence of a relationship;
test for structural breaks and test for a set of linear restrictions.

Plan:
  4.1     Introduction ................................................................................................... 4-1
  4.2     Testing a set of linear Restrictions - The General Procedure ........................ 4-2
  4.3     Using the F-test: ............................................................................................ 4-2
  4.4     Test Procedure: .............................................................................................. 4-3
  4.5     Linear restrictions where algebraic manipulation is involved (advanced) .... 4-4
  4.5     Using the Excel Template.............................................................................. 4-5
  4.6     Testing a set of linear Restrictions when the Restrictions are Homogenous 4-8
  4.7     Testing for the existence of a relationship..................................................... 4-8
  4.8     Testing for Structural Breaks......................................................................... 4-9



4.1 Introduction
It just so happens that the ratio of two residual sums of squares has an F distribution. A
number of tests have been developed that make use of this principle. Since they all are
based on the same basic formula (one that compares an “unrestricted model” with a
“restricted model”), it makes sense to gather the most common F-tests into one place.
So the purpose of this chapter is to introduce F-tests and their application to testing for
the existence of a relationship, the occurrence of structural breaks, and the effect of
linear restrictions. It is particularly recommended that students familiarise themselves
with the procedures for testing for structural breaks since these are most useful as a
diagnostic tool.
4-2



4.2 Testing a set of linear Restrictions - The General
    Procedure
Suppose we want to test whether there are any country specific effects in the
relationship between inflation and the money supply. We can do this by testing the
following null hypothesis:
        H0: g1 = g2 = g3 =…. = g42 = 0
where g1, g2,…., g42 are the slope coefficients on country dummies in the following
regression:
        INFL = a + b MS + g1 COUNTRY1 + …+ g42 COUNTRY42                 [1]
We can conceive of this as being equivalent to comparing two regressions, one
Restricted and one Unrestricted. The Unestricted regression is equation [1] above with
the country dummies included. The Restricted regression, on the other hand, is:
        INFL = a + b MS                                                  [2]
To compare these two regressions (equation [1] and equation [2]) we use an F test. The
general formula for F is given by:

                                   (RSSR − RSSU ) / r
          Fdfdenominato = FdfU =
            dfnumerator     r
                      r
                                      RSSU / dfU

Where:
   RSSU = unrestricted residual sum of squares
        = RSS under H1

    RSSR = restricted residual sum of squares
         = RSS under H0

    r         = number of restrictions
              = difference in the number of parameters between restricted and unrestricted equations

    dfu         = df from unrestricted regression = n - k where k is all coefficients
                  including the intercept.


4.3 Using the F-test:
If the null hypothesis is true (i.e. restrictions are satisfied) then we would expect the
restricted and unrestricted regressions to give similar results. In other words, RSSR and
RSSU will be similar, so we accept H0 when the test statistic gives a small value for F.
In contrast, if one of the restrictions does not hold, then the restricted regression will
have had an invalid restriction imposed upon it and will be mispecified. This results in
more residual variation, and a higher restricted residual sum of squares (NB RSSR will
always be greater than RSSU since imposing a restriction on an equation can never
reduce the residual sum of squares). Consequently, we reject H0 when the test statistic
gives a large value.
4-3


4.4 Test Procedure:
There are four basic steps to executing an F-test:
(i) Compute RSSU
       Run the unrestricted form of the regression in SPSS and take a note of the
       residual sum of squares = RSSU

(ii) Compute RSSR
       Run the restricted form of the regression in SPSS and take a note of the residual
       sum of squares = RSSR. If the restrictions are not homogenous (i.e. if they imply
       that the restricted and unrestricted regressions have different dependent
       variables) then you need to:
               substitute the restrictions into the equation;
               rearrange the equation so that each parameter appears only once;
               create new variables where necessary and estimate by OLS;
               take a note of the residual sum of squares from this regression = RSSR;

(iii) Calculate r and dfU
       r is the number of restrictions and is equal to the difference in the number of
       parameters between the restricted regression and the unrestricted regression. dfu
       is the degrees of freedom from unrestricted regression = n - k where k is all
       coefficients including the intercept. The dfu is listed in the ANOVA table (for
       the unrestricted regression) as the degrees of freedom of the residual. For
       example, in the following ANOVA table, the degrees of freedom is 511. Note
       also that n = 516 = degrees of freedom of the Total Sum of Squares + 1 and that
       k (as we have defined it, i.e. the total number of coefficients including the
       intercept) = 5 = degrees of freedom of the Regression Sum of Squares + 1.
                                                       ANOVAb


                                         Sum of                     Mean
                 Model                  Squares         df         Square     F         Sig.
                 1       Regression      296.772               4    74.193   20.652       .000a
                         Residual       1835.811             511     3.593
                         Total          2132.583             515
                   a. Predictors: (Constant), CNTRY_3, CNTRY_2, CNTRY_1, money supply
                   b. Dependent Variable: inflation




(iv) Substitute RSSU, RSSR, r and dfU
       Once you have computed RSSU, RSSR, r and dfU, enter them in the equation for F
       and find the associated significance level.

               NB you can find the sig value of any F value that you have calculated by
               using the following syntax in Excel:
                       =FDIST(F value that you’ve calculated, dfnumerator, dfdenominator)
               Alternatively, you can use the Excel Template which will calculate the
               test F value and sig level for you from SPSS ANOVA tables (see below).
4-4



4.5 Linear restrictions where algebraic manipulation is
    involved (advanced)
F-tests can not only be used to test whether a group of variables in the model are jointly
significant. They can also be used to test more sophisticated restrictions on the values of
particular coefficients. You might, for example, wish to test whether two coefficients
are equal, or whether a number of coefficients sum to one, or whether two different
regressions have similar coefficients. To do these tests you need to do some algebraic
manipulation of your original regression equations, as the following examples
demonstrate:

Example 1
In a regression of x2 and x3 on y, test the hypothesis that the coefficients sum to one.
        The Unrestricted regression is given by:
               y = b1 + b2x2 + b3x3 + u
        The null hypothesis is H0: b2 + b3 = 1;

       Now we need to substitute the null hypothesis into the equation to derive the
       restricted regression. If H0 is true, then: b3 = 1 - b2 and:
                        y = b1 + b2x2 + (1-b2)x3 + u
                          = b1 + b2x2 + x3- b2x3 + u
                          = b1 + b2(x2 - x3)+ x3 + u
                     y - x3 = b1 + b2(x2 - x3)+ u
       Restricted regression can now be written as:
             z = b1 + b2(v)+ u       where z = y - x3; and v = x2 - x3

Example 2
For the same regression as the one considered in Example 1, test the hypothesis that b2
= b3

       First note that this is a homogenous restriction because, as we shall see in a
       moment, the restricted and unrestricted regressions have the same dependent
       variable.

       Unrestricted regression:
               y = b1 + b2x2 + b3x3 + u
       H0: b2 = b3;

       If H0 is true, then:
               y = b1 + b2x2 + b2x3 + u
                  = b1 + b2(x2 + x3) + u
       Restricted regression is simply:
               y = b1 + b2(w)+ u      where w = x2 + x3;


Example 3
In a regression of : MS_GDP and MP_GDP on Inflation, test the hypothesis that the
coefficients on MS_GDP equals that of MP_GDP plus one.
4-5

       In this case, we will find that Restricted and Unrestricted regressions have the
               different dependent variables and so the restrictions are not homogenous:

      Unrestricted regression:
              Infl = b1 + b2MS_GDP + b3MP_GDP + u
      Ho: b3 = b2 + 1
      If H0 is true, then:
              Infl = b1 + b2MS_GDP + (b2+1)MP_GDP + u
                   = b1 + b2MS_GDP + b2 MP_GDP + 1×MP_GDP + u
                   = b1 + b2(MS_GDP + MP_GDP) + MP_GDP + u
     Infl - MP_GDP = b1 + b2(MS_GDP + MP_GDP) + u

       Restricted regression:
               z = b1 + b2(v)+ u
       where,
                z = Infl - MP_GDP ;
                v = MS_GDP + MP_GDP


4.6 Using the Excel Template
You should familiarize yourself with calculating F-tests manually, but to speed
calculation in routine tests and to improve precision I have developed an Excel
spreadsheet which can be used to run F tests. Open up the Lab 4 F-tests spreadsheet,
and open up the first worksheet (tab label: General Test for Linear Restrcs). The
general F-test procedure using this spreadsheet is as follows:

       (i)     Run the Unrestricted regression and copy the ANOVA table from this
               regression. Place the cursor in cell D18 of the spreadsheet (the green
               shaded square with ANOVA written in it) and paste. This will displace
               any existing entry with your new ANOVA Unrestricted regression
               results.

       (ii)    Now run the Restricted regression and copy the ANOVA table from this
               regression. Place the cursor in cell D7 of the spreadsheet (the green
               shaded square with ANOVA written in it) and paste. This will again
               displace any existing entry with your new ANOVA Restricted
               regression results.

       (iii)   Excel should automatically calculate the r, dfU, F and significance level
               (see cells L28 to L40) but you should check the answer manually the first
               few times to ensure that you are using the spreadsheet correctly and that
               you understand the procedure. Remember that the null hypothesis is that
               there is no difference between the restricted and unrestricted regressions.
               Therefore, if F is large and the significance level small, you can reject
               the null with only a small probability of a Type I Error (i.e. that you have
               rejected H0 incorrectly).
4-6




1. Create dummies for the first ten countries.

       We created dummies before by simply creating a new variable with all values
       equal to 0, then using the If statement to set the values equal to one if the
       property is satisfied:

           e.g. COMPUTE COUNTRY1 = 0.
               EXECUTE.
               IF(COUNTRY = 1) COUNTRY1 = 1.
               EXECUTE.

        The disadvantage with this approach is that it does not take account of missing
        values. If a missing value exists in the variable we are trying to recode, then the
        dummy variable will have the value zero. However, strictly speaking, this is
        incorrect, since it suggests that we know that the observation does not have the
        attribute in question (in this case, the country is not Argentina), when in reality
        we do not actually know what the country is. An additional problem is that the
        above procedure did not encourage us to include a variable label. This means
        that if we do not go back and label the newly created dummy variable we can
        end up not knowing what it means or how it was calculated (remember that a
        variable name can only have eight characters and it can sometimes be difficult
        to describe a variable with so few letters).

       A better approach would be to use the RECODE syntax or to use the
       Transform/Recode/Into Different Variables… window. The advantage of using
       the syntax rather than the windows procedure is that if you are creating lots of
       dummies you can copy and paste the syntax and only alter the parts of the syntax
       that need to change. It also allows you to keep a record of your work.

       The recode syntax for creating the first three country dummies is as follows (the
       shaded syntax indicates the what needs to be amended when you create a new
       country dummy variable) :

               RECODE
                country
                (1=1) (MISSING=SYSMIS) (ELSE=0) INTO Country1 .
               VARIABLE LABELS Country1 'Dummy for Argentina'.
               EXECUTE .

               RECODE
                country
                (2=1) (MISSING=SYSMIS) (ELSE=0) INTO Country2 .
               VARIABLE LABELS Country2 'Dummy for Bolivia'.
               EXECUTE .
4-7

                RECODE
                 country
                 (3=1) (MISSING=SYSMIS) (ELSE=0) INTO Country3 .
                VARIABLE LABELS Country3 'Dummy for Brazil'.
                EXECUTE .

       You can copy and paste these into the SPSS syntax window and run as normal.

2. Test whether there are country effects for Argentina, Bolivia and Brazil in a
   regression of money supply on inflation:
       INFL = a + b MS + g1 COUNTRY1 + g2 COUNTRY2 + g3 COUNTRY3

3. (Optional) In a regression explaining imports per capita (mp_pc), test the hypothesis
   that the coefficients on GDP per capita (gdp_pc) and exports per capita (xp_pc) sum
   to one. That is, for:
       mp_pc = b1 + b2 gdp_pc + b3 xp_pc
    test the null hypothesis that b2 + b3 = 1

       Hint: first you need to create the new variables:
       compute xp_pc = xp/pop.
                VARIABLE LABELS xp_pc 'exports per capita'.
                execute.

                compute gdp_pc = gdp/pop.
                VARIABLE LABELS gdp_pc 'GDP per capita'.
                execute.

                compute mp_pc = mp/pop.
                VARIABLE LABELS mp_pc 'Imports per capita'.
                    execute.


       Then run the unrestricted regression (mp_pc = b1 + b2 gdp_pc + b3 xp_pc).

       Then you need to derive the restricted regression. Before you know what
       regression to run, you need to work through the algebraic implications of the
       null hypothesis:
               substitute the restrictions into the equation (i.e. substitute b2 + b3 = 1 into
               the original unrestricted equation: mp_pc = b1 + b2 gdp_pc + b3 xp_pc).
               rearrange the equation so that each parameter appears only once
               create new variables where necessary and estimate by OLS
       Once you’ve done this, and you know what the restricted regression looks like,
       run the restricted regression.

       Then paste the ANOVA tables from the restricted and unrestricted regressions
       into the Excel template. If the significance level is small, you can reject the null
       that b2 + b3 = 1. You should check your results by calculating the F-ratio
       manually.

4. (Optional) Test whether, in the previous question, the two slope coefficients are
   equal.
4-8


4.7 Testing a set of linear Restrictions when the
    Restrictions are Homogenous
When the linear restrictions we want to test are homogenous:
       e.g. H0: b2 = b3 = 0
       e.g. H0: b2 = b3
we will find that we will not need to transform the dependent variable of the restricted
equation in order to specify the restricted equation.

For restrictions of this type, where the dependent variable is the same in the restricted
and unrestricted regressions, we can re-write our F-ratio test statistic in terms of R2s:
                                                                         ( RU − RR ) / r
                                                                            2      2
                                              Fdf denominator = FdfU =
                                                df numerator      r

                                                                         (1 − RU ) / dfU
                                                                               2


where:
R2U = R2 from the unrestricted regression,
R2R = R2 from the restricted regression
r = number of restrictions = difference in the number of parameters between restricted
and unrestricted equations.
dfu = degrees of freedom from unrestricted regression = n - k where k is the total
number of coefficients in the unrestricted regression including the intercept.


5. (Optional) Look again at the restrictions suggested in the previous questions and
   consider whether they are homogenous or not. If they are homogenous, try running
   the test again, but this time use the simplified F-ratio test statistic.




4.8 Testing for the existence of a relationship
If we are testing a set of linear restrictions where the restrictions are that all slope
coefficients are zero (bj = 0 for all j), in other words we are testing for the existence of a
relationship, then we can simplify the F-ratio test statistic further. Suppose the
Unrestricted regression is as follows:

         y = b1 + b2x2 + b3x3 + u
         H0: b2 = b3 = 0;

If H0 is true, then y = b1. In this case, the Restricted regression does no explaining at all
and so RR2 = 0. As a result, the homogenous restriction F-ratio test statistic reduces to:
                                     ( RU − 0) / r
                                        2
         Fdf denominator = FdfU =
           df numerator      r

                                    (1 − RU ) / df U
                                          2

                                           2
                                        ( RU ) / r
                              =
                                    (1 − RU ) / df U
                                            2


where,
   dfu     =       degrees of freedom from unrestricted regression = n - k where k is the
                   total number of coefficients in the unrestricted regression including the
                   intercept.
   R2U              =      R2 from the unrestricted regression,
   r   =           number of restrictions = k – 1.
4-9




6. This is the F-test we came across in Session 2, and is the one automatically calculated
in the SPSS ANOVA table. Try calculating the test manually and compare it with the
ANOVA table output.


4.9 Testing for Structural Breaks
The F-test also comes into play when we want to test whether the estimated coefficients
change significantly if we split the sample in two at a given point. These tests are
sometimes called “Chow Tests” after one of its early proponents. There are actually
two versions of the test: Chow’s First Test and Chow’s Second Test.

Chow’s First Test
Use where n2 > k

(1) Run the regression on the first set of data (i = 1, 2, 3, … n1) and let its RSS be
    labeled RSSn1
(2) Run the regression on the second set of data (i = n1+1, n1+2, …, end of data) and let
    its RSS be labeled RSSn2
(3) Run the regression on the two sets of data combined (i = 1, …, end of data) and let
    its RSS be RSSn1 + n2
(4) Compute RSSU, RSSR, r and dfU where:
        RSSU = RSSn1 + RSSn2
        RSSR = RSSn1 + n2
        r     = k = total number of coefficients including the constant
        dfU = n1 + n2 -2k
(5) Use RSSU, RSSR, r and dfU to calculate F using the general formula for F and find the
    sig. Level:

4.9.1.1 Chow’s Second Test
Use where n2 < k (I.e. when you have insufficient observations on the second sub-
sample to run Chow’s 1st test)
(1) Run the regression on the first set of data (i = 1, 2, 3, … n1) & let its RSS be RSSn1
(2) Run the regression on the two sets of data combined (i = 1, …, end of data) & let its
    RSS be RSSn1 + n2
(3) Compute RSSU, RSSR, r and dfU:
           RSSU = RSSn1
           RSSR = RSSn1 + n2
           r     = n2
           dfU = n1 – k
    (4) Use RSSU, RSSR, r and dfU to calculate F using          the general formula for F
           and find the significance:


7. In the imports per capita regression you estimated above, use Chow’s First Test to
   test the hypothesis that slope coefficients changed (i.e. there was a structural break)
   before and after 1986.
4-10

8. Test the same hypothesis using Chow’s Second Test. Which test is more reliable do
   you think in this instance?

9. In the same regression, test the hypothesis that the slope coefficients are different for
   smaller countries (pop < 15).

More Related Content

What's hot

Chapter 12 vectors and the geometry of space merged
Chapter 12 vectors and the geometry of space mergedChapter 12 vectors and the geometry of space merged
Chapter 12 vectors and the geometry of space mergedEasyStudy3
 
Geometry Section 4-3
Geometry Section 4-3Geometry Section 4-3
Geometry Section 4-3Jimbo Lamb
 
A Unified Perspective for Darmon Points
A Unified Perspective for Darmon PointsA Unified Perspective for Darmon Points
A Unified Perspective for Darmon Pointsmmasdeu
 
Afm chapter 4 powerpoint
Afm chapter 4 powerpointAfm chapter 4 powerpoint
Afm chapter 4 powerpointvolleygurl22
 
Geometry unit 6.1
Geometry unit 6.1Geometry unit 6.1
Geometry unit 6.1Mark Ryder
 
G6 m5-c-lesson 13-t
G6 m5-c-lesson 13-tG6 m5-c-lesson 13-t
G6 m5-c-lesson 13-tmlabuski
 
Common fixed point theorems using faintly compatible
Common fixed point theorems using faintly compatibleCommon fixed point theorems using faintly compatible
Common fixed point theorems using faintly compatibleAlexander Decker
 
Setting linear algebra problems
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problemsJB Online
 
Solving rational inequalities
Solving rational inequalitiesSolving rational inequalities
Solving rational inequalitiesrey castro
 
G6 m5-c-lesson 13-s
G6 m5-c-lesson 13-sG6 m5-c-lesson 13-s
G6 m5-c-lesson 13-smlabuski
 
Ultimate guide to coordinate plane
Ultimate guide to coordinate planeUltimate guide to coordinate plane
Ultimate guide to coordinate planekhyps13
 
On similarity of fuzzy triangles
On similarity of fuzzy trianglesOn similarity of fuzzy triangles
On similarity of fuzzy trianglesijfls
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representationsallyn joy calcaben
 
4.3 & 4.4 prove triangles congruent by sss, sas, and hl
4.3 & 4.4 prove triangles congruent by sss, sas, and hl4.3 & 4.4 prove triangles congruent by sss, sas, and hl
4.3 & 4.4 prove triangles congruent by sss, sas, and hldetwilerr
 
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeksBeginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeksJinTaek Seo
 

What's hot (20)

Differential calculus
Differential calculusDifferential calculus
Differential calculus
 
Chapter 12 vectors and the geometry of space merged
Chapter 12 vectors and the geometry of space mergedChapter 12 vectors and the geometry of space merged
Chapter 12 vectors and the geometry of space merged
 
Geometry Section 4-3
Geometry Section 4-3Geometry Section 4-3
Geometry Section 4-3
 
A Unified Perspective for Darmon Points
A Unified Perspective for Darmon PointsA Unified Perspective for Darmon Points
A Unified Perspective for Darmon Points
 
Afm chapter 4 powerpoint
Afm chapter 4 powerpointAfm chapter 4 powerpoint
Afm chapter 4 powerpoint
 
Geometry unit 6.1
Geometry unit 6.1Geometry unit 6.1
Geometry unit 6.1
 
G6 m5-c-lesson 13-t
G6 m5-c-lesson 13-tG6 m5-c-lesson 13-t
G6 m5-c-lesson 13-t
 
Common fixed point theorems using faintly compatible
Common fixed point theorems using faintly compatibleCommon fixed point theorems using faintly compatible
Common fixed point theorems using faintly compatible
 
Setting linear algebra problems
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problems
 
Solving rational inequalities
Solving rational inequalitiesSolving rational inequalities
Solving rational inequalities
 
G6 m5-c-lesson 13-s
G6 m5-c-lesson 13-sG6 m5-c-lesson 13-s
G6 m5-c-lesson 13-s
 
Ultimate guide to coordinate plane
Ultimate guide to coordinate planeUltimate guide to coordinate plane
Ultimate guide to coordinate plane
 
Gch1 l6
Gch1 l6Gch1 l6
Gch1 l6
 
On similarity of fuzzy triangles
On similarity of fuzzy trianglesOn similarity of fuzzy triangles
On similarity of fuzzy triangles
 
CMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions RepresentationsCMSC 56 | Lecture 9: Functions Representations
CMSC 56 | Lecture 9: Functions Representations
 
4.3 & 4.4 prove triangles congruent by sss, sas, and hl
4.3 & 4.4 prove triangles congruent by sss, sas, and hl4.3 & 4.4 prove triangles congruent by sss, sas, and hl
4.3 & 4.4 prove triangles congruent by sss, sas, and hl
 
Ch04
Ch04Ch04
Ch04
 
www.ijerd.com
www.ijerd.comwww.ijerd.com
www.ijerd.com
 
Week 6
Week 6Week 6
Week 6
 
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeksBeginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
Beginning direct3d gameprogrammingmath04_calculus_20160324_jintaeks
 

Viewers also liked

はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告
はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告
はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告Mrk1869
 
5 เรื่องแปลก
5 เรื่องแปลก5 เรื่องแปลก
5 เรื่องแปลกfisho_16
 
2012 Summer MYT Video Editing Week 4 Exporting
2012 Summer MYT Video Editing Week 4 Exporting2012 Summer MYT Video Editing Week 4 Exporting
2012 Summer MYT Video Editing Week 4 ExportingRichard Yen
 
Machiyabar kotodama siriproxy
Machiyabar kotodama siriproxyMachiyabar kotodama siriproxy
Machiyabar kotodama siriproxyMrk1869
 
Brain to brain interface.1
Brain to brain interface.1Brain to brain interface.1
Brain to brain interface.1VISHAL THAKUR
 
2012 Summer MYT Video Editing Intro
2012 Summer MYT Video Editing Intro2012 Summer MYT Video Editing Intro
2012 Summer MYT Video Editing IntroRichard Yen
 

Viewers also liked (7)

はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告
はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告
はてなサマーインターンシップ2012実践過程 はてなブックマークandroidアプリチーム 中間報告
 
5 เรื่องแปลก
5 เรื่องแปลก5 เรื่องแปลก
5 เรื่องแปลก
 
Fila
FilaFila
Fila
 
2012 Summer MYT Video Editing Week 4 Exporting
2012 Summer MYT Video Editing Week 4 Exporting2012 Summer MYT Video Editing Week 4 Exporting
2012 Summer MYT Video Editing Week 4 Exporting
 
Machiyabar kotodama siriproxy
Machiyabar kotodama siriproxyMachiyabar kotodama siriproxy
Machiyabar kotodama siriproxy
 
Brain to brain interface.1
Brain to brain interface.1Brain to brain interface.1
Brain to brain interface.1
 
2012 Summer MYT Video Editing Intro
2012 Summer MYT Video Editing Intro2012 Summer MYT Video Editing Intro
2012 Summer MYT Video Editing Intro
 

Similar to Miich4 ftests

Diagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelDiagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelMehdi Shayegani
 
Chap014 BStat SemA201.ppt
Chap014  BStat SemA201.pptChap014  BStat SemA201.ppt
Chap014 BStat SemA201.pptnajwalyaa
 
Hydraulic similitude and model analysis
Hydraulic similitude and model analysisHydraulic similitude and model analysis
Hydraulic similitude and model analysisMohsin Siddique
 
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierRegression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierAl Arizmendez
 
Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...
Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...
Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...mathsjournal
 
Degrees Of Freedom Assignment No 3
Degrees Of Freedom Assignment No 3Degrees Of Freedom Assignment No 3
Degrees Of Freedom Assignment No 3Abdul Zaman
 
161783709 chapter-04-answers
161783709 chapter-04-answers161783709 chapter-04-answers
161783709 chapter-04-answersBookStoreLib
 
161783709 chapter-04-answers
161783709 chapter-04-answers161783709 chapter-04-answers
161783709 chapter-04-answersFiras Husseini
 
Chap13 additional topics in regression analysis
Chap13 additional topics in regression analysisChap13 additional topics in regression analysis
Chap13 additional topics in regression analysisJudianto Nugroho
 
The Fundamental theorem of calculus
The Fundamental theorem of calculus The Fundamental theorem of calculus
The Fundamental theorem of calculus AhsanIrshad8
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminHazilahMohd
 
Business Quantitative Lecture 3
Business Quantitative Lecture 3Business Quantitative Lecture 3
Business Quantitative Lecture 3saark
 

Similar to Miich4 ftests (20)

Derivative rules.docx
Derivative rules.docxDerivative rules.docx
Derivative rules.docx
 
Diagnostic methods for Building the regression model
Diagnostic methods for Building the regression modelDiagnostic methods for Building the regression model
Diagnostic methods for Building the regression model
 
Intro
IntroIntro
Intro
 
Chap014 BStat SemA201.ppt
Chap014  BStat SemA201.pptChap014  BStat SemA201.ppt
Chap014 BStat SemA201.ppt
 
Hydraulic similitude and model analysis
Hydraulic similitude and model analysisHydraulic similitude and model analysis
Hydraulic similitude and model analysis
 
Reg
RegReg
Reg
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
Multiple Regression.ppt
Multiple Regression.pptMultiple Regression.ppt
Multiple Regression.ppt
 
L 4 4
L 4 4L 4 4
L 4 4
 
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn LottierRegression Analysis presentation by Al Arizmendez and Cathryn Lottier
Regression Analysis presentation by Al Arizmendez and Cathryn Lottier
 
Unit05 dbms
Unit05 dbmsUnit05 dbms
Unit05 dbms
 
Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...
Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...
Optimal Prediction of the Expected Value of Assets Under Fractal Scaling Expo...
 
Degrees Of Freedom Assignment No 3
Degrees Of Freedom Assignment No 3Degrees Of Freedom Assignment No 3
Degrees Of Freedom Assignment No 3
 
161783709 chapter-04-answers
161783709 chapter-04-answers161783709 chapter-04-answers
161783709 chapter-04-answers
 
161783709 chapter-04-answers
161783709 chapter-04-answers161783709 chapter-04-answers
161783709 chapter-04-answers
 
Chap13 additional topics in regression analysis
Chap13 additional topics in regression analysisChap13 additional topics in regression analysis
Chap13 additional topics in regression analysis
 
The Fundamental theorem of calculus
The Fundamental theorem of calculus The Fundamental theorem of calculus
The Fundamental theorem of calculus
 
Bisection method
Bisection methodBisection method
Bisection method
 
Anova by Hazilah Mohd Amin
Anova by Hazilah Mohd AminAnova by Hazilah Mohd Amin
Anova by Hazilah Mohd Amin
 
Business Quantitative Lecture 3
Business Quantitative Lecture 3Business Quantitative Lecture 3
Business Quantitative Lecture 3
 

Recently uploaded

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Recently uploaded (20)

FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Miich4 ftests

  • 1. 4-1 4 F-Tests Reading: Kennedy (1998) “A Guide to Econometrics”, Chapters 4 and 6 Maddala, G.S. (1992) “Introduction to Econometrics” p. 170-177 Moore and McCabe, chapter 12 is also worth looking at since it gives a good explanation of the more general use of F-tests (such as comparing means across several populations). Field 2001 section 4.1.3 Aim: The aim of this section is to consider the use of F-tests in regression analysis. Objectives: By the end of this chapter, students should be aware of the basic formula for F-tests run in the context of regression analysis; be able to test for the existence of a relationship; test for structural breaks and test for a set of linear restrictions. Plan: 4.1 Introduction ................................................................................................... 4-1 4.2 Testing a set of linear Restrictions - The General Procedure ........................ 4-2 4.3 Using the F-test: ............................................................................................ 4-2 4.4 Test Procedure: .............................................................................................. 4-3 4.5 Linear restrictions where algebraic manipulation is involved (advanced) .... 4-4 4.5 Using the Excel Template.............................................................................. 4-5 4.6 Testing a set of linear Restrictions when the Restrictions are Homogenous 4-8 4.7 Testing for the existence of a relationship..................................................... 4-8 4.8 Testing for Structural Breaks......................................................................... 4-9 4.1 Introduction It just so happens that the ratio of two residual sums of squares has an F distribution. A number of tests have been developed that make use of this principle. Since they all are based on the same basic formula (one that compares an “unrestricted model” with a “restricted model”), it makes sense to gather the most common F-tests into one place. So the purpose of this chapter is to introduce F-tests and their application to testing for the existence of a relationship, the occurrence of structural breaks, and the effect of linear restrictions. It is particularly recommended that students familiarise themselves with the procedures for testing for structural breaks since these are most useful as a diagnostic tool.
  • 2. 4-2 4.2 Testing a set of linear Restrictions - The General Procedure Suppose we want to test whether there are any country specific effects in the relationship between inflation and the money supply. We can do this by testing the following null hypothesis: H0: g1 = g2 = g3 =…. = g42 = 0 where g1, g2,…., g42 are the slope coefficients on country dummies in the following regression: INFL = a + b MS + g1 COUNTRY1 + …+ g42 COUNTRY42 [1] We can conceive of this as being equivalent to comparing two regressions, one Restricted and one Unrestricted. The Unestricted regression is equation [1] above with the country dummies included. The Restricted regression, on the other hand, is: INFL = a + b MS [2] To compare these two regressions (equation [1] and equation [2]) we use an F test. The general formula for F is given by: (RSSR − RSSU ) / r Fdfdenominato = FdfU = dfnumerator r r RSSU / dfU Where: RSSU = unrestricted residual sum of squares = RSS under H1 RSSR = restricted residual sum of squares = RSS under H0 r = number of restrictions = difference in the number of parameters between restricted and unrestricted equations dfu = df from unrestricted regression = n - k where k is all coefficients including the intercept. 4.3 Using the F-test: If the null hypothesis is true (i.e. restrictions are satisfied) then we would expect the restricted and unrestricted regressions to give similar results. In other words, RSSR and RSSU will be similar, so we accept H0 when the test statistic gives a small value for F. In contrast, if one of the restrictions does not hold, then the restricted regression will have had an invalid restriction imposed upon it and will be mispecified. This results in more residual variation, and a higher restricted residual sum of squares (NB RSSR will always be greater than RSSU since imposing a restriction on an equation can never reduce the residual sum of squares). Consequently, we reject H0 when the test statistic gives a large value.
  • 3. 4-3 4.4 Test Procedure: There are four basic steps to executing an F-test: (i) Compute RSSU Run the unrestricted form of the regression in SPSS and take a note of the residual sum of squares = RSSU (ii) Compute RSSR Run the restricted form of the regression in SPSS and take a note of the residual sum of squares = RSSR. If the restrictions are not homogenous (i.e. if they imply that the restricted and unrestricted regressions have different dependent variables) then you need to: substitute the restrictions into the equation; rearrange the equation so that each parameter appears only once; create new variables where necessary and estimate by OLS; take a note of the residual sum of squares from this regression = RSSR; (iii) Calculate r and dfU r is the number of restrictions and is equal to the difference in the number of parameters between the restricted regression and the unrestricted regression. dfu is the degrees of freedom from unrestricted regression = n - k where k is all coefficients including the intercept. The dfu is listed in the ANOVA table (for the unrestricted regression) as the degrees of freedom of the residual. For example, in the following ANOVA table, the degrees of freedom is 511. Note also that n = 516 = degrees of freedom of the Total Sum of Squares + 1 and that k (as we have defined it, i.e. the total number of coefficients including the intercept) = 5 = degrees of freedom of the Regression Sum of Squares + 1. ANOVAb Sum of Mean Model Squares df Square F Sig. 1 Regression 296.772 4 74.193 20.652 .000a Residual 1835.811 511 3.593 Total 2132.583 515 a. Predictors: (Constant), CNTRY_3, CNTRY_2, CNTRY_1, money supply b. Dependent Variable: inflation (iv) Substitute RSSU, RSSR, r and dfU Once you have computed RSSU, RSSR, r and dfU, enter them in the equation for F and find the associated significance level. NB you can find the sig value of any F value that you have calculated by using the following syntax in Excel: =FDIST(F value that you’ve calculated, dfnumerator, dfdenominator) Alternatively, you can use the Excel Template which will calculate the test F value and sig level for you from SPSS ANOVA tables (see below).
  • 4. 4-4 4.5 Linear restrictions where algebraic manipulation is involved (advanced) F-tests can not only be used to test whether a group of variables in the model are jointly significant. They can also be used to test more sophisticated restrictions on the values of particular coefficients. You might, for example, wish to test whether two coefficients are equal, or whether a number of coefficients sum to one, or whether two different regressions have similar coefficients. To do these tests you need to do some algebraic manipulation of your original regression equations, as the following examples demonstrate: Example 1 In a regression of x2 and x3 on y, test the hypothesis that the coefficients sum to one. The Unrestricted regression is given by: y = b1 + b2x2 + b3x3 + u The null hypothesis is H0: b2 + b3 = 1; Now we need to substitute the null hypothesis into the equation to derive the restricted regression. If H0 is true, then: b3 = 1 - b2 and: y = b1 + b2x2 + (1-b2)x3 + u = b1 + b2x2 + x3- b2x3 + u = b1 + b2(x2 - x3)+ x3 + u y - x3 = b1 + b2(x2 - x3)+ u Restricted regression can now be written as: z = b1 + b2(v)+ u where z = y - x3; and v = x2 - x3 Example 2 For the same regression as the one considered in Example 1, test the hypothesis that b2 = b3 First note that this is a homogenous restriction because, as we shall see in a moment, the restricted and unrestricted regressions have the same dependent variable. Unrestricted regression: y = b1 + b2x2 + b3x3 + u H0: b2 = b3; If H0 is true, then: y = b1 + b2x2 + b2x3 + u = b1 + b2(x2 + x3) + u Restricted regression is simply: y = b1 + b2(w)+ u where w = x2 + x3; Example 3 In a regression of : MS_GDP and MP_GDP on Inflation, test the hypothesis that the coefficients on MS_GDP equals that of MP_GDP plus one.
  • 5. 4-5 In this case, we will find that Restricted and Unrestricted regressions have the different dependent variables and so the restrictions are not homogenous: Unrestricted regression: Infl = b1 + b2MS_GDP + b3MP_GDP + u Ho: b3 = b2 + 1 If H0 is true, then: Infl = b1 + b2MS_GDP + (b2+1)MP_GDP + u = b1 + b2MS_GDP + b2 MP_GDP + 1×MP_GDP + u = b1 + b2(MS_GDP + MP_GDP) + MP_GDP + u Infl - MP_GDP = b1 + b2(MS_GDP + MP_GDP) + u Restricted regression: z = b1 + b2(v)+ u where, z = Infl - MP_GDP ; v = MS_GDP + MP_GDP 4.6 Using the Excel Template You should familiarize yourself with calculating F-tests manually, but to speed calculation in routine tests and to improve precision I have developed an Excel spreadsheet which can be used to run F tests. Open up the Lab 4 F-tests spreadsheet, and open up the first worksheet (tab label: General Test for Linear Restrcs). The general F-test procedure using this spreadsheet is as follows: (i) Run the Unrestricted regression and copy the ANOVA table from this regression. Place the cursor in cell D18 of the spreadsheet (the green shaded square with ANOVA written in it) and paste. This will displace any existing entry with your new ANOVA Unrestricted regression results. (ii) Now run the Restricted regression and copy the ANOVA table from this regression. Place the cursor in cell D7 of the spreadsheet (the green shaded square with ANOVA written in it) and paste. This will again displace any existing entry with your new ANOVA Restricted regression results. (iii) Excel should automatically calculate the r, dfU, F and significance level (see cells L28 to L40) but you should check the answer manually the first few times to ensure that you are using the spreadsheet correctly and that you understand the procedure. Remember that the null hypothesis is that there is no difference between the restricted and unrestricted regressions. Therefore, if F is large and the significance level small, you can reject the null with only a small probability of a Type I Error (i.e. that you have rejected H0 incorrectly).
  • 6. 4-6 1. Create dummies for the first ten countries. We created dummies before by simply creating a new variable with all values equal to 0, then using the If statement to set the values equal to one if the property is satisfied: e.g. COMPUTE COUNTRY1 = 0. EXECUTE. IF(COUNTRY = 1) COUNTRY1 = 1. EXECUTE. The disadvantage with this approach is that it does not take account of missing values. If a missing value exists in the variable we are trying to recode, then the dummy variable will have the value zero. However, strictly speaking, this is incorrect, since it suggests that we know that the observation does not have the attribute in question (in this case, the country is not Argentina), when in reality we do not actually know what the country is. An additional problem is that the above procedure did not encourage us to include a variable label. This means that if we do not go back and label the newly created dummy variable we can end up not knowing what it means or how it was calculated (remember that a variable name can only have eight characters and it can sometimes be difficult to describe a variable with so few letters). A better approach would be to use the RECODE syntax or to use the Transform/Recode/Into Different Variables… window. The advantage of using the syntax rather than the windows procedure is that if you are creating lots of dummies you can copy and paste the syntax and only alter the parts of the syntax that need to change. It also allows you to keep a record of your work. The recode syntax for creating the first three country dummies is as follows (the shaded syntax indicates the what needs to be amended when you create a new country dummy variable) : RECODE country (1=1) (MISSING=SYSMIS) (ELSE=0) INTO Country1 . VARIABLE LABELS Country1 'Dummy for Argentina'. EXECUTE . RECODE country (2=1) (MISSING=SYSMIS) (ELSE=0) INTO Country2 . VARIABLE LABELS Country2 'Dummy for Bolivia'. EXECUTE .
  • 7. 4-7 RECODE country (3=1) (MISSING=SYSMIS) (ELSE=0) INTO Country3 . VARIABLE LABELS Country3 'Dummy for Brazil'. EXECUTE . You can copy and paste these into the SPSS syntax window and run as normal. 2. Test whether there are country effects for Argentina, Bolivia and Brazil in a regression of money supply on inflation: INFL = a + b MS + g1 COUNTRY1 + g2 COUNTRY2 + g3 COUNTRY3 3. (Optional) In a regression explaining imports per capita (mp_pc), test the hypothesis that the coefficients on GDP per capita (gdp_pc) and exports per capita (xp_pc) sum to one. That is, for: mp_pc = b1 + b2 gdp_pc + b3 xp_pc test the null hypothesis that b2 + b3 = 1 Hint: first you need to create the new variables: compute xp_pc = xp/pop. VARIABLE LABELS xp_pc 'exports per capita'. execute. compute gdp_pc = gdp/pop. VARIABLE LABELS gdp_pc 'GDP per capita'. execute. compute mp_pc = mp/pop. VARIABLE LABELS mp_pc 'Imports per capita'. execute. Then run the unrestricted regression (mp_pc = b1 + b2 gdp_pc + b3 xp_pc). Then you need to derive the restricted regression. Before you know what regression to run, you need to work through the algebraic implications of the null hypothesis: substitute the restrictions into the equation (i.e. substitute b2 + b3 = 1 into the original unrestricted equation: mp_pc = b1 + b2 gdp_pc + b3 xp_pc). rearrange the equation so that each parameter appears only once create new variables where necessary and estimate by OLS Once you’ve done this, and you know what the restricted regression looks like, run the restricted regression. Then paste the ANOVA tables from the restricted and unrestricted regressions into the Excel template. If the significance level is small, you can reject the null that b2 + b3 = 1. You should check your results by calculating the F-ratio manually. 4. (Optional) Test whether, in the previous question, the two slope coefficients are equal.
  • 8. 4-8 4.7 Testing a set of linear Restrictions when the Restrictions are Homogenous When the linear restrictions we want to test are homogenous: e.g. H0: b2 = b3 = 0 e.g. H0: b2 = b3 we will find that we will not need to transform the dependent variable of the restricted equation in order to specify the restricted equation. For restrictions of this type, where the dependent variable is the same in the restricted and unrestricted regressions, we can re-write our F-ratio test statistic in terms of R2s: ( RU − RR ) / r 2 2 Fdf denominator = FdfU = df numerator r (1 − RU ) / dfU 2 where: R2U = R2 from the unrestricted regression, R2R = R2 from the restricted regression r = number of restrictions = difference in the number of parameters between restricted and unrestricted equations. dfu = degrees of freedom from unrestricted regression = n - k where k is the total number of coefficients in the unrestricted regression including the intercept. 5. (Optional) Look again at the restrictions suggested in the previous questions and consider whether they are homogenous or not. If they are homogenous, try running the test again, but this time use the simplified F-ratio test statistic. 4.8 Testing for the existence of a relationship If we are testing a set of linear restrictions where the restrictions are that all slope coefficients are zero (bj = 0 for all j), in other words we are testing for the existence of a relationship, then we can simplify the F-ratio test statistic further. Suppose the Unrestricted regression is as follows: y = b1 + b2x2 + b3x3 + u H0: b2 = b3 = 0; If H0 is true, then y = b1. In this case, the Restricted regression does no explaining at all and so RR2 = 0. As a result, the homogenous restriction F-ratio test statistic reduces to: ( RU − 0) / r 2 Fdf denominator = FdfU = df numerator r (1 − RU ) / df U 2 2 ( RU ) / r = (1 − RU ) / df U 2 where, dfu = degrees of freedom from unrestricted regression = n - k where k is the total number of coefficients in the unrestricted regression including the intercept. R2U = R2 from the unrestricted regression, r = number of restrictions = k – 1.
  • 9. 4-9 6. This is the F-test we came across in Session 2, and is the one automatically calculated in the SPSS ANOVA table. Try calculating the test manually and compare it with the ANOVA table output. 4.9 Testing for Structural Breaks The F-test also comes into play when we want to test whether the estimated coefficients change significantly if we split the sample in two at a given point. These tests are sometimes called “Chow Tests” after one of its early proponents. There are actually two versions of the test: Chow’s First Test and Chow’s Second Test. Chow’s First Test Use where n2 > k (1) Run the regression on the first set of data (i = 1, 2, 3, … n1) and let its RSS be labeled RSSn1 (2) Run the regression on the second set of data (i = n1+1, n1+2, …, end of data) and let its RSS be labeled RSSn2 (3) Run the regression on the two sets of data combined (i = 1, …, end of data) and let its RSS be RSSn1 + n2 (4) Compute RSSU, RSSR, r and dfU where: RSSU = RSSn1 + RSSn2 RSSR = RSSn1 + n2 r = k = total number of coefficients including the constant dfU = n1 + n2 -2k (5) Use RSSU, RSSR, r and dfU to calculate F using the general formula for F and find the sig. Level: 4.9.1.1 Chow’s Second Test Use where n2 < k (I.e. when you have insufficient observations on the second sub- sample to run Chow’s 1st test) (1) Run the regression on the first set of data (i = 1, 2, 3, … n1) & let its RSS be RSSn1 (2) Run the regression on the two sets of data combined (i = 1, …, end of data) & let its RSS be RSSn1 + n2 (3) Compute RSSU, RSSR, r and dfU: RSSU = RSSn1 RSSR = RSSn1 + n2 r = n2 dfU = n1 – k (4) Use RSSU, RSSR, r and dfU to calculate F using the general formula for F and find the significance: 7. In the imports per capita regression you estimated above, use Chow’s First Test to test the hypothesis that slope coefficients changed (i.e. there was a structural break) before and after 1986.
  • 10. 4-10 8. Test the same hypothesis using Chow’s Second Test. Which test is more reliable do you think in this instance? 9. In the same regression, test the hypothesis that the slope coefficients are different for smaller countries (pop < 15).