# fig5_1

## PURPOSE

Local Regression and Likelihood, Figure 5.1.

## SYNOPSIS

This is a script file.

## DESCRIPTION

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

     Density Estimation, for the Old Faithful Geyser Data.

## 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.1.
    0002 % Author: Catherine Loader
    0003 %
    0004 % Density Estimation, for the Old Faithful Geyser Data.
    0005
    0006 load geyser;
    0007 fit = locfit(geyser,'alpha',[0.1 0.8],'ll',1,'ur',6);
    0008 figure('Name','fig5_1: Density estimation for the Old Faithful Geyser Data.' );
    0009 lfplot(fit);
    0010 xlabel('Old Faithful Eruption Duration');
    0011 ylabel('Density');