A centrifuge is a laboratory device used to separate fluids, gases, or liquids based on their density. By spinning samples at high speeds, the centripetal force causes denser substances to move outward, while less dense substances remain closer to the center. This process is crucial for various applications in epidemiology and biomedical research.