Reader small image

You're reading from  R Statistics Cookbook

Product typeBook
Published inMar 2019
Reading LevelExpert
PublisherPackt
ISBN-139781789802566
Edition1st Edition
Languages
Tools
Concepts
Right arrow
Author (1)
Francisco Juretig
Francisco Juretig
author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig

Right arrow

LOESS regression

When we have a scatterplot between two variables Y, X we usually want to present a curve that relates the two variables. Firstly, because it allows us to see if the relationship is linear (or almost linear); secondly, because interpreting scatterplots is sometimes hard; and, finally, because we might want to have a simple model that can be used to predict Y in terms of X capturing all possible nonlinear patterns.

Locally Estimated Scatterplot Smoothing (LOESS) regression works by fitting lots of local models around each point. These local models are then averaged out. In particular, each model (fitted around a point X0,Y0) is fitted using weighted least squares (each point is weighted by how close the regressors are to the point X0). There is a parameter specified by the user, called the bandwidth, which specifies how much data is used in each one of these regressions...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
R Statistics Cookbook
Published in: Mar 2019Publisher: PacktISBN-13: 9781789802566

Author (1)

author image
Francisco Juretig

Francisco Juretig has worked for over a decade in a variety of industries such as retail, gambling and finance deploying data-science solutions. He has written several R packages, and is a frequent contributor to the open source community.
Read more about Francisco Juretig