The invalid inference to make about this excerpt is:
Only someone who was medically qualified could declare someone mentally insane.
This inference is invalid because the excerpt describes how Nellie Bly was deemed insane by a judge without any mention of medical qualifications or expertise being required for that determination. The other inferences regarding societal perceptions of the mentally ill are supported by the context of the excerpt.