Contains data from SalaryCameron.dta
Observations: 776 Data for A. Colin Cameron
(2022), ANALYSIS OF ECONOMIC
DATA, Amazon
Variables: 12 22 Jan 2022 15:50
-------------------------------------------------------------------------------
Variable Storage Display Value
name type format label Variable label
-------------------------------------------------------------------------------
salary float %9.0g Annual Salary in dollars
lnsalary float %9.0g Natural Logarithm of Annual
Salary
satverb int %32.0g SAT test verbal score (highest
self-reported score as of 2007)
satmath int %32.0g SAT test mathematics score
(highest self-reported score as
of 2007)
highgrade byte %8.0g Highest grade ever completed
age float %9.0g Age in years
sex byte %14.0g 1 = female 0 = male
minority float %9.0g 1 = minority 0 = not minority
height float %9.0g Height in inches
weight int %8.0g Weight in pounds
genhealth byte %9.0g Health status: 1=Excellent
2=VeryGood 3=Good 4=Fair 5=Poor
actscore float %32.0g ACT test score (highest
self-reported score as of 2007)
-------------------------------------------------------------------------------
Sorted by:
Note: Dataset has changed since last saved.
ECN 102: Analysis of Economics Data
Final Exam FQ 2024
This exam consists of 5 short-answer questions (with sub-parts) and 5 multiple choice questions. You will have a maximum of 2 hours to complete this exam. No additional time may be taken without prior accommodation. Make sure to read every question thoroughly and carefully. Make sure to answer all parts of all questions completely and fully explain when asked. Show all work to receive full credit.
You may use only the calculators provided by the instructor. Graphing calculators, phone calculators, and other non-standard calculators may not be used. For questions requiring computation, it suffices to express your final answer with 2 significant figures.
There is a formula sheet and scratch paper provided at the end of this exam. You may remove these pages and discard them after the exam. If you plan to use any of these extra pages for your final answers, you must write your name and student ID at the top of each scratch page to ensure it is not lost.
This exam is worth 100 points.
Name:
Student ID:
Section:
For this exam, we will use a dataset that includes annual salary, demographic characteristics, and other metrics for a sample of individuals. The variables present in the dataset are listed here, along with their format and labels.
Question 1: Summary Statistics [16 points]
- Is this sample of data likely to be observational or experimental? Explain. [2 points]
- Is this sample of data likely to be cross-section, time series, panel, or repeated cross-section? Explain. [2 points]
- How else could we classify data for our variable salary? Explain. [2 points]
- What type of variable is minority if we include it in a regression? Explain. [2 points]
- Are any other variables the same type as our variable minority when used in regression? [2 points]
Variable | Obs Mean Std. dev. Min Max
-------------+---------------------------------------------------------
height | 776 67.68814 4.198084 50 83
weight | 776 171.3015 43.5782 92 475
salary | 776 36184.23 24426.81 300 130254
- Which variable above has the greatest dispersion? Which has the least? [3 points]
- What would we expect the standard error of height to be? What is this an estimator for? [3 points]
Question 2: Bivariate Regression [16 points]
Suppose we want to run a regression to predict salary using age with OLS.
- Write down the population regression model we are trying to estimate. [2 points]
- What will the homoskedasticity assumption imply for this regression? [2 points]
- What will the linearity assumption imply for this regression? [2 points]
Source | SS df MS Number of obs = 776
-------------+---------------------------------- F(1, 774) = 5.78
Model | 3.4281e+09 1 3.4281e+09 Prob > F = 0.0164
Residual | 4.5899e+11 774 593010915 R-squared = 0.0074
-------------+---------------------------------- Adj R-squared = 0.0061
Total | 4.6242e+11 775 596669065 Root MSE = 24352
------------------------------------------------------------------------------
salary | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
age | 2605.833 1083.809 2.40 0.016 478.28 4733.387
_cons | -34210.21 29291.25 -1.17 0.243 -91709.92 23289.5
------------------------------------------------------------------------------
- Suppose we estimate this regression and find that our 95% confidence interval for \(b_2\) is \((478.28,4733.39)\). What conclusion about our population coefficient \(\beta_2\) on age does this imply? [3 points]
- Suppose our R-squared for this regression is 0.0074. What does this mean in words? [2 points]
Suppose instead we estimated a regression of salary on the log of age.
- What would we call this type of regression? [2 points]
- How would we interpret \(b_2\) for this regression in words? [3 points]
Question 3: Multivariate Regression [23 points]
We now estimate \(\widehat{salary}=\beta_1+\beta_2age+\alpha_1sex+\alpha_2(age\times sex)\) with OLS and obtain the following:
Source | SS df MS Number of obs = 776
-------------+---------------------------------- F(3, 772) = 4.32
Model | 7.6433e+09 3 2.5478e+09 Prob > F = 0.0049
Residual | 4.5478e+11 772 589087072 R-squared = 0.0165
-------------+---------------------------------- Adj R-squared = 0.0127
Total | 4.6242e+11 775 596669065 Root MSE = 24271
------------------------------------------------------------------------------
salary | Coefficient Std. err. t P>|t| [95% conf. interval]
-------------+----------------------------------------------------------------
age | 1706.862 1579.951 1.08 0.280 -1394.648 4808.373
sex | -53271.99 58521.46 -0.91 0.363 -168152.1 61608.08
ageXsex | 1807.953 2165.534 0.83 0.404 -2443.081 6058.986
_cons | -7612.026 42668.87 -0.18 0.858 -91372.78 76148.73
------------------------------------------------------------------------------
(Hint: review variable descriptions on page 2)
- What type of variable is sex in this regression? [2 points]
- Interpret the value of \(b_2\) in words. [2 points]
- Interpret the value of \(a_1\) in words. [2 points]
- Interpret the value of \(a_2\) in words. [2 points]
- What conclusion should we draw from the reported F-statistic and its associated p-value? [3 points]
- Which of our coefficients are statistically different from zero at \(\alpha=5\)%? Which are not? [3 points]
- If our four population assumptions hold, how would we expect \(b_2\) to be distributed? Your answer should take the form \(b_2\sim\_\_(\_\_,\_\_)\). Use Greek letters when appropriate. [3 points]
- Find an expression for the marginal effect of age in this regression. [3 points]
- Why are our values for R-squared and Adj R-squared different in this regression? Why might we prefer one instead of the other for multivariate regressions? [3 points]
Question 4: Hypothesis Testing [18 points]
For a general multivariate OLS regression with sample size \(n\), \(k-1\) regressors (\(x_2,...,x_k\)) and a constant, and \(j=1,...,k\) as our index of coefficients:
- What are the null and alternate hypotheses for the default test of association for a single \(b_j\)? [2 points]
- Suppose we reject this null hypothesis for the default test of association for \(b_j\) above. How would we interpret this conclusion in words? [4 points]
- Name the two models that are compared when computing the statistic for the default test of overall significance. Write down the population model for both. [6 points]
- If the p-value for the default test of association for \(b_j\) is 0.035, what would we expect the p-value to be for an F-test of the single regressor \(b_j\)? [3 points]
- If the t-statistic for the default test of association for \(b_j\) is 2.12, what would we expect the F-statistic to be for an F-test of the single regressor \(b_j\)? [3 points]
Question 5: Miscellaneous [17 points]
- If the default p-values reported for all coefficients from a multivariate regression of \(y\) on \(x_2,...,x_k\) are above 0.05 but we observe
Prob > F = 0.035, what can we conclude about our regressors? [4 points]
- What assumption or assumptions are we concerned may be violated if we choose to use robust standard errors in our regression? [3 points]
- What assumption or assumptions are we concerned may be violated if we choose to use clustered standard errors in our regression? [3 points]
- If we suspect but are not sure that our data is homoskedastic, what type of standard errors should we use? Are we concerned that doing so may lead to problems? Why or why not? [4 points]
- Compute the following sum [3 points]: \[\sum_{i=2}^3(3i)^{i-1}-i\]
Multiple Choice [2 points each]
Only one answer is correct for each question. Read carefully and choose the best possible answer.
MC 1 and 2
Suppose the probability of not rejecting \(H_0\) is 0.95 when \(\beta_j=0\) and 0.3 when \(\beta_j\neq0\) for a test on OLS \(b_j\).
The power of this test will be equal to:
0.05
0.95
0.7
0.3
The size of this test will be equal to:
0.05
0.95
0.7
0.3
MC 3
A trial judge says he believes he made a Type II error when sentencing a defendant. The precedent in court is that individuals are innocent until proven guilty. If the judge is correct, which of the following took place?
The defendant was truly guilty and was found guilty
The defendant was truly guilty but was found innocent
The defendant was truly innocent and was found innocent
The defendant was truly innocent but was found guilty
MC 4
If \(\frac{Q-7}{3}\sim (0,1)\), it must be true that:
\(E[Q] = 0\)
\(V[Q] = 3\)
\(Q\sim N\)
\(\sigma_Q=9\)
None of the above
MC 5
In which of the following scenarios did we make a mistake?
We claimed that \(R^2\) and \(\bar{R}^2\) should always be the same for a bivariate regression.
We claimed that the null hypothesis for a computed statistic should be rejected at a significance level of \(\alpha\) if the \(100(1-\alpha)\)% confidence interval for that statistic does not include the null value.
We claimed that the sample standard deviation of X will always be weakly greater (\(\geq\)) than the standard error of \(\bar{X}\) for any sample size.
We claimed that the total effect of \(b_j\) from multivariate OLS of y on \(x_2,...,x_k\) will always be equal to the partial effect if \(x_j\) is independent from all other regressors.
None of the above