Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I appreciate the clarity in code — I'm asking for `betamaxinv` I think?

    >>> betamax((3, 14), (4, 12))
    0.29448379324802676

    >>> betamaxinv(0.29, allowed_error=0.01)
    [((3, 14), (4, 12)), ...]
I assume the results of `betamaxinv` are not unique, and so perhaps there need to be constraints, or return a family of results. I don't know. I'm trying to wrap my head around how OP got A ~ Beta(2,13) and B ~ Beta(3,11) without just brute forcing numbers into `betamax`.


Sound like a case of the classic guess and check method.


You could fix the means and the ratio of standard deviations, then binary search on the sum of standard deviations.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: