It's actually the median of the 21 active witnesses (top 20 plus one dynamic backup). That's why the rate has been fluctuating between 19% and 20%. The top 20 are exactly divided between 20% and 19% as a median, meaning the backup is the tie breaker.
RE: HBD interest rate