Professional Documents
Culture Documents
Assignment:
Engineering Statistics (ES)
Topic:
Pie Chart, Bar Graph, Histogram
Submitted to:
Sir Yasir
Submitted by:
M. Moneeb, Ali Yaseen, Shaban Hadayat
Registration Number:
2019-ME-301, 2019-ME-302, 2019-ME-332
Pie Chart
The “pie chart” is also known as a “circle chart”, dividing the circular statistical graphic into
sectors or sections to illustrate the numerical problems. Each sector denotes a proportionate part
of the whole. To find out the composition of something, Pie-chart works the best at that time. In
most cases, pie charts replace other graphs like the bar graph, line plots, histograms, etc.
Formula:
The pie chart is an important type of data representation. It contains different segments and sectors
in which each segment and sector of a pie chart forms a specific portion of the total(percentage).
The sum of all the data is equal to 360°.
The total value of the pie is always 100%.
To work out with the percentage for a pie chart, follow the steps given below:
Note:
It is not mandatory to convert the given data into percentages until it is specified. We can directly
calculate the degrees for given data values and draw the pie chart accordingly.
10 5 5 10 10
The data above can be represented by a pie chart as following and by using the circle graph
formula, i.e. the pie chart formula given below. It makes the size of the portion easy to understand.
Step 1: First, Enter the data into the table.
10 5 5 10 10
Step 2: Add all the values in the table to get the total.
I.e. Total students are 40 in this case.
Step 3: Next, divide each value by the total and multiply by 100 to get a per cent:
(10/40) × 100 (5/ 40) × 100 (5/40) ×100 (10/ 40) ×100 (10/40)×
=25% =12.5% =12.5% =25% 100
=25%
Step 4: Next to know how many degrees for each “pie sector” we need, we will take a full circle
of 360° and follow the calculations below:
The central angle of each component = (Value of each component/sum of values of all the
components)✕360°
(10/ 40)× 360° (5 / 40) × 360° (5/40) × 360° (10/ 40)× 360° (10/ 40) × 360°
=90° =45° =45° =90° =90°
Now you can draw a pie chart.
Step 5: Draw a circle and use the protractor to measure the degree of each sector.
Question:
The percentages of various cops cultivated in a village of particular distinct are given in the
following table.
• Within a business, it is used to compare areas of growth, such as turnover, profit and
exposure.
• To represent categorical data.
• To show the performance of a student in a test, etc.
Advantages:
Disadvantages:
• It becomes less effective if there are too many pieces of data to use
• If there are too many pieces of data. Even if you add data labels and numbers may not help
here, they themselves may become crowded and hard to read
• As this chart only represents one data set, you need a series to compare multiple sets
• This may make it more difficult for readers when it comes to analyze and assimilate
information quickly
Bar Graph
The pictorial representation of grouped data, in the form of vertical or horizontal rectangular bars,
where the lengths of the bars are equivalent to the measure of data, are known as bar graphs or bar
charts.
The bars drawn are of uniform width, and the variable quantity is represented on one of the axes.
Also, the measure of the variable is depicted on the other axes. The heights or the lengths of the
bars denote the value of the variable, and these graphs are also used to compare certain quantities.
The frequency distribution tables can be easily represented using bar charts which simplify the
calculations and understanding of data.
The three major attributes of bar graphs are:
• The bar graph helps to compare the different sets of data among different groups easily.
• It shows the relationship using two axes, in which the categories on one axis and the
discrete values on the other axis.
• The graph shows the major changes in data over time.
Even though the graph can be plotted using horizontally or vertically, the most usual type of bar
graph used is the vertical bar graph. The orientation of the x-axis and y-axis are changed depending
on the type of vertical and horizontal bar chart. Apart from the vertical and horizontal bar graph,
the two different types of bar charts are:
• In the bar graph, there should be an equal spacing between the bars.
• It is advisable to use the bar graph if the frequency of the data is very large.
• Understand the data that should be presented on the x-axis and y-axis and the relation
between the two.
Step 2: Draw the horizontal axis and vertical axis. (For example, Types of Pets)
Step 4: Write the names on the horizontal axis, such as Cat, Dog, Rabbit, Hamster.
Step 5: Now, label the vertical axis. (For example, Number of Pets)
Step 7: Finally, draw the bar graph that should represent each category of the pet with their
respective numbers.
Example:
In a firm of 400 employees, the percentage of monthly salary saved by each employee is given in
the following table. Represent it through a bar graph.
20 105
30 199
40 29
50 73
Total 400
Solution:
The given data can be represented as
• Bar graph summarises the large set of data in simple visual form.
• It displays each category of data in the frequency distribution.
• It clarifies the trend of data better than the table.
• It helps in estimating the key values at a glance.
Disadvantages:
• Sometimes, the bar graph fails to reveal the patterns, cause, effects, etc.
• It can be easily manipulated to yield fake information.
Histogram
A histogram is a graphical representation of a grouped frequency distribution with continuous
classes. It is an area diagram and can be defined as a set of rectangles with bases along with the
intervals between class boundaries and with areas proportional to frequencies in the corresponding
classes. In such representations, all the rectangles are adjacent since the base covers the intervals
between class boundaries. The heights of rectangles are proportional to corresponding frequencies
of similar classes and for different classes, the heights will be proportional to corresponding
frequency densities.
1. Begin by marking the class intervals on the X-axis and frequencies on the Y-axis.
2. The scales for both the axes have to be the same.
3. Class intervals need to be exclusive.
4. Draw rectangles with bases as class intervals and corresponding frequencies as heights.
5. A rectangle is built on each class interval since the class limits are marked on the horizontal
axis, and the frequencies are indicated on the vertical axis.
6. The height of each rectangle is proportional to the corresponding class frequency if the
intervals are equal.
7. The area of every individual rectangle is proportional to the corresponding class frequency
if the intervals are unequal.
Types of Histogram:
The histogram can be classified into different types 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, heart cut distribution, and so on. The histogram can be used to represent these different
types of distributions. The different types of a histogram are:
• Uniform histogram
• Symmetric histogram
• Bimodal histogram
• Probability histogram
Example:
Question:
The following table gives the lifetime of 400 neon lamps. Draw the histogram for the below data.
300 – 400 14
400 – 500 56
500 – 600 60
600 – 700 86
700 – 800 74
800 – 900 62
900 – 1000 48
Solution:
The histogram for the given data is:
Question # D
On a philosophy comprehensive exam, this distribution was obtained from 25 students.
Score Frequency
40.5-45.5 3
45.5-50.5 8
50.5-55.5 10
55.5-60.5 3
60.5-65.5 1
a. Construct a percentile graph.
b. Find the values that correspond to the 22nd, 78th, and 99th percentiles.
c. Find the percentiles of the values 52, 43, and 64.
Percentiles:
If the entire data set is broken down into 100 parts, each such part is referred to as a percentage.
The percentile of any value reflects the percentage of values that lie below the value. For instance,
for any dataset 50th percentile is associated with the median as half the values lie below it.
Percentile is also referred to as the percentile rank. The percentile value associated with the last
term of the dataset is 100%.
Part a
The percentile of any value is the same as the cumulative relative frequency as both indicate the
cumulative proportion of frequency below it.
To create a percentile graph, first, calculate the cumulative frequency and the cumulative relative
frequency as follows:
Create a percentile graph showing the scores on the horizontal axis and the cumulative relative
frequencies (percentiles) on the vertical axis as follows:
Question # E
If 2 cards are selected from a standard deck of 52 cards without replacement, find these
probabilities.
a. Both are spades.
b. b. Both are the same suit.
c. c. Both are kings.
Solution:
a)
There are 13 spades out of 52 cards total. So P(drawing spade on first draw) = 13/52
After the first draw, there are 12 spades out of 51 total. So P(drawing spade on second draw) =
12/51. We are NOT replacing the cards.
So P(Both Spades) = P(drawing spade on first draw)*P(drawing spade on second
draw)=(13/52)(12/51) = 156/2652 = 1/17
So the probability is 1/17
b)
Regardless of what suit is chosen on the first draw, we'll have 12 cards left over in that selected
suit (since all 4 suits have 13 cards) out of 51 total
So P(Both same suit) = 12/51
Note:
The first card does not matter because the second card determines the entire probability. If you're
still unsure, do some simulations (ie actually pull out a deck of cards and start drawing). Say on
the first draw you pick a heart (actual face value doesn't matter). You'll then have 12 heart cards
left out of 51 cards total.
c)