Find Median Value in Data: Algorithm & Question

  • Context: MHB 
  • Thread starter Thread starter FallArk
  • Start date Start date
  • Tags Tags
    Median
Click For Summary

Discussion Overview

The discussion revolves around finding the median value in a dataset, particularly in the context of using modes (most frequent values) and anti-modes (least frequent values) as part of the algorithm. Participants explore the relationship between these statistical measures and the median, questioning the validity of using modes to estimate the median.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant expresses confusion about whether it is possible to find the median when modes and anti-modes can be multiple values.
  • Another participant suggests that the mode is not a reliable measure for estimating the median due to its potential variability in the dataset.
  • There is a proposal to explore various algorithms for finding the median and consider using the mode as an initial estimate.
  • A participant mentions the straightforward method of sorting the data to find the median, highlighting the computational intensity of this approach.
  • Some participants indicate uncertainty about how to incorporate modes into the process of finding the median, with one suggesting the removal of modes and anti-modes to find new ones among the remaining values.

Areas of Agreement / Disagreement

Participants do not reach a consensus on how to effectively use modes to find the median. There are multiple competing views regarding the reliability of modes and the methods to estimate the median.

Contextual Notes

Participants express limitations in understanding the instructor's expectations regarding the use of modes in finding the median, indicating a potential gap in the problem's requirements or assumptions.

FallArk
Messages
127
Reaction score
0
Recently, I encountered a problem asking that
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 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?
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?
 
Technology news on Phys.org
FallArk said:
Recently, I encountered a problem asking that
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 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?
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?

Hey FallArk! ;)

Ultimately the mode can be anywhere, so it's not reliable to use.
And "anti-modes" can be scattered throughout the distribution. :eek:

Instead, I think we should look at the various algorithms to find a median, and see if we can improve their performance by supplying the mode. We could for instance use the mode as an initial estimate of the median.
Do you perchance already have such a list? (Wondering)
 
I like Serena said:
Hey FallArk! ;)

Ultimately the mode can be anywhere, so it's not reliable to use.
And "anti-modes" can be scattered throughout the distribution. :eek:

Instead, I think we should look at the various algorithms to find a median, and see if we can improve their performance by supplying the mode. We could for instance use the mode as an initial estimate of the median.
Do you perchance already have such a list? (Wondering)

I'm sorry but I don't quite follow.
 
FallArk said:
I'm sorry but I don't quite follow.

What is it that you're not following exactly?

Anyway, to find a median, the straight forward way is to sort all values and return the one in the middle.
That way we're not making use of the mode, or of an "anti-mode".
It's just that sorting is computation intensive, so I'm assuming you're supposed to come up with an algorithm that performs better.
Is that the case?
 
I like Serena said:
What is it that you're not following exactly?

Anyway, to find a median, the straight forward way is to sort all values and return the one in the middle.
That way we're not making use of the mode, or of an "anti-mode".
It's just that sorting is computation intensive, so I'm assuming you're supposed to come up with an algorithm that performs better.
Is that the case?

i understand how to find the median by sorting the data, what i don't get is that it seems the instructor wants me to find the median using modes
 
FallArk said:
i understand how to find the median by sorting the data, what i don't get is that it seems the instructor wants me to find the median using modes

I can't think of any use of the mode to find the median either.
 
FallArk said:
i understand how to find the median by sorting the data, what i don't get is that it seems the instructor wants me to find the median using modes
It looks to me like you want to remove the mode and anti-mode, then find the new mode and anti-mode of the remaining values.
 

Similar threads

Replies
5
Views
2K
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
2
Views
2K
  • · Replies 27 ·
Replies
27
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 29 ·
Replies
29
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
7K