fig5_2.m 393 B

123456789101112
  1. % Local Regression and Likelihood, Figure 5.2.
  2. % Author: Catherine Loader
  3. %
  4. % Density Estimation, for the Old Faithful Geyser Data.
  5. % identity link.
  6. load geyser;
  7. fit = locfit(geyser,'alpha',[0.1 0.8],'link','ident','ll',1,'ur',6);
  8. figure('Name','fig5_2: Density estimation for Old Faithful geyser data' );
  9. lfplot(fit);
  10. xlabel('Old Faithful Eruption Duration');
  11. ylabel('Density');