# fig5_2

## PURPOSE

Local Regression and Likelihood, Figure 5.2.

## SYNOPSIS

This is a script file.

## DESCRIPTION

     Local Regression and Likelihood, Figure 5.2.
     Author: Catherine Loader

     Density Estimation, for the Old Faithful Geyser Data.
     identity link.

## CROSS-REFERENCE INFORMATION

This function calls:

- lfplot Plot (for one or two dimensions) a locfit() fit.
- locfit Smoothing noisy data using Local Regression and Likelihood.

This function is called by:

- runbook

## SOURCE CODE

    0001 % Local Regression and Likelihood, Figure 5.2.
    0002 % Author: Catherine Loader
    0003 %
    0004 % Density Estimation, for the Old Faithful Geyser Data.
    0005 % identity link.
    0006
    0007 load geyser;
    0008 fit = locfit(geyser,'alpha',[0.1 0.8],'link','ident','ll',1,'ur',6);
    0009 figure('Name','fig5_2: Density estimation for Old Faithful geyser data' );
    0010 lfplot(fit);
    0011 xlabel('Old Faithful Eruption Duration');
    0012 ylabel('Density');