3 Data Presentation And Visualization

Basic Statistics ยท Unit 3

Data Presentation and Visualization

Exam-focused notes for Data Presentation and Visualization (Basic Statistics, STA154): what the TU syllabus asks and how it has actually been tested, with 11 solved past questions from this unit.

Data Presentation and Visualization in short

Raw data is hard to read. Tables and graphs show its shape quickly, and the five number summary shows its centre, spread and unusual values.

Data Presentation and Visualization: notes

Frequency distributions and tables

A frequency distribution groups data into classes and shows how many values fall in each. The count in a class is its frequency $f$.

To build one:

  • Find the range: largest value minus smallest value.
  • Choose the number of classes, usually 5 to 10.
  • Class width is about $\text{range}/\text{number of classes}$, rounded up.
  • Make non-overlapping classes and count the values in each by tally marks.

Terms to know:

  • Class limits: the smallest and largest values in a class.
  • Class boundaries: limits with gaps closed, such as 9.5 to 19.5.
  • Class mark: the middle value of a class.
  • Cumulative frequency: the running total of frequencies.

Example: marks of 30 students.

ClassFrequency $f$Class markCumulative frequency
10 to 205155
20 to 3082513
30 to 40123525
40 to 5054530

Histogram construction

A histogram shows a continuous frequency distribution with touching bars. It is drawn like this:

  • Put class boundaries on the horizontal axis and frequency on the vertical axis.
  • Draw a rectangle on each class with height equal to its frequency.
  • Leave no gaps between the bars.

For the table above, the tallest bar stands on 30 to 40 with height 12. If class widths are unequal, the bar height is the frequency divided by the class width. This keeps the area of each bar in proportion to its frequency.

What this unit covers

  • Frequency distributions and tables
  • Histogram construction
  • Frequency polygon and frequency curve
  • Bar diagrams and Pareto diagrams
  • Pie charts
  • Box and whisker plots
  • Five number summary

Bar diagrams and Pareto diagrams

2082 ยท 5 marks

Differentiate Pareto chart and a bar diagram. [5]

Show solved answer

Differentiate Pareto Chart and Bar Diagram

Definition and Purpose

Bar Diagram:

  • A basic statistical graph that displays data using rectangular bars of equal width
  • Bars are arranged side-by-side or in groups
  • Used to compare quantities across different categories
  • Primarily for simple data comparison and visualization

Pareto Chart:

  • A specialized bar chart combined with a line graph (cumulative percentage curve)
  • Based on the Pareto principle (80/20 rule)
  • Bars are arranged in descending order of frequency/magnitude
  • Used to identify the most significant factors contributing to a problem

Key Differences

FeatureBar DiagramPareto Chart
ArrangementBars can be in any order (categorical or random)Bars arranged in descending order (highest to lowest)
ComponentsOnly bars representing frequencies/valuesBars + cumulative percentage line graph
PurposeGeneral comparison of data across categoriesIdentify vital few factors from trivial many
ApplicationSimple data presentation and comparisonQuality control, problem analysis, prioritization
PrincipleNo specific principle appliedBased on Pareto principle (80% problems from 20% causes)
ComplexitySimple and straightforwardMore complex with dual axes

Example Context

  • Bar Diagram: Comparing sales of different products in a month
  • Pareto Chart: Identifying which product defects account for 80% of quality issues

Conclusion

While a bar diagram is a general-purpose tool for data comparison, a Pareto chart is a specialized analytical tool designed to prioritize problems and identify the most impactful factors in quality management and process improvement.

Open this answer on its own page โ†’

2080 ยท 5 marks

The following table shows the mode of transport used by 400 students of a school. Represent the following information on the bar diagram and Pareto diagram.

Mode of transportBusBicycleOn footBy car
No. of students2001008020

[5]

Mode of transport Bus Bicycle On foot By car --------------- No. of students 200 100 80 20 Total students $= 200 + 100 + 80 + 20 = 400$ --- A bar diagram represents each category by a rectangular bar whose height is proportional to its frequency. Bars are of equal width with equal spacing. Constr...

Open this answer on its own page โ†’

2080.1 ยท 5 marks

Construct bar diagram and Pareto diagram of the following information.

BrandDellAcerLenovoHPTotal
No. of Sales501004060250

[5]

Show solved answer

Model Answer: Bar Diagram and Pareto Diagram

Given

BrandDellAcerLenovoHPTotal
No. of Sales501004060250

Solution

1. Bar Diagram

In a bar diagram, each brand is shown as a separate rectangular bar whose height equals its number of sales. Bars are of equal width with equal gaps.

  • X-axis: Brand (Dell, Acer, Lenovo, HP)
  • Y-axis: Number of Sales

Heights: Dell = 50, Acer = 100, Lenovo = 40, HP = 60

