Recent content by Dason

  1. Dason

    Make me pretty (Density Plot)

    change theme(axis.text=element_text(size=14)) to theme(axis.text.x = element_text(size=14), axis.text.y = element_blank())
  2. Dason

    Exact Poisson CI

    As it should. But simulating from the likelihood isn't really defensible from a frequentist perspective. I'm being pedantic but if that's what you want to do it really makes the most sense to at least acknowledge you're taking a bayesian approach.
  3. Dason

    Exact Poisson CI

    Could use the posterior distribution you'd get from a bayesian analysis for that I would think.
  4. Dason

    Exact Poisson CI

    Can you provide a link to any source listing that as "exact"?
  5. Dason

    Pick until you get all black balls

    Do you know about combinations and permutations?
  6. Dason

    Need help on a statistical algorithm.

    It is. But like you said it must be iid and this ends up with a symmetric distribution which i don't think quite fits the needs here. Plus is a convolution really simpler than an if/else?
  7. Dason

    Need help on a statistical algorithm.

    Indeed! I even suggested that algorithm in this post: http://www.talkstats.com/threads/need-help-on-a-statistical-algorithm.78447/post-233103
  8. Dason

    Need help on a statistical algorithm.

    Honestly that's probably a better suggestion for this. Going the full Beta route might be nicer if it's possible to code easily but the triangle distribution would probably work quite well here. I guess it all comes down to the specifics of what attributes are necessary from the distribution.
  9. Dason

    Need help on a statistical algorithm.

    @AngleWyrm were you perhaps trying to illustrate inverse transform sampling but got the details wrong? https://en.m.wikipedia.org/wiki/Inverse_transform_sampling
  10. Dason

    Need help on a statistical algorithm.

    @Bman28 let me know if my suggestions on how to do it in Lua help or not. I'm not sure if any of that requires any external packages or whatever because I don't use Lua but wanted to help.
  11. Dason

    Need help on a statistical algorithm.

    @AngleWyrm .... Are you trying to help? There might be a crumb of usefulness in that post but almost every contribution to this thread that you've made is a net detriment in my mind. You post some things that are kind of related but aren't really useful to what they're trying to do. Maybe...
  12. Dason

    Need help on a statistical algorithm.

    Actually I might not have read closely enough. I think you can directly sample - you just need to provide a prng instead of a qrng. If that's the case it should be as easy as creating the distribution object and calling it's sample method with a prng of your choosing.
  13. Dason

    Need help on a statistical algorithm.

    Yeah AngleWyrm's code doesn't generate random samples from the beta distribution. It looks like Lua has some distributions programed in: https://scilua.org/sci_dist.html Unfortunately the beta distribution isn't one that you can use the qrng on directly. If we could generate from the gamma...
  14. Dason

    Need help on a statistical algorithm.

    What programming language are you using? Are you allowed to use libraries or does it *all* have to be from scratch?
  15. Dason

    Need help on a statistical algorithm.

    That's just returning the unnormalized pdf at a uniformly random point. That won't generate random draws from the distribution itself though.