You will write the mean absolute deviation and the two standard deviations yourself, and the checker compares them with the statistics module.
The idea. The deviations are the values minus the mean. The MAD averages their sizes. The population SD divides the sum of the squared deviations by , and the sample SD divides it by , before the square root.
Your tasks.
mad(data).pop_sd(data).sample_sd(data).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…