Quarantine should be imposed when there is evidence of exposure to a contagious disease, especially if the disease is known to have a high transmission rate and severe health outcomes. Epidemiologists use data on incubation periods, transmission methods, and case fatality rates to determine the necessity and duration of quarantine measures.