1
$\begingroup$

I have a set of numbers:

[9, 8, 6, 4000]

I want to plot a bar chart and I want to normalize only the 4000 number to 4, so the range of Y axis will be [0, 9]. Under the 4 bar I would write * 1000 so the user would know that this value is normalized.

But I don't want to normalize a set of numbers like this:

[1500, 2000, 3500, 4000]

In that case the range would be [0 - 4000].

Is this possible to achieve with some simple math formula?
How can i define the limit for normalizing?

Set can have more than four elements!

  • 1
    This seems to be no math question. Anyway, scaling just one bar in a bar plot is evil.2012-03-13
  • 0
    Something is definitely not right with your sampling data. You cannot have such a variation in results.2012-03-14
  • 0
    @KirthiRaman, thats not a very good conclusion. What if he was dealing with random samples attributing the average income of the household or something. Outliers and Black Swans will always exist. In fact, the lack of such events in statistics should make you skeptical about your approach.2012-03-14
  • 0
    English is subject to misinterpretation. I meant that he has only 4 values? with such a big range? I am not following whats your point?2012-03-14

1 Answers 1