No. of Sales
110|
100|          โ–ˆโ–ˆโ–ˆโ–ˆ
 90|          โ–ˆโ–ˆโ–ˆโ–ˆ
 80|          โ–ˆโ–ˆโ–ˆโ–ˆ
 70|          โ–ˆโ–ˆโ–ˆโ–ˆ
 60|          โ–ˆโ–ˆโ–ˆโ–ˆ             โ–ˆโ–ˆโ–ˆโ–ˆ
 50| โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ             โ–ˆโ–ˆโ–ˆโ–ˆ
 40| โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ    โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ
 30| โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ    โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ
 20| โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ    โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ
 10| โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ    โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ
  0|__โ–ˆโ–ˆโ–ˆโ–ˆ_____โ–ˆโ–ˆโ–ˆโ–ˆ____โ–ˆโ–ˆโ–ˆโ–ˆ_____โ–ˆโ–ˆโ–ˆโ–ˆ__
     Dell     Acer   Lenovo    HP
                Brand

2. Pareto Diagram

A Pareto diagram arranges categories in descending order of frequency (as bars) with a cumulative percentage line overlaid.

Step 1: Arrange in descending order and compute cumulative percentage

$$\text{Cumulative %} = \frac{\text{Cumulative Sales}}{250} \times 100$$

BrandSalesCumulative SalesCumulative %
Acer100100$\frac{100}{250}\times100 = 40%$
HP60160$\frac{160}{250}\times100 = 64%$
Dell50210$\frac{210}{250}\times100 = 84%$
Lenovo40250$\frac{250}{250}\times100 = 100%$

Step 2: Draw bars (descending) with cumulative curve

Sales                          Cumulative %
110|                                    _____ 100%
100| โ–ˆโ–ˆโ–ˆโ–ˆ                          ___/       84%
 90| โ–ˆโ–ˆโ–ˆโ–ˆ                      ___/
 80| โ–ˆโ–ˆโ–ˆโ–ˆ            ______โ—--/               64%
 70| โ–ˆโ–ˆโ–ˆโ–ˆ        ___/
 60| โ–ˆโ–ˆโ–ˆโ–ˆ    โ—--/         โ–ˆโ–ˆโ–ˆโ–ˆ
 50| โ–ˆโ–ˆโ–ˆโ–ˆ  /              โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ
 40| โ—---/           โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
 30| โ–ˆโ–ˆโ–ˆโ–ˆ            โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
 20| โ–ˆโ–ˆโ–ˆโ–ˆ            โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
 10| โ–ˆโ–ˆโ–ˆโ–ˆ            โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ     โ–ˆโ–ˆโ–ˆโ–ˆ โ–ˆโ–ˆโ–ˆโ–ˆ
  0|__โ–ˆโ–ˆโ–ˆโ–ˆ____________โ–ˆโ–ˆโ–ˆโ–ˆ_________โ–ˆโ–ˆโ–ˆโ–ˆ_โ–ˆโ–ˆโ–ˆโ–ˆ__
    Acer(40%)      HP(64%)     Dell(84%) Lenovo(100%)

The line rises steeply for Acer and HP (together $64%$ of all sales) then flattens, illustrating the Pareto principle that a few categories account for the majority of the total.


Result: Bars: Dell 50, Acer 100, Lenovo 40, HP 60. Pareto order Acer, HP, Dell, Lenovo with cumulative percentages $40%, 64%, 84%, 100%$.

Open this answer on its own page โ†’

Pie charts

2081 ยท 5 marks

In a survey of 50 IT students, the following programming languages were preferred: Python (20), Java (15), C++ (10), and JavaScript (5). Create a pie chart representing the preferences. [5]

Total students surveyed = 50 Language Count ----------------- Python 20 Java 15 C++ 10 JavaScript 5 Check: $20 + 15 + 10 + 5 = 50$ โœ“ The angle for each sector is computed as: $$\text{Angle} = \frac{\text{Count}}{\text{Total}} \times 360ยฐ$$ Python: $$\frac{20}{50} \times 360ยฐ = 0.40 \times 360ยฐ = ...

Open this answer on its own page โ†’

2078 ยท 5 marks

The following table shows the numbers of hours spent by a child on different events on a working day. Represent the adjoining information on a pie chart.

ActivityNo. of hours
School6
Sleep8
Playing2
Study4
T.V.1
Others3

[5]

Activity No. of hours ------------------------ School 6 Sleep 8 Playing 2 Study 4 T.V. 1 Others 3 $$\text{Total} = 6 + 8 + 2 + 4 + 1 + 3 = 24 \text{ hours}$$ Formula: $$\text{Central Angle} = \frac{\text{Hours for activity}}{\text{Total hours}} \times 360ยฐ$$ Activity Hours Calculation Central Ang...

Open this answer on its own page โ†’

Five number summary

2081 ยท 5 marks

