45
Senin, 12 November 2012 FIXED, RANDOM & MIXED MODELS

FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

  • Upload
    vanhanh

  • View
    226

  • Download
    1

Embed Size (px)

Citation preview

Page 1: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Senin, 12 November 2012

FIXED, RANDOM &

MIXED MODELS

Page 2: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Outline’s

� Introduction

� Single Factor Models

� Two Factor Models

� EMS (Expected Mean Square) RulesEMS (Expected Mean Square) Rules

� The Pseudo-F Test

Page 3: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Introduction

� Setiap peneliti sebelum me-runningeksperimen harus menentukan jenislevelnya.

� Jenis level yaitu Fixed, Random atau Mixed

Page 4: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Introduction

Fixed

� Level ditentukan oleh eksperimenter.

� Kesimpulan hanya berlaku untuk level yg telahditentukan.

� Tidak bisa digeneralisasi untuk populasi.� Tidak bisa digeneralisasi untuk populasi.

� Biasanya : level terdiri dari ekstrim bawah, tengah, atas

Page 5: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Introduction

RANDOM

� Experimenter tidak menentukan level

� Kesimpulan : bisa digeneralisasi untuk populasi

� Kelemahan : level yang terpilih tdkmencerminkan kondisi sebenarnya.mencerminkan kondisi sebenarnya.

� Untuk kasus single faktor, perbedaannya hanyaterkait dengan generalisasi kesimpulan.

Page 6: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Introduction

MIXED

� Kombinasi Fixed dan Random

� Menutup kelemahan masing-masing

� Lebih sesuai dengan kondisi nyataLebih sesuai dengan kondisi nyata

Page 7: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

Model Matematika Completely Random Design

( Bab III , Hicks )

ijjijY ετµ ++= Fix atau Random

Asumsi pada

Page 8: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

Level jenis Fixed :

Masih INGAT CONTOH 3.1 di BAB III , Hicks halaman 50-51 ? ( resistance to abrasion )halaman 50-51 ? ( resistance to abrasion )

Kenapa levelnya termasuk jenis fixed ?

Page 9: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

ijjijY ετµ ++= Fix atau Random

Level jenis Fixed :

� Asumsi pada

