I think this is pretty trivially a poor analysis as it focuses on the median. Most of the real estate in SF is being bought by people who are seriously above the median and for whom this may be a much easier financial burden for them to bear. SF has a seriously non-uniform distribution of incomes and (more importantly) wealth.