Histogram
Histogram
A histogram is the graphical representation of data where data is grouped into continuous
number ranges and each range corresponds to a vertical bar.
The number ranges depend upon the data that is being used.
Example 1: Samson owns a garden with 30 Mango trees. Each tree is of a different height. The
height of the trees (in inches): 61, 63, 64, 66, 68, 69, 71, 71.5, 72, 72.5, 73, 73.5, 74, 74.5, 76,
76.2, 76.5, 77, 77.5, 78, 78.5, 79, 79.2, 80, 81, 82, 83, 84, 85, 87. We can group the data as
follows in a frequency distribution table by setting a range:
This data can be now shown using a histogram. We need to make sure that while plotting a
histogram, there shouldn’t be any gaps between the bars.
Figure 1. Height of trees in a mango farm
Example2: Construct a histogram for the following frequency distribution table that describes
the frequencies of weights of 25 students in a class.
Step 1: On the horizontal axis, we can choose the scale to be 1 unit = 11 lb. Since the
weights in the table start from 65, not from 0, we give a break/kink on the X-axis.
Step 2: On the vertical axis, the frequencies are varying from 4 to 10. Thus, we choose the
scale to be 1 unit = 2.
Step 3: Then draw the bars corresponding to each of the given weights using their
frequencies.
Histogram Shapes
The histogram can be in different shapes based on the frequency distribution of the data. There
are different types of distributions, such as normal distribution, skewed distribution, bimodal
distribution, multimodal distribution, comb distribution, edge peak distribution, dog food
distribution, and heart cut distribution, and so on. The histogram can be used to represent these
different types of distributions. We have mainly 5 types of histogram shapes. They are listed
below:
1. Bell-Shaped Histogram
A bell-shaped histogram has a single peak. The histogram has just one peak at this time interval
and hence it is a bell-shaped histogram. For example, the following histogram shows the
number of children visiting a park at different time intervals. This histogram has only one peak.
The maximum number of children who visit the park is between 5.30 PM to 6 PM.
2. Bimodal Histogram
A bimodal histogram has two peaks and it looks like the graph given below. For example, the
following histogram shows the marks obtained by the 48 students of the same section in a
School. The maximum numbers of students have scored either between 40 to 50 marks or
between 60 to 70 marks. This histogram has two peaks (between 40 to 50 and between 60 to 70)
and hence it is a bimodal histogram.
Skewed Right Histogram
A skewed right histogram is a histogram that is skewed to the right. In this histogram, the bars of
the histogram are skewed to the right, hence called a skewed right histogram. For example, the
following histogram shows the number of people corresponding to different wage ranges. The
histogram is skewed to the right. For the maximum number of people, wages ranged from 10-
20(thousands)
Skewed Left Histogram
A skewed left histogram is a histogram that is skewed to the left. In this histogram, the bars of
the histogram are skewed to the left side, hence, called a skewed left histogram. For example, the
following histogram shows the number of students of Class 10 of Greenwood High School
according to the amount of time they spent on their studies on a daily basis. The maximum
number of students study 4.5-5(hours) on daily basis.
Uniform Histogram
A uniform histogram is a histogram where all the bars are more or less of the same height. In this
histogram, the lengths of all the bars are more or less the same. Hence, it is a uniform histogram.
For example, Ma’am Lucy, the Principal of Little Lilly Playschool, wanted to record the heights
of her students. The following histogram shows the number of students and their varying heights.
The height of the students ranges between 30 inches to 50 inches.
A bar graph is the graphical representation of categorical data using rectangular bars where
the length of each bar is proportional to the value they represent.
A histogram is the graphical representation of data where data is grouped into continuous
number ranges and each range corresponds to a vertical bar.
The main differences between a bar chart and a histogram are as follows:
Line Graph
A line graph is a type of chart or graph that is used to show information that change over time. A
line graph can be plotted using several data points connected by straight lines. Data points
represent the observations that are collected on a survey or research. Line graph gives a
graphical representation of the changes that had occurred over a given period of time. Line graph
has a horizontal axis called the x-axis and a vertical axis called the y-axis. The x-axis usually has
a time period over which we would like to measure the quantity of a specific thing or an item in
the y-axis. Line graph helps to analyze the trend of whether the quantity in the y-axis is
increasing or decreasing over a period of time. Line graph gives a clear picture of an increasing
or a decreasing trend.
Example 1: The line graph shown below represents the sale of bicycles by a bicycle company
from the month of January till June. Here, the x-axis represents the time interval and the y-axis
represents the number of bicycles sold each month. The dark point on the graph denotes
a data point. A data point on a line graph represents the quantity or a number that matches a
particular time in the x-axis. In the example shown, the number of bicycles sold in the month of
January is 50. Similarly, in the month of February 30 bicycles were sold. We can interpret this
data for each month using the data point. The line segment connecting these individual data
points gives a picture of whether the sale of bicycles is in an increasing or decreasing trend.
A line graph is also called a line chart. It helps to determine the relationship between two sets
of values, with one data set always being dependent on the other data set.
They are helpful to demonstrate information on factors and patterns. Line diagrams can make
expectations about the consequences of information not yet recorded.
The slope of the line is the most important observation in this case. The slope represents how
steep a line is. It helps in comparing the magnitude of change between any two consecutive
points on the graph. For example: The steeper the slope, the greater is the change in
magnitude between two consecutive points.
Parts of a Line Graph
Line graph consists of a horizontal x-axis and a vertical y-axis. Most line graphs only deal with
positive number values, so these axes typically intersect near the bottom of the y-axis and the left
end of the x-axis. The point at which the axes intersect is always (0,0). Each axis is labeled with
a data type. For example, the x-axis could be days, weeks, quarters, or years, while the y-axis
shows revenue in dollars. Data points are plotted and connected by a line in a "dot-to-dot"
fashion.
Title: The title of the graph tells us what the graph is all about, i.e., what information is
depicted by the graph.
Labels: The horizontal axis across the bottom and the vertical label along the side tell us
what kinds of data are being shown.
Scales: The horizontal scale across the bottom and the vertical scale along the side tell us
how much or how many.
Points: The points or dots on the graph represent the (x,y) coordinates or ordered pairs. More
than one data line can be present in a line graph. Here, data on the horizontal axis is the
independent variable, and data on the y-axis is the dependent variable.
Lines: Straight lines connecting the points give estimated values between the points.
While comparing data sets, the line graph is only useful if the x and y axes follow the same
scales. The x-axis is also known as the independent axis because its values do not depend on
anything. For example, time is always placed on the x-axis since it continues to change
regardless of anything else. The y-axis is also known as the dependent axis because its values
depend on variables on the x-axis: at this time, the company had these many sales. The result is
that the straight line always progresses in a horizontal fashion and for each x value, there is a
unique value of y. For example, the company cannot have two different value sales at the same
time.
Example 2: Observe the line graph shown below. Let us read it and list out the key observations
from the line graph.
This graph provides information about the daily sale of hotdogs every day of the week.
The line graph has an increasing slope, which means that the sale of hot dogs has increased
starting from Monday. We can clearly see that there were 40 more hot dogs sold on Thursday
than on Monday. (50 were sold on Thursday and 10 were sold on Monday, so the difference
is 50 - 10 = 40)
One other important observation is that the sale remains the same on Tuesday and
Wednesday.
It is beneficial for showing changes and trends over different time periods.
It is also helpful to show small changes that are difficult to measure in other graphs.
Line graph is common and effective charts because they are simple, easy to understand, and
efficient.
It is useful to highlight anomalies within and across data series.
More than one line may be plotted on the same axis as a form of comparison.
Line Graph Disadvantages
Here are some limitations of using line graph.
Plotting too many lines over the graph makes it cluttered and confusing to read.
A wide range of data is challenging to plot over a line graph.
They are only ideal for representing data that have numerical values and total figures such as
values of total rainfall in a month.
If consistent scales on the axis aren't used, it might lead to the data of a line graph appearing
inaccurate.
Also, line graph is inconvenient if you have to plot fractions or decimal numbers.
Line Graph vs Scatter Plot
Observe the two graphs shown below and notice the difference between the two,
Line graph and scatter plot are two different tools. Both the tools have data points that are
marked with small circles. A line graph connects every data point with the next data point with a
line segment, whereas a scatter plot does not connect individual data points. We can know the
trend of growth by looking at the line in a line graph that connects the data points, whereas in a
scatter plot a line of regression or the 'line of best fit is drawn which depicts the relationship
between two different sets of data along the x-axis and the y-axis. The key difference between a
line graph and a scatter plot is that line graph gives how quantitatively the data along the y-axis
increases with respect to a given time period, whereas, in a scatter plot, we can see how the data
represented in the y-axis changes with increase in the value of data in the x-axis. Graph A is a
line graph whereas Graph B is called the scattered graph or scatter plot. These two types of
charts record data information on both X and Y axes. The table shown below lists the key
differences between a line graph and a scatter plot.
Solution: As we can see, the pie is divided into 10 slices or sectors. To calculate the exact
amount of ingredients that are added to the cake, we divide the whole sector's value, i.e., 100 by
the number of sectors. So, 100 ÷ 10 = 10. Hence, looking at the color divisions made in the pie
chart we can conclude that:
Quantity of Flour 30
Quantity of Sugar 20
Quantity of Egg 40
Quantity of Butter 10
Pie Chart Formula
We know that the total value of the pie is always 100%. It is also known that a circle subtends an
angle of 360°. Hence, the total of all the data is equal to 360°. Based on these, there are two main
formulas used in pie charts:
To calculate the percentage of the given data, we use the formula: (Frequency ÷ Total
Frequency) × 100
To convert the data into degrees we use the formula: (Given Data ÷ Total value of Data) ×
360°
We can work out the percentage for a given pie chart using the steps given below,
Example: Observe the following pie chart that represents the money spent by Ana at the funfair.
The indicated color shows the amount spent on each category. The total value of the data is 20
and the amount spent on each category is interpreted as follows:
Ice Cream - 4
Toffees - 4
Popcorn - 2
Rides - 10
To convert this into pie chart percentage, we apply the formula: (Frequency ÷ Total
Frequency) × 100
Example:
Observe the following pie chart that recommends a low-carb diet on a day.
We measure the angles of each slice. We get that Protein measures 180°, Carb measures 108°,
and Fats measures 72°
To find the percentage, we divide each angle by 360 and multiply it by 100.
In a business, it is used to compare the growth areas such as profit and loss.
In school, pie charts are used to show the time allotted to each section, the grades of students
in a form of percentages, etc.
Pie charts are used in comparing the relative size of data of people owning the same vehicles,
similar houses, etc.
They are used to represent the marketing and sales data for the comparison of brands.
Steps to Construct Pie Chart
We use the following steps to construct a pie chart and using the above-mentioned formulas, we
can calculate the data.
Step 1: Write all the data into a table and add up all the values to get a total.
Step 2: To find the values in the form of a percentage divide each value by the total and
multiply by 100.
Step 3: To find how many degrees for each pie sector we need, we take a full circle of 360°
and use the formula: (Frequency/Total Frequency) × 360°
Step 4: Once all the degrees for creating a pie chart are calculated, draw a circle (pie chart)
using the calculated measurements with the help of a protractor.
Example: Construct a pie chart to visually display the favorite fruits of the students in a class
based on the given data: Mango - 45; Orange - 30; Plum - 15; Pineapple - 30; Melon - 30
Solution:
Step 1: Create a table with the values and get the total.
Mango 45
Orange 30
Plum 15
Pineapple 30
Melon 30
Total 150
Step 2: Find the percentage of each value:
Step 3: Finding the degree of each pie sector using the formula: (Given data/Total Value of data)
× 360°
With all the above degrees, with the help of a protractor draw a pie chart. Thus, the pie chart
looks like this:
Interpreting Pie Chart
To read or interpret a pie chart, we see if the given chart is given in percentages or without any
value. If it is given in percentages, the conversion is made accordingly and interpreted
accordingly. Let us look at an example to understand this better.
Example: The pie chart shown below shows the percentages of types of transportation used by
500 students to come to school. With this given information, answer the following questions:
a) How many students come to school by bicycle?
b) How many students do not walk to school?
c) How many students come to school by bus and car?
Solution:
b) The students who do not walk to school - We need to add the values of all the remaining
means, i.e., bus + car + bicycle = 26 + 32 + 25 = 83
c) The students who come by bus and car [(32 + 26)/100] × 500 = 58 × 5 = 290
A pie chart is a simple and easy-to-understand method to represent the data visually as a
fractional part of a whole.
It provides an effective communication tool visually simpler than other types of graphs.
Pie chart helps in data comparison for the audience at a glance to give an immediate analysis
or to quickly understand information due to widespread use in business and the media.
Pie Chart Disadvantages
There are few demerits in pie charts. These are as given below,
A pie chart cannot show more than a few values without separating the visual encoding from
the data they represent, that is they are not very effective when the number of values in a data
set increases.
It does not easily reveal exact values in the data set.
To show the changes in the data, many pie charts may be needed. It, therefore, fails to
explain the causes, effects, or patterns.
a) Time spent in sleeping = 34%; (34/100) × 360 = 122.4°. Therefore, the central angle
subtended at sleeping = 122.4°
b) Time spent at school = 25%; 25/100 = 1/4. Therefore, she spends 1/4th of her time in
school.
c) Time spent on playing = 8%; (8/100) × 360 = 28.8°. Therefore, the central angle
subtended at playing = 28.8°
Example 2: The pie chart shows the favorite subjects of students in a class. Using the
information given in the pie chart, find the percentage of students who chose English.
Solution:
Let's first determine the percentage of students who chose English by looking at the pie
chart.
We know that 144° + 36° + 72° + 108°= 360°
Example 3: A pie chart is divided into 3 parts with the angles measuring as x, 4x, and 5x
respectively. Find the value of x in degrees.
Solution:
We know, the sum of all angles in a pie chart would give 360º as result.
⇒ x + 4x + 5x = 360º
⇒ 10 x = 360º
⇒ x = 360º/10
⇒ x = 36º
Therefore, the value of x is 36º.
Q2
Five students of a class volunteered to be the class monitor. Here is the percentage distribution
of the votes received by them.
Refer to the pie chart to complete the table. Remember that percentage is a fraction
Bar Graph
A bar graph is a specific way of representing data using rectangular bars where the length of
each bar is proportional to the value they represent. It is a graphical representation of data using
bars of different heights. In real life, bar graphs are commonly used to represent business data.
All rectangular bars should have equal width and should have equal space between them.
The rectangular bars can be drawn horizontally or vertically.
The height of the rectangular bar is equivalent to the data they represent.
The rectangular bars must be on a common base.
Uses of Bar Graph
A bar graph is mostly used in mathematics and statistics. Some of the uses of the bar graph are as
follows:
Observe the figure given below which shows different types of bar graphs.
How to Draw a Bar Graph?
Let us understand how to draw a bar graph with help of an example. Liza went to the market for
buying different types of fruits in different quantities of each- 5 apples, 3 mangoes, 2
watermelons, 3 strawberries, 6 oranges. She wants to display the data by making a bar graph so
that she can visually understand which type of fruits she buys the most.
Let us use the following steps to make a bar graph of the most bought fruit.
Step 1: Take a graph paper and give the title of the bar graph like "Most Bought Fruit".
Step 2: Draw the horizontal axis (x-axis) and vertical axis (y-axis) on a plane.
Step 3: Now label the horizontal axis as "Types of Fruits" which is an independent category
and the vertical axis as "Number of Fruits" which is a dependent category.
Step 4: Label the fruits' names such as apples, mangoes, watermelon, strawberries, oranges
and give an equal gap or leave equal space between each fruit on the horizontal axis.
Step 5: Give the scale of the graph which shows the way in which numbers are used in the
data. It is a system of marks at fixed intervals which help in measuring objects. For example,
the scale of a graph can be written as 1 unit = 1 fruit.
Step 6: Now start making rectangular bars with equal gaps for each fruit and give height to
their respective numbers.
Step 7: The bar graph is ready, observe the height of rectangular bars of each fruit and find
out the most bought fruit.
While drawing a bar graph it is very important to mention four things - labels on axes, title,
scale, and name of the axes.
From the above graph, we can easily say that orange is the most bought fruit that Liza buys.
Batch 1 120
Batch 2 80
Batch 3 95
Batch 4 100
Batch 5 60
Example 3: The following table shows the number of apple trees planted by the
gardener of a school in different years. Draw the bar graph to represent the data.
2005 150
2006 220
2007 350
2008 150
2009 300
2010 380
Bar graphs are the pictorial representation of grouped data and are also referred to as bar charts.
The graphs can be plotted vertically (bars standing up) or horizontally (bars lying flat from left
to right).