public Long getAverageStatistical(List<Long> list) {

        // parameters check
        if (list == null) {
            return null;
        }

        int iterations = list.size();
        Long sum = (long) 0;

        for (Long result : list) {
            sum += result;
        }
        return sum / iterations;
    }