Nothing Special   »   [go: up one dir, main page]

Open In App

Bar Graphs and Histograms

Last Updated : 12 Dec, 2024
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

A Bar graph or a Histogram is a tool used for visual representation of data. Representing the data in a bar graphs or histograms, makes it easy to understand the concepts and relationships among data.

A Histogram is used to display the distribution of continuous data by grouping values into intervals, or bins. Whereas, a Bar graph is used to compare discrete categories, with rectangular bars representing the frequency or value of each category.

Bar-graph-and-Histogram

Bar Graph

The pictorial representation of data in groups, either in horizontal or vertical bars where the length of the bar represents the value of the data present on the axis. They (bar graphs) are usually used to display or impart the information belonging to ‘categorical data’ i.e., data that fit in some category.

Reading a Bar Graph and comparing two sets of data

To read a Bar graph, we need to ask questions to ourselves looking at the displayed graph. Let’s understand reading a Bar graph through a fundamental example,

Different types of fruits are liked by People,

Bar graphs

What does the X-axis and Y-axis on the graph are representing?

The X-axis represents the different types of fruits like apple, guava. while Y-axis represents the Number of people.

What is the Common base for the Bars?

The bars are showing a common base of category of fruits.

What is the scale used on the Y-axis?

The scale used is normal, i.e; 1 Unit = 1 person

Overall, what kind of information the bar graph displaying?

The bar graph is displaying the number of People liking different types of fruits.

Looking at the bar Graph, can one answer, how many people like Mango?

Yes, By observing the length of the bar, one can tell that there are 5 people who like Mango.

Comparing two sets of data

To compare two sets of data we simply need to compare the heights of the bars that represent that specific data. Also to get the exact value represented by each bar we can look at the value on the y axis corresponding to that height.
The bar with more height represents more value and the bar with less height represents less value.

It can be concluded the following just by looking at the graph:

  • 4 People like Apples.
  • 7 People like guava.
  • 6 People like banana.
  • 5 People like Mango.

Properties of Bar Graph

  • All Bars have a common base.
  • The length of each bar corresponds to its respective data mentioned on the axis (Y-axis for Vertical Graph, X-axis for Horizontal Graph).
  • Each bar displayed has the same width.
  • The distance between consecutive bars is the same

Histogram

Histograms are the tools used for graphical representation of data with the help of bars, the heights of the bars may vary due to different data. The histogram is similar to a bar graph, but histogram groups numbers into different ranges. The length of each bar tells how many fall into each range, and it can be decided which ranges are to be used.

It organizes the numbers into groups, or “bins,” and shows how many numbers fall into each group with bars. This makes it easy to see patterns, like which numbers appear most often or how the data is spread out.

Construction and interpretation of Histogram

  • First, mark the class intervals on X-axis and frequencies on Y-axis.
  • Make sure that the scale of both axes is the same.
  • The class Intervals shall always be exclusive.
  • Create bars with class intervals on the x-axis and corresponding frequencies on the y-axis.
  • The length of each bar reflects the Frequency when intervals are equal.
  • The area of each bar is the same as its respective frequency when intervals are unequal.

Difference Between Bar Graphs and Histograms

Feature

Bar Graph

Histogram

Dimensionality

One dimension

Two dimensions

Representation of frequency

Length of the bars

Area of the bar

Significance of Bar Width

No special significance

Represents interval or bin

Spacing between bars

Bars are separated with equal spaces

Bars are touching each other

Solved Examples on Bar Graphs and Histograms

Bar Graph Questions:

Question 1: Draw the Bar Graph for the following table,

Bar graphs

Solution:

The Bar Graph for the following table is,

Bar graphs

Question 2: The average speed of some vehicles is shown below, Represent it through a bar graph.

Bar graphs

Solution:

The average speed mentioned in the table is the frequency that decides the length of each bar graph, therefore, if the graph is vertical, the Average speed will be shown on the y-axis and the types of vehicles will be shown on the x-axis.

Bar graphs

Histogram Questions:

Question 1:In a Park, there are 28 trees of different heights, the heights can be measured in centimeters and the range of the trees lie between 100-350 cm. Draw the Histogram for the following data,

Histograms

Solution:

Since the height of the trees are lying between 100-350, we shall start by marking the heights on x-axis in groups of 50cm each and the number of trees will be mentioned on y-axis.

Therefore, if a tree has a height of 230 cm, it will lie in the rectangle 200-250.

Histograms

Question 2:In the below-given table, the number of machines working in a factory for their fixed amount of time is shown. Draw the Histogram for the following data.

Histograms

Solution:

The Histogram for the table mentioned above will have class intervals of 5 minutes on x-axis and the number of machines used should be on y-axis

Histograms

Bar Graphs and Histograms – FAQs

What is difference between histogram and bar graph?

A bar graph displays different categories with separate bars, while a histogram shows the distribution of continuous data, grouping values into intervals. Bar graphs are used for categorical data, whereas histograms are used for numerical data.

What is the difference between a line graph and a histogram?

A line graph displays trends over time or continuous data points, connecting them with a line, while a histogram shows the distribution of continuous data by grouping it into intervals. Line graphs are used for trends, whereas histograms represent frequency distributions.

What are bar graphs used for?

Bar graphs are used to compare different categories or groups of data. They are ideal for displaying discrete data, such as sales by region, survey results, or counts of various items, with each bar representing a specific category.

What is histogram graph?

A histogram represents the distribution of numerical data by dividing the range into equal-sized intervals (bins) and showing the frequency of data within each bin through bar height. It was introduced by Karl Pearson.



Next Article

Similar Reads

three90RightbarBannerImg