Dear J'ers. This note on wikipedia contains some J-code.
https://en.wikipedia.org/wiki/Talk:Mark_and_recapture#Statistical_treatment I would like your comments and improvements. I am specially unhappy with this code: 'K n k'=.11 10 4 p=.K+n-k q=.1+(K,n)-k A0=.(0!p)*q H.(1+p-0)1 A1=.(1!p)*q H.(1+p-1)1 A2=.(2!p)*q H.(1+p-2)1 s1=.A1%A0 s2=.A2%A0 s1,%:2*s2-2!s1 45 35.4965 The assignment to (A0,A1,A2) should be done in one line, and not in three lines. Thanks! Bo ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
