I used a different approach, with the concept similar to that of "residuals", I would call it "difference"
To better illustrate, let's look at an example:
1 3 7 8 12
median: 7
what's the mean? 6.2
Besides by doing sum/total amount of numbers in the set, there's another way to get to the mean, using median
the distance/difference between 1 and 7, the median, is -6 (to get 1, median subtract by 6), the difference between 3 and 7 is -4. On the left hand side, the difference between 7 and 8 is +1 (to get 8, you add 1 to 7), and difference between 7 and 12 is +5.
Adding all these "differences" up, you get -4. Distribute this sum of differences into 5 numbers, each number in the set, including the median, gets an additional -4/5=-0.8.
the median, which is 7, + (-0.8)=6.2, hence you get the mean, using the median and the differences between other numbers and the median.
going back to this question, what I did was:
mean=median + (sum of all differences, both positive and negative)/total amount of #'s in the set
mean=7/6 median = median + (sum of all differences, both positive and negative)/6
mean=7/6median = 6/6 median + (sum of all differences, both positive and negative)/6
since they have common denominators, we essentially have:
1/6 median = (sum of all differences, both positive and negative)/6
or median/6 = (sum of all differences, both positive and negative)/6
so 7=sum of all differences.
Now let's look at the difference between each number and the median:
to get from 7 to 4: -3
7 to 5: -2
7 to 6: -1
on the left hand side of 7, we have:
to get from 7 to 8: +1
7 to 10: +3
now you see +3 and -3 cancel out, so does -1 and +1, we're left with a difference of -2, and since we just found that the overall difference should be +7, let's mean that we have a +9 on the left hand side:
7 to x: +9,
x=16
This might seem LONG and unnecessary in this problem, but I found this approach comes in handy when you see a situation where you're being asked:
median < mean, what happens?
Basically, as you know to get from median to mean, you have to add the distributed "difference" to the median, that means that since we have a bigger mean than median, we have just added positive "difference" to the median to arrive at a mean that's bigger than median, where does that positive "difference" come from? It must be that there are more positive difference than the negative difference.
I hope I explain myself as clear as possible, this approach is great when it comes to a problem like this:
if-x-is-an-integer-is-the-median-of-the-5-numbers-shown-t3669.htmlwhere you can use this concept to manipulate the average and the mean to make up situations with mean<median as well as median<mean.