Notice there are not a lot of speculative booms in things the world only has three of.
It's disingenuous, however, to argue that this wiggling invalidates the crystal clear overall direction of the supply and demand curves or somehow invalidates the idea that the way to increase the amount of affordable housing is to increase the amount of housing.
My point is that, if a particular housing market is experiencing a shortage of supply due to a speculative boom, but has sufficient housing to actually house people, then you have two options: tackle the supply side by building more houses, or tackle the demand side by addressing the cause of the speculation (e.g. tax incentives could be encouraging this non-productive, speculative investment).
https://www.strongtowns.org/journal/2015/1/7/americas-suburb...
The real problem that prevents building up and in is rampant NIMBYism.
This is because newer, taller buildings are almost always going to be higher quality than the old shit that was already there.
Would you agree that a speculative boom can cause an increase in demand?