-
Directly computing HDIs from PDFs in SciPy
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
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… »
-
Bayesian biostatistics procedures matching frequentist confidence intervals
Confidence intervals are commonly misinterpreted as there being, after observing the data, a 95% probability that the true parameter lies within the confidence interval. The usual explanation why this is incorrect is that the true parameter is not random, and so is either inside or… »
-
Big list of medical abbreviations
Just a big list of medical abbreviations. Note:
- These abbreviations are based on Australian (and specifically Victorian) usage. Some abbreviations have other meanings elsewhere (e.g. BSL for British Sign Language).
- The inclusion of a abbreviation here does not imply it is recommended to be used.
-
Custom fonts in KaTeX
KaTeX is a web-based mathematics typesetting library, similar to the erstwhile untouchable MathJax. Unfortunately, out of the box, KaTeX only supports one font, its default Computer Modern-based font, and does not have built-in functionality for customising this. Thankfully, it is not difficult to achieve… »
-
The urea:creatinine ratio in SI units
It is said that a high urea:creatinine ratio is an indicator of a pre-renal cause of acute kidney injury [1]. This is usually discussed in United States units, where urea is measured as blood urea nitrogen (BUN) in mg/dL, and creatinine in mg/dL. The… »