Capricious comes, via French, from Italian capriccio, a shivering, a shudder, finally (influenced by Italian capra, goat) a whim, from capo, head (from Latin caput) + riccio, hedgehog (from Latin ericius). The basic idea is that of a head with hair standing on end, like the spines of a hedgehog.