Professional Documents
Culture Documents
,60.0,52.0,56.0,82.0,57.0,60.0,69.0,59.0,64.0,83.0,70.0,62.0,5
8.0,60.0,50.0,97.0,82.0,75.0,58.0,64.0,73.0))
inf.ares
9.5
2 0.016666667
9.7
1 0.008333333
10.1 1 0.008333333
10.3 3 0.025000000
10.8 1 0.008333333
11.4 1 0.008333333
11.6 1 0.008333333
11.9 1 0.008333333
12
1 0.008333333
12.5 1 0.008333333
> cbind(fa=table(O3), fr=prop.table(table(O3)))
fa
fr
2.7
1 0.008333333
9.1
1 0.008333333
11.2
1 0.008333333
12.3
2 0.016666667
13.3
1 0.008333333
16.5
1 0.008333333
18.7
1 0.008333333
18.8
1 0.008333333
19.7
1 0.008333333
20.3
1 0.008333333
22.9
1 0.008333333
24
2 0.016666667
26.7
2 0.016666667
27.2
2 0.016666667
27.7
1 0.008333333
28.8
2 0.016666667
29.9
1 0.008333333
30.4
1 0.008333333
32
1 0.008333333
32.8
1 0.008333333
33.1
3 0.025000000
33.6
1 0.008333333
34.4
2 0.016666667
34.7
3 0.025000000
35.2
3 0.025000000
38.4
1 0.008333333
38.8
1 0.008333333
38.9
1 0.008333333
39.6
1 0.008333333
40
3 0.025000000
40.5
1 0.008333333
42.7
1 0.008333333
48.4
1 0.008333333
48.5
1 0.008333333
48.8
1 0.008333333
50.1
50.7
53.6
56
59.7
60.8
61.6
61.9
62.4
63.5
65.2
68.3
72
72.8
81.6
82
82.1
82.4
83.9
85.2
85.3
85.6
86.4
87.2
91.7
92
92.8
96
96.8
97.1
98.9
99.7
100
104
105.6
107.2
110.4
113.6
115.2
116.8
117.3
119.2
120
120.7
120.8
121.2
122.1
1
1
1
2
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
0.008333333
0.008333333
0.008333333
0.016666667
0.016666667
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.016666667
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
0.008333333
128.4 1 0.008333333
129.2 1 0.008333333
130.4 1 0.008333333
134.3 1 0.008333333
135.7 1 0.008333333
137.1 1 0.008333333
140.8 1 0.008333333
141
1 0.008333333
142
1 0.008333333
149
1 0.008333333
149.2 1 0.008333333
150.2 1 0.008333333
150.3 1 0.008333333
150.4 1 0.008333333
164.9 1 0.008333333
172.7 1 0.008333333
182.3 1 0.008333333
192.5 1 0.008333333
200
1 0.008333333
204.2 1 0.008333333
233.2 1 0.008333333
> cbind(fa=table(temp), fr=prop.table(table(temp)))
fa
fr
12.3 1 0.008333333
13.1 1 0.008333333
13.2 1 0.008333333
13.8 1 0.008333333
14
2 0.016666667
14.1 1 0.008333333
14.2 1 0.008333333
14.5 1 0.008333333
14.8 3 0.025000000
14.9 2 0.016666667
15.1 2 0.016666667
15.2 6 0.050000000
15.5 3 0.025000000
15.8 2 0.016666667
15.9 2 0.016666667
16
6 0.050000000
16.1 1 0.008333333
16.2 1 0.008333333
16.3 2 0.016666667
16.4 2 0.016666667
16.6 1 0.008333333
16.7 1 0.008333333
16.8 1 0.008333333
16.9 3 0.025000000
17
8 0.066666667
17.1 1 0.008333333
17.2 1 0.008333333
17.3 1 0.008333333
17.6 2 0.016666667
17.8 5 0.041666667
17.9 3 0.025000000
18
10 0.083333333
18.1 4 0.033333333
18.2 1 0.008333333
18.3 3 0.025000000
18.4 1 0.008333333
18.5 2 0.016666667
18.6 2 0.016666667
18.8 2 0.016666667
18.9 7 0.058333333
19
9 0.075000000
19.1 1 0.008333333
19.2 2 0.016666667
19.8 1 0.008333333
19.9 1 0.008333333
20
3 0.025000000
20.1 2 0.016666667
21
1 0.008333333
O3
33.1 34.7 35.2
40
3
3
3
3
> subset(table(temp), table(temp) == max(table(temp)))
18
10
> subset(table(umid), table(umid) == max(table(umid)))
62
8
> sd(CO)
[1] 1.543912
> sd(O3)
[1] 50.11773
> sd(temp)
[1] 1.75866
> sd(umid)
[1] 12.39489
sd(umid)
> CO[1]
[1] 6.6
> O3[1]
[1] 113.6
> temp[1]
[1] 15.2
> umid[1]
[1] 56
> summary(CO)
Min. 1st Qu. Median
Mean 3rd Qu.
Max.
4.700
6.300
7.200
7.464
8.025 12.500
> summary(O3)
Min. 1st Qu. Median
Mean 3rd Qu.
Max.
2.70
34.40
62.95
76.33 114.00 233.20
> summary(temp)
Min. 1st Qu. Median
Mean 3rd Qu.
Max.
12.30
16.00
17.70
17.22
18.60
21.00
> summary(umid)
Min. 1st Qu. Median
Mean 3rd Qu.
Max.
50.00
62.00
67.50
70.78
78.00
99.00
> CO[120]
[1] 7
> 03[120]
[1] NA
> temp[120]
[1] 15.1
> umid[120]
[1] 73
4. Histograma e Box-plots
hist(CO)
Frequency
10
20
30
40
Histogram of CO
10
12
CO
hist(O3)
Frequency
10
20
30
40
50
Histogram of O3
50
100
150
200
250
O3
hist(temp)
15
0
10
Frequency
20
25
30
Histogram of temp
12
14
16
18
temp
hist(umid)
20
15
0
10
Frequency
20
25
30
Histogram of umid
50
60
70
80
90
100
umid
boxplot(CO,main="Boxplot de CO")
10
12
Boxplot de CO
boxplot(O3,main="Boxplot de O3")
50
100
150
200
Boxplot de O3
boxplot(temp,main="Boxplot de temp")
12
14
16
18
20
Boxplot de temp
boxplot(umid,main="Boxplot de umid")
50
60
70
80
90
100
Boxplot de umid
5. Coeficiente de correlao
lm(CO~temp,inf.ares)
Call:
lm(formula = CO ~ temp, data = poluicao)
Coefficients:
(Intercept)
8.22971
temp
-0.04446