fig5_1.m 365 B

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