subject
Mathematics, 25.02.2021 18:10 maddieberridgeowud2s

In this question we create a synthetic dataset using random number generation commands in Stata. This time we create two random variables that are related to one another, and we fit that relationship using a bivariate linear regression. The beauty of this approach is that we know the population parameters because we pick them when generating the data. We can then check to see how well least squares estimation performs. (a) Begin by specifying that there are 100 observations and generate the regressor to be: x = 10 + 20 * v where v is a uniform random variable on the unit interval. As a result, x is a random variable uniformly distributed on the interval (10,30). Next specify the dependent variable to be linearly related to this regressor according to: y = 30+5*x+u, where u is a random draw from a normal distribution with population mean 0 and population standard deviation 100. (Hint: use Stata's random number commands runiform() and rnormal (0, 100).]
(b) Perform a scatter plot of r and y, and also insert a linear fit. Hint: use Stata's twoway command to create a scatter graph and overlay a linear fit using the lfit graph.
(c) Next regress y on x (calling for robust standard errors). Is each one of the three OLSE assumptions satisfied in this case? Explain why for each one. Give your assessment of how well least squares regression performs in estimating the true intercept and slope.
(d) Looking at the results of this regression, assess how close least squares estimation is to the true variance of the error term.
(e) Generate the regression residuals and confirm they add up to zero. Also, confirm that the residuals are uncorrelated with the regressor.
(f) Now generate the variables r and y as you did above but do it for n = 1000 observations. Run the regression of yon x and compare the results with the earlier case of n = 100. Explain the differences, if you can.

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 20:00
The weight v of an object on venus varies directly with its weight e on earth. a person weighing 120 lb on earth would weigh 106 lb on venus. how much would a person weighing 150 lb on earth weigh on venus?
Answers: 1
question
Mathematics, 21.06.2019 23:00
Aremote-controlled boat can travel at 4 feet per second in calm water. the boat traveled 48 feet with the current, and then it traveled 16 feet against the current in the same amount of time. how fast is the current?
Answers: 1
question
Mathematics, 22.06.2019 00:00
Which of the following are arithmetic sequences? check all that apply. a. 0.3, 0.6, 0.9, 1.2, 1.5, b. 2, 3, 6, 11, 18, c. 150, 147, 144, 142, d. 2, 4, 9, 16, 25,
Answers: 1
question
Mathematics, 22.06.2019 03:30
The elmina wilson company produces spaghetti sauce that is used in restaurants. the fixed costs total $1,329,050. the selling price per 64 oz. can of sauce is $12.40. the variable cost per can is $4.80. what is the break-even point in number of cans?
Answers: 1
You know the right answer?
In this question we create a synthetic dataset using random number generation commands in Stata. Thi...
Questions
question
Geography, 07.05.2021 05:30
question
Mathematics, 07.05.2021 05:30
question
Mathematics, 07.05.2021 05:30
question
Biology, 07.05.2021 05:30
question
English, 07.05.2021 05:30
Questions on the website: 13722367