How can I find the minimum value for the sum of absolute values?

  • Context: Undergrad 
  • Thread starter Thread starter Jorge
  • Start date Start date
  • Tags Tags
    Absolute Minimization
Click For Summary
SUMMARY

The discussion centers on minimizing the sum of absolute values represented by the expression Σ|Xi - V| for i = 1 to n. The consensus is that the optimal value of V is the median of the dataset X, not the mean. For even n, V should be any value between X(n/2) and X(n/2+1), while for odd n, V equals X((n+1)/2). Squaring the differences and differentiating is not the correct approach for this minimization problem.

PREREQUISITES
  • Understanding of absolute value functions
  • Familiarity with statistical measures, specifically median
  • Basic knowledge of summation notation
  • Concept of differentiating functions (though not applicable here)
NEXT STEPS
  • Research the properties of median in statistical analysis
  • Study optimization techniques for absolute value functions
  • Learn about the implications of using mean versus median in data analysis
  • Explore numerical methods for minimizing functions
USEFUL FOR

Mathematicians, data analysts, statisticians, and anyone interested in optimization problems involving absolute values.

Jorge
Messages
2
Reaction score
0
Hello,


I have been having problems finding the way to minimize the sum of absolute values. Specificaly I am looking for the value of X that will minimize the sum|Xi-V|<-- i=1,...n . I know that V should be equal to the mean value of X. But I do not know the correct approach to finding this minimum.

Can I square the Xi-V and differentiate? or is there another approach?

Thanks...
 
Physics news on Phys.org
So is Xi X times i?
 
Sorry about that,

i---> is the sub index. Meaning X1...Xn.

Then it is Sum from i={1 to n }of |Xi-V|.
 
Well then that expression is completely independent of the value of X. Do you mean you are looking for a V to minimize that expression? If you are then you can let V be any value between X(n/2) and X(n/2+1) if n is even, and you can let V be X((n+1)/2) if n is odd.
 
Last edited:

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
1K
  • · Replies 6 ·
Replies
6
Views
3K