May 2018
Intermediate to advanced
328 pages
8h 15m
English
The problem requires the computing of a movie rating using a truncated mean. This is a statistical measure of a central tendency where the mean is calculated after discarding parts of a probability distribution or sample at the high and low ends. Typically, this is done by removing an equal amount of points at the two ends. For this problem, you are required to remove 5% of both the highest and lowest user ratings.
A function that calculates a truncated mean for a given range should do the following:
Read now
Unlock full access