00:01
We use the formula 1 over n times sum of f times x, where f is the frequency, and x is the middle or midpoint of the class interval.
00:14
And for median, we're going to use the formula 1 plus n over 2 minus c over f times h, where l is the lower limit of the median class, n is the total frequency, frequency, c is the cumulative frequency of class before the median class, f is the frequency of the median class, and h is class width.
00:48
For the mode, we're gonna use the formula l plus h times fm minus f1 over fm minus f1 f1 plus fm minus f2, where l is the lower limit of the model class, model class, and h is the size of the class interval.
01:12
Fm is the frequency of the model class, f1 is the frequency of the class that comes just before the model class, f2 is the frequency of the class that comes just after the model class.
01:24
Let's calculate these in python.
01:26
Here i have the script, here is the data, or the tables.
01:32
And this function will calculate the median, mean, median, and mode.
01:48
So here we calculate the mean, here we calculate the median, and here we calculate the mode...