The invalid inference to make about the excerpt would be: "Only someone who was medically qualified could declare someone mentally insane."
This inference is invalid because the excerpt describes how Nelly Bly was declared insane by a judge, not a medical professional. It suggests that the legal system had the authority to make such declarations without requiring medical qualifications.