Timeline for Find probability density intervals
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 27, 2023 at 18:01 | comment | added | whuber♦ |
+1. Here's a basic R implementation giving a $O((1-p)n + n\log(n))$ algorithm for probability $p$ and data size $n:$ k <- ceiling(0.9 * length(x)) - 1; x[c(0, k) + which.min(diff(sort(x), k))]
|
|
Aug 27, 2023 at 16:50 | history | edited | Ben Bolker | CC BY-SA 4.0 |
added 231 characters in body
|
Nov 17, 2011 at 16:31 | history | migrated | from stackoverflow.com (revisions) | ||
Nov 17, 2011 at 8:19 | vote | accept | CommunityBot | ||
Nov 16, 2011 at 13:56 | history | answered | Ben Bolker | CC BY-SA 3.0 |