Fallacy of affirming the consequent refers to a mistake in logic in which a person observes an effect, and ascribes to it a cause.