Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Loess Fit and Resulting Equation

I'm a developer up in Portland, OR. I'm wondering if anyone can assist:

I'm working on Loess fit models using R, once I have the fit accomplished, I'm looking to back-out the equation of the fitted non-linear curve, wondering if there is a way to determine this equation in R? I've been looking but can't find any literature. For me, the graph of the function is great, but without the equation of the graph, I'm kinda dead in the water.

like image 497
christian miner Avatar asked Nov 23 '09 18:11

christian miner


People also ask

What is the formula for LOESS?

There is no formula. Loess is a nonparametric method. It can't be expressed as a simple equation.

What is LOESS fitting?

Menu location: Analysis_LOESS. This is a method for fitting a smooth curve between two variables, or fitting a smooth surface between an outcome and up to four predictor variables. The procedure originated as LOWESS (LOcally WEighted Scatter-plot Smoother).

What is the LOESS and lowess used for what is the process of computing LOESS?

LOESS is based on the ideas that any function can be well approximated in a small neighborhood by a low-order polynomial and that simple models can be fit to data easily. High-degree polynomials would tend to overfit the data in each subset and are numerically unstable, making accurate computations difficult.

What is LOESS and how is it different than linear?

It is the sum of squared errors, at least for simple regression. For loess, it's a weighted sum of squared errors. Note that a linear model can be used to fit curves by including polynomial or spline terms. The model is linear in the coefficients, not necessarily limited to a straight line relationship.


1 Answers

Loess doesn't give you an equation [1]. If you just want to get the values returned by the loess function you use predict(loess.object, new.data)

[1] From wikipedia:

Another disadvantage of LOESS is the fact that it does not produce a regression function that is easily represented by a mathematical formula. This can make it difficult to transfer the results of an analysis to other people. In order to transfer the regression function to another person, they would need the data set and software for LOESS calculations.

like image 172
Michael Dunn Avatar answered Oct 05 '22 17:10

Michael Dunn