Solveeit Logo

Question

Question: In a retail market, fruit vendors were selling mangoes kept in packing boxes. These boxes contained ...

In a retail market, fruit vendors were selling mangoes kept in packing boxes. These boxes contained varying numbers of mangoes. The following was the distribution.

Number of mangoes50−5253−5556−5859−6162−64
Number of boxes1511013511525

Find the mean and median number of mangoes kept in a packing box.

Explanation

Solution

Here I need to find the mean and median number of the mangoes kept. We will first find the class mark because the given class intervals are not continuous. Then we will use the formula of mean to find the mean number of mangoes kept in a packing box. We will then use the formula of median to find the median number of mangoes.

Formula Used:
We will use the following formulas:

  1. The formula to calculate the mean is given by, X=A+h(1Ni=1nfiui)\overline X = A + h\left( {\dfrac{1}{N}\sum\limits_{i = 1}^n {{f_i}{u_i}} } \right) where, A is the assumed mean, hh is the uniform class width, NN is the total frequency, fis{f_i}'s are the frequencies corresponding to ith{i^{th}} class interval, and ui{u_i} is the ratio of di=xiA{d_i} = {x_i} - A and hh ; xi{x_i} is mid-value of ith{i^{th}} class interval, which is known as class mark.
  2. Formula to calculate class mark is given by xi=upper class limit+lower class limit2{x_i} = \dfrac{{{\text{upper class limit}} + {\text{lower class limit}}}}{2} .
  3. The formula of median is Median=l+h(N2cff)Median = l + h\left( {\dfrac{{\dfrac{N}{2} - cf}}{f}} \right), where ll is the lower limit of the median class and ff is the frequency corresponding to median class.

Complete step by step solution:
Here, we know that the class width h=3h = 3 and we shall assume the mean to be A=57A = 57 .
We will use the formula of class marks to find the respective class mark.
Therefore, we will create the following table:

Number of mangoesMid value (xi)\left( {{x_i}} \right)Number of boxes (fi)\left( {{f_i}} \right)di=xiA =xi57\begin{array}{l}{d_i} = {x_i} - A\\\\{\text{ }} = {x_i} - 57\end{array}ui=1h(di) =13(di)\begin{array}{l}{u_i} = \dfrac{1}{h}\left( {{d_i}} \right)\\\\{\text{ }} = \dfrac{1}{3}\left( {{d_i}} \right)\end{array}fiui{f_i}{u_i}
50-5250+522=51\dfrac{{50 + 52}}{2} = 51155157=651 - 57 = - 62-215×2=3015 \times - 2 = - 30
53-5553+552=54\dfrac{{53 + 55}}{2} = 541105457=354 - 57 = - 31-154×1=5454 \times - 1 = - 54
56-5856+582=57\dfrac{{56 + 58}}{2} = 571355757=057 - 57 = 0057×0=057 \times 0 = 0
59-6159+612=60\dfrac{{59 + 61}}{2} = 601156057=360 - 57 = 3160×1=6060 \times 1 = 60
62-6462+642=63\dfrac{{62 + 64}}{2} = 63256357=663 - 57 = 6263×2=12663 \times 2 = 126
fi=400\sum {{f_i} = 400} fiui=25\sum {{f_i}{u_i}} = 25

Now, we will substitute all the calculated values in the formula of mean, X=A+h(1Ni=1nfiui)\overline X = A + h\left( {\dfrac{1}{N}\sum\limits_{i = 1}^n {{f_i}{u_i}} } \right) to find mean of the given distribution. Therefore, we get
X=57+3(1400×25)\overline X = 57 + 3\left( {\dfrac{1}{{400}} \times 25} \right)
On multiplying the terms inside the bracket, we get
X=57+3×116\Rightarrow \overline X = 57 + 3 \times \dfrac{1}{{16}}
On further multiplication, we get
X=57+0.187\Rightarrow \overline X = 57 + 0.187
On adding the terms, we get
X=57.187\Rightarrow \overline X = 57.187
Therefore, the required mean is equal to 57.18757.187
Now, we will calculate the median for the given table.
We will first calculate the cumulative frequency and the median class and then we will apply the formula of median.

Number of mangoesMid value (xi)\left( {{x_i}} \right)Number of boxes (fi)\left( {{f_i}} \right)Cumulative frequency (cf)\left( {cf} \right)
50-5250+522=51\dfrac{{50 + 52}}{2} = 511515
53-5553+552=54\dfrac{{53 + 55}}{2} = 5411015+110=12515 + 110 = 125
56-5856+582=57\dfrac{{56 + 58}}{2} = 57135=f135 = f125+135=260125 + 135 = 260
59-6159+612=60\dfrac{{59 + 61}}{2} = 60115260+115=375260 + 115 = 375
62-6462+642=63\dfrac{{62 + 64}}{2} = 6325375+25=400375 + 25 = 400
fi=400\sum {{f_i} = 400}

Median class is 56-58 as N2=4002=200\dfrac{N}{2} = \dfrac{{400}}{2} = 200. So cfcf is equal to 125.
From the table we get the following values:
l=56N=400\h=3\f=135\cf=125\begin{array}{l}l = 56\\\N = 400\\\h = 3\\\f = 135\\\cf = 125\end{array}
Substituting all the values in the formula of median Median=l+h(N2cff)Median = l + h\left( {\dfrac{{\dfrac{N}{2} - cf}}{f}} \right) , we get
Median=56+3(4002125135){\text{Median}} = 56 + 3\left( {\dfrac{{\dfrac{{400}}{2} - 125}}{{135}}} \right)
On simplifying the terms, we get
Median=56+3(200125135) Median=56+3×75135\begin{array}{l} \Rightarrow {\text{Median}} = 56 + 3\left( {\dfrac{{200 - 125}}{{135}}} \right)\\\ \Rightarrow {\text{Median}} = 56 + 3 \times \dfrac{{75}}{{135}}\end{array}
On multiplying the terms, we get
Median=56+1.666=57.6667\Rightarrow {\text{Median}} = 56 + 1.666 = 57.6667
Therefore, the required median is equal to 57.666757.6667

Therefore, the mean and the median number of mangoes kept in a packing box are equal to 57.18757.187 and 57.666757.6667 respectively.

Note:
Since, we have calculated the mean and median of the data. There are some differences between mean and median.

  1. Mean represents the center of gravity of a data but median represents the center of gravity of the midpoint of the data.
  2. Mean takes into account every value of data set but median does not take into account every value of data set.