The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 408 Weeks Ago, 2 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
To complete this exercise you need a software package that allows you to generate data from the uniform and normal distributions.
(i)       Start by generating 500 observations xi – the explanatory variable – from the uniform distribution with range [0,10]. (Most statistical packages have a command for the Uniform[0,1] distribution; just multiply those observations by 10.) What are the sample mean and sample standard deviation of the xi?
(ii)Â Â Â Â Â Randomly generate 500 errors, ui, from the Normal[0,36] distribution. (If you
generate a Normal[0,1], as is commonly available, simply multiply the outcomes by six.) Is the sample average of the ui exactly zero? Why or why not? What is the sample standard deviation of the ui?
(iii)Â Â Â Â Now generate the yi as
yi 5 1 1 2xi 1 ui  b0 1 b1xi 1 ui;
that is, the population intercept is one and the population slope is two. Use the data to run the regression of yi on xi. What are your estimates of the intercept and slope? Are they equal to the population values in the above equation? Explain.
Â
Â
(iv)   Obtain the OLS residuals, uˆi, and verify that equation (2.60) hold (subject to rounding error).
(v)Â Â Â Â Compute the same quantities in equation (2.60) but use the errors ui in place of the residuals. Now what do you conclude?
(vi)Â Â Â Repeat parts (i), (ii), and (iii) with a new sample of data, starting with generating
the xi. Now what do you obtain for bˆ       and bˆ    ? Why are these different from what
0Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 1
you obtained in part (iii)?
Â
Â
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll