Examples PDF
Examples PDF
Abbott
Variable definitions:
price i = the price of the i-th car (in US dollars);
wgt i = the weight of the i-th car (in pounds);
mpg i = the fuel efficiency of the i-th car (in miles per gallon);
foreign i = 1 if the i-th car is manufactured outside North America, = 0 otherwise.
k = 3; k−1=2
Hypotheses of interest
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
∂ pricei
• H0: β2 = 0 and β3 = 0 ⇒ = β 2 + 2 β3 wgt i = 0 .
∂ wgt i
k0 = 1; k0 − 1 = 0
∂ pricei
• H1: β2 ≠ 0 and/or β3 ≠ 0 ⇒ = β 2 + 2 β3 wgt i .
∂ wgt i
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti.
∂ pricei
• H0: β3 = 0 ⇒ = β 2 + 2 β3 wgt i = β 2 .
∂ wgt i
k0 = 2; k0 − 1 = 1
∂ pricei
• H1: β3 ≠ 0 ⇒ = β 2 + 2 β3 wgt i .
∂ wgt i
k = 3; k−1=2
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
wgt | -7.273097 2.691747 -2.702 0.009 -12.64029 -1.905906
wgtsq | .0015142 .0004337 3.491 0.001 .0006494 .002379
_cons | 13418.8 3997.822 3.357 0.001 5447.372 21390.23
------------------------------------------------------------------------------
F( 2, 71) = 23.09
Prob > F = 0.0000
3. The marginal effect of wgti on pricei is decreasing in wgti: i.e., the marginal
effect of wgti on pricei exhibits decreasing marginal returns in wgti.
∂ 2 pricei
• H0: β3 = 0 or β3 ≥ 0 ⇒ = 2 β3 ≥ 0 .
∂ wgt i2
∂ pricei ∂ 2 pricei
• H1: β3 < 0 ⇒ = β 2 + 2 β3 wgt i and = 2 β3 < 0 .
∂ wgt i ∂ wgt i2
⇒ a one-sided alternative hypothesis
⇒ a left-tail test
Perform a left-tail t-test using the OLS coefficient estimate β̂3 of β3 for the
unrestricted model corresponding to H1, which is PRE (1):
k = 3; k − 1 = 2; N − k = N − 3.
4. The marginal effect of wgti on pricei is increasing in wgti: i.e., the marginal effect
of wgti on pricei exhibits increasing marginal returns in wgti.
∂ 2 pricei
• H0: β3 = 0 or β3 ≤ 0 ⇒ = 2 β3 ≤ 0 .
∂ wgt i2
∂ pricei ∂ 2 pricei
• H1: β3 > 0 ⇒ = β 2 + 2 β3 wgt i and = 2 β3 > 0 .
∂ wgt i ∂ wgt i2
⇒ a one-sided alternative hypothesis
⇒ a right-tail test
Perform a right-tail t-test using the OLS coefficient estimate β̂3 of β3 for the
unrestricted model corresponding to H1, which is PRE (1):
k = 3; k − 1 = 2; N − k = N − 3.
k = 4; k − 1 = 3.
• Marginal effect of mpgi on pricei is constant: it does not vary with any
observable variable.
Hypotheses of interest
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
∂ pricei
• H0: β2 = 0 and β3 = 0 ⇒ = β 2 + 2 β3 wgt i = 0 .
∂ wgt i
price i = β1 + β 4 mpg i + u i .
k0 = 2; k0 − 1 = 1.
∂ pricei
• H1: β2 ≠ 0 and/or β3 ≠ 0 ⇒ = β 2 + 2 β3 wgt i .
∂ wgt i
k = 4; k − 1 = 3.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti.
∂ pricei
• H0: β3 = 0 ⇒ = β 2 + 2 β3 wgt i = β 2 .
∂ wgt i
k0 = 3; k0 − 1 = 2
∂ pricei
• H1: β3 ≠ 0 ⇒ = β 2 + 2 β3 wgt i .
∂ wgt i
k = 4; k − 1 = 3.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
∂ pricei
• H0: β4 = 0 ⇒ = β4 = 0 .
∂ mpg i
k0 = 3; k0 − 1 = 2
∂ price i
• H1: β4 ≠ 0 ⇒ = β4 .
∂ mpg i
k = 4; k − 1 = 3.
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
wgt | -9.039563 2.905512 -3.111 0.003 -14.83442 -3.244703
wgtsq | .0016794 .000443 3.791 0.000 .0007958 .002563
mpg | -124.7675 81.49014 -1.531 0.130 -287.2945 37.75945
_cons | 19804.79 5751.709 3.443 0.001 8333.365 31276.21
------------------------------------------------------------------------------
F( 2, 70) = 11.59
Prob > F = 0.0000
F( 1, 70) = 14.37
Prob > F = 0.0003
F( 1, 70) = 2.34
Prob > F = 0.1303
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
(1) | -124.7675 81.49014 -1.531 0.130 -287.2945 37.75945
------------------------------------------------------------------------------
k = 5; k − 1 = 4.
Hypotheses of interest
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti
or mpgi.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
4. The marginal effect of mpgi on pricei is constant: i.e., it does not depend on mpgi
or wgti.
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
∂ pricei
• H0: β2 = 0 and β3 = 0 ⇒ = β 2 + 2 β3 wgt i = 0 .
∂ wgt i
k0 = 3; k0 − 1 = 2.
∂ pricei
• H1: β2 ≠ 0 and/or β3 ≠ 0 ⇒ = β 2 + 2 β3 wgt i
∂ wgt i
k = 5; k − 1 = 4.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti
or mpgi.
∂ pricei
• H0: β3 = 0 ⇒ = β2
∂ wgt i
k0 = 4; k0 − 1 = 3.
∂ pricei
• H1: β3 ≠ 0 ⇒ = β 2 + 2 β3 wgt i
∂ wgt i
k = 5; k − 1 = 4.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
∂ price i
• H0: β4 = 0 and β5 = 0 ⇒ = β 4 + 2 β 5 mpg i = 0 .
∂ mpg i
k0 = 3; k0 − 1 = 2.
∂ price i
• H1: β4 ≠ 0 and/or β5 ≠ 0 ⇒ = β 4 + 2 β 5 mpg i .
∂ mpg i
k = 5; k − 1 = 4.
4. The marginal effect of mpgi on pricei is constant: i.e., it does not depend on mpgi
or wgti.
∂ price i
• H0: β5 = 0 ⇒ = β 4 + 2 β 5 mpg i = β 4 .
∂ mpg i
k0 = 4; k0 − 1 = 3.
∂ price i
• H1: β5 ≠ 0 ⇒ = β 4 + 2 β 5 mpg i
∂ mpg i
k = 5; k − 1 = 4.
Model (3)
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
wgt | -7.99723 2.994029 -2.671 0.009 -13.97015 -2.024306
wgtsq | .0014407 .0004757 3.028 0.003 .0004916 .0023898
mpg | -615.2419 377.5204 -1.630 0.108 -1368.375 137.8907
mpgsq | 9.323582 7.009083 1.330 0.188 -4.659156 23.30632
_cons | 24884.95 6878.057 3.618 0.001 11163.61 38606.3
------------------------------------------------------------------------------
F( 2, 69) = 5.34
Prob > F = 0.0070
F( 1, 69) = 9.17
Prob > F = 0.0035
F( 2, 69) = 2.07
Prob > F = 0.1340
F( 1, 69) = 1.77
Prob > F = 0.1878
k = 6; k − 1 = 5.
• Marginal effect of wgti on pricei is a linear function of wgti and mpgi; it is not a
constant.
• Marginal effect of mpgi on pricei is a linear function of mpgi and wgti; it is not
a constant.
Hypotheses of interest
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti
and/or mpgi.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
4. The marginal effect of mpgi on pricei is constant: i.e., it does not depend on mpgi
and/or wgti.
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
∂ price i
• H0: β2 = 0 and β3 = 0 and β6 = 0 ⇒ = β 2 + 2 β 3 wgt i + β 6 mpg i = 0
∂ wgt i
k0 = 3; k0 − 1 = 2.
∂ pricei
• H1: β2 ≠ 0 and/or β3 ≠ 0 and/or β6 ≠ 0 ⇒ = β 2 + 2 β3 wgt i + β6 mpg i
∂ wgt i
k = 6; k − 1 = 5.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti
and/or mpgi.
∂ pricei
• H0: β3 = 0 and β6 = 0 ⇒ = β 2 + 2 β3 wgt i + β6 mpg i = β 2
∂ wgt i
k0 = 4; k0 − 1 = 3.
∂ pricei
• H1: β3 ≠ 0 and/or β6 ≠ 0 ⇒ = β 2 + 2 β3 wgt i + β6 mpg i
∂ wgt i
k = 6; k − 1 = 5.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
∂ pricei
• H0: β4 = 0 and β5 = 0 and β6 = 0 ⇒ = β 4 + 2 β5 mpg i + β 6 wgt i = 0
∂ mpg i
k0 = 3; k0 − 1 = 2.
∂ pricei
• H1: β4 ≠ 0 and/or β5 ≠ 0 and/or β6 ≠ 0 ⇒ = β 4 + 2 β5 mpg i + β6 wgt i
∂ mpg i
k = 6; k − 1 = 5.
4. The marginal effect of mpgi on pricei is constant: i.e., it does not depend on mpgi
and/or wgti.
∂ pricei
• H0: β5 = 0 and β6 = 0 ⇒ = β 4 + 2 β5 mpg i + β6 wgt i = β 4
∂ mpg i
k0 = 4; k0 − 1 = 3.
∂ pricei
• H1: β5 ≠ 0 and/or β6 ≠ 0 ⇒ = β 4 + 2 β5 mpg i + β6 wgt i
∂ mpg i
k = 6; k − 1 = 5.
Model (4)
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
wgt | -31.88985 9.148215 -3.486 0.001 -50.14483 -13.63487
wgtsq | .0034574 .0008629 4.007 0.000 .0017355 .0051792
mpg | -3549.495 1126.464 -3.151 0.002 -5797.318 -1301.672
mpgsq | 38.74472 12.62339 3.069 0.003 13.55514 63.9343
wgtmpg | .5421927 .1971854 2.750 0.008 .1487154 .9356701
_cons | 92690.55 25520.53 3.632 0.001 41765.12 143616
------------------------------------------------------------------------------
F( 3, 68) = 6.42
Prob > F = 0.0007
F( 2, 68) = 8.80
Prob > F = 0.0004
F( 3, 68) = 4.03
Prob > F = 0.0106
F( 2, 68) = 4.75
Prob > F = 0.0117
• Marginal effect of wgti on pricei is a linear function of wgti and mpgi; it is not a
constant.
• Marginal effect of mpgi on pricei is a linear function of mpgi and wgti; it is not
a constant.
Hypotheses of interest
1. The marginal effect of wgti on pricei is zero: i.e., wgti has no effect on pricei; or
car pricei is unrelated to car wgti.
2. The marginal effect of wgti on pricei is constant: i.e., it does not depend on wgti
and/or mpgi.
3. The marginal effect of mpgi on pricei is zero: i.e., mpgi has no effect on pricei; or
car pricei is unrelated to fuel efficiency as measured by mpgi.
4. The marginal effect of mpgi on pricei is constant: i.e., it does not depend on mpgi
and/or wgti.
Compare the expressions implied by regression equation (5) for the conditional mean
prices of foreign and domestic cars that have the same weight and fuel efficiency.
• The conditional mean price of foreign cars is obtained from equation (5) by
setting foreigni = 1 and taking the conditional expectation of pricei:
• The conditional mean price of domestic cars is obtained from equation (5) by
setting foreigni = 0 and taking the conditional expectation of pricei:
• Take the difference between the conditional mean price of foreign cars and the
conditional mean price of "similar" domestic cars, where "similar" means foreign
and domestic cars with the same values of wgti and mpgi.
Hypothesis of interest
5. There is no difference between the mean price of foreign and domestic cars
that have the same weight and fuel efficiency.
• H0: β7 = 0 ⇒
E(pricei wgt i , mpg i , foreigni = 1) − E(pricei wgt i , mpg i , foreigni = 0) = 0
• H1: β7 ≠ 0 ⇒
E(pricei wgt i , mpg i , foreigni = 1) − E(pricei wgt i , mpg i , foreigni = 0) ≠ 0
Model (5)
price i = β1 + β 2 wgt i + β 3 wgt i2 + β 4 mpg i + β 5 mpg i2 + β 6 wgt i mpg i + β 7 foreign i + u i .
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
wgt | -15.3063 9.724082 -1.574 0.120 -34.71565 4.103051
wgtsq | .0020985 .0008898 2.358 0.021 .0003224 .0038747
mpg | -1407.999 1211.602 -1.162 0.249 -3826.366 1010.368
mpgsq | 14.23503 13.65253 1.043 0.301 -13.01554 41.4856
wgtmpg | .2373812 .2026331 1.171 0.246 -.1670761 .6418385
foreign | 2749.963 789.1946 3.485 0.001 1174.724 4325.202
_cons | 39826.01 28102.9 1.417 0.161 -16267.6 95919.63
------------------------------------------------------------------------------
F( 3, 67) = 8.46
Prob > F = 0.0001
F( 2, 67) = 4.55
Prob > F = 0.0140
F( 3, 67) = 0.56
Prob > F = 0.6419
F( 2, 67) = 0.69
Prob > F = 0.5068
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
wgt | -15.3063 9.724082 -1.574 0.120 -34.71565 4.103051
wgtsq | .0020985 .0008898 2.358 0.021 .0003224 .0038747
mpg | -1407.999 1211.602 -1.162 0.249 -3826.366 1010.368
mpgsq | 14.23503 13.65253 1.043 0.301 -13.01554 41.4856
wgtmpg | .2373812 .2026331 1.171 0.246 -.1670761 .6418385
foreign | 2749.963 789.1946 3.485 0.001 1174.724 4325.202
_cons | 39826.01 28102.9 1.417 0.161 -16267.6 95919.63
------------------------------------------------------------------------------
F( 1, 67) = 12.14
Prob > F = 0.0009
F( 1, 67) = 12.14
Prob > F = 0.0009
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
---------+--------------------------------------------------------------------
(1) | 2749.963 789.1946 3.485 0.001 1174.724 4325.202
------------------------------------------------------------------------------