I'm trying to construct a rough statistical software and I'm confused about the following:
- What is the mode if all numbers are unique?
- What is the mode if 2 numbers have same (highest) frequency?
What I feel:
- Should output nothing.
- Should output the average of the 2.
Just as reference:
a = [1 2 3 4 5]
mode(a) %Prints 1
a = [2 2 3 3]
mode(a) %Prints 2
in Octave
But I'm not sure how it's supposed to be done.