Tugas Komstat 2

5
DISTRIBUSI F > x=seq(0,6,length=100) > hx=df(x,df1=4,df2=7) > plot(x,hx) > v1=c(6,10,15,25) > v2=c(9,13,17,25) > colors=c("red", "blue", "darkgreen", "gold", "black") > labels =c("v1=4,v2=7", "v1=6,v2=9", "v1=10,v2=13","v1=15,v2=17","v1=25,v2=25") > plot(x, hx, type="l", lty=2, xlab="x value",ylab="Density", main="Comparison of F Distributions") > for (i in 1:5){ + lines(x, df(x,v1[i],v2[i]), lwd=2, col=colors[i])} > legend("topright", inset=.05, title="Distributions", + labels, lwd=2, lty=c(1, 1, 1, 1, 2), col=colors) > x [1] 0.00000000 0.06060606 0.12121212 0.18181818 0.24242424 0.30303030 [7] 0.36363636 0.42424242 0.48484848 0.54545455 0.60606061 0.66666667 [13] 0.72727273 0.78787879 0.84848485 0.90909091 0.96969697 1.03030303 [19] 1.09090909 1.15151515 1.21212121 1.27272727 1.33333333 1.39393939 [25] 1.45454545 1.51515152 1.57575758 1.63636364 1.69696970 1.75757576 [31] 1.81818182 1.87878788 1.93939394 2.00000000 2.06060606 2.12121212

description

Source code komstat

Transcript of Tugas Komstat 2

DISTRIBUSI F> x=seq(0,6,length=100)> hx=df(x,df1=4,df2=7)> plot(x,hx)> v1=c(6,10,15,25)> v2=c(9,13,17,25)> colors=c("red", "blue", "darkgreen", "gold", "black")> labels =c("v1=4,v2=7", "v1=6,v2=9", "v1=10,v2=13","v1=15,v2=17","v1=25,v2=25")> plot(x, hx, type="l", lty=2, xlab="x value",ylab="Density", main="Comparison of F Distributions")> for (i in 1:5){+ lines(x, df(x,v1[i],v2[i]), lwd=2, col=colors[i])}> legend("topright", inset=.05, title="Distributions",+ labels, lwd=2, lty=c(1, 1, 1, 1, 2), col=colors)> x [1] 0.00000000 0.06060606 0.12121212 0.18181818 0.24242424 0.30303030 [7] 0.36363636 0.42424242 0.48484848 0.54545455 0.60606061 0.66666667 [13] 0.72727273 0.78787879 0.84848485 0.90909091 0.96969697 1.03030303 [19] 1.09090909 1.15151515 1.21212121 1.27272727 1.33333333 1.39393939 [25] 1.45454545 1.51515152 1.57575758 1.63636364 1.69696970 1.75757576 [31] 1.81818182 1.87878788 1.93939394 2.00000000 2.06060606 2.12121212 [37] 2.18181818 2.24242424 2.30303030 2.36363636 2.42424242 2.48484848 [43] 2.54545455 2.60606061 2.66666667 2.72727273 2.78787879 2.84848485 [49] 2.90909091 2.96969697 3.03030303 3.09090909 3.15151515 3.21212121 [55] 3.27272727 3.33333333 3.39393939 3.45454545 3.51515152 3.57575758 [61] 3.63636364 3.69696970 3.75757576 3.81818182 3.87878788 3.93939394 [67] 4.00000000 4.06060606 4.12121212 4.18181818 4.24242424 4.30303030 [73] 4.36363636 4.42424242 4.48484848 4.54545455 4.60606061 4.66666667 [79] 4.72727273 4.78787879 4.84848485 4.90909091 4.96969697 5.03030303 [85] 5.09090909 5.15151515 5.21212121 5.27272727 5.33333333 5.39393939 [91] 5.45454545 5.51515152 5.57575758 5.63636364 5.69696970 5.75757576 [97] 5.81818182 5.87878788 5.93939394 6.00000000>

SEBARAN CHI-SQUARE> x=seq(0,30)> y1=dchisq(x,20)> y2=dchisq(x,28)> y3=dchisq(x,10)> y4=dchisq(x,12+ )> y4=dchisq(x,12)> plot(x,y1,type="l")> lines(x,y2,lty=2)> lines(x,y3,lty=3)> lines(x,y4,lty=4)>

TUGAS KOMPUTASI STATISTIKAMEMBUAT GRAFIK DISTRIBUSI F DAN SEBARAN CHI-SQUARE

DISUSUN OLEH :

HERWINA EVA YULITASARI125090500111027DESSY SHINTYA DWI N.125090500111003MARIA NOVITA RAGA125090520111001

PROGRAM STUDI STATISTIKAJURUSAN MATEMATIKAFAKULTAS MATEMATIKA DAN ILMU PENGETAHUAN ALAMUNIVERSITAS BRAWIJAYA2014