On the other hand, though, how much more expensive might it be if only single-family homes were available?
And in general many of the denser areas of New York City are some of the most expensive while parts of Queens and pretty much all of Staten Island are less dense and cheaper. So it's by no means a direct relationship between density and cost.