Question: what is the difference between sum and average function?
Answer: The number of entries is the number of rows. So the sum of the averages is the sum of all the entries in the table, divided by the number of rows. The average of the row sums is the sum of all entries in the table divided by the number of rows, so you should get the same number either way.