An amniotic fluid chromatin test is used to predict fetal sex to estimate the likely probability of certain hereditary diseases.