
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
expand_more
expand_more
format_list_bulleted
Question
thumb_up100%

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

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by stepSolved in 2 steps

Knowledge Booster
Similar questions
- Questions 11-17. The environment club has saved 200 pounds of cans and promises to collect 20 pounds of cans each week and will use the profits to buy additional recycling bins. Create a linear model for their collection program. When will the club have 320 pounds of cans?arrow_forwardThis is a two part question. Collin has a small business selling hotdogs at tennis matches. He purchases all of the materials to make each hotdog for $2.60 and has fixed costs at each match of $10. Collin sells each hotdog to customers for $3.60. At most he can produce 42 hotdogs at a match. (1) Draw a complete break-even chart of Collin's hotdog business. Your picture should have a dot on the break-even point and lines for total revenue, total cost, and fixed cost. y, Revenue/Cost ($) 150 140 130 120 110 100 90 80 70 60 50- 40 30- 20 10 24 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 x, Unitsarrow_forward4. 9 An ice cream shop sells small and large sundaes. One day, 30 small sundaes and 50 large sundaes were sold for $420. Another day, 15 small sundaes and 35 large sundaes were sold for $270. Sales tax is included in all prices. If x is the cost of a small sundae and y is the cost of a large sundae, write a system of equations to represent this situation. Peyton thinks that small sundaes cost $2.75 and large sundaes cost $6.75. Is Peyton correct? Justify your answer. Using your equations, determine algebraically the cost of one small sundae and the cost of one large sundae.arrow_forward
- Given the following linear equation between salary in (in hundreds of dollars ) and years of experience Salary = 15+ 4 YEO Then, this implies : Select one: 12 O a. Al year increase in years of experience would be associated with a $400 increase in salary Ob. A 4 year increase in years of experience would be associated with a $ $400 increase in salary 2 OC. Al year increase in years of experience would be associated with a $15 increase in salary 36 O d. Al year increase in years of experience would be associated with a $415 increase in salary Fini Next page VITY NEXT ACTIVITYarrow_forward3.arrow_forwardIn the following equation ŷ = 25,000 + 2x with given sales (γ in $500) and marketing (x in dollars), what does the equation imply? a) An increase of $1 in marketing is associated with an increase of $26,000 in sales. b) An increase of $1 in marketing is associated with an increase of $1,000 in sales. c) An increase of $2 in marketing is associated with an increase of $26,000 in sales. d) An increase of $2 in marketing is associated with an increase of $1,000 in sales.arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman

MATLAB: An Introduction with Applications
Statistics
ISBN:9781119256830
Author:Amos Gilat
Publisher:John Wiley & Sons Inc

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
ISBN:9781305504912
Author:Frederick J Gravetter, Larry B. Wallnau
Publisher:Cengage Learning

Elementary Statistics: Picturing the World (7th E...
Statistics
ISBN:9780134683416
Author:Ron Larson, Betsy Farber
Publisher:PEARSON

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
Statistics
ISBN:9781319013387
Author:David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:W. H. Freeman