Jump to content

Median price


dreamwest

Recommended Posts

I have a few prices and need to find the median of them, the problem is there is sometimes one really high price that distorts the median.

 

Is there a way to normalize the figures?

 

Example numbers

 

76
87
95
78
104
1098

 

Normally i would do it this way but it gives a distorted view of the median number

 

$lowest = 76;
$highest = 1098;

$mid = (($lowest - highest) / 2) + $lowest; // echos 511

Link to comment
Share on other sites

Your trying to eliminate anomalies? Moreover, your not even working the median number out doing this. Your working out the average of two numbers otherwise referred to as the mean number; you then add the lowest figure to it completely throwing it off and well... I don't even think there is a word to describe what your doing here.

 

The median is the middle value of a range of numbers. Should there be an even number of numbers, the two middle values are added together and divided by two.

 

Mathematics lesson over (Y).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.