How does loess function smooth data points? [on hold]











up vote
0
down vote

favorite












I have used the R implemented function loess to smoothen data points.
Now I am trying to understand how this function works, e.g. which mathematical functions are used.
I know it's local regression using weights. However, I couldn't find an example from which I could fully understand the procedure.



Here is some sample data:



         x         y                 
1 0.5578196 18.63654
2 2.0217271 103.49646
3 2.5773252 150.35391
4 3.4140288 190.51031
5 4.3014084 208.70115
6 4.7448394 213.71135
7 5.1073781 228.49353
8 6.5411662 233.55387
9 6.7216176 234.55054
10 7.2600583 223.89225
11 8.1335874 227.68339
12 9.1224379 223.91982
13 11.9296663 168.01999
14 12.3797674 164.95750
15 13.2728619 152.61107
16 14.2767453 160.78742
17 15.3731026 168.55567
18 15.6476637 152.42658
19 18.5605355 221.70702
20 18.5866354 222.69040
21 18.7572812 243.18828









share|improve this question













put on hold as off-topic by zx8754, Cath, r.bot, Tensibai, hrbrmstr 11 hours ago



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    You can try ?loess or view(loess) if you are using RStudio.
    – J.Gourlay
    11 hours ago










  • .. or pressing F2 while cursor is on loess function (if you are using RStudio), instead of View(loess).
    – Nutle
    11 hours ago










  • Thanks for your answers! I just looked it up, but I would like to see it done by hand with my example data set
    – pineapple
    9 hours ago






  • 1




    Simplest way to see what exactly is loess doing with your data is by debugonce(loess) and running the loess on your data again. Then hop inside the loops and see how every point is produced
    – Nutle
    8 hours ago

















up vote
0
down vote

favorite












I have used the R implemented function loess to smoothen data points.
Now I am trying to understand how this function works, e.g. which mathematical functions are used.
I know it's local regression using weights. However, I couldn't find an example from which I could fully understand the procedure.



Here is some sample data:



         x         y                 
1 0.5578196 18.63654
2 2.0217271 103.49646
3 2.5773252 150.35391
4 3.4140288 190.51031
5 4.3014084 208.70115
6 4.7448394 213.71135
7 5.1073781 228.49353
8 6.5411662 233.55387
9 6.7216176 234.55054
10 7.2600583 223.89225
11 8.1335874 227.68339
12 9.1224379 223.91982
13 11.9296663 168.01999
14 12.3797674 164.95750
15 13.2728619 152.61107
16 14.2767453 160.78742
17 15.3731026 168.55567
18 15.6476637 152.42658
19 18.5605355 221.70702
20 18.5866354 222.69040
21 18.7572812 243.18828









share|improve this question













put on hold as off-topic by zx8754, Cath, r.bot, Tensibai, hrbrmstr 11 hours ago



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.









  • 2




    You can try ?loess or view(loess) if you are using RStudio.
    – J.Gourlay
    11 hours ago










  • .. or pressing F2 while cursor is on loess function (if you are using RStudio), instead of View(loess).
    – Nutle
    11 hours ago










  • Thanks for your answers! I just looked it up, but I would like to see it done by hand with my example data set
    – pineapple
    9 hours ago






  • 1




    Simplest way to see what exactly is loess doing with your data is by debugonce(loess) and running the loess on your data again. Then hop inside the loops and see how every point is produced
    – Nutle
    8 hours ago















up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have used the R implemented function loess to smoothen data points.
Now I am trying to understand how this function works, e.g. which mathematical functions are used.
I know it's local regression using weights. However, I couldn't find an example from which I could fully understand the procedure.



Here is some sample data:



         x         y                 
1 0.5578196 18.63654
2 2.0217271 103.49646
3 2.5773252 150.35391
4 3.4140288 190.51031
5 4.3014084 208.70115
6 4.7448394 213.71135
7 5.1073781 228.49353
8 6.5411662 233.55387
9 6.7216176 234.55054
10 7.2600583 223.89225
11 8.1335874 227.68339
12 9.1224379 223.91982
13 11.9296663 168.01999
14 12.3797674 164.95750
15 13.2728619 152.61107
16 14.2767453 160.78742
17 15.3731026 168.55567
18 15.6476637 152.42658
19 18.5605355 221.70702
20 18.5866354 222.69040
21 18.7572812 243.18828









