- #1
FallArk
- 127
- 0
Recently, I encountered a problem asking that
I was thinking that median is the number which half of the list is bigger than it and the other half is smaller than it, so if I take the mode and add it with the average of all the "anti-modes" then take the average again, this would give a rough estimate of the median. Is this way of thinking correct?
I am very confused, since the mode and "anti-mode" (least frequent value) can be more than just one number, is it still possible to find the median of a list of integers?If you have a program that can identify the most- and/or least-frequent value in the data. Describe an algorithm that could make use of existing knowledge to identify the median value in the data.
I was thinking that median is the number which half of the list is bigger than it and the other half is smaller than it, so if I take the mode and add it with the average of all the "anti-modes" then take the average again, this would give a rough estimate of the median. Is this way of thinking correct?