You will write a function for the mode of grouped data. Then you will use the rule of thumb and measure how far it is from the formula.
The idea. The mode of grouped data is for the modal class. A missing neighbour has frequency . The rule of thumb is .
Your tasks.
grouped_mode, return the mode of the table, rounded to decimals.estimate_mode, return the estimate of the mode from mean and median.gap to the size of the difference between the estimate and the mode of the table below, rounded to decimals. The mean and median of this table are given.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…