Fallacies in astronomy and medicine