I have often heard neighbours talking things like in a multi storied apartment, the upper flats are more hot in summer then lower flats (or vice versa?) and similarly for some comparison in winter? and similarly something for basement..

I have never understood these things well, even though people talk as if this is obvious.

So, what all factors cause such differences?