Scan predicts well
A prenatal ultrasound
scan can predict fairly accurately a baby's gender, but the prediction is not 100% accurate.
One should not think of an incorrect prediction as a mistake, because a prediction is just a prediction. Unless parents have a genetic problem that either affects only boys or only girls, not knowing the gender until birth is very exciting! ultrasounds were not even used until 1960's!