Inane Observations $ sudo fix_it
  • SciPy distribution for the odds ratio of independent beta variables

    07 October 2022 | mathematics statistics python | Comment

    In biostatistics, a common effect measure when considering dichotomous exposures and outcomes is the odds ratio. With two proportions $π_0$ and $π_1$, the odds ratio is $ψ = \frac{π_1 / (1 - π_1)}{π_0 / (1 - π_0)}$, as compared to the risk ratio,… »

  • Directly computing HDIs from PDFs in SciPy

    06 October 2022 | mathematics statistics python | Comment

    In Bayesian inference, it is often desired to calculate credible intervals for model parameters. The 2 common choices are the highest posterior density interval (HPD/HDI), and the equal-tailed interval. In many cases, the posterior density must be estimated by simulation, but in some cases the… »

  • Beta ratio distribution for SciPy

    05 October 2022 | mathematics statistics programming python | Comment

    The quotient of 2 independent beta-distributed random variables has a known distribution, but its closed-form expression is a little hairy [1, 2]. One Python implementation of this distribution is available from Julian Saffer [3], but it suffers from some numerical issues… »

  • Home
  • Git (Archives: GitLab, GitHub)
  • Research
  • Quick Links
  • Posts
    • February 2023 (1)
    • December 2022 (4)
    • October 2022 (4)
    • September 2022 (5)
    • August 2022 (2)
    • More…
  • Tags
    • linux (30)
    • misc (21)
    • opentally (20)
    • copyright (19)
    • medicine (19)
    • single transferable vote (19)
    • drm (18)
    • monash (11)
    • encryption (10)
    • mathematics (9)
    • proportional representation (8)
    • statistics (8)
    • law (7)
    • meeting procedure (7)
    • victoria (7)
    • defective by design (6)
    • digital rights management (6)
    • ptv (6)
    • public transport (6)
    • creative commons (4)
    • ledger (4)
    • plain-text accounting (4)
    • rust (4)
    • webassembly (4)
    • politics (3)
    • python (3)
    • asexuality (2)
    • gsrm (2)
    • tax (2)
    • victorian electoral commission (2)
    • android (2)
    • security (15)
    • cryptography (10)
    • programming (8)
    • bookkeeping (4)
    • television (2)
    • review (8)
    • med in review (11)
    • obfuscation (9)
    • music (9)
    • parliamentary procedure (7)
    • video editing (3)
    • reverse engineering (16)
    • voting systems (8)
    • elections (12)
    • ebook (16)
    • guide (33)
  • Pages
    • Financial statements
    • Musical arrangements
    • Random draws
  • Lee Yingtong Li
  • blog@yingtongli.me
  • My CV · CV of Failures
@RunasSudo

Most material on this website is available under an open licence. See https://yingtongli.me/blog/copyright.html for details.