fig5_5.m 304 B

1234567891011
  1. % Local Regression and Likelihood, Figure 5.5.
  2. % Author: Catherine Loader
  3. %
  4. % Bivariate Density Estimation.
  5. load trimod;
  6. fit = locfit([x0 x1],'nn',0.35);
  7. emp = sort(fitted(fit));
  8. v = emp(floor([0.05 0.5]*225));
  9. figure('Name','fig5_5: Bivariate density estimation' );
  10. lfplot(fit,'contour',v);