Professional Documents
Culture Documents
TON RI RC 1
Bi tp ln
GVHD:
SV:
Mc lc
1 Gii thiu bi ton
2 C s l thuyt
2.1 Thng k m t . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Cng c R . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2
2
2
4
4
5
4 Kt lun
14
Trang 1/14
C s l thuyt
2.1
Thng k m t
2.2
Cng c R
Trang 2/14
Trang 3/14
3.1
Tp d liu
Country
U.S.
U.S.
U.S.
U.S.
U.S.
Japan
Japan
U.S.
Germany
Sweden
Sweden
France
U.S.
U.S.
U.S.
U.S.
U.S.
U.S.
U.S.
U.S.
U.S.
U.S.
Japan
Japan
U.S.
Germany
Japan
U.S.
U.S.
U.S.
U.S.
U.S.
Japan
Italy
Germany
Japan
Germany
Germany
Car
Buick Estate Wagon
Ford Country Squire Wagon
Chevy Malibu Wagon
Chrysler LeBaron Wagon
Chevette
Toyota Corona
Datsun 510
Dodge Omni
Audi 5000
Volvo 240 GT
Saab 99 GLE
Peugeot 694 SL
Buick Century Special
Mercury Zephyr
Dodge Aspen
AMC Concord D/L
Chevy Caprice Classic
Ford LTD
Mercury Grand Marquis
Dodge St Regis
Ford Mustang 4
Ford Mustang Ghia
Mazda GLC
Dodge Colt
AMC Spirit
VW Scirocco
Honda Accord LX
Buick Skylark
Chevy Citation
Olds Omega
Pontiac Phoenix
Plymouth Horizon
Datsun 210
Fiat Strada
VW Dasher
Datsun 810
BWM 320i
VW Rabbit
MPG
16.9
15.5
19.2
18.5
30
27.5
27.2
30.9
20.3
17
21.6
16.2
20.6
20.8
18.6
18.1
17
17.6
16.5
18.2
26.5
21.9
34.1
35.1
27.4
31.5
29.5
28.4
28.8
26.8
33.5
34.2
31.8
37.3
30.5
22
21.5
31.9
Weight
4.36
4.054
3.605
3.94
2.155
2.56
2.3
2.23
2.83
3.14
2.795
3.41
3.38
3.07
3.62
3.41
3.84
3.725
3.955
3.83
2.585
2.91
1.975
1.915
2.67
1.99
2.135
2.67
2.595
2.7
2.556
2.2
2.02
2.13
2.19
2.815
2.6
1.925
Drive-Ratio
2.73
2.26
2.56
2.45
3.7
3.05
3.54
3.37
3.9
3.5
3.77
3.58
2.73
3.08
2.71
2.73
2.41
2.26
2.26
2.45
3.08
3.08
3.73
2.97
3.08
3.78
3.05
2.53
2.69
2.84
2.69
3.37
3.7
3.1
3.7
3.7
3.64
3.78
Horsepower
155
142
125
150
68
95
97
75
103
125
115
133
105
85
110
120
130
129
138
135
88
109
65
80
80
71
68
90
115
115
90
70
65
69
78
97
110
71
Displacement
350
351
267
360
98
134
119
105
131
163
121
163
231
200
225
258
305
302
351
318
140
171
86
98
121
89
98
151
173
173
151
105
85
91
97
146
121
89
Trang 4/14
Cylinder
8
8
8
8
4
4
4
4
5
6
4
6
6
6
6
6
8
8
8
8
4
6
4
4
4
4
4
4
6
6
4
4
4
4
4
6
4
4
setwd("c:/")
bai8 <-read.csv("1.csv" , header=TRUE)
x<-complete.cases(bai8)
bai8=bai8[x, ]
attach(bai8)
3.2
Kt qu phn tch
Italy
1
Japan
7
Sweden
2
U.S.
22
Trang 5/14
sai.so
1.062115
do.lech
4.1824473
sai.so
0.9595192
$5
trung.binh
20.3
min
20.3
max
20.3
trung.vi phuong.sai
20.3
NA
do.lech
NA
sai.so
NA
$6
trung.binh
21.080000
min
16.200000
max
28.800000
trung.vi phuong.sai
20.700000 16.626222
do.lech
4.077526
sai.so
1.289427
$8
trung.binh
min
max
trung.vi phuong.sai
17.4250000 15.5000000 19.2000000 17.3000000 1.4221429
do.lech
1.1925363
sai.so
0.4216253
Trang 6/14
=> Tr s p=0.01063<0.05 cho ta kt lun bin MPG khng tun theo lut phn phi
chun.
Ct 4 - Weight:
> phantich(Weight)
trung.binh
min
max
2.8628947 1.9150000 4.3600000
> hist(Weight)
> shapiro.test(Weight)
trung.vi phuong.sai
2.6850000 0.4996658
do.lech
0.7068704
sai.so
0.1146695
Trang 7/14
$5
trung.binh
2.83
min
2.83
max
2.83
trung.vi phuong.sai
2.83
NA
do.lech
NA
sai.so
NA
$6
trung.binh
3.1050000
min
2.5950000
max
3.6200000
trung.vi phuong.sai
3.1050000 0.1195111
do.lech
0.3457038
sai.so
0.1093211
$8
trung.binh
min
max
trung.vi phuong.sai
do.lech
sai.so
3.91362500 3.60500000 4.36000000 3.89000000 0.05208655 0.22822479 0.08068965
=> Tr s p=0.02143<0.05 cho ta kt lun bin Weight khng tun theo lut phn phi
chun.
Ct 5 - Drive-Ratio:
> phantich(Drive_Ratio)
trung.binh
min
max
3.0934211 2.2600000 3.9000000
> hist(Drive_Ratio)
trung.vi phuong.sai
3.0800000 0.2679691
do.lech
0.5176573
sai.so
0.0839751
Trang 8/14
> shapiro.test(Drive_Ratio)
Shapiro-Wilk normality test
data: Drive_Ratio
W = 0.9241, p-value = 0.01312
> tapply(Drive_Ratio,list(Cylinders),phantich)
$4
trung.binh
min
max
trung.vi phuong.sai
3.3489474 2.5300000 3.7800000 3.3700000 0.1566544
do.lech
0.3957959
sai.so
0.0908018
$5
trung.binh
3.9
min
3.9
max
3.9
trung.vi phuong.sai
3.9
NA
do.lech
NA
sai.so
NA
$6
trung.binh
3.0640000
min
2.6900000
max
3.7000000
trung.vi phuong.sai
2.9600000 0.1555378
do.lech
0.3943828
sai.so
0.1247148
$8
trung.binh
min
max
trung.vi phuong.sai
do.lech
sai.so
2.42250000 2.26000000 2.73000000 2.43000000 0.02776429 0.16662619 0.05891125
Trang 9/14
=> Tr s p=0.01312<0.05 cho ta kt lun bin Drive-Ratio khng tun theo lut phn
phi chun.
Ct 6 - Horsepower:
> phantich(Horsepower)
trung.binh
min
max
trung.vi phuong.sai
101.736842 65.000000 155.000000 100.000000 699.334282
> hist(Horsepower)
> shapiro.test(Horsepower)
do.lech
26.444929
sai.so
4.289934
do.lech
14.944537
sai.so
3.428512
Trang 10/14
$5
trung.binh
103
trung.vi phuong.sai
103
NA
do.lech
NA
sai.so
NA
min
max
trung.vi phuong.sai
85.000000 133.000000 112.500000 189.377778
do.lech
13.761460
sai.so
4.351756
$8
trung.binh
min
max
trung.vi phuong.sai
138.000000 125.000000 155.000000 136.500000 110.285714
do.lech
10.501701
sai.so
3.712912
$6
trung.binh
111.400000
min
103
max
103
=> Tr s p=0.066>0.05 cho ta kt lun bin Horsepower tun theo lut phn phi chun.
Ct 7 - Displacement:
> phantich(Displacement)
trung.binh
min
max
177.28947
85.00000 360.00000
> hist(Displacement)
> shapiro.test(Displacement)
trung.vi phuong.sai
148.50000 7899.07610
do.lech
88.87675
sai.so
14.41771
Trang 11/14
do.lech
21.567384
sai.so
4.947897
$5
trung.binh
131
min
131
max
131
trung.vi phuong.sai
131
NA
do.lech
NA
sai.so
NA
$6
trung.binh
190.30000
min
146.00000
max
258.00000
trung.vi phuong.sai
173.00000 1329.12222
do.lech
36.45713
sai.so
11.52876
$8
trung.binh
325.50000
min
267.00000
max
360.00000
trung.vi phuong.sai
334.00000 1077.42857
do.lech
32.82421
sai.so
11.60511
Trang 12/14
=> Tr s p=0.0001201<0.05 cho ta kt lun bin Displacement khng tun theo lut phn
phi chun.
Ct 8 - Cylinders:
> table(Cylinders)
Cylinders
4 5 6 8
19 1 10 8
Trang 13/14
Kt lun
Ti liu
[1] D. Abramson, Constructing school timetables using simulated annealing: sequential and parallel algorithms, Management Science, vol. 37, no. 1, pp. 98-113, 1991.
[2] E. Yu and K. S. Sung, A genetic algorithm for a university weekly course
timetabling problem, International Transactions in Operational Research, vol. 9, no.
6, pp. 703-717, 2002.
Trang 14/14