Introduction
The $avg accumulator helps you find the average value of numbers in a group. It makes it easy to calculate the mean without doing math yourself.
You want to find the average score of students in a class.
You need to calculate the average price of products in a category.
You want to know the average rating of movies in a collection.
You want to find the average temperature recorded each day.
You want to calculate the average sales amount per salesperson.