How to calculate the median for frequency type data, i.e. data where each observation has a corresponding frequency of occurrence, i.e. the number of times that particular observation has occurred in our data.