on average vs on the whole

on average

prep
  • Usually, typically; as a rule; as often as not. 

  • Expressed as a measure of central tendency (usually the arithmetic mean). 

on the whole

prep
  • For the most part; apart from some insignificant details. 

How often have the words on average and on the whole occurred in a corpus of books? (source: Google Ngram Viewer )