Description:
We need to write a function to find out mean, median and mode for a given set of numbers in a list. Mean, Median and Mode are 3 kinds of averages.
Mean:
It is the average we are used to, where we add up all the numbers and then divide by the total number of numbers.
Median:
It is the middle value in the list of numbers. To find median, all numbers have to be listed in numerical order from smallest to largest.
If total numbers are odd, then median is the middle value. If total numbers are even, then median is the average of 2 middle values.
Mode:
It is the value that occurs most often. If no number is repeated among a list of numbers then there is no mode for the list.
No comments