Professional Documents
Culture Documents
Denote the dependent variable by y and the independent variable(s) by x1, x2, ... ,
xk where there are k independent variables.
Note that there can be many x variables but we will limit ourselves to the case
where there is only one x variable to start with. In our set-up, there is only one
y variable.
Classical Linear Regression Model
For simplicity, say k=1. This is the situation where y depends on only
one x variable.
Classical Linear Regression Model
Suppose that we have the following data on the excess returns on a fund
manager’s portfolio (“fund XXX”) together with the excess returns on a
market index:
Year, t Excess return Excess return on market index
= rXXX,t – rft = rmt - rft
1 17.8 13.7
2 39.0 23.2
3 12.8 6.9
4 24.2 16.8
5 17.2 12.3
We have some intuition that the beta on this fund is positive, and we
therefore want to find whether there appears to be a relationship between x
and y given the data that we have. The first stage would be to form a scatter
plot of the two variables.
Classical Linear Regression Model
45
Excess return on fund XXX
40
35
30
25
20
15
10
5
0
0 5 10 15 20 25
Excess return on market portfolio
Classical Linear Regression Model
We can use the general equation for a straight line,
y = a + bx
where t = 1,2,3,4,5
Classical Linear Regression Model
x
Classical Linear Regression Model
The most common method used to fit a line to the data is known as OLS
(ordinary least squares).
What we actually do is take each distance and square it (i.e. take the area
of each of the squares in the diagram) and minimise the total sum of the
squares (hence least squares).
yyi t
û i
ŷŷt
i
xi x
Classical Linear Regression Model
5
But what was ût ? It was the difference between the actual point and the
line, yt - ŷt .
But y t Ty and xt Tx .
Classical Linear Regression Model
t t t
x y y x ˆ
x t
x ˆ
t 0
x
2
xt yt Tyx ˆTx 2 ˆ xt 0
2
t
Classical Linear Regression Model
Rearranging for $ ,
So overall we have
ˆ
xt yt Tx y
andˆ y ˆx
xt2 Tx 2
Solution: We can say that the expected value of y = “-1.74 + 1.64 * value of x”, so
plug x = 20 into the equation to get the expected value for y:
yˆ i 1.74 1.64 20 31.06
Classical Linear Regression Model: Specification
Linear in the parameters means that the parameters are not multiplied
together, divided, squared or cubed etc.
Yt e X t eut ln Yt ln X t ut
Then let yt = ln Yt and xt = ln Xt
yt xt ut
Classical Linear Regression Model
This is known as the exponential regression model. Here, the coefficients can
be interpreted as elasticities.
We observe data for xt, but since yt also depends on ut, we must be specific about
how the ut are generated.
We usually make the following set of assumptions about the ut’s (the unobservable
error terms):
Technical Notation Interpretation
1. E(ut) = 0 The errors have zero mean
2.Var (ut) = 2 The variance of the errors is constant and finite
over all values of xt
3. Cov (ui,uj)=0 The errors are statistically independent of
one another
4. Cov (ut,xt)=0 No relationship between the error and
corresponding x variate
Classical Linear Regression Model
Additional Assumption
5. ut is normally distributed
Classical Linear Regression Model
Consistent
The least squares estimators $and $ are consistent. That is, the estimates
will converge to their true values as the sample size increases to infinity.
Need the assumptions E(xtut)=0 and Var(ut)=2 < to prove this.
Consistency implies that
lim Pr ˆ 0 0
T
Unbiased
The least squares estimates of $and $are unbiased.That is E($)= and E( $)=
Thus on average the estimated value will be equal to the true values. To
prove this also requires the assumption that E(ut)=0. Unbiasedness is a stronger
condition than consistency.
Efficiency
An estimator $of parameter is said to be efficient if it is unbiased and no
other unbiased estimator has a smaller variance. If the estimator is efficient, we are
minimising the probability that it is a long way off from the true value of .
Classical Linear Regression Model
Any set of regression estimates of $and $are specific to the sample used in their
estimation.
The estimators of and from the sample parameters ($ and $) are given by
ˆ t 2 t
x y Tx y
andˆ y ˆx
xt Tx 2
xt2 xt
2
SE (ˆ ) s s ,
T ( xt x ) 2
T x T x
2
t
2 2
1 1
SE ( ˆ ) s s
t
( x x ) 2
t x 2
T x 2
T 2
Classical Linear Regression Model
SE(regression), s
uˆ t2
130.6
2.55
T 2 20
3919654
SE ( ) 2.55 * 3.35
22 3919654 22 416.5
2
1
SE ( ) 2.55 * 0.0079
3919654 22 416.5 2
We now write the results as
yˆ t 59.12 0.35 xt
(3.35) (0.0079)
Classical Linear Regression Model
We want to make inferences about the likely population values from the
regression parameters.
The first step is to obtain the critical value. We want tcrit = t20;5%
Classical Linear Regression Model
Now we write
yt 1 2 x2t 3 x3t ... k xkt ut , t=1,2,...,T
Where is x1? It is the constant term. In fact the constant term is usually
represented by a column of ones of length T:
1
1
x1
1
y1 1 x21 u1
y 1 x22 1 u2
2
2
yT 1 x2T uT
T 1 T2 21 T1
$i
Since i* = 0, test stat
SE ( $i )
The Data: Annual Returns on the portfolios of 115 mutual funds from 1945-
1964.
We used the t-test to test single hypotheses, i.e. hypotheses involving only
one coefficient. But what if we want to test more than one coefficient
simultaneously?
The unrestricted regression is the one in which the coefficients are freely
determined by the data, as we have done before.
The restricted regression is the one in which the coefficients are restricted,
i.e. the restrictions are imposed on some s.
Testing Multiple Hypotheses: The F-test
Example
The general regression is
yt = 1 + 2x2t + 3x3t + 4x4t + ut (1)
We want to test the restriction that 3+4 = 1 (we have some hypothesis
from theory which suggests that this would be an interesting hypothesis to
study). The unrestricted regression is (1) above, but what is the restricted
regression?
yt = 1 + 2x2t + 3x3t + 4x4t + ut s.t. 3+4 = 1
RRSS URSS T k
test statistic
URSS m
where URSS = RSS from unrestricted regression
RRSS = RSS from restricted regression
m = number of restrictions
T = number of observations
k = number of regressors in unrestricted
regression including a constant in the unrestricted regression (or the
total number of parameters to be estimated).
Testing Multiple Hypotheses: The F-test
The test statistic follows the F-distribution, which has two d.f. parameters.
Examples :
H0: hypothesis No. of restrictions
1 + 2 = 2 1
2 = 1 and 3 = -1 2
2 = 0, 3 = 0 and 4 = 0 3
If the model is yt = 1 + 2x2t + 3x3t + 4x4t + ut,
then the null hypothesis
H0: 2 = 0, and 3 = 0 and 4 = 0 is tested by the regression F-statistic. It
tests the null hypothesis that all of the coefficients except the intercept coefficient
are zero.
Note the form of the alternative hypothesis for all tests when more than one
restriction is involved: H1: 2 0, or 3 0 or 4 0
Goodness of the fit of the Model
We would like some measure of how well our regression model actually fits the
data.
We have goodness of fit statistics to test this: i.e. how well the sample
regression function (srf) fits the data.
The most common goodness of fit statistic is known as R2. One way to define R2
is to say that it is the square of the correlation coefficient between y and y$.
For another explanation, recall that what we are interested in doing is explaining
the variability of y about its mean value, y , i.e. the total sum of squares, TSS:
TSS yt y
2
t
We can split the TSS into two parts, the part which we have explained (known
as the explained sum of squares, ESS) and the part which we did not explain
using the model (the RSS).
Defining R2
T 1
R 2 1 (1 R 2 )
T k
So if we add an extra regressor, k increases and unless R2 increases by a
more than offsetting amount, R 2 will actually fall.
Violation of the Assumptions of the CLRM
1. E(ut) = 0
2.Var(ut) = 2 <
3. Cov (ui,uj) = 0
4.The X matrix is non-stochastic or given in repeated samples
5. ut N(0,2)
Assumption 1: E(ut) = 0
• The mean of the residuals will always be zero provided that there is a
constant term in the regression.
Assumption 2: Var(ut) = 2 <
We have so far assumed that the variance of the errors is constant, 2 - this
is known as homoscedasticity. If the errors do not have a constant variance,
we say that they are heteroscedastic e.g. say we estimate a regression and
calculate the residuals. û +
t
x 2t
-
Detection of Heteroscedasticity
Graphical methods
Formal tests:
One of the general test for heteroscedasticity.
If the form (i.e. the cause) of the heteroscedasticity is known, then we can use
an estimation method which takes this into account (called generalised least
squares, GLS).
A simple illustration of GLS is as follows: Suppose that the error variance is
related to another variable zt by
var ut 2 zt2
We assumed of the CLRM’s errors that Cov (ui , uj) = 0 for ij, i.e.
If there are patterns in the residuals from a model, we say that they are
autocorrelated.
Positive Autocorrelation
+
û t û t
+
- uˆ +t 1
Time
-
-
+ û t
û t
+
- +
uˆ t 1
Time
- -
- +
uˆ t 1
-
-
ut = ut-1 + vt (1)
The coefficient estimates derived using OLS are still unbiased, but they
are inefficient, i.e. they are not BLUE, even in large sample sizes.
Thus, if the standard error estimates are inappropriate, there exists the
possibility that we could make the wrong inferences.
If these assumptions are invalid, the cure would be more dangerous than
the disease! - see Hendry and Mizon (1978).
Our Objective:
To build a statistically adequate empirical model which
- satisfies the assumptions of the CLRM
- is parsimonious
- has the appropriate theoretical interpretation
- has the right “shape” - i.e.
- all signs on coefficients are “correct”
- all sizes of coefficients are “correct”
- is capable of explaining the results of all competing models
2 Approaches to Building Econometric Models
“Specific-to-general” was used almost universally until the mid 1980’s, and
involved starting with the simplest model and gradually adding to it.
Little, if any, diagnostic testing was undertaken. But this meant that all
inferences were potentially invalid.
The advantages of this approach are that it is statistically sensible and also the
theory on which the models are based usually has nothing to say about the
lag structure of a model.
The General-to-Specific Approach
First step is to form a “large” model with lots of variables on the right hand side
At this stage, we want to make sure that the model satisfies all of the
assumptions of the CLRM
If the assumptions are violated, we need to take appropriate actions to remedy
this, e.g.
- taking logs
- adding lags
- dummy variables
We need to do this before testing hypotheses
Once we have a model which satisfies the assumptions, it could be very big with
several independent variables
The General-to-Specific Approach
One way of dealing with the difference in the costs would be to run separate regressions for
the two types of school.
However this would have the drawback that you would be running regressions with two
small samples instead of one large one, with an adverse effect on the precision of the
estimates of the coefficients.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
COST
1
=================================================================
Dependent variable:
---------------------------------------------
COST
(1) (2)
-----------------------------------------------------------------
N 436.777*** 152.298***
(58.621) (41.398)
-----------------------------------------------------------------
Observations 34 40
R2 0.634 0.263
Adjusted R2 0.623 0.243
Residual Std. Error 104,425.500 (df = 32) 56,544.870 (df = 38)
F Statistic 55.516*** (df = 1; 32) 13.534*** (df = 1; 38)
=================================================================
Note: *p<0.1; **p<0.05; ***p<0.01
COST
1
Effectively, we are hypothesizing that the annual overhead cost is different for the two types
of school, but the marginal cost is the same. The marginal cost assumption is not very
plausible and we will relax it in due course.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
COST
1
COST
1
Then 1' = 1 + and we can rewrite the cost function for occupational schools as shown.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
COST
1
We can now combine the two cost functions by defining a dummy variable OCC that has
value 0 for regular schools and 1 for occupational schools.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
COST
1
Dummy variables always have two values, 0 or 1. If OCC is equal to 0, the cost function
becomes that for regular schools. If OCC is equal to 1, the cost function becomes that for
occupational schools.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
N
We will now fit a function of this type using data for a sample of 74 secondary schools in
Shanghai.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
The table shows the data for the first 10 schools in the sample. The annual cost is
measured in rupees. N is the number of students in the school.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
We now run the regression of COST on N and OCC, treating OCC just like any other
explanatory variable, despite its artificial nature.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
^
COST = –34,000 + 133,000OCC + 331N
The regression results have been rewritten in equation form. From it we can derive cost
functions for the two types of school by setting OCC equal to 0 or 1.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
^
COST = –34,000 + 133,000OCC + 331N
Regular School ^
COST = –34,000 + 331N
(OCC = 0)
If OCC is equal to 0, we get the equation for regular schools, as shown. It implies that the
marginal cost per student per year is 331 rupees and that the annual overhead cost is -
34,000 rupees.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
^
COST = –34,000 + 133,000OCC + 331N
Regular School ^
COST = –34,000 + 331N
(OCC = 0)
Obviously having a negative intercept does not make any sense at all and it suggests that
the model is misspecified in some way. We will come back to this later.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
^
COST = –34,000 + 133,000OCC + 331N
Regular School ^
COST = –34,000 + 331N
(OCC = 0)
The coefficient of the dummy variable is an estimate of , the extra annual overhead cost of
an occupational school.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
^
COST = –34,000 + 133,000OCC + 331N
Regular School ^
COST = –34,000 + 331N
(OCC = 0)
Occupational School ^
COST = –34,000 + 133,000 + 331N
(OCC = 1)
= 99,000 + 331N
Putting OCC equal to 1, we estimate the annual overhead cost of an occupational school to
be 99,000 rupees. The marginal cost is the same as for regular schools. It must be, given
the model specification.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
The scatter diagram shows the data and the two cost functions derived from the regression
results.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
In addition to the estimates of the coefficients, the regression results will include standard
errors and the usual diagnostic statistics.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
We will perform a t test on the coefficient of the dummy variable. Our null hypothesis is H0:
= 0 and our alternative hypothesis is H1: 0.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
In words, our null hypothesis is that there is no difference in the overhead costs of the two
types of school. The t statistic is 6.40, so it is rejected at the 0.1% significance level.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
We can perform t tests on the other coefficients in the usual way. The t statistic for the
coefficient of N is 8.34, so we conclude that the marginal cost is (very) significantly different
from 0.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
In the case of the intercept, the t statistic is –1.43, so we do not reject the null hypothesis
H0: 1 = 0.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
Thus one explanation of the nonsensical negative overhead cost of regular schools might
be that they do not actually have any overheads and our estimate is a random number.
DUMMY VARIABLE CLASSIFICATION WITH TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 331.449***
(39.758)
OCC 133,259.100***
(20,827.580)
Constant -33,612.550
(23,573.470)
-----------------------------------------------
Observations 74
R2 0.616
Adjusted R2 0.605
Residual Std. Error 89,248.090 (df = 71)
F Statistic 56.861*** (df = 2; 71)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
A more realistic version of this hypothesis is that 1 is positive but small (as you can see,
the 95 percent confidence interval includes positive values) and the error term is
responsible for the negative estimate.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
Suppose there are three types of occupational school. There are technical schools training
technicians and skilled workers’ schools training craftsmen, apart from other vocational
schools.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
So now the qualitative variable has four categories. The standard procedure is to choose
one category as the reference category and to define dummy variables for each of the
others.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
If an observation relates to a general school, the dummy variables are all 0 and the
regression model is reduced to its basic components.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
If an observation relates to a technical school, TECH will be equal to 1 and the other dummy
variables will be 0. The regression model simplifies as shown.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
The regression model simplifies in a similar manner in the case of observations relating to
skilled workers’ schools and vocational schools.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
COST
Technical
1+T W T
1+W Workers’
Vocational
V
1+V
1 General
The diagram illustrates the model graphically. The coefficients are the extra overhead
costs of running technical, skilled workers’, and vocational schools, relative to the
overhead cost of general schools.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
Here are the data for the first 10 of the 74 schools. Note how the values of the dummy
variables TECH, WORKER, and VOC are determined by the type of school in each
observation.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
N
The scatter diagram shows the data for the entire sample, differentiating by type of school.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 342.634***
(40.219)
TECH 154,110.900***
(26,760.410)
WORKER 143,362.400***
(27,852.800)
VOC 53,228.640*
(31,061.650)
Constant -54,893.090**
(26,673.080)
-----------------------------------------------
Observations 74
R2 0.632
Adjusted R2 0.611
Residual Std. Error 88,578.370 (df = 69)
F Statistic 29.631*** (df = 4; 69)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
The coefficient of N indicates that the marginal cost per student per year is 343 rupees.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 342.634***
(40.219)
TECH 154,110.900***
(26,760.410)
WORKER 143,362.400***
(27,852.800)
VOC 53,228.640*
(31,061.650)
Constant -54,893.090**
(26,673.080)
-----------------------------------------------
Observations 74
R2 0.632
Adjusted R2 0.611
Residual Std. Error 88,578.370 (df = 69)
F Statistic 29.631*** (df = 4; 69)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
The coefficients of TECH, WORKER, and VOC are 154,000, 143,000, and 53,000, respectively,
and should be interpreted as the additional annual overhead costs, relative to those of
general schools.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
===============================================
Dependent variable:
---------------------------
COST
-----------------------------------------------
N 342.634***
(40.219)
TECH 154,110.900***
(26,760.410)
WORKER 143,362.400***
(27,852.800)
VOC 53,228.640*
(31,061.650)
Constant -54,893.090**
(26,673.080)
-----------------------------------------------
Observations 74
R2 0.632
Adjusted R2 0.611
Residual Std. Error 88,578.370 (df = 69)
F Statistic 29.631*** (df = 4; 69)
===============================================
Note: *p<0.1; **p<0.05; ***p<0.01
The constant term is –55,000, indicating that the annual overhead cost of a general
academic school is –55,000 rupees per year. Obviously this is nonsense and indicates that
something is wrong with the model.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
General School ^
COST = –55,000 + 343N
(TECH = WORKER = VOC = 0)
Technical School ^
COST = –55,000 + 154,000 + 343N
(TECH = 1; WORKER = VOC = 0) = 99,000 + 343N
Vocational School ^
COST = –55,000 + 53,000 + 343N
(VOC = 1; TECH = WORKER = 0) = –2,000 + 343N
And similarly the extra overhead costs of skilled workers’ and vocational schools, relative
to those of general schools, are 143,000 and 53,000 rupees, respectively.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
General School ^
COST = –55,000 + 343N
(TECH = WORKER = VOC = 0)
Technical School ^
COST = –55,000 + 154,000 + 343N
(TECH = 1; WORKER = VOC = 0) = 99,000 + 343N
Vocational School ^
COST = –55,000 + 53,000 + 343N
(VOC = 1; TECH = WORKER = 0) = –2,000 + 343N
Note that in each case the annual marginal cost per student is estimated at 343 rupees. The
model specification assumes that this figure does not differ according to type of school.
DUMMY CLASSIFICATION WITH MORE THAN TWO CATEGORIES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
The scatter diagram shows the data for the 74 schools and the cost functions derived from
a regression of COST on N and a dummy variable for the type of curriculum (occupational /
regular).
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
The specification of the model incorporates the assumption that the marginal cost per
student is the same for occupational and regular schools. Hence the cost functions are
parallel.
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
Also, the staff-student ratio has to be higher in occupational schools because workshop
groups cannot be, or at least should not be, as large as academic classes.
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
Looking at the scatter diagram, you can see that the cost function for the occupational
schools should be steeper, and that for the regular schools should be flatter.
SLOPE DUMMY VARIABLES
We will relax the assumption of the same marginal cost by introducing what is known as a
slope dummy variable. This is N*OCC, defined as the product of N and OCC.
SLOPE DUMMY VARIABLES
In the case of a regular school, OCC is 0 and hence so also is NOCC. The model reduces to
its basic components.
SLOPE DUMMY VARIABLES
In the case of an occupational school, OCC is equal to 1 and N*OCC is equal to N. The
equation simplifies as shown.
SLOPE DUMMY VARIABLES
The model now allows the marginal cost per student to be an amount l greater than that in
regular schools, as well as allowing the overhead costs to be different.
SLOPE DUMMY VARIABLES
COST Occupational
l
Regular
1 +
1
=================================================================
Dependent variable:
---------------------------------------------
COST
(1) (2)
-----------------------------------------------------------------
N 331.449*** 152.298**
(39.758) (60.019)
N:OCC 284.479***
(75.632)
-----------------------------------------------------------------
Observations 74 74
R2 0.616 0.680
Adjusted R2 0.605 0.667
Residual Std. Error 89,248.090 (df = 71) 81,979.800 (df = 70)
F Statistic 56.861*** (df = 2; 71) 49.643*** (df = 3; 70)
=================================================================
Note: *p<0.1; **p<0.05; ***p<0.01
Here is the regression output using the full sample of 74 schools. We will begin by
interpreting the regression coefficients.
SLOPE DUMMY VARIABLES
Regular school ^
COST = 51,000 + 152N
(OCC = NOCC = 0)
Putting OCC, and hence NOCC, equal to 0, we get the cost function for regular schools. We
estimate that their annual overhead costs are 51,000 rupees and their annual marginal cost
per student is 152 rupees.
SLOPE DUMMY VARIABLES
Regular school ^
COST = 51,000 + 152N
(OCC = NOCC = 0)
Occupational school ^
COST = 51,000 – 4,000 + 152N + 284N
(OCC = 1; NOCC = N) = 47,000 + 436N
Putting OCC equal to 1, and hence NOCC equal to N, we estimate that the annual overhead
costs of the occupational schools are 47,000 rupees and the annual marginal cost per
student is 436 rupees.
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
N
You can see that the cost functions fit the data much better than before and that the real
difference is in the marginal cost, not the overhead cost.
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
Now we can see why we had a nonsensical negative estimate of the overhead cost of a
regular school in previous specifications.
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
The assumption of the same marginal cost led to an estimate of the marginal cost that was
a compromise between the marginal costs of occupational and regular schools.
SLOPE DUMMY VARIABLES
700000
600000
500000
400000
COST
300000
200000
100000
0
0 200 400 600 800 1000 1200 1400
-100000
N
The cost function for regular schools was too steep and as a consequence the intercept
was underestimated, actually becoming negative and indicating that something must be
wrong with the specification of the model.
SLOPE DUMMY VARIABLES
=================================================================
Dependent variable:
---------------------------------------------
COST
(1) (2)
-----------------------------------------------------------------
N 331.449*** 152.298**
(39.758) (60.019)
N:OCC 284.479***
(75.632)
-----------------------------------------------------------------
Observations 74 74
R2 0.616 0.680
Adjusted R2 0.605 0.667
Residual Std. Error 89,248.090 (df = 71) 81,979.800 (df = 70)
F Statistic 56.861*** (df = 2; 71) 49.643*** (df = 3; 70)
=================================================================
Note: *p<0.1; **p<0.05; ***p<0.01
We can perform t tests as usual. The t statistic for the coefficient of NOCC is 3.76, so the
marginal cost per student in an occupational school is significantly higher than that in a
regular school.
SLOPE DUMMY VARIABLES
=================================================================
Dependent variable:
---------------------------------------------
COST
(1) (2)
-----------------------------------------------------------------
N 331.449*** 152.298**
(39.758) (60.019)
N:OCC 284.479***
(75.632)
-----------------------------------------------------------------
Observations 74 74
R2 0.616 0.680
Adjusted R2 0.605 0.667
Residual Std. Error 89,248.090 (df = 71) 81,979.800 (df = 70)
F Statistic 56.861*** (df = 2; 71) 49.643*** (df = 3; 70)
=================================================================
Note: *p<0.1; **p<0.05; ***p<0.01
The coefficient of OCC is now negative, suggesting that the overhead costs of occupational
schools are actually lower than those of regular schools.
SLOPE DUMMY VARIABLES
=================================================================
Dependent variable:
---------------------------------------------
COST
(1) (2)
-----------------------------------------------------------------
N 331.449*** 152.298**
(39.758) (60.019)
N:OCC 284.479***
(75.632)
-----------------------------------------------------------------
Observations 74 74
R2 0.616 0.680
Adjusted R2 0.605 0.667
Residual Std. Error 89,248.090 (df = 71) 81,979.800 (df = 70)
F Statistic 56.861*** (df = 2; 71) 49.643*** (df = 3; 70)
=================================================================
Note: *p<0.1; **p<0.05; ***p<0.01
This is unlikely. However, the t statistic is only -0.09, so we do not reject the null hypothesis
that the overhead costs of the two types of school are the same.
Thanks