1570s, "a wandering, a roaming journey," probably from Latin vagari "to wander, roam, be unsettled, spread abroad," from vagus "roving, wandering" (see vague). Current meaning of "eccentric notion or conduct" (1620s) is from notion of mental wandering. Related: Vagaries.