0% found this document useful (0 votes)
11 views7 pages

CCC8013 Week 7 Class exercise - 複本

Uploaded by

Sze Yu Cheung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views7 pages

CCC8013 Week 7 Class exercise - 複本

Uploaded by

Sze Yu Cheung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Task 1: summarize the air pollution index of different cities using different descriptive statistics

Levels of PM10
Date
Beijing London New York
7/27/2008 118 44 17 A) Fill in this table
7/28/2008 99 62 26
7/29/2008 87 51 57 Beijing
7/30/2008 48 52 62 Min 10
7/31/2008 72 72 35 Max 134
8/1/2008 24 59 27 Range 124
8/2/2008 36 42 22 Mean 65.3
8/3/2008 40 34 10 Mode 87
8/4/2008 84 51 15 Median 62
8/5/2008 87 52 11
8/6/2008 87 50 16
8/7/2008 95 53 13
8/8/2008 134 29 15
8/9/2008 114 38 24
8/10/2008 112 38 24
8/11/2008 30 50 11
8/12/2008 29 49 19
8/13/2008 62 62 29
8/14/2008 78 65 41
8/15/2008 10 52 33
8/16/2008 23 39 18
8/17/2008 44 40 18
8/18/2008 25 45 45
8/19/2008 41 54 16
8/20/2008 54 55 28
riptive statistics

A) Fill in this table

London New York


29 10
72 62
43 52
49.5 25.3
52 11
51 22
Task 2: estimate the correlation between the air pollution index in Beijing measured by two organiz
Date Environmental Protection Bureau Association Press
(EPB) (AP)
7/27/2008 118 384
7/28/2008 99 316
7/29/2008 87 39
7/30/2008 48 181
7/31/2008 72 157
8/1/2008 24 19
8/2/2008 36 35
8/3/2008 40 109
8/4/2008 84 432
8/5/2008 87 29
8/6/2008 87 251
8/7/2008 95 349
8/8/2008 134 345
8/9/2008 114 163
8/10/2008 112 604
8/11/2008 30 157
8/12/2008 29 162
8/13/2008 62 409
8/14/2008 78 97
8/15/2008 10 42
8/16/2008 23 30
8/17/2008 44 69
8/18/2008 25 20
8/19/2008 41 40
8/20/2008 54 144
jing measured by two organizations

A) Create a scatter plot with a linear trend line

Air Pollution index in Beijing ( EPB vs AP )


700
600
Measurements by AP

500
400
300
200
100
0
0 20 40 60 80 100 120 140 160
Measurements by EPB

B) Calculate r

r 0.658
140 160
Task 3: describe the linear relationship between traffic congestion index and air pollution index
Date Traffic congestion index Air pollution index
7/27/2008 9 384 A) Create
7/28/2008 8 316
7/29/2008 3 39
7/30/2008 5 181 Relation
7/31/2008 4 157
8/1/2008 2 19
700
8/2/2008 2 35
8/3/2008 4 109 600

Air pollution index


8/4/2008 8 432 500
8/5/2008 2 29 400
8/6/2008 7 251 300
8/7/2008 8 349 200
8/8/2008 9 345 100
8/9/2008 4 163 0
8/10/2008 8 604 1 2
8/11/2008 6 157
8/12/2008 5 162
8/13/2008 8 409
8/14/2008 3 97
8/15/2008 2 42
8/16/2008 2 30
8/17/2008 3 69 r
8/18/2008 2 20 R2
8/19/2008 3 40
8/20/2008 5 144
air pollution index

A) Create a scatter plot with a linear trend line

Relationship between traffic congestion index and air pollution


index
700
600
Air pollution index

500
400
300
200
100
0
1 2 3 4 5 6 7 8 9 10
Traffic congestion index

B) Calculate r and R2

0.920
0.847

You might also like