1667, from Fr. caprice "whim," from It. capriccio "whim," orig. "a shivering," probably from capro "goat," with reference to frisking; but another theory connects the It. word with capo "head" + riccio "curl, frizzled," lit. "hedgehog," from L. ericius. The notion is of the hair standing on end in horror.