How do Android security patches work, and how important is it to keep them updated?

How frequently are Android security patches released? What risks do I face if I don’t install them promptly? How can I check if my device has the latest security updates?