Suppose we are interested in the effect of education on salary as expressed in the following model. Salary₁ = Bo + B₁ Education, + €₁ For this problem, we are going to assume that the true model is Salary; = 12,000 + 1,000 Education, + €¡ The model indicates that the salary for each person is $12,000 plus $1,000

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question
100%
Suppose we are interested in the effect of education on salary as expressed in
the following model.
Salary; = Bo + B₁ Education, + €₁
For this problem, we are going to assume that the true model is
Salary; = 12,000 + 1,000 Education; + €¡
The model indicates that the salary for each person is $12,000 plus $1,000
times the number of years of education plus the error term for the individual.
Our goal is to explore how much our estimate of ₁ varies. The do file
salary_simulation.do will simulate a data set with 100 observations (right click
to save the do file). Values of education for each observation are between 0
and 16 years. The error term will be a normally distributed error term with a
standard deviation of 10,000. What does this simulation show about the least
squares estimators?
Select one:
O a. Unbiasedness
O b. Consistency
O c. Efficiency
O d. Nonlinearity
Transcribed Image Text:Suppose we are interested in the effect of education on salary as expressed in the following model. Salary; = Bo + B₁ Education, + €₁ For this problem, we are going to assume that the true model is Salary; = 12,000 + 1,000 Education; + €¡ The model indicates that the salary for each person is $12,000 plus $1,000 times the number of years of education plus the error term for the individual. Our goal is to explore how much our estimate of ₁ varies. The do file salary_simulation.do will simulate a data set with 100 observations (right click to save the do file). Values of education for each observation are between 0 and 16 years. The error term will be a normally distributed error term with a standard deviation of 10,000. What does this simulation show about the least squares estimators? Select one: O a. Unbiasedness O b. Consistency O c. Efficiency O d. Nonlinearity
/* Overview of simulation code
the "simulate" line runs the code 1000 times (as determined in the "reps (1000)" command)
Stata will save the beta coefficients for each simulation.
- the values of coefficient on Education for each simulation are listed in a variable called "_b_Ed"
- the values of the constant for each simulation are listed in a variable called "_b_cons". */¯¯
clear all
program OLS_Sim
clear
set obs 100
gen Ed=16*runiform()
scalar SD = 10000
gen Salary = 12000 + 1000* Ed + SD*rnormal() /* Generate salary (dep. variable) */
regress Salary Ed
/* Run regression */
/* Set sample size */
/* Generate education (ind. variable) drawn from the uniform distribution between 0 and 16*/
/* Set value of standard deviation of error term */
end
simulate _b, reps (1000): OLS_Sim /* Run simulation 1000 times */
summarize /* Summarize coefficient estimates for each simulation */
Transcribed Image Text:/* Overview of simulation code the "simulate" line runs the code 1000 times (as determined in the "reps (1000)" command) Stata will save the beta coefficients for each simulation. - the values of coefficient on Education for each simulation are listed in a variable called "_b_Ed" - the values of the constant for each simulation are listed in a variable called "_b_cons". */¯¯ clear all program OLS_Sim clear set obs 100 gen Ed=16*runiform() scalar SD = 10000 gen Salary = 12000 + 1000* Ed + SD*rnormal() /* Generate salary (dep. variable) */ regress Salary Ed /* Run regression */ /* Set sample size */ /* Generate education (ind. variable) drawn from the uniform distribution between 0 and 16*/ /* Set value of standard deviation of error term */ end simulate _b, reps (1000): OLS_Sim /* Run simulation 1000 times */ summarize /* Summarize coefficient estimates for each simulation */
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman