sample for grouping and averaging