Bài tập KTL - Exercise
Bài tập KTL - Exercise
Bài tập KTL - Exercise
------------------------------------------------------------------------------
wage | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
educ | .5694223 .0519968 10.95 0.000 .4672723 .6715723
exper | .0552699 .011024 5.01 0.000 .0336127 .076927
nonwhite | .0729731 .4437979 0.16 0.869 -.7988879 .9448342
female | -2.092037 .2717096 -7.70 0.000 -2.625823 -1.558251
married | .7150305 .2975101 2.40 0.017 .1305585 1.299503
south | -.6416218 .2830282 -2.27 0.024 -1.197644 -.0856001
_cons | -1.410051 .7743316 -1.82 0.069 -2.93126 .1111587
------------------------------------------------------------------------------
SRF:
wage = -1.41 + 0.569educ + 0.055exper+0.072nonwhite -
2.092female+0.715married-0.641south +u^
------------------------------------------------------------------------------
| Robust
wage | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
educ | .5694223 .0657564 8.66 0.000 .4402409 .6986037
exper | .0552699 .0103954 5.32 0.000 .0348477 .075692
nonwhite | .0729731 .3861896 0.19 0.850 -.6857137 .83166
female | -2.092037 .2538627 -8.24 0.000 -2.590762 -1.593312
married | .7150305 .2672913 2.68 0.008 .1899247 1.240136
south | -.6416218 .2715594 -2.36 0.019 -1.175113 -.108131
_cons | -1.410051 .8691299 -1.62 0.105 -3.117496 .2973942
------------------------------------------------------------------------------
Bài 3
Source | SS df MS Number of obs = 1387
-------------+------------------------------ F( 5, 1381) =
Model | 28988.0176 5 5797.60351 Prob > F = 0.0000
Residual | 545486.724 1381 394.994007 R-squared =
-------------+------------------------------ Adj R-squared = 0.0470
Total | 574474.741 1386 414.48394 Root MSE = 19.874
------------------------------------------------------------------------------
bwght | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
cigs | -.5014951 .0915656 -5.48 0.000 -.6811179 -.3218723
parity | 1.79824 .603 2.98 0.003 .6153453 2.981135
male | 3.078625 1.068652 2.88 0.004 .9822692 5.174982
white | 6.36384 1.310043 4.86 0.000 3.793952 8.933729
motheduc | .2697001 .2325746 1.16 0.246 -.1865376 .7259379
_cons | 106.7333 3.461357 30.84 0.000 99.94326 113.5234
------------------------------------------------------------------------------
bwght int %8.0g birth weight, ounces
cigs byte %8.0g cigs smked per day while preg
parity byte %8.0g birth order of child
male byte %8.0g =1 if male child
white byte %8.0g =1 if white
motheduc byte %8.0g mother's yrs of educ
1. Write SRF
2. Calculate R-square and explain the meaning of R-squared
3. Test for the overall significance of the model
4. Test for the significance of each independent variable with 3 methods: critical
value, p-value and confidence interval
Bài 5
Source | SS df MS Number of obs = 1387
-------------+------------------------------ F( 6, 1380) = 12.77
Model | 30215.0262 6 5035.83771 Prob > F = 0.0000
Residual | 544259.715 1380 394.391098 R-squared = 0.0526
-------------+------------------------------ Adj R-squared = 0.0485
Total | 574474.741 1386 414.48394 Root MSE = 19.859
------------------------------------------------------------------------------
bwght | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
faminc | .0591903 .0335575 1.76 0.078 -.006639 .1250196
cigs | -.4864302 .0918935 -5.29 0.000 -.6666963 -.3061642
male | 3.176597 1.069279 2.97 0.003 1.079008 5.274186
parity | 1.805121 .6025522 3.00 0.003 .6231034 2.987138
white | 5.678583 1.365476 4.16 0.000 2.999949 8.357217
motheduc | .0793044 .2562425 0.31 0.757 -.4233625 .5819713
_cons | 107.921 3.523649 30.63 0.000 101.0087 114.8333
1. Write SRF
2. Calculate R-square and explain the meaning of R-squared
3. Test for the overall significance of the model
4. Test for the significance of 3 independent variables (faminc, cigs, male) with 3
methods: critical value, p-value and confidence interval; and explain the meaning
of varibables.
Bài 6
Source | SS df MS Number of obs = 88
-------------+------------------------------ F( 3, 84) =
Model | 309231.224 3 103077.075 Prob > F = 0.0000
Residual | 608623.281 84 7245.51526 R-squared =
-------------+------------------------------ Adj R-squared = 0.3132
Total | 917854.506 87 10550.0518 Root MSE = 85.121
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
bdrms | 57.68736 11.49826
lotsize | .0028554 .0009058
colonial | -2.202985 20.66589
_cons | 63.47836 39.90354
1. Write SRF
2. Calculate R-square and explain the meaning of R-squared
3. Test for the overall significance of the model
4. Test for the significance of each independent variable with 3 methods: critical
value, p-value and confidence interval; and explain the meaning of variables.
Intepreting the meaning of independent variables
Bdrms (reject Ho)
- Number of bedrooms have statistically significant effect on the house price. And the
effect is positive (because ^β >0 ¿.
bdrms
- Given the sample we have, when number of bedrooms increase by 1 room, the
average price of house increases by 57.68736 thousand USD, holding other
factors fixed.
- Given the sample we have, when size of lot increases by 1 square feet, the average
price of house increases by .0028554 thousand USD, holding other factors fixed.
------------------------------------------------------------------------------
colGPA | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
soph | .3056211 .2102452 1.45 0.148 -.1101791 .7214214
male | -.0030009 .0624554 -0.05 0.962 -.1265185 .1205166
campus | -.1272217 .0828543 -1.54 0.127 -.291082 .0366386
clubs | .1072495 .0625 1.72 0.088 -.0163563 .2308552
skipped | -.0922866 .0290847 -3.17 0.002 -.1498072 -.034766
_cons | 3.108133 .0662338 46.93 0.000 2.977143 3.239123
------------------------------------------------------------------------------
1. Write SRF
2. Calculate R-square and explain the meaning of R-squared
3. Test for the overall significance of the model
4. Test for the significance of each independent variable with 3 methods: critical
value, p-value and confidence interval
------------------------------------------------------------------------------
voteA | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
democA | 9.192198 2.267415 4.05 0.000 4.716283 13.66811
expendA | .0242475 .004022 6.03 0.000 .016308 .0321869
_cons | 37.87049 2.129706 17.78 0.000 33.66642 42.07457
1. Write SRF
2. Calculate R-square and explain the meaning of R-squared
3. Test for the overall significance of the model
4. Test for the significance of each independent variable with 2 methods: critical
value, p-value and confidence interval; and explain the meaning of varibables.
Democrat
Reject Ho
- Being democrat has statistically significant effect on voteA
- The estimated results show that being democrate will increase voteA by 9.19%
compared with not being democrat, holding other factors fixed.
ExpendA
Reject Ho
- Expenditure on compaign of A has statistically significant effect on voteA
- The estimated results show that when expenditure on compaign of A increase 1 unit,
voteA will increase by 0.024 unit.
Bài 9
------------------------------------------------------------------------------
price | Coef. Std. Err. t P>|t| [95% Conf. Interval]
-------------+----------------------------------------------------------------
bdrms | 57.68736 11.49826
lotsize | .0028554 .0009058
colonial | -2.202985 20.66589
_cons | 63.47836 39.90354
1. Write SRF
2. Calculate R-square and explain the meaning of R-squared
3. Test for the overall significance of the model
4. Test for the significance of each independent variable with 2 methods: critical
value and confidence interval.
Một số ví dụ câu hỏi trắc nghiệm:
1. Your data produce the regression result: Y^ i = 8 + 5 X i . If the x values were scaled by multiplying
them by 0.5, the new intercept and slope estimates will be:
a. 4 and 2.5
b. 8 and 2.5
c. 8 and 10
d. 16 and 10
3. Studying inflation in the United States from 1970 to 2006 is an example of using
a. randomized controlled experiments.
b. time series data.
c. panel data.
d. cross-sectional data.
4. Which of the following models allows the marginal effect of X on Y to change?
a. Y i = β 1 + β 2 X i + ui
b. Ln(Y i) = β 1 + β 2 X i + β 3 Z i + ui
c. Y i = β 1 + β 2 X i + β 3 Z i + β 4 Z 2i + ui
d. None of the above.