share|improve this question













I have used the R implemented function loess to smoothen data points.
Now I am trying to understand how this function works, e.g. which mathematical functions are used.
I know it's local regression using weights. However, I couldn't find an example from which I could fully understand the procedure.



Here is some sample data:



         x         y                 
1 0.5578196 18.63654
2 2.0217271 103.49646
3 2.5773252 150.35391
4 3.4140288 190.51031
5 4.3014084 208.70115
6 4.7448394 213.71135
7 5.1073781 228.49353
8 6.5411662 233.55387
9 6.7216176 234.55054
10 7.2600583 223.89225
11 8.1335874 227.68339
12 9.1224379 223.91982
13 11.9296663 168.01999
14 12.3797674 164.95750
15 13.2728619 152.61107
16 14.2767453 160.78742
17 15.3731026 168.55567
18 15.6476637 152.42658
19 18.5605355 221.70702
20 18.5866354 222.69040
21 18.7572812 243.18828






r loess






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 11 hours ago









pineapple

486




486




put on hold as off-topic by zx8754, Cath, r.bot, Tensibai, hrbrmstr 11 hours ago



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.




put on hold as off-topic by zx8754, Cath, r.bot, Tensibai, hrbrmstr 11 hours ago



  • This question does not appear to be about programming within the scope defined in the help center.

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 2




    You can try ?loess or view(loess) if you are using RStudio.
    – J.Gourlay
    11 hours ago










  • .. or pressing F2 while cursor is on loess function (if you are using RStudio), instead of View(loess).
    – Nutle
    11 hours ago










  • Thanks for your answers! I just looked it up, but I would like to see it done by hand with my example data set
    – pineapple
    9 hours ago






  • 1




    Simplest way to see what exactly is loess doing with your data is by debugonce(loess) and running the loess on your data again. Then hop inside the loops and see how every point is produced
    – Nutle
    8 hours ago
















  • 2




    You can try ?loess or view(loess) if you are using RStudio.
    – J.Gourlay
    11 hours ago










  • .. or pressing F2 while cursor is on loess function (if you are using RStudio), instead of View(loess).
    – Nutle
    11 hours ago










  • Thanks for your answers! I just looked it up, but I would like to see it done by hand with my example data set
    – pineapple
    9 hours ago






  • 1




    Simplest way to see what exactly is loess doing with your data is by debugonce(loess) and running the loess on your data again. Then hop inside the loops and see how every point is produced
    – Nutle
    8 hours ago










2




2




You can try ?loess or view(loess) if you are using RStudio.
– J.Gourlay
11 hours ago




You can try ?loess or view(loess) if you are using RStudio.
– J.Gourlay
11 hours ago












.. or pressing F2 while cursor is on loess function (if you are using RStudio), instead of View(loess).
– Nutle
11 hours ago




.. or pressing F2 while cursor is on loess function (if you are using RStudio), instead of View(loess).
– Nutle
11 hours ago












Thanks for your answers! I just looked it up, but I would like to see it done by hand with my example data set
– pineapple
9 hours ago




Thanks for your answers! I just looked it up, but I would like to see it done by hand with my example data set
– pineapple
9 hours ago




1




1




Simplest way to see what exactly is loess doing with your data is by debugonce(loess) and running the loess on your data again. Then hop inside the loops and see how every point is produced
– Nutle
8 hours ago






Simplest way to see what exactly is loess doing with your data is by debugonce(loess) and running the loess on your data again. Then hop inside the loops and see how every point is produced
– Nutle
8 hours ago



















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Can a sorcerer learn a 5th-level spell early by creating spell slots using the Font of Magic feature?

Does disintegrating a polymorphed enemy still kill it after the 2018 errata?

A Topological Invariant for $pi_3(U(n))$