If I have an i.i.d. sample of size <bblatex>n</bblatex> from a Poisson distribution with mean <bblatex>\lambda</bblatex>, how to find the median of unique numbers in the sample?
how to find the median of unique counts?
median(unique(sample))?
这是钓鱼贴么 。。。
我觉得可以是
quantile(x, probs = 0.5, names = FALSE)
</p>
也就是 median(x)
unique 后的 median 似乎没有物理意义
不好意思,误会了。我不是问R里面怎么做,是想知道怎么推导,有什么性质。(所以才在数理统计版里面问的)
“unique 后的 median 似乎没有物理意义”: 我问的就是这个。为什么就没有物理意义了呢?我觉得挺有意义的啊?假如0到9每个数出现一次,10出现11次,那么median就会变成10,可是10却是样本中的最大值。而unique之后的median仍然是5,应该会更稳定吧?
看来大家回帖已经自动忽略版面了 。。。[s:18] 我是外行,随便评论几句吧 。。。
这个问题值得思考。对于任意分布,分位数反映的都是一种位置关系,并不关心具体的值,我想这是由定义决定的。
进一步说,「稳定」只是一个虚幻的性质,无法度量,只是人的偏好不同而已。如果要比较哪个更稳定,需要精确地定义「稳定」。
那么各种 bound 的推导,应该有若干文献。
cc @谢益辉 大人修复下 bblatex 插件啊 。。。以前的公式都显示不出来了 。。
回复 第6楼 的 肖楠:For now, any measure is sufficient. But under which measure is median(unique(x)) always better than median(x)?
What parameter does median(unique(x)) estimate?
"那么各种 bound 的推导,应该有若干文献。"==>I cannot find any that discusses median after unique[s:15]... But the question "looks" so simple...