# Calculate aggregate value.

I have six scores as: Score 1 - Large value is better, i.e., 63 is better than 60. Score 2 - Small value is better, i.e. 5 is better than 6.7. Score 3 - Small value is better, i.e. 5 is better than 6.7. Score 4 - Small value is better, i.e. 5 is better than 6.7. Score 5 - Small value is better, i.e. 5 is better than 6.7. Score 6 - Small value is better, i.e. 5 is better than 6.7.

Now I want to calculate an aggregate score so that i will be able to compare the score of two persons P1 and P2 and decide which one is better.

Just convert all the scores so that higher is better. Say each score x is out of some number y. Thus we can represent a score as $x/y$. Define a function $f$ which maps $x/y$ to $y - (x/y)$. Apply this function to all the scores in which lower is better. You can then either convert all scores to a like denominator, or compute their decimals to easily see which scores are higher.
• @PeterNaughtonIITM the solution works for any positive integer $y$. – Evan Rosica Jun 25 '17 at 6:48