How does serial presence detect allow us to plug and play

There is a SPD chip on every RAM stick. This chip stores the factory clock rates and voltages. In bios under RAm settings you will have an option to load default settings from the XMP profile..that profile are the stock settings for your ram