The Friedmann model describes how the universe expands or contracts based on Einstein's field equations and the cosmological principle of homogeneity and isotropy. It assumes the universe looks the same from all positions and in all directions on large scales. The Friedmann equations relate the expansion rate and density of the universe. The horizon problem arises because regions emitting the microwave background radiation were too far apart to be in causal contact, yet the radiation is isotropic. The flatness problem is that the density of the universe must have been extremely close to the critical density shortly after the Big Bang to remain flat today within observational limits.