
Quasilikelihood gamma regression in statsmodels for zeroes in observations
Generalised linear models with a gamma distribution and log link are frequently used to model nonnegative rightskewed continuous data, such as costs [1].
For example, in statsmodels:
… »import numpy as np import pandas as pd from scipy import stats import statsmodels.api as sm #

Robust Poisson regression in medical biostatistics
Logbinomial and robust (modified) Poisson regression are common approaches to estimating risk ratios in medical biostatistics [1].
I have discussed logbinomial regression in a previous post about generalised linear models. The conceptual basis for using logbinomial regression to estimate risk ratios is straightforward –… »

OpenTally dev log: Battery of optimisations leads to 108% performance improvement
Using rational arithmetic, OpenTally e825ca1 processes the 3,821,539vote 2022 Australian Senate election for Victoria in a mean 11.34 (95% CI ± 0.03) seconds on my Intel i57500. This week I put some time into cutting this figure down.

Laternoharm and the ‘Wright’ method of single transferable vote
Laternoharm is a criterion for preferential voting methods which provides that ‘Adding a later preference to a ballot should not harm any candidate already listed’ [1]. The most wellknown voting systems which comply with laternoharm are the single transferable vote (STV), and its singlewinner… »

Curiosities in drafting for the weighted inclusive Gregory method of STV
In Australia, 2 jurisdictions make use of the weighted inclusive Gregory method of the single transferable vote (STV). The weighted inclusive Gregory method of STV is one of 2 systems recommended by the Proportional Representation Society of Australia as part of a gold standard electoral… »

The failure of unweighted inclusive Gregory STV
The single transferable vote (STV) is a family of voting systems designed to achieve proportional representation. It is widely used in Australia in multiwinner elections, in both governments and private contexts.
Most STV systems in use in Australia fall into one of two categories: exclusive… »