Professional Documents
Culture Documents
Reading materials:
Chap 2,3 (Keller)
1 2
Univariate distribution
5 6
Simple frequency distribution Simple frequency table: example 1
• What is a simple frequency table: consider each
observed value as a class Marks Number of students (frequency)
• Applications: 4 3
• Qualitative data nominal/ordinal data 5 3
• Discrete variable with few values 6 2
• Example of discrete variable with few values 7 4
variable
• You are given a raw data of midterm marks of 20 students as 8 3
follows: 7, 7, 10, 8, 5, 4, 5, 6, 4, 9, 8, 7, 6, 4, 8, 5, 7, 10, 10, 9 9 2
• Create a simple frequency table manually
10 3
7 8
13 14
15 16
17 18
Class midpoint, cumulative, percentage, and Class midpoint, cumulative, percentage, and
cumulative percentage frequency distribution cumulative percentage frequency distribution
u+cui /2
Wages (class Class Number of Cumulative Percentage Cumulative • Class midpoint: the average
interval) midpoint people frequency frequency percentage
(frequency) frequency • Cumulative frequency: running total of frequencies
< $100 50 2 2 6.7 6.7 through the classes of a FT
$100 – < $200 150 5 7 16.7 23.3
$200 – <$300 250 8 15 26.7 50.0
• Percentage (relative) frequency: proportion of a
$300 – <$400 350 9 24 30.0 80.0 frequency of a class on total frequencies.
$400 – <$500 450 5 29 16.7 96.7 • Cumulative percentage frequency: similar to
$500 – <$600 550 1 30 3.3 100.0
cumulative frequency but in percentage
Total 30
19 20
21 22
23
Total 686 100.00% 24
Bar charts: example of UNSW Pie charts: example of UNSW
150 1.60%
100
17.49%
50 33.09%
0
Australia China South India USA & UK & Other Rest of
Australia & NZ China South East Asia India
& NZ East Asia Canada Ireland Europe the world
USA & Canada UK & Ireland Other Europe Rest of the world
25 26
Notes Histograms
§ Choose charts that present information most § Raw data => frequency table => histograms
effectively (‘Learning by doing’) § A histogram looks like a bar charts except that
the bars are joined together
§ Practice with SPSS
§ Two types of histograms:
§ Equal-width histogram
§ Unequal-width histogram
27 28
30
Frequency
20
10
0
-2.4 -1.6 -0.8 0.0 0.8 1.6 2.4
Symmetric
29 30
Shapes of histograms – positive skew (long tail Shapes of histograms – negative skew (long tail
to right) to left)
20
Frequency
20
15
15
10
10
5
5
0
0.0 1.5 3.0 4.5 6.0 7.5 0
Positive skew 3.0 4.5 6.0 7.5 9.0
Negative skew
31 32
15
• Relative frequency histogram: replace frequency
Frequency
10
for each class by
5 class frequency/total number of obs.
0
-1.5 0.0 1.5 3.0 4.5 6.0
Bimodal
33 34
35 36
Ogive
COVID19 curve in Vietnam Instead of presenting cumulative percentage freq in the
FT, you can draw a graph.
37 38
Summary
39 40