Professional Documents
Culture Documents
Reading materials:
Chap 2,3 (Keller)
1 2
Outline
5 6
1
Frequency tables Simple frequency distribution
• What is a simple frequency table: consider each
• Frequency is the number of times a certain value has observed value as a class
happened
• A frequency distribution records the number of • Applications:
times each value occurs and is presented in the form • Qualitative data
of table • Discrete variable with few values
• Types of frequency distribution: • Example of discrete variable with few values
• Simple frequency distribution
• You are given a raw data of midterm marks of 20 students as
• Grouped frequency distribution follows: 7, 7, 10, 8, 5, 4, 5, 6, 4, 9, 8, 7, 6, 4, 8, 5, 7, 10, 10, 9
• Create a simple frequency table manually
7 8
2
Grouped FT with equal class interval: Grouped FT with equal class interval:
discrete variable with many values discrete variable with many values (cont.)
Example 3: the marks scored by 58 candidates seeking promotion in
a personnel selection test were recorded as follows. Construct a Marks (class interval) Number of
frequency table using a class width of ten marks candidates
(frequency)
37 49 58 59 56 79 21 – 30 2 Note: Decision on the
62 82 53 58 34 45 31 – 40 11 number of classes and
40 43 44 50 42 61 class intervals is
41 – 50 17 subjective but the
54 30 49 54 76 47 51 – 60 20 number should be
64 53 64 54 60 39 61 – 70 5 chosen carefully
49 44 47 44 25 38 71 – 80 2
55 57 54 55 59 40 81 – 90 1
31 41 53 47 58 55 Total 58
59 64 56 42 38 37
33 33 47 50
13 14
15 16
17 18
3
Class midpoint, cumulative, percentage, and
Guidelines for forming class interval cumulative percentage frequency distribution
19 20
21 22
Charts
See how the figures tell you
• Tools for qualitative and discrete data:
• Simple bar charts
https://edition.cnn.com/videos/politics/2020 • Pie charts
/08/04/president-trump-axios-interview-
vpx.cnn
• Tools for continuous data:
• Histograms
• Boxplots (discussed in lecture 4)
23 24
4
Bar and pie charts Bar charts: example of UNSW
• Back to the UNSW survey example, create a bar and pie
charts
• Reduce numbers of classes for easily visual look
Number of inter. students at UNSW
Frequency
150
China 120 17.49%
100
South East Asia 227 33.09%
50
India 11 1.60%
0
USA & Canada 14 2.04% Australia China South India USA & UK & Other Rest of
& NZ East Asia Canada Ireland Europe the world
UK & Ireland 35 5.10%
Other Europe 42 6.12%
Rest of the world 57 8.31%
Total 686 100.00% 25 26
17.49%
33.09%
27 28
Equal-width histograms
Histograms
All bars have the same width (the same class intervals)
Raw data => frequency table => histograms The height of each bar represents the frequency or
percentage frequency of the class intervals
A histogram looks like a bar charts except that Using raw data in the example 4, draw a histogram
the bars are joined together representing wages
Two types of histograms:
Equal-width histogram
Unequal-width histogram
29 30
5
Shapes of histograms – positive skew (long tail
Shapes of Histograms - symmetric
to right)
H i s togr a m of P os itiv e s k e w
Histogr a m of S y mme tr ic
35
50
30
40
25
30
Frequency
Frequency
20
20
15
10 10
5
0
-2.4 -1.6 -0.8 0.0 0.8 1.6 2.4
Sy mme t r ic 0
0 .0 1.5 3.0 4.5 6.0 7.5
Po s it iv e s ke w
31 32
30
20
25
15
Frequency
Frequency
20
15 10
10
5
5
0
0 -1.5 0.0 1.5 3.0 4.5 6.0
3.0 4.5 6.0 7.5 9.0 Bimodal
Nega t iv e ske w
33 34
35 36
6
Flattening COVID19 curve in Korea COVID19 curve in Vietnam
37 38
39
Distribution of national HS exam scores 2018 Distribution of national HS exam scores 2018
7
Distribution of national HS exam scores 2018 Ogive
Instead of presenting cumulative percentage freq in the
FT, you can draw a graph.
44
45 46
48
8
Cross-table Multiple bar chart
• EX: use gss.sav data file to explore the relationship • We can use multiple bar chart to explore the
b/w internet use and degree relationship b/w variables.
• The skill is to know how to draw chart
• EX: use gss.sav data file to explore the relationship
b/w internet use, age, and degree
49 50
51 52