As for averaging just four numbers, that's just a formula, say the numbers are a, b, c, d, then their average is simply x^ := (a + b + c + d)/4. This assumes you're talking about arithmetic average, i.e., the number x^ that, when replacing each of the values of which you compute the average, yields the same sum.