https://siliconvalleyindicators.org/data/economy/income/hous...
I agree that it might be tough to buy a median house with median income in some areas, however you can easily afford to buy a decent house almost anywhere with $400k income.