Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Least Squares vs. Least Absolute

 
Post new topic   Reply to topic Printable version
 View previous topic  Ani's Homework Help Post :: Post Direct X 10 for XP  View next topic  
Author Message
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Sat Oct 11, 2008 7:34 pm   Post maybe stupid    Post subject: Least Squares vs. Least Absolute Reply to topic Reply with quote

Here's a question for math people:

The common practice in function approximation is to the use the minimized sum of squares to find error. Why not absolute value?

Using squares gives more weight to big screw-ups and less to small screw-ups. Why not just give the amount of weight due to them? I know this will depend on someone's definition of "best fit," but I need some ideas.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Sat Oct 11, 2008 9:48 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

MMSE ususally results in a nicer closed form. Especially with normally (aka Gaussian) distributed functions.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
SamHughes
Server Help Squatter


Joined: Jun 30 2004
Posts: 251
Location: Greenwich
Offline

PostPosted: Mon Oct 13, 2008 9:22 pm   Post maybe stupid    Post subject: Re: Least Squares vs. Least Absolute Reply to topic Reply with quote

Let's step down a dimension, from functions in R->R to real numbers themselves, i.e. functions in {0} -> R, you could say.

The analogue to a least squares approximation is the average. The average, m = (a_1 + ... + a_n) / n, is the value that minimizes the sum, ((a_1 - m)^2 + ... + (a_n - m)^2).

Suppose that, instead, we wanted the value for m that minimizes the expression (|a_1 - m| + ... + |a_n - m|).

What value is that? Well, if n is odd, the value's the median. If n is even, you can use any value between the two closest to the median. Is the median what we want? It depends on what we want.

Now let's go back to the least squares approximation. It turns out that the same thing happens: if you want to find the line such that the absolute value distance is minimized, you'll have half the points above the line, and half the points below the line, and there isn't a unique solution.

But why not something in between? Why not minimize (|y_1 - f(x_1)|^1.5 + ... + |y_n - f(y_n)|^1.5) or something else? People prefer minimizing the sum of squares because that makes the computations easy and fast -- you can use simple principles to compute the solution -- you're really just finding the minimum of some paraboloid. And there is a huge mathematical framework built around this.

So people use least squares a lot because it makes the math easy, and beacuse it fits with other assumptions (that are preferred because they make the math easy), and people _definitely_ don't use minimal sum of absolute distances because there is not one solution. If you have sample points (0, 0), (100, -1), (100, 1), least squares makes you split the uprights, while sum of absolute distances only cares if you get it in.
Back to top
View users profile Send private message Add User to Ignore List
Cheese
Wow Cheese is so helpful!


Joined: Mar 18 2007
Posts: 1017
Offline

PostPosted: Wed Oct 15, 2008 11:23 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

|3| = 3
|-3| = 3
_________________
SSC Distension Owner
SSCU Trench Wars Developer
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Wed Oct 15, 2008 11:39 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Cheese wrote:
|3| = 3
|-3| = 3


icon_eek.gif
_________________
(Insert a bunch of dead links here)
Back to top
View users profile Send private message Add User to Ignore List
rootbear75
Novice


Age:36
Gender:Gender:Male
Joined: Mar 10 2005
Posts: 76
Location: Hollywood, CA
Offline

PostPosted: Wed Oct 22, 2008 3:40 am   Post maybe stupid    Post subject: Reply to topic Reply with quote

the perfect number: 6
Back to top
View users profile Send private message Add User to Ignore List AIM Address MSN Messenger
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Wed Oct 22, 2008 12:56 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

28
Back to top
View users profile Send private message Add User to Ignore List
SamHughes
Server Help Squatter


Joined: Jun 30 2004
Posts: 251
Location: Greenwich
Offline

PostPosted: Wed Oct 22, 2008 10:42 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

Why was 6 afraid of 20? Because 28 496.
Back to top
View users profile Send private message Add User to Ignore List
Samapico
No, these DO NOT look like penises, ok?


Joined: May 08 2003
Posts: 1252
Offline

PostPosted: Wed Oct 22, 2008 11:48 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

...

What?

What does 20 have to do with that?
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 157 page(s) served in previous 5 minutes.

phpBB Created this page in 0.676073 seconds : 33 queries executed (83.7%): GZIP compression disabled