The time taken (in seconds) to complete a file transfer operation is recorded for 11 sessions. Calculate the five-number summary and construct a box plot. 100, 120, 110, 115, 130, 105, 125, 122, 112, 108, 135 [5]

Transfer times (seconds), $n = 11$: $$100, 120, 110, 115, 130, 105, 125, 122, 112, 108, 135$$ $$100,\ 105,\ 108,\ 110,\ 112,\ 115,\ 120,\ 122,\ 125,\ 130,\ 135$$ - Min = $100$ - Max = $135$ With $n = 11$, position $= \frac{n+1}{2} = 6$th value. $$\text{Median} = 115$$ Lower half (values below the...

Open this answer on its own page โ†’

2080.1 ยท 5 marks

Drive D of a computer having 25 folders contain the following number of files. (a) List the five number summaries (b) Construct a box-plot for the data (c) Are the data skewed? 4, 0, 5, 2, 3, 1, 4, 3, 2, 3, 4, 3, 1, 6, 3, 2, 3, 4, 2, 1, 0, 3, 2, 5, 4 [5]

Number of files in 25 folders: $$4, 0, 5, 2, 3, 1, 4, 3, 2, 3, 4, 3, 1, 6, 3, 2, 3, 4, 2, 1, 0, 3, 2, 5, 4$$ $n = 25$ Step 1: Sort the data $$0, 0, 1, 1, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5, 5, 6$$ Verify the counts: - 0 appears 2 times (positions 1-2) - 1 appears 3 times (pos...

Open this answer on its own page โ†’

Box and whisker plots

2080 ยท 5 marks

Write short note on the following: a) Use of Box and whisker plot. b) Parameter and Statistic. [5]

Show solved answer

Model Answer: Box and Whisker Plot, Parameter and Statistic

a) Use of Box and Whisker Plot

A box and whisker plot (or boxplot) is a graphical method used to display the distribution and spread of numerical data. Its main uses include:

  • Visual Summary of Data: Displays five-number summary - minimum, Q1 (first quartile), median (Q2), Q3 (third quartile), and maximum values in a single diagram.

  • Identifying Outliers: Points that fall beyond 1.5 ร— IQR (Interquartile Range) from Q1 or Q3 are plotted separately as outliers, making them easily identifiable.

  • Comparing Distributions: Multiple boxplots can be drawn side-by-side to compare the central tendency, spread, and skewness of different datasets or groups.

  • Assessing Skewness: The position of the median line within the box and the length of whiskers indicate whether data is symmetrically distributed or skewed.

  • Understanding Data Spread: The box width (IQR) shows where the middle 50% of data lies, while whiskers extend to show the range of typical values.

Example: In quality control, boxplots help compare product measurements across different batches to identify inconsistencies.


b) Parameter and Statistic

ParameterStatistic
A numerical value that describes a characteristic of a populationA numerical value that describes a characteristic of a sample
Fixed and constant for a given populationVaries from sample to sample
Usually unknown and estimated from sample dataCalculated from observed sample data
Denoted by Greek letters (ฮผ, ฯƒ, ฯ)Denoted by Roman letters (xฬ„, s, r)
Example: Population mean ฮผ, population standard deviation ฯƒExample: Sample mean xฬ„, sample standard deviation s

Key Relationship: Statistics are used as estimators of population parameters. For instance, the sample mean (xฬ„) is used to estimate the population mean (ฮผ).

Open this answer on its own page โ†’

2079 ยท 5 marks

Write short notes on : a.) Box and whisker plot. Write short notes on : b.) Census survey and sample survey [2.5+2.5]

A box and whisker plot (or boxplot) is a graphical method for displaying the distribution and spread of numerical data based on five-number summary statistics. Components: - Minimum value: The smallest data point (or lower whisker endpoint) - First Quartile (Q1): The 25th percentile; marks the lo...

Open this answer on its own page โ†’

0 ยท 5 marks

Write short notes on the following: a.)Box and whisker plot b.) Choice of appropriate measure of central tendency [5]

A box and whisker plot (or boxplot) is a graphical method for displaying the distribution and spread of numerical data using five-number summary statistics. Components: - Minimum value: The smallest observation in the dataset - First Quartile (Q1): The 25th percentile; 25% of data falls below thi...

Open this answer on its own page โ†’

Histogram construction

2079 ยท 5 marks

Construct histogram, frequency polygon and frequency curve of the following frequency distribution.

Circumference (cm)5055545237525347
Weight (gram) '00'1220151750101514

[5]

The data is presented as paired values of Circumference (cm) and Weight (gram, in hundreds i.e. '00'): Circumference (cm) 50 55 54 52 37 52 53 47 --------------------------- Weight (gram '00') 12 20 15 17 50 10 15 14 Important interpretation note: This is NOT a standard grouped frequency distribu...

Open this answer on its own page โ†’