# fig5_4

## PURPOSE

Local Regression and Likelihood, Figure 5.4.

## SYNOPSIS

This is a script file.

## DESCRIPTION

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

     Bivariate Density Estimation.

## 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.4.
    0002 % Author: Catherine Loader
    0003 %
    0004 % Bivariate Density Estimation.
    0005
    0006 load trimod;
    0007 fit = locfit([x0 x1],'nn',0.35);
    0008 figure('Name','fig5_4: Bivariate density estimation' );
    0009 lfplot(fit);