1、
if y~{0;1}:
p(y=1)=(#"1"+1)/("0"+1+"1"+1);
2、if y~{1,2,...k}:
p(y=k)=(#"k"+1)/m+k;
m is the number of samples.
If you see the word "Viagra" a ton of times in the E-mail, it is more likely to be spam than it appears one time.
Even once , I guess it's enough. @@_@@