


Local Regression and Likelihood, Figure 5.3. Author: Catherine Loader Density Estimation using poisson regression. Stamp thickness data.


0001 % Local Regression and Likelihood, Figure 5.3. 0002 % Author: Catherine Loader 0003 % 0004 % Density Estimation using poisson regression. 0005 % Stamp thickness data. 0006 0007 load stamp; 0008 n = sum(count); 0009 w = 0.001*n*ones(76,1); 0010 fit = locfit(thick,count,'weights',w,'family','poisson','alpha',[0 0.004]); 0011 lfplot(fit); 0012 xlabel('Thickness (m.m.)'); 0013 ylabel('Density');