Professional Documents
Culture Documents
Lekcija 3 - Frekvencije
Lekcija 3 - Frekvencije
Lekcija 3 - Frekvencije
Lecture 3
Frequency Distributions
Data Visualization
Learning Objectives
Source: McClave, J.T, & Sincich, T. (2018). Statistics. Twelfth Edition. Boston, MA:
Pearson, pp. 28-29.
Frequency Distribution: Qualitative
Data Example
• To illustrate the construction of a frequency distribution with nominal data,
Table 1. shows the weather for the month of February (2010) in Seattle,
Washington.
CLOUDY I 1
SUNNY IIIII II 7
Total = 28 days
Source: Jaggia, S., & Hawke, A. K. (2020). Essentials of Business Statistics: Communicating With Numbers. New
York, NY: McGraw-Hill Education, p. 21.
…
Relative
WEATHER Absolute % Relative
Frequency
(xi) Frequency Frequency
(ni = fi / N)
(fi) (Class percentage)
TOTAL 28 1 100 %
Weather Frequency 7
0 4 8 12 16 20 24 28
Days
• Vertical axis should not have a very high values as an upper limit.
LO 2.2
Frequency Distribution for Quantitative
Data
• A frequency distribution for quantitative data groups data into intervals
called classes, and records the number of observations that fall into each
class.
𝐶𝑙𝑎𝑠𝑠 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦
𝐶𝑙𝑎𝑠𝑠 𝑟𝑒𝑙𝑎𝑡𝑖𝑣𝑒 𝑓𝑟𝑒𝑞𝑢𝑒𝑛𝑐𝑦 =
𝑇𝑜𝑡𝑎𝑛 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑜𝑏𝑠𝑒𝑟𝑣𝑎𝑡𝑖𝑜𝑛𝑠
1 3 2 4 6 1 4 1 7 1 3 2 1 1 2
1 2 10 4 2 1 3 1 1 5 6 8 1 1 6
1 3 1 3 4 3 6 8 4 3 2 2 1 2 3
1 3 4 2 3 3 2 1 1 2 3 1 5 2 1
…
xmin xmax Xi
∑fi%
Classes fi f'i fi% ∑fi (Fi) (lower (upper (class
(Fi%)
limit) limit) midpoint)
0-2 32 0,533 53,33% 32 53,33% 0 2 1
xmin xmax Xi di
∑fi%
Classes fi f'i fi% ∑fi (Fi) (lower (upper (mid- (class
(Fi%)
limit) limit) point) width)
0,533
1-2 32 53,33 32 53,33 0,5 2,5 1 2
0,300
3-4 18 30,00 50 83,33 2,5 4,5 3 2
0,100
5-6 6 10,00 56 93,33 4,5 6,5 5 2
0,050
7-8 3 5,00 59 98,33 6,5 8,5 7 2
0,017
9-10 1 1,67 60 100,00 8,5 10,5 9 2
60 1 100
Frequency Distribution: Quantitative
Data Example with Charts
• A relocation specialist for a real estate firm in Mission Viejo, CA gathers
recent house sales data for a client from Seattle, WA.
• The table below shows the sale price (in $1,000s) for 36 single-family
houses.
…
• A cumulative frequency
distribution specifies how many
observations fall below the
upper limit of a particular class.
• Here are the relative frequency and the cumulative relative frequency
distributions for the house-price
ü Histogram
ü Polygon
ü Ogive
LO 2.4
Visualization of Data
• Chart orientation
• Use of 3D
• Colors
• Labels
…
Graph Design Considerations
Title
• summarizes what the graph shows
• should identify what is being described and the units of measurements
• may be placed within the chart area or above or below the chart
Use of area frame
• depending on the separation from the main text
Axes should be labeled
• can be omitted if categories are very obvious (e.g., years)
Reference to source of information
…
3D effects
• popular (“Looks beautiful)
• in general, the use of 3D makes it much more difficult to
interpret the data presented
Common Graph Types
• Bar charts
• Column Chart
• Histograms
• Line charts
• Pie charts
• Scatterplot
Bar Chart vs. Column Chart
Source: https://www.fusioncharts.com/blog/bar-charts-or-column-charts/
…
• Bar charts are good for displaying long data labels.
• Bar charts are good for displaying large number of data sets on the
category axis.
• Column charts are good for displaying data sets with negative values.
Source: https://www.fusioncharts.com/blog/bar-charts-or-column-charts/
A Bar Chart with a Considerable Amount of
Junk In It…
Bar Charts: Use the Full Axis and Avoid
Distortion
Source: https://flowingdata.com/2012/08/06/fox-
news-continues-charting-excellence/
Our Sales Compared to Competitors
Falling behind…
Comparing Absolute Numbers
Comparing Relative Numbers
Histogram
Decreasing?
The US National Debt
Increasing?
Linear vs. Logarithmic
Source: https://www.motherjones.com/kevin-drum/2020/05/chart-trivia-which-
is-better-log-or-linear/
Source: https://www.businessinsider.com/pie-charts-are-the-
worst-2013-6
3D Pie Charts Are Evil
The only difference between the two charts is that they are rotated 130
degrees relative to one another.
Source: http://www.getnerdyhr.com/3d-pie-charts-are-evil/
Scatter Plot