by ear vs off the top of head

by ear

prep
  • To do by guessing, to improvise. 

  • To play (an instrument) or sing or to learn music without reading or memorizing sheet music; to learn a language without instruction. 

off the top of head

How often have the words by ear and off the top of head occurred in a corpus of books? (source: Google Ngram Viewer )