Week 6

In the 5th video, he mentioned that in a left/right skewed histogram the mode is present in the highest bar which would be on the right or left respectively of the skewed histograms.

But in the 8th video he says, it is not necessary that the mode is present in the highest bar. he gave an example where the mode was in the lowest height bar. Can you please clear the confusion? How do we find out where the mode is given a histogram?

thankyou

**Mode**: **Number of elements that frequently occur** in a given data.

**8 th video (plot: bin size = 10 vs number of elements):**

In 8 th video we can see that the **shortest bar as the only mode** because the **number of elements that occur frequently lie in this interval** [2 2] which is in the interval 0-10. But the **highest bar here only has more number elements** and not frequent appearance of the elements itself. eg., **the highest bar contains 9 elements** which are [60 61 62 63 64 65 66 68 69] within the interval 60-70. Therefore, we **cannot say that the highest bar is the mode**, because the **interval or bin size is more than 1** (in this case it is 10).

**5 th video (plot: bin size = 1 vs frequency of occurrence of that element):**

Here we can say the **highest bar is the mode**, because the **interval or bin size = 1**.

Therefore, to find the mode, the plot shall be made between (**interval or bin size = 1 vs frequency of occurrence of that element**). If we imagine the 8th video toy data to be plotted in this way then we can see that **element 2 occurs twice and will have the highest bar** whereas all other elements occurs exactly once. **Now, we can say that the highest bar in the histogram is the mode as the bin size or interval is 1.**

**Summary:**

Highest bar or bars in the histogram is or are the mode or modes if the bin size or interval is 1, because mode is nothing but the number of elements that frequently occur in a given data.