= ( )
= ( 20)
205
= ( )
6
= ( 2,5 )
= 0,9938
1 26 2
32 1 ( )
b. 2 = 20 2(3) 2 3
= (20 32)
3226 2026
= ( ) ( )
3 3
= ( 2) ( = 2)
= 0,9772 0
= 0,9772
1 41 2
45 1 ( )
c. 3 = 32 2(2) 2 2
= (32 45)
4541 3241
= ( ) ( )
2 2
= ( 2) ( = 4,5)
= 0,9772 0
= 0,9772
3. Menghitung bobot
Setelah memperoleh luas masing-masing distribusi, kemudian hitung
bobotnya
1 0,9938 0,9938
1 = = = 2,9482 = 0,3371
1 +2 +3 0,9938+0,9772+0,9772
2 0,9772 0,9772
2 = = = 2,9482 = 0,3314
1 +2 +3 0,9938+0,9772+0,9772
MCOLUMN u x1 x2 x3 y
mconstant n i
random n u;
uniform 0 1.
do i=1:n
if u(i)<=0.3371
random 1 x1; #dist normal pertama
normal 5 6.
let y(i)=x1
else if u(i)<=0,6685
random 1 x2; #dist normal kedua
normal 26 3.
let y(i)=x2
else
random 1 x3; #dist normal ketiga
normal 41 2.
let y(i)=x3
endif
enddo
name y "Random komposisi"
endmacro