Suppose a group of 15 sales price records has been sorted as follows:
5,10,12,11,13,15,35,50,56,55,72,92,94,204,215.
Partition them into three bins by each of the following methods:
(a) equal-frequency (equal-depth) partitioning
(b) equal-width partitioning
(c) clustering
The solution is provided below with explanations.
The confusion will arise, why we didn't choose 50 in bin 1.
If 50 is included in bin 1, maximum distance would have been 50-5=45.
When 50 is included in bin 2, maximum distance is 94-50=44.
So we have to include it in the bin which will have less maximum distance between two points. Thus, 50 is included in bin 2.
Thank you. Happy to help you.
Get Answers For Free
Most questions answered within 1 hours.