compute sample average difference added to repo