Professional Documents
Culture Documents
Perancangan Eksperimen Week 2
Perancangan Eksperimen Week 2
Week-2
By : L. L. S
The Analysis of Variance
• The name “analysis of variance” stems from a partitioning of the
total variability in the response variable into components that are
consistent with a model for the experiment
• The basic single-factor ANOVA model is
i 1, 2,..., a
yij i ij ,
j 1, 2,..., n
3
The Analysis of Variance
• In general, there will be a levels of the factor, or a treatments, and n replicates of the
experiment, run in random order…a completely randomized design (CRD)
• N = an total runs
• We consider the fixed effects case…the random effects case will be discussed later
• Objective is to test hypotheses about the equality of the a treatment means
4
Models for the Data
There are several ways to write a model for the data:
5
Models for the Data (Con’t)
Keterangan :
Yij = Observasi ke-ij
6
Fixed or Random Factor?
• Fixed effect Model :
- Percobaan sebanyak a Dipilih oleh pelaku percobaan
- Melakukan test hipotesis tentang rata-rata percobaan atau parameter model yang lain.
- Kesimpulan hanya dapat diterapkan pada tingkat faktor ysng dipertimbangkan dalam
analisis.
7
Analysis Of
The Fixed Effect Models
H 0 : 1 2 a
H 1 : At least one mean is different = µi ≠ µj
8
Analysis Of
The Fixed Effect Models (Con’t)
9
Analysis Of
The Fixed Effect Models (Con’t)
a n a n
( yij y.. )
2
i. ..
[( y y ) ( y ij y i. )] 2
i 1 j 1 i 1 j 1
a a n
n ( yi . y.. ) 2 ( yij yi . ) 2
i 1 i 1 j 1
SST SSTreatments SS E
SST SSTreatments SS E
10
Analysis Of
The Fixed Effect Models (Con’t)
• Total Variabilitas data yang telah diukur melalui total corrected sum of square, dapat
dibagi menjadi:
- Sum of Square perbedaan antara rata-rata percobaan dan rata-rata total ditambah sum
of squares perbedaan dari pengamatan dalam percobaan dari rata-rata percobaan
• SS treatments = Sum of Square Due to error (between treatment)
• SS error = Sum of square due to erreoe (within treatment)
11
The Analysis of Variance is Summarized in
a Table
F0 F , a 1, a ( n 1)
12
The Analysis of Variance
• Total variability is measured by the total sum of squares:
a n
SST ij ..
( y y ) 2
i 1 j 1
• The basic ANOVA partitioning is:
a n a n
( yij y.. ) 2
i. ..
[( y y ) ( y ij y i. )] 2
i 1 j 1 i 1 j 1
a a n
n ( yi . y.. ) 2 ( yij yi . ) 2
i 1 i 1 j 1
SST SSTreatments SS E
13
The Analysis of Variance (Con’t)
• While sums of squares cannot be directly compared to test the hypothesis of equal
means, mean squares can be compared.
• A mean square is a sum of squares divided by its degrees of freedom
• If the treatment means are equal, the treatment and error mean squares will be
(theoretically) equal.
• If treatment means differ, the treatment mean square will be larger than the error
mean square.
14
Contoh Kasus (ANOVA)
• Consider an investigation into the formulation of a new “synthetic” fiber that
will be used to make cloth for shirts
• The response variable is tensile strength
• The experimenter wants to determine the “best” level of cotton (in wt %) to
combine with the synthetics
• Cotton content can vary between 10 – 40 wt %; some non-linearity in the
response is anticipated
• The experimenter chooses 5 levels of cotton “content”; 15, 20, 25, 30, and 35
wt %
• The experiment is replicated 5 times – runs made in random order
15
Contoh Kasus (Con’t)
16
Solution Using MINITAB:
ANOVA Computer Output
(Design-Expert)
Response:Strength
ANOVA for Selected Factorial Model
Analysis of variance table [Partial sum of squares]
Sum of Mean F
Source Squares DF Square Value Prob > F
Model 475.76 4 118.94 14.76 < 0.0001
A 475.76 4 118.94 14.76 < 0.0001
Pure Error161.20 20 8.06
Cor Total 636.96 24
17
Contoh Kasus 2 (ANOVA)
• Seorang engineer tertarik untuk memastikan apakah penentuan radio frequency (RF)
mempengaruhi etch rate (gelombang/waktu). Ia telah melakukan sebuah percobaan
random dengan menggunakan empat level power RF dan 5 replikasi. Dengan hasil
percobaan sebagai berikut:
Hipotesis:
Ho = Tidak terdapat perbedaan rata-rata
H1 = Terdapat paling sedikit dua rata-rata yang tidak sama
19
20
Solution From Case Study 2
21
Pemeriksaan Kecukupan Model
Pemeriksaan asumsi sangatlah penting:
• Normalitas
• Independensi: plot dari residual dalam urutan waktu
• Konstan/homogenitas ragam (variance): plot dari residual vs. nilai
22
Residual
Selisih antara nilai yang diamati dengan nilai yang diramalkan
melalui model Kesalahan peramalan (Error of prediction)
23
Asumsi Normalitas
• Kesalahan yang sering dilakukan dalam plot probabilitas normal
adalah adanya satu residual yang jauh lebih besar dibanding yang lain
= outlier
• Outliers dapat mendistorsi analisis ragam oleh karena itu perlu
investigasi mendalam
• Seringkali disebabkan karena kesalahan perhitungan, data coding
atau copying error
24
25
Plot Residual Terhadap Waktu
26
Plot residual Terhadap fitted values
Defect yang biasanya muncul dalam plot inimerupakan ragam tidak
konstan (non-constant variance) homogenitas ragam dilanggar
(homogeneity of variances is violated)
Problem yang lebih serius akan terjadi pada rancangan yang tidak
berimbang: bila level Faktor yang memiliki ragam lebih besar justru
memiliki ukuran sampel yang lebih kecil.
Untuk menghindari: pilih ukuran sampel yang sama (bila
memungkinkan)
27
BOX PLOT
BOX PLOT
• Outlier artinya suatu angka yang memiliki nilai yang sangat berbeda jauh
dengan nilai dari angka lainya pada data, angkanya bernilai 3/2 lebih besar
dari quartil yang paling atas atau angkanya bernilai 3/2 lebih kecil dari
quartil terendah.
• Quartil Tertinggi artinya angka yang terbesar ke 75 jika data diurutkan. Jadi
25 persen angka dalam data bernilai lebih tinggi dari angka quartil ini.
• Median adalah nilai tengah
• Quartil Terendah artinya angka yang terbesar ke 25 jika data diurutkan. Jadi
25 persen angka dalam data bernilai lebih rendah dari angka quartil ini.
• Box plot biasanya juga digunakan untuk mendeteksi adanya Pencilan atau
tidak, tapi sifatnya hanya sebagai deteksi awal. Lebih bagus lagi jika
dilakukan uji statistik untuk melihat ada atau tidaknya outlier.
THE END
C U next Week!!