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 16:30
The average human heart beats 1.15 \cdot 10^51.15β‹…10 5 1, point, 15, dot, 10, start superscript, 5, end superscript times per day. there are 3.65 \cdot 10^23.65β‹…10 2 3, point, 65, dot, 10, start superscript, 2, end superscript days in one year.how many times does the heart beat in one year? write your answer in scientific notation, and round to one decimal place.
Answers: 1
question
Mathematics, 21.06.2019 17:30
Nick and nora are married and have three children in college. they have an adjusted gross income of 47,400. if their standard deduction is 12,600 itemized deductions are 14,200 and they get an exemption of 4000 for each adult and each dependent what is their taxable income
Answers: 3
question
Mathematics, 21.06.2019 18:30
Aball is thrown from a height of 139 feet with an initial downward velocity of 15 ft/s. the ball's height h (in feet) after t seconds is given by the following. h=139-15t-16t^2 how long after the ball is thrown does it hit the ground? round your answer(s) to the nearest hundredth. (if there is more than one answer, use the "or" button.) t =
Answers: 1
question
Mathematics, 21.06.2019 19:50
Solve the equation by completing the square. x^2+2x=17
Answers: 2
You know the right answer?
In this question we create a synthetic dataset using random number generation commands in Stata. Thi...
Questions
question
History, 18.05.2021 04:30
question
Chemistry, 18.05.2021 04:30
question
Spanish, 18.05.2021 04:30
Questions on the website: 13722367