(Program 4-15) To keep improving their services, XYZ group of hotels have asked all the three hotels to get feedback form filled by their customers at the time of checkout. After getting ratings on a scale of (1-5) on factors such as Food, Service, Ambience, Activities, Distance from tourist spots they calculate the average rating and store it in a CSV file ("compareresort.csv"). The data are given in Table 4.9.
Table 4.9 -- year-wise average ratings on five parameters:
| Year | Sunny Bunny Resort | Happy Lucky Resort | Breezy WIndy Resort |
|---|---|---|---|
| 2014 | 4.75 | 3 | 4.5 |
| 2015 | 2.5 | 4 | 2 |
| 2016 | 3.5 | 2.5 | 3 |
| 2017 | 4 | 2 | 3.5 |
| 2018 | 1.5 | 4.5 | 1 |
| This year, to award the best hotel they have decided to analyse the ratings of the past 5 years for each of the hotels. Plot the data using Boxplot. |
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →Concept understanding — Histogram Visualization
Histogram Visualization
Imagine you walk into a busy railway station and want to understand the crowd. You don't care about each individual person — you want to know: How many people are waiting on the platform? How many are near the ticket counter? How many are in the food court? You'd mentally group people by where they are standing, then count each group. That grouping by location, and then counting, is the core idea behind a histogram.
A histogram is a picture that shows how a quantity is distributed across different ranges. It takes a continuous stream of data — like ages, incomes, or temperatures — and divides it into intervals (called bins). Then it draws a bar for each bin, where the height of the bar tells you how many items fall into that interval. The bars touch each other, because the intervals are consecutive and there are no gaps.
The key difference from a bar chart: a bar chart has gaps between bars because the categories are separate (like "Mumbai" vs "Delhi"). A histogram has no gaps because the data is continuous — one interval ends exactly where the next begins.
Why the shape matters
The shape of a histogram tells you a story about your data. If most bars are tall on the left and taper to the right, you have a distribution where most values are small and a few are large — think of income in a population, where most people earn modest amounts and a few earn very high amounts. If the bars form a symmetrical bell shape, the data clusters around a central value and falls off evenly on both sides — like the heights of adult men in a city.
A histogram with two distinct peaks suggests you might be looking at two different groups mixed together — for example, the ages of people in a college town might show one peak for students and another for faculty.
What it reveals that raw numbers hide
Raw data is just a list of numbers. A histogram gives you an instant visual summary. You can see at a glance:
- Where most of the data is concentrated
- Whether the data is spread out or tightly packed
- Whether there are any unusual gaps or isolated tall bars (outliers)
- Whether the distribution is symmetric or skewed to one side …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.