Solved – Median and mode

discrete datamedianmode

Consider grouped data with frequencies and more specifically data that are discrete.

If I have for example different xi with the same frequencies, what is the right answer: there is no mode or all the modalities are modes?

Example value/ frequency , 0 / 42, 1 / 42, 2 / 42, 3 /42, 4 / 42, 5 / 42, 6 / 42, so what is the right answer no mode or multi modes??

For the median, some literature computes the median as the average of both xi between $F<0.5$ and $F>0.5$ OR gives the interval $[a,b]$. Others say that the median is the first xi having $F \ge 0.5$ because in the discrete case, the xi is an integer, so maybe the average did not give an integer. Also the median is the middle value so why do we have to create a fictitious value (average)? to develop this point
a)To determine the median of a discrete statistical series: It stores values ​​of the variable in ascending order. When the total number N is odd, the median is the value of the series of row (N+1/2) When the total number N is even, the median is the half sum of the ranks (N/2) and (N/2 +1)

it is clear point

b)To determine the statistical median of a discrete series where each value x n is assigned frequencies, We can calculate the cumulative increasing numbers to exceed or equal to the half of the total N. (i want to verify this last point)

From the previous example
The average in the case even number and serie of data, it is clear that we compute the average of the both middle values, in the case of grouped data value/ frequency , 0 / 42, 1 / 42, 2 / 42, 3 /42, 4 / 42, 5 / 42, 6 / 42, the median is the average of the both modalities (2 and3) or the first modality having (Ni>=N/2(=126)) in the example it will be 'x= me=2 or 3 '(42+42+42=126) also let's suppose that We get an no integer value (1.5 for example, it is logical to say we have mode 1.5 children??) that is why i prefer this definition "To determine the statistical median of a discrete series where each value x n is assigned frequencies, We can calculate the cumulative increasing numbers to exceed half of the total N. "

Best Answer

Your question raises small questions of terminology and more interesting questions of how to think about data. I will stick with your question and focus on discrete variables. Most of what I say carries over to continuous variables, but with some need for re-wording and/or some differences in procedures.

First off, the mode is usually introduced and defined as just the most common value, namely the value with the highest frequency. That is the strictest sense of the term mode. When data are discrete, we look at frequencies and identify the value with the highest frequency.

When there are ties for the highest frequency, then so also there are ties for mode. With these invented data

value       frequency 
 0            1
 1           42 
 2            1
 3            1
 4           42 
 5            1 
 6            1 

there is clearly a tie, with two modes at 1 and 4. However, had the frequencies been 42 and 41 it's my guess that most experienced users of statistics would still say that there were two modes, regardless of the rule that the mode is the value with the highest frequency. So, it is also true that a mode is a value with a pronounced peak in a frequency distribution, i.e. with a frequency notably higher than neighbouring values. (It's possible and common for a mode to be either the minimum or the maximum.)

Don't ask for a precise rule, or even rule of thumb, on what counts as pronounced or notable; it's what is obvious when you graph it and the decision comes quickly with a little experience.

The importance and interest of modes often lies in what they indicate, which is sometimes that there are qualitatively different groups being mixed together in the sample, such as men and women or healthy and sick people. Sometimes there are physical reasons for having two modes. In some climates, there are two common states of cloudiness of the sky, almost cloud-free days and clouded-over days.

I've not seen the term modality being used except occasionally as meaning the number of modes. Statistical people certainly talk about bimodality, meaning that the data are bimodal, or have two modes; or multimodality, meaning that the data are multimodal, or have many modes. Some of these terms are a little unnecessary and arguably relict from a time when there was a stronger inclination among scholars and scientists to invent words based on Latin and Greek roots, but they are quite often used.

The second part of your question I read as asking whether the median should be computed as the average of two modes. I may be missing something here, but I guess you are mixing in a quite different question. The computation of medians has nothing to do with modes at all. It's just the convention that with an even number of values, you should report the median as the mean of the two middle values. That's a convention, but it is taught in introductory statistics courses as a rule to be followed. With grouped data, the principle is still the same. It's quite possible with discrete data that interpolation will cause the median to be reported as a value that is not observable, e.g. 2.5 children. That's not something to worry about.

Back to terminology: I'd assert that modality is not another word for mode. Still less can it be used to refer to any value.

EDIT: I tried to pitch my original answer in a way that should help others apart from the OP. I focused on what seemed the more interesting question of a mode is, and downplayed a question about the median which seems confused on a point well covered in just about every elementary text. I've not tried to keep pace with repeated edits of the original question with more emphasis on how to compute medians.