Given the table
The values in the first row (x) indicate the possible values of the variable.
The values in the second row (f) indicate the frequency, which is the number of times that a determined value was observed.
Mean
To calculate the mean value of the data set, you have to multiply each value of the variable by its observed frequency, add the results and divide it by the sample size, following the formula:
To determine the sample size, you have to sum the observed frequencies:
Calculate the mean:
Median
To calculate the median, you have to determine its position first. To find the position of the median, you have to use the following formula:
The position of the median is 45.5, to determine the value, the first step is to calculate the accumulated frequencies for each category.
The position of the median is 45.5, which means that you can find its value between positions 45 and 46.
If you look at the accumulated frequencies, both of these observations are found in the fourth category of the variable, their value is 99.9.
To determine the value of the median, you have to average both observations:
The median of the data set is 99.9.