Assignment 1 With Answers PDF
Assignment 1 With Answers PDF
Assignment 1 With Answers PDF
INSTRUCTIONS:
• Please label clearly each answer with the appropriate question number and letter. Securely
staple all answer sheets together, and make certain that your name(s) and student number(s)
are printed clearly at the top of each answer sheet.
• Please use STATA to do Question 1, and report your STATA commands and results
together with your answers to the questions.
• Hand-written answers must be legible. Illegible assignments will be returned unmarked.
• Please combine your answers with supporting documents into one Adobe PDF file and
submit.
MARKING: Marks for each question are indicated in parentheses. Total marks for the assignment
equal 90. Marks are given for both content and presentation.
Question 1 (25 marks)
(5 marks)
1. Compile a table of descriptive summary statistics for the sample data. The table should include
for each of the variables in the dataset: the sample mean, the sample standard deviation, the
minimum sample value, and the maximum sample value. How many females and how many
males are there in the sample?
(25 marks)
2. Compute and present OLS estimates of the following population regression equation for the
full sample of 436 paid workers:
where 𝑢𝑖 is a random error term that is assumed to satisfy all the assumptions of the classical
linear regression model.
(5 marks)
a) Report the OLS coefficient estimates 𝛽̂0 and 𝛽̂1 computed by estimating population
regression equation (1).
. reg wage educ
̂0 = −1.38716
𝛽 (2.5 mark)
̂1 = 0.5869922
𝛽 (2.5 mark)
(5 marks)
b) Interpret the value of the slope coefficient estimate 𝛽̂1 ; i.e., explain in words what the
numerical value of 𝛽̂1 means.
(Answer must not be just a generic description of the slope coefficient estimate; it must
explicitly account for the units in which wage and educ are measured.)
(5 marks)
c) Interpret the value of the intercept coefficient estimate 𝛽̂0 ; i.e., explain in words what the
numerical value of 𝛽̂0 means.
̂0 = −1.3872 means that the average (mean) hourly wage rate of workers
The estimate 𝛽
with zero years of education (educ = 0) equals −𝟏. 𝟑𝟖𝟕𝟐 dollars per hour. (5 marks)
(5 marks)
d) On a set of appropriately labeled coordinate axes, draw the estimated sample regression
function implied by OLS estimation of regression equation (1). That is, draw the graph of
̂ 𝑖 = 𝛽̂0 + 𝛽̂1 𝑒𝑑𝑢𝑐𝑖 , compute the coordinates of the two points on it that
the equation 𝑤𝑎𝑔𝑒
correspond to the values 12 and 16 of 𝑒𝑑𝑢𝑐𝑖 and label these two points on your graph as A
and B respectively. (Note: you do not need to use STATA, or any software program, to
draw and label this graph.)
Point B: For 𝑒𝑑𝑢𝑐𝑖 = 16 years, the estimated mean of average hourly earnings equals:
A
5
0
0 5 10 15 20
educ = year of education
Question 2 (35 marks)
A researcher is using data for a sample of 88 houses sold in an urban area during a recent year to
investigate the relationship between house prices 𝑦𝑖 (measured in thousands of dollars) and house
size 𝑥𝑖 (measured in square meters). Preliminary analysis of the sample data produces the
following sample information:
Use the above sample information to answer all the following questions. Show explicitly all
formulas and calculations.
(12 marks)
(a) Use the above information to compute OLS estimates of the intercept coefficient 𝛽0 and the
slope coefficient 𝛽1
𝑛
̂1 = ∑𝑖=1(𝑥
𝛽 𝑖 −𝑥̅ )( 𝑦𝑖 −𝑦
̅)
=
377,534.76
= 1.509268 = 𝟏. 𝟓𝟎𝟗𝟑 (6 marks)
∑𝑛 (𝑥𝑖=1 )2
𝑖 −𝑥̅ 250,144.32
̂0 = 𝑦̅ − 𝛽
𝛽 ̂1 𝑥̅
∑𝑛
𝑖=1 𝑦𝑖 25,832.05 ∑𝑛
𝑖=1 𝑥𝑖 16,462.34
𝑦̅ = = = 293.546 and 𝑥̅ = = = 187.072
𝑛 88 𝑛 88
Therefore
̂0 = 𝑦̅ − 𝛽
𝛽 ̂1 𝑥̅ = 293.546 − 1.509268 ∗ 187.072 = 293.546 − 282.342 = 𝟏𝟏. 𝟐𝟎𝟒 (6 marks)
(5 marks)
(b) Interpret the slope coefficient estimate you calculated in part (a) -- i.e., explain what the
numeric value you calculated for 𝛽̂1 means.
𝑅𝑅𝑆 ∑𝑛 ̂𝑖 2
𝑖=1 𝑢 348,053.43
𝜎̂ 2 = = = = 𝟒, 𝟎𝟒𝟕. 𝟏𝟑𝟑
𝑛−2 𝑛−2 88−2
(6 marks)
(d) Compute the value of 𝑅2 , the coefficient of determination for the estimated OLS sample
regression equation. Briefly explain what the calculated value of 𝑅2 means.
𝑆𝑆𝐸 = 𝑆𝑆𝑇 − 𝑆𝑆𝑅 = ∑𝑛𝑖=1(𝑦𝑖 − 𝑦̅)2 − ∑𝑛𝑖=1 𝑢̂𝑖 2 = 917,854.51 − 348,053.43 = 569,801.08
𝑆𝑆𝐸 569,801.08
𝑅2 = = = 𝟎. 𝟔𝟐𝟎𝟖 (4 marks)
𝑆𝑆𝑇 917,854.51
Interpretation of 𝑹𝟐 = 𝟎. 𝟔𝟐𝟎𝟖: The value of 0.6208 indicates that 62.08 percent of the total
sample variation in house prices is attributable to, or explained by, the model. (2 marks)
(6 marks)
(e) What are the values of ∑𝑛𝑖=1 𝑢̂𝑖 and ∑𝑛𝑖=1 𝑥𝑖 𝑢̂𝑖 for the sample regression equation you have
estimated? Explain briefly how you obtained your answer.
These computational properties of the OLS sample regression equation follow from the first-order
conditions for the OLS coefficient estimators. (2 marks)
Question 3 (30 marks)
Derive the Ordinary Least Squares (OLS) estimate for the simple linear regression model, i.e., 𝛽̂0
and 𝛽̂1 . Be very specific.
we can get:
(1)
(2)
To solve the equations, pass the summation operator through the equation (1):
So
and plug this into the equation (2) (and drop the division by n):
simple algebra gives
If we can write