Page 289 - AI Ver 3.0 Class 11
P. 289

MEDIAN: (Frequency Distribution Series):


                                                                     1.  Find Cumulative Frequency (cf)
                                   Wages          f         cf
                                     (X)                                                  th
                                                                                          n
                                                                     2.  Median Class =     term
                                                                                          2
                                    0 – 100      2          2                           
                                                                                                       th
                                                                                             th
                                                                                      = (10/2)  term = 5  term
                                  100 – 200      1          3
                                                                         th
                                  200 – 300      3          6           5  term lies in Cumulative Frequency 6
                                                                        Hence Median Class = 200 – 300
                                  300 – 400      3          9        3.  Using formula
                                  400 – 500      1         10                         n  −  cf

                                               n = 10                        M = l 1  +  2  f  ×  i


                                l = 200                                                 10
                                1                                                         − 3
                                cf = 3                                       M 200 +    2     x 100
                                                                               =
                                f = 3                                                    3
                                i = 300 – 200
                                                                               Median = 266.67



                 Median calculation using Python
                 Program 2: To calculate the median weight of 25 students.

                 50.5, 55.2, 60.3, 65.8, 70.1, 75.6, 80.4, 85.7, 90.2, 95.5, 50.3, 55.8, 60.1, 65.4, 70.9, 75.2, 80.6, 85.3, 90.8,
                 95.1,50.7, 55.9, 60.5, 65.2, 70.4

                 import statistics


                 # List of weights for 25 students with decimal values
                 weights = [50.5, 55.2, 60.3, 65.8, 70.1, 75.6, 80.4, 85.7, 90.2, 95.5,
                            50.3, 55.8, 60.1, 65.4, 70.9, 75.2, 80.6, 85.3, 90.8, 95.1,
                            50.7, 55.9, 60.5, 65.2, 70.4]
                 # Calculate the median weight using statistics.median()
                 median_weight = statistics.median(weights)
                 # Print the median weight
                 print("Median weight of 25 students is:", median_weight)
                 Output:

                 Median weight of 25 students is: 70.1

                 Mode
                 The mode is a measure of central tendency that identifies the most frequently occurring value in a dataset. Unlike the
                 mean and median, the mode can be used with both numerical and categorical data. A dataset can have one mode
                 (unimodal), more than one mode (bimodal or multimodal), or no mode at all if no number repeats.
                 In statistics, the mode is the value that appears most often in a given list of numbers.



                                                                   Data Literacy—Data Collection to Data Analysis  287
   284   285   286   287   288   289   290   291   292   293   294