Hi - I've started reading "Fun Q" which is a book on machine learning using
the q language. Early on, the author points out that his "mode" function -
where "mode" is stats-talk for "the most frequent observation" - is
order-dependent.
I checked my own "mode" and found that this is true of mine as well:
mode
~. {~ [: (i. >./) #/.~
mode 1 2 2 3 3
2
mode 1 3 3 2 2
3
This might be an ill-defined statistical concept but does anyone have any
insight based on practice? Is this order-dependence just a weakness of the
definition of "mode"?
I could not find "mode" defined in any of the J standard libraries.
Thanks,
Devon
--
Devon McCormick, CFA
Quantitative Consultant
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm