FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Forum index » Science and Technology » Math
Regression equation using absolute errors
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
C6L1V@shaw.ca
science forum Guru


Joined: 23 May 2005
Posts: 628

PostPosted: Tue Jun 27, 2006 7:40 pm    Post subject: Re: Regression equation using absolute errors Reply with quote

draccarlawpet wrote:
Quote:
I'm interested in a 1-variable model which minimizes the absolute
errors, and not the squared errors.

Does an equation exist?

My previous reply told you exactly how to do it. And NO, there is no
formula or equation, as my reply clearly stated in the first sentence.

R.G. Vickson
Back to top
draccarlawpet
science forum beginner


Joined: 09 Jan 2006
Posts: 41

PostPosted: Tue Jun 27, 2006 7:12 pm    Post subject: Re: Regression equation using absolute errors Reply with quote

I'm interested in a 1-variable model which minimizes the absolute
errors, and not the squared errors.

Does an equation exist?
Back to top
C6L1V@shaw.ca
science forum Guru


Joined: 23 May 2005
Posts: 628

PostPosted: Tue Jun 27, 2006 6:49 pm    Post subject: Re: Regression equation using absolute errors Reply with quote

draccarlawpet wrote:
Quote:
What would the regression formula using absolute errors and not least
squared errors?

There is no "formula", but you can set up and solve the problem using
linear programming (LP). For example, if your fit is of the form y = a
+ b*x, and you have observed values (x_i,y_i) for i = 1, 2, ..., n,
then you can minimize sum |y_i - a - b*x_i| by introducing new
variables z_i >= 0 and solving min sum z_i, subject to the constraints
z_i >= y_i - a - b*x_i and z_i >= a + b*x_i - y_i for i = 1,...,n.
(The variables in the LP are a,b and the z_i, and only the z_i are
restricted to being >= 0.). Alternatively, you can introduce 2n new
variables zp_i, zn_i >=0 and introduce constraints
zp_i - zn_i = y_i - a - b*x_i for i = 1, ..., n.
Then the problem is to minimize sum (zp_i + zn_i). The first
formulation has n + 2 variables and 2n constraints, while the second
one has 2n + 2 variables and n constraints. Both are very practical for
n less than a few hundred, using readily available LP software.

R.G. Vickson
Back to top
draccarlawpet
science forum beginner


Joined: 09 Jan 2006
Posts: 41

PostPosted: Tue Jun 27, 2006 5:39 pm    Post subject: Regression equation using absolute errors Reply with quote

What would the regression formula using absolute errors and not least
squared errors?
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Tue Dec 12, 2017 9:54 pm | All times are GMT
Forum index » Science and Technology » Math
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Help me plaese with this equation.. Rjames2 Math 0 Fri Oct 13, 2006 3:23 pm
No new posts Estimating Errors in Measuring Volume arguani Math 0 Tue Aug 29, 2006 2:11 am
No new posts Differential equation bamford Symbolic 0 Thu Aug 10, 2006 3:44 pm
No new posts I need to know how it this equation was rearranged Alicia Math 3 Thu Jul 20, 2006 8:31 pm
No new posts How many different ways of this this equation.... aliprinter Math 6 Mon Jul 10, 2006 10:48 am

Copyright © 2004-2005 DeniX Solutions SRL
Other DeniX Solutions sites: Electronics forum |  Medicine forum |  Unix/Linux blog |  Unix/Linux documentation |  Unix/Linux forums  |  send newsletters
 


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2492s ][ Queries: 20 (0.2341s) ][ GZIP on - Debug on ]