an example: unbiased and consistent estimate. new; format /m1 /rd 9,3; t=30; @ the number of...
Post on 15-Jan-2016
212 views
TRANSCRIPT
![Page 1: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/1.jpg)
An example: unbiased and consistent estimate
![Page 2: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/2.jpg)
• new;• format /m1 /rd 9,3;
• T=30; @ the number of observations@• n=10000; @ the number of sampling times@
• beta1=1; beta2=2.0;
• Beta_e=zeros(n,2);
• x1=1*Rndn(T,1); • x2=2*Rndn(T,1);• X=x1~x2;
![Page 3: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/3.jpg)
• i=1;• do until i>n;
• @ Data Gerneration Process: Y=beta1*X1+beta2*X2+e@
• e=Rndn(T,1);• Y=beta1*x1+beta2*x2+e;
![Page 4: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/4.jpg)
• @ Parameter Estimation Process: Y=beta1*X1+beta2*x2+u @
• Beta_e[i,.]=olsqr(Y,X)';
• i=i+1;• endo;
• print " the average value of the beta1 estimates";
• print meanc(Beta_e[.,1]);
• print " the average value of the beta2 estimates";
• print meanc(Beta_e[.,2]);
![Page 5: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/5.jpg)
![Page 6: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/6.jpg)
![Page 7: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/7.jpg)
![Page 8: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/8.jpg)
![Page 9: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/9.jpg)
![Page 10: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/10.jpg)
![Page 11: An example: unbiased and consistent estimate. new; format /m1 /rd 9,3; T=30; @ the number of observations@ n=10000; @ the number of sampling times@ beta1=1;](https://reader036.vdocuments.us/reader036/viewer/2022070412/56649d625503460f94a43f37/html5/thumbnails/11.jpg)