Fix 0)(11

=−= ∑∑==

µµτk

jj

k

jj

Page 10: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

Level jenis Fixed :

� Cara Analisis ( Lihat BAB III , Hicks )

� Expected Mean Square ( EMS )

EMS df Source

� Hipotesis

j semuauntuk ,0:0 =jH τ

2

2

)1(

1

ε

τε

σε

φστ

+−

nk

nk

ij

j

Page 11: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

� Level jenis Random :

Masih INGAT CONTOH 3.2 di BAB III , Hicks halaman 65-66 ? ( quality of the incoming material )

Kenapa levelnya termasuk jenis random ?

Page 12: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

ijjijY ετµ ++= Fix atau Random

� Level jenis Random :

Random ),0(NID 2τσ

Normal and Independent Disitribution

� Asumsi pada

Page 13: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Single Factor Models

� Level jenis Random :� Cara Analisis ( Lihat BAB III , Hicks )

� Expected Mean Square ( EMS )

EMS df Source

� Hipotesis

0: 20 =τσH

2

22

)1(

1

ε

τε

σε

σστ

+−

nk

nk

ij

j

Page 14: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Two Factor Models

Model Matematika ( Bab VI , Hicks , hal. 159-160 )

ABBAY ijkijjiij )(++++= εµ

nkbjai ,...,2,1,....,2,1,..,2,1 ===

Page 15: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Two Factor Models

Page 16: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Two Factor Models

Page 17: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Two Factor Models

Page 18: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Expected Mean Square (EMS)

� Penting untuk eksperimen yg kompleks (ex : random, mixed).

� EMS untuk menguji signifikasi suatu faktor(melakukan uji pseudo-F ).(melakukan uji pseudo-F ).

� EMS berfungsi sebagai denominator (pembagi) dalam uji pseudo-F

Page 19: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Langkah-Langkah Merumuskan EMS

1. Tulis sumber variasi pd kolom paling kiri.

2. Tulis indeks sbg judul kolom (i,j,k), diatas indeksditulis jenis levelnya ( F u / fixed, & R u / Random), diatasnya lagi tulis masing-masing jumlah levelnya (diatas I,j) dan jumlah replikasi (diatas K).diatasnya lagi tulis masing-masing jumlah levelnya (diatas I,j) dan jumlah replikasi (diatas K).

3. Tulis (kopi )jumlah level ke dalam tabel. Syarat : jumlah level tdk boleh muncul di baris yang adaindeks bersangkutan. Di kolom k, ditulis replikasinyasaja.

Page 20: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Langkah-Langkah Merumuskan EMS

4.Tulis angka 1 pada baris dimana indeks ditulis dalam tanda “ ( )”.

5. Isi sel yg lain dgn angka 0 & 1. Angka 0 u/ jika level pd kolom tsb fixed, dan angka 1 jika levelnya random.

Page 21: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Langkah-Langkah Merumuskan EMS

6. Rumus EMS :

a. EMS dihitung baris demi baris.

b. Tutup kolom, jk indeks kolom muncul pd baris ygsedang dicari.

c. Kalikan angka-angka yg ada. Akan mjd koef. Pd rumusc. Kalikan angka-angka yg ada. Akan mjd koef. Pd rumusEMS.

Page 22: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Contoh 1 ( Hicks, hal 163)

� Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih secara random. Material yang diuji oleh laboran dimasukan dalam botol dan diuji viskositasnya dengan 5 mesin yang ada. Masing-masing laboran menguji sebanyak 2 kali.masing laboran menguji sebanyak 2 kali.

Laboran ( Technician = T ) → Random

Mesin ( Machine = M → Fixed

Page 23: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Contoh 1 ( Hicks, hal 163)

Page 24: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Deciding What to Use as the Denominator of

Your F-test

� For an all fixed model the Error MS is the denominator of all F-tests.

� For an all random or mix model,

1. Ignore the last component of the expected mean square.

2. Look for the expected mean square that now looks this expected mean square. expected mean square.

3. The mean square associated with this expected mean square will be the denominator of the F-test.

4. If you can’t find an expected mean square that matches the one mentioned above, then you need to develop a Synthetic Error Term

Page 25: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Contoh 1 ( Hicks, hal 163)

22 /102513

FEMS k j i df Source

R F R

2 5 4

σσ MSMST +

2)(

22

22

22

11120

/220112

/822044

/102513

ε

ε

ε

ε

σε

σσ

φσσ

σσ

ijk

errorTMTMij

TMMTMij

errorTTj

MSMSTM

MSMSMM

MSMST

+

++

+

Perhatikan :Uji F ( Uji pseudo F ) untuk M bukan dibagi dengan MS error

Page 26: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Contoh 2

Page 27: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Contoh 2

Page 28: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Contoh 3 :

Page 29: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Example 4 : ( Stat485 Lecture)

In this Example a Taxi company is interested in comparing the effects of three brands of tires (A, B and C) on mileage (mpg). Mileage will also be effected by driver. The company selects at random b = 4 drivers at random from its collection of drivers. Each driver has n = 3 opportunities to use each brand of tire in which mileage is measured.to use each brand of tire in which mileage is measured.

Dependent� Mileage

Independent� Tire brand (A, B, C),

� Fixed Effect Factor

� Driver (1, 2, 3, 4),� Random Effects factor

Page 30: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

The DataDriver Tire Mileage Driver Tire Mileage

1 A 39.6 3 A 33.91 A 38.6 3 A 43.21 A 41.9 3 A 41.31 B 18.1 3 B 17.81 B 20.4 3 B 21.31 B 19 3 B 22.31 C 31.1 3 C 31.31 C 29.8 3 C 28.71 C 26.6 3 C 29.71 C 26.6 3 C 29.72 A 38.1 4 A 36.92 A 35.4 4 A 30.32 A 38.8 4 A 352 B 18.2 4 B 17.82 B 14 4 B 21.22 B 15.6 4 B 24.32 C 30.2 4 C 27.42 C 27.9 4 C 26.62 C 27.2 4 C 21

Page 31: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Asking SPSS to perform Univariate ANOVA

Page 32: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Select the dependent variable, fixed factors, random factors

Page 33: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

The Output

Tests of Between-Subjects Effects

Dependent Variable: MILEAGE

28928.340 1 28928.340 1270.836 .000

68.290 3 22.763a

2072.931 2 1036.465 71.374 .000

87.129 6 14.522b

SourceHypothesis

Error

Intercept

Hypothesis

Error

TIRE

Type IIISum of

Squares dfMean

Square F Sig.

87.129 6 14.522

68.290 3 22.763 1.568 .292

87.129 6 14.522b

87.129 6 14.522 2.039 .099

170.940 24 7.123c

Error

Hypothesis

Error

DRIVER

Hypothesis

Error

TIRE * DRIVER

MS(DRIVER)a.

MS(TIRE * DRIVER)b.

MS(Error)c.

The divisor for both the fixed and the random main effect is MSAB

This is contrary to the advice of some texts

Page 34: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

The Anova table for the two factor model

(A – fixed, B - random)

( ) ijkijjiijky εαββαµ ++++=

Source SS df MS EMS F

A SSA a -1 MSA MSA/MSAB

B SSA b - 1 MSB MSB/MSError

( )∑=−++

a

iiAB a

nbn

1

222

1ασσ

22Bnaσσ +B SSA b - 1 MSB MSB/MSError

AB SSAB (a -1)(b -1) MSAB MSAB/MSError

Error SSError ab(n – 1) MSError 2σ

Bnaσσ +

22ABnσσ +

Note: The divisor for testing the main effects of A is no longer MSError but MSAB.

References Guenther, W. C. “Analysis of Variance” Prentice Hall, 1964

Page 35: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

The Anova table for the two factor model

(A – fixed, B - random)

( ) ijkijjiijky εαββαµ ++++=

Source SS df MS EMS F

A SSA a -1 MSA MSA/MSAB

B SSA b - 1 MSB MSB/MSAB

( )∑=−++

a

iiAB a

nbn

1

222

1ασσ

222BAB nan σσσ ++B SSA b - 1 MSB MSB/MSAB

AB SSAB (a -1)(b -1) MSAB MSAB/MSError

Error SSError ab(n – 1) MSError 2σ

BAB nan σσσ ++

22ABnσσ +

Note: In this case the divisor for testing the main effects of A is MSAB . This is the approach used by SPSS.

References Searle “Linear Models” John Wiley, 1964

Page 36: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 37: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 38: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 39: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 40: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 41: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 42: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Pseudo – F Test

Page 43: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

Inspirasi Hari Ini

Page 44: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih
Page 45: FIXED, RANDOM & MIXEDMODELS · diatasnya lagitulis masing-masing jumlah levelnya ... Pd rumus EMS. Contoh 1 ( Hicks, hal 163) Viskositas sebuah slurry diuji oleh 4 laboran yang dipilih

http://www.stat.purdue.edu/~kuczek/stat514/