Chapter 3 Exercises
Verbeek, A Guide to Modern Econometrics (5th ed.) §§3.1–3.6
How to use this file
- Textbook: Marno Verbeek, A Guide to Modern Econometrics, Fifth Edition (John Wiley & Sons, 2017).
- Range: Chapter 3 Exercises 3.1–3.4, locked from printed pp. 94–96 (PDF pp. 106–108; offset PDF ≈ printed + 12).
- Principle: stems follow the textbook; solutions are independent. Numerical answers for 3.2–3.4 were recomputed by OLS (Ruby
Matrix, HC0 White standard errors). Book-reported numbers from §3.4 were checked against the same housing file. - Companion notes:
ch03-notes.qmd. - Data used here (not shipped with this site):
- 3.2: 400 Dutch men’s fashion stores (
Ecdat::Clothing/ Verbeekclothing). - 3.3: Windsor house prices of §3.4 (
Ecdat::Housing, \(N=546\)). Table 3.1 in the book is reproduced to the printed digits. - 3.4: 545 young working men in 1987. The public file matching that description is the 1987 cross-section of the NLSY young-men panel (Wooldridge
wagepan,year==1987):lwage\(\to\)logwage,married\(\to\)mar,educ\(\to\)school. If a course file differs, re-estimate; the algebra of (e) does not depend on the file.
- 3.2: 400 Dutch men’s fashion stores (
AIC and BIC are Verbeek’s (3.17)–(3.18): \(AIC=\log(\mathrm{SSR}/N)+2K/N\), \(BIC=\log(\mathrm{SSR}/N)+(K/N)\log N\) (natural log). Lower is better.
Exercise 3.1
Specification issues. (a) Data mining. (b) Dropping two variables at once from \(t\)-ratios only. (c) \(\bar R^2\), AIC and BIC for nested models. (d) Testing two non-nested models for the same \(y_i\). (e) Why RESET can signal an omitted-variable problem.
(a) In this chapter, data mining (also data snooping, \(p\)-hacking) means using the same sample both to search over specifications and to test hypotheses about the specification that survives. A long sequence of \(t\)/\(F\) tests inflates Type I error. Lovell’s illustration: if the null is a random walk and one selects the best two of \(k\) irrelevant regressors, \(P(\text{spurious significance})\approx 1-0.95^{\binom{k}{2}}\) (about 40% for \(k=20\)). The \(t\)-ratios in the final printout are then not \(t\) distributed. (The computer-science use of “data mining” is different; Verbeek’s footnote 4.)
(b) Two individual \(t\)-tests are not a joint test of \(\gamma_1=\gamma_2=0\). Collinear regressors can have insignificant \(t\)’s while the \(F\) (or Wald) for both coefficients jointly is significant. After the first variable is dropped, the second \(t\) generally changes. To drop two variables at the same time, use (3.19) or (3.20) with \(J=2\).
(c) For nested models the \(F\) (or Wald) test is the direct answer to “does the restriction hold?”. \(\bar R^2\), AIC and BIC are scalar trade-offs between fit and \(K\), not tests of a stated \(H_0\): - \(\bar R^2\) rises iff \(F>1\), a threshold well below 5% \(F\) critical values, so \(\bar R^2\) keeps more variables than a conventional \(t\)/\(F\). - AIC penalizes \(2K/N\); BIC penalizes \((K/N)\log N\) and is more parsimonious. BIC is consistent if the true model is among those considered; AIC can work better in small samples. They remain useful as descriptive rankings, especially when one does not want a 5% test.
(d) If both models explain the same \(y_i\), one may rank them by \(\bar R^2\), AIC or BIC. A formal encompassing test uses an artificial nesting model. Non-nested \(F\): add to B the regressors that are in A but not in B, and test those extra coefficients as a group; symmetrically, test A against B. The \(J\)-test adds the rival model’s fitted values and uses a single \(t\) on that coefficient (3.26). Both models can be rejected; rejecting A is not evidence for B. If the dependent variable differs (levels vs logs), use the PE test, not \(R^2\)/AIC/BIC.
(e) RESET puts powers of \(\hat y=x'b\) in an auxiliary regression (3.31). Under \(E\{y\mid x\}=x'\beta\), those powers should be irrelevant. An omitted \(z\) that is correlated with nonlinear functions of \(x\) (hence of \(\hat y\)) makes \(\alpha_2,\ldots,\alpha_Q\) nonzero, so RESET rejects even if the functional form in the included \(x\) is otherwise correct. Adding the omitted variable can remove the nonlinearity the test picked up.
Exercise 3.2
400 Dutch men’s fashion stores. Explain sales per square metre (sales) from shop characteristics. (a) Model A: sales on hoursw, ssize and a constant. (b) RESET with \(Q=2\). (c) Test nown given hoursw and ssize. (d) Test npart. (e) Model B: nown, nfull, npart, ssize. (f) Compare A and B by \(\bar R^2\), AIC, BIC. (g) Non-nested \(F\) tests both ways. (h) \(J\)-tests. (i) Model C = A plus nfull and npart; RESET; is the specification satisfactory?
\(N=400\). OLS with a constant; conventional (homoskedastic) standard errors unless noted.
(a) Model A.
| Variable | Estimate | s.e. | \(t\) |
|---|---|---|---|
| constant | 5133.6 | 321.7 | 15.96 |
hoursw |
37.53 | 2.84 | 13.23 |
ssize |
\(-22.14\) | 1.63 | \(-13.63\) |
\(s=2985\), \(R^2=0.366\), \(\bar R^2=0.363\), \(AIC=16.010\), \(BIC=16.040\), \(F=114.5\).
Ceteris paribus, one extra hour worked is associated with about 37.5 extra guilders of sales per m²; one extra square metre of floor space is associated with about 22 lower sales per m² (less intensive use of space). The intercept is the fitted sales/m² at zero hours and zero size and is not an economic quantity.
(b) Auxiliary regression of sales on the Model A regressors plus \(\hat y_A^2\). Coefficient on \(\hat y_A^2\): \(t=1.45\) (\(F_{1,396}=t^2=2.09\)). The 5% critical value of \(t_{396}\) is about 1.97. Do not reject \(Q=2\) RESET.
(c) Add nown to A: \(t=-1.47\). Do not reject \(H_0\): coefficient of nown is zero at 5%. Conditionally on hours and size, the number of owners does not improve the fit.
(d) Add npart to A: coefficient \(816.7\), \(t=3.64\). Reject \(H_0\) at 1%. Part-time staff improves the model.
(e) Model B.
| Variable | Estimate | s.e. | \(t\) |
|---|---|---|---|
| constant | 3836.0 | 547.0 | 7.01 |
nown |
945.7 | 255.1 | 3.71 |
nfull |
1330.5 | 173.7 | 7.66 |
npart |
586.0 | 251.6 | 2.33 |
ssize |
\(-15.80\) | 1.62 | \(-9.77\) |
\(R^2=0.255\), \(\bar R^2=0.247\), \(AIC=16.182\), \(BIC=16.232\). Without hoursw, owner and staff counts pick up labour input and all look significant; size remains negative.
(f) Nested they are not, but the criteria are still defined:
| Model | \(\bar R^2\) | AIC | BIC |
|---|---|---|---|
| A | 0.363 | 16.010 | 16.040 |
| B | 0.247 | 16.182 | 16.232 |
A wins on all three (higher \(\bar R^2\), lower AIC/BIC). That is not a test that A encompasses B.
(g) Artificial nesting (both extra sets together) has \(R^2=0.403\), \(K=6\).
- Test A against B (does B encompass A?): extra regressor
hourswin B. \(F=98.19\sim F_{1,394}\) (equivalently \(t=9.91\)). Reject B. - Test B against A (does A encompass B?): extra regressors
nown,nfull,npartin A. \(F=8.29\sim F_{3,394}\). 5% critical value \(\approx 2.63\), 1% \(\approx 3.83\). Reject A.
Both models are rejected. Rejecting A is not evidence for B.
(h) \(J\)-test of A: add \(\hat y_B\) to A, \(t=3.82\). Reject A. \(J\)-test of B: add \(\hat y_A\) to B, \(t=9.91\). Reject B. (The second \(J\) equals the non-nested \(F\) of (g) because A has only one exclusive regressor.) Conclusion unchanged: neither specification encompasses the other.
(i) Model C (A plus nfull and npart):
| Variable | Estimate | s.e. | \(t\) |
|---|---|---|---|
| constant | 3751.3 | 427.7 | 8.77 |
hoursw |
32.76 | 3.06 | 10.70 |
ssize |
\(-23.91\) | 1.65 | \(-14.50\) |
nfull |
557.3 | 172.2 | 3.24 |
npart |
685.0 | 225.4 | 3.04 |
\(R^2=0.402\), \(\bar R^2=0.396\), \(AIC=15.961\), \(BIC=16.011\) (better than A or B). RESET \(Q=2\): \(t=1.47\), do not reject. Hours, both staff counts, and size are individually significant; nown is not needed once hours are in. Statistically the specification is acceptable. Economically, the negative size coefficient is a per-m² intensity effect, not a statement that larger shops sell less in total; one would still want to think about whether hoursw and headcounts are two measurements of the same labour input (collinearity) and whether heteroskedasticity (White s.e. for npart is 281 vs OLS 225) should be handled as in Chapter 4.
Exercise 3.3
House-price data of §3.4. (a) Four bedroom dummies (2 or fewer, 3, 4, 5 or more); log-price on log lot size, bathrooms, air-conditioning, and three of the dummies. (b) Why is (a) not nested in Table 3.1? (c) Two non-nested \(F\) tests. (d) All four dummies. (e) Lot size in m² rather than ft² (\(1\,\mathrm{m}^2=10.76\,\mathrm{ft}^2\)): effect on Tables 3.2 and 3.3.
\(N=546\). Bedroom counts in the file: \(\le 2\): 138; \(3\): 301; \(4\): 95; \(\ge 5\): 12.
(a) Reference group = 2 or fewer bedrooms.
| Variable | Estimate | s.e. | \(t\) |
|---|---|---|---|
| constant | 7.215 | 0.228 | 31.64 |
| \(\log(\mathit{lotsize})\) | 0.398 | 0.027 | 14.50 |
| bathrooms | 0.222 | 0.023 | 9.74 |
| air conditioning | 0.200 | 0.024 | 8.49 |
| bed \(=3\) | 0.162 | 0.026 | 6.31 |
| bed \(=4\) | 0.168 | 0.035 | 4.79 |
| bed \(\ge 5\) | 0.160 | 0.075 | 2.15 |
\(R^2=0.580\), \(\bar R^2=0.575\). Lot-size elasticity \(\approx 0.40\); an extra bathroom \(\approx 25\%\) (\(e^{0.222}-1\)); air conditioning \(\approx 22\%\). Relative to \(\le 2\) bedrooms, 3, 4 and \(\ge 5\) bedrooms all carry about 16–18% (\(e^{0.16}-1\)), so most of the bedroom effect is the step out of the smallest category.
(b) Table 3.1 uses linear bedrooms (a single slope). (a) uses a step function across four cells. Neither is a parameter restriction of the other: setting the three dummy coefficients equal to a common \(\beta\) times \((3,4,5)\) is not nested in Table 3.1’s one-slope specification, and Table 3.1 cannot be obtained by setting dummy coefficients to zero. They share log lot size, bathrooms and air conditioning, but the bedroom parts are non-nested.
(c) Artificial nesting (Table 3.1 regressors plus the three dummies) has \(R^2=0.581\).
- \(H_0\): (a) encompasses Table 3.1 (linear
bedroomsredundant given the dummies). \(F=1.16\sim F_{1,538}\). Do not reject. - \(H_0\): Table 3.1 encompasses (a) (three dummies redundant given linear
bedrooms). \(F=5.83\sim F_{3,538}\). 5% critical value \(\approx 2.62\), 1% \(\approx 3.82\). Reject Table 3.1.
The dummy specification encompasses the linear-bedroom model; the converse fails. Prefer (a) (or Table 3.2’s richer control set).
(d) Four dummies plus a constant is exact collinearity (dummy-variable trap): the four indicators sum to the intercept. \(X'X\) is singular; the estimator is not identified. Software drops one dummy or reports huge standard errors (here \(\mathrm{s.e.}\sim 10^7\)) and \(t=0\). Which dummy is omitted only changes the interpretation of the intercept and of the remaining dummy coefficients.
(e) Conversion: \(\mathit{lot}_{\mathrm{m}^2}=\mathit{lot}_{\mathrm{ft}^2}/10.76\), so \(\log(\mathit{lot}_{\mathrm{m}^2})=\log(\mathit{lot}_{\mathrm{ft}^2})-\log 10.76\) with \(\log 10.76\approx 2.376\).
Table 3.2 (log price, log lot size): \[ \log(\mathit{price})=\alpha+\beta\log(\mathit{lot}_{\mathrm{ft}^2})+\cdots =\bigl[\alpha+\beta\log 10.76\bigr]+\beta\log(\mathit{lot}_{\mathrm{m}^2})+\cdots. \] The slope on log lot size, its standard error, \(t\), every other coefficient and \(R^2\) are unchanged. Only the intercept shifts by \(\beta\log 10.76=0.303\times 2.376\approx 0.720\), from \(7.745\) to about \(8.465\).
Table 3.3 (price in levels, lot size in levels): \[ \mathit{price}=a+b\,\mathit{lot}_{\mathrm{ft}^2}+\cdots=a+(10.76\,b)\,\mathit{lot}_{\mathrm{m}^2}+\cdots. \] The lot-size coefficient and its standard error are multiplied by \(10.76\) (\(3.546\to 38.15\), \(0.350\to 3.77\)). The \(t\)-ratio, all other coefficients, and \(R^2\) are unchanged.
Exercise 3.4
545 young working males, USA 1987. Model (3.43): \(\mathit{logwage}_i=\beta_1+\beta_2\mathrm{school}_i+\beta_3\mathrm{exper}_i+\beta_4\mathrm{union}_i+\beta_5\mathrm{mar}_i+\beta_6\mathrm{black}_i+\beta_7\mathrm{hisp}_i+\varepsilon_i\), with \(\varepsilon_i\) independent of the regressors, mean 0, variance \(\sigma^2\). (a) Summary statistics. (b) OLS. (c) \(H_0\): union effect is 5%; joint \(H_0\): race does not affect wages. (d) Add \(\mathrm{exper}^2\); compare by \(R^2\), \(\bar R^2\), AIC, \(t\). (e) Residual regression on \(x_i\). (f) Black union members benefit more? (g) White standard errors (Ch. 4). (h) Breusch–Pagan (Ch. 4).
Numbers below are OLS on the 1987 wave of the NLSY young-men panel (\(N=545\)). They are independently computed, not copied from a solution manual.
(a)
| Variable | Mean | s.d. | Min | Max |
|---|---|---|---|---|
logwage |
1.867 | 0.467 | \(-0.19\) | 3.34 |
union |
0.262 | 0.440 | 0 | 1 |
mar |
0.615 | 0.487 | 0 | 1 |
school |
11.77 | 1.75 | 3 | 16 |
exper |
10.01 | 1.65 | 7 | 18 |
black |
0.116 | 0.320 | 0 | 1 |
hisp |
0.156 | 0.363 | 0 | 1 |
About 26% union, 62% married, 12% Black, 16% Hispanic. Mean schooling is just under 12 years; experience is tightly bunched (these are young men). Mean log wage \(1.87\) is about \(\$6.47\)/hour.
(b) OLS of (3.43):
| Variable | Estimate | s.e. | \(t\) |
|---|---|---|---|
| constant | 0.776 | 0.261 | 2.97 |
school |
0.0883 | 0.0132 | 6.69 |
exper |
\(-0.0019\) | 0.0138 | \(-0.14\) |
union |
0.117 | 0.043 | 2.73 |
mar |
0.091 | 0.039 | 2.34 |
black |
\(-0.198\) | 0.061 | \(-3.25\) |
hisp |
0.043 | 0.053 | 0.81 |
\(R^2=0.155\), \(\bar R^2=0.145\), \(s=0.432\), \(F=16.44\).
Schooling: about 8.8% per year (semi-elasticity; \(e^{0.088}-1\approx 9.2\%\)). Union: about 12.4% (\(e^{0.117}-1\)), \(t=2.73\) (significant at 1%). Married: about 9.5%. Black: about \(-18\%\) (\(e^{-0.198}-1\)), significant; Hispanic: small and insignificant. Experience is essentially zero in this young sample once schooling is controlled — not a surprise given the narrow range of exper. \(R^2\) is modest: most of the log-wage variation is not linear in these observables.
(c) Union 5%. \(H_0:\beta_4=0.05\) against \(H_1:\beta_4\neq 0.05\). \[ t=\frac{0.1174-0.05}{0.0429}=1.57\sim t_{538} \] under (A1)–(A5) of Chapter 2. \(|t|<1.96\): do not reject a 5% union differential at 5%. (The two-sided test of \(\beta_4=0\) is rejected; 5% lies inside a 95% interval around \(0.117\).)
Race jointly. \(H_0:\beta_6=\beta_7=0\) against not both zero. Restricted \(R^2=0.135\) (drop black and hisp). \[
F=\frac{(0.1549-0.1351)/2}{(1-0.1549)/(545-7)}=6.31\sim F_{2,538}.
\] 5% critical value \(\approx 3.01\), 1% \(\approx 4.65\). Reject \(H_0\) at 1%: race belongs in the equation (driven by black).
(d) Add \(\mathrm{exper}^2\): coefficient \(0.0100\), \(t=2.55\). \(R^2=0.165\) (up), \(\bar R^2=0.154\) (up), \(AIC=-1.676\) versus \(-1.668\) (lower/better). All four criteria prefer the quadratic. The \(t\) exceeds 1.96, so a 5% \(t\)-test agrees with \(\bar R^2\) and AIC; a 1% test (\(|t|>2.58\)) would be borderline. Continue with (3.43) as instructed.
(e) OLS residuals \(e\) are orthogonal to the columns of \(X\) by construction of the normal equations \(X'e=0\). The regression of \(e\) on the same \(x_i\) therefore has \(\hat\beta=0\) and \(R^2=0\) (up to rounding). Finding “nothing” is not a specification test; it only checks that OLS was computed correctly.
(f) Add \(\mathrm{black}\times\mathrm{union}\). That coefficient is \(0.150\), \(t=1.27\). Do not reject \(H_0\): Black and non-Black union members have the same union differential. The point estimate goes in the direction of a larger Black union premium, but it is imprecise (only \(0.116\times 0.262\times 545\approx 17\) Black union members).
(g) White (HC0) versus OLS standard errors for (3.43):
| Coefficient | OLS s.e. | White s.e. |
|---|---|---|
| constant | 0.261 | 0.258 |
school |
0.0132 | 0.0130 |
exper |
0.0138 | 0.0128 |
union |
0.043 | 0.040 |
mar |
0.039 | 0.040 |
black |
0.061 | 0.063 |
hisp |
0.053 | 0.056 |
The two sets are close; no coefficient changes significance at 5%. Little evidence that conventional s.e. are badly wrong, consistent with (h).
(h) Breusch–Pagan: auxiliary OLS of \(\hat\varepsilon_i^2\) on all \(x_i\) in (3.43) (including the constant). \(R^2_{\mathrm{aux}}=0.0173\), \[ LM=N R^2_{\mathrm{aux}}=9.42 \sim \chi^2_6 \] under homoskedasticity with the heteroskedasticity depending on all explanatory variables. 5% critical value \(12.59\). Do not reject homoskedasticity. Together with (g), routinely computed standard errors are acceptable for this sample.