谢谢,如wikipedia所描述,实数数组确实不能用整数数组方法获得mode。如果已经通过样本获得kde,如何从该图形化的kde上找到(估计)该样本的mode?用鼠标放在kde图形最高点附近,可以"估计"到该kde的mode,但这种“估计”方法能写到文章中去吗^_^不同人不同放置,会获得不同结果(尽管差异不大,但缺乏严谨性,不过从实践上看,这种方法所获得的结果已经足够使用)
For a sample from a continuous distribution, such as [0.935..., 1.211..., 2.430..., 3.668..., 3.874...], the concept is unusable in its raw form, since no two values will be exactly the same, so each value will occur precisely once. In order to estimate the mode, the usual practice is to discretize the data by assigning frequency values to intervals of equal distance, as for making a histogram, effectively replacing the values by the midpoints of the intervals they are assigned to. The mode is then the value where the histogram reaches its peak. For small or middle-sized samples the outcome of this procedure is sensitive to the choice of interval width if chosen too narrow or too wide; typically one should have a sizable fraction of the data concentrated in a relatively small number of intervals (5 to 10), while the fraction of the data falling outside these intervals is also sizable. An alternate approach is kernel density estimation, which essentially blurs point samples to produce a continuous estimate of the probability density function which can provide an estimate of the mode.
【 在 gogqtdh 的大作中提到: 】
: https://en.wikipedia.org/wiki/Mode_(statistics) 离散和连续分布的mode定义是不同的,连续分布的实现不能看做一个bin