Professional Documents
Culture Documents
Komstat
Komstat
G14110055
Tugas Komstat 2
Data:
Yi
10
12
11
14
13
15
13
16
Soal.
X1i
1
2
3
4
-1
-2
-3
-4
1. Input y, X1,X2
PROC IML;
reset print;
y={10, 12, 11, 14, 13, 15, 13, 16};
x1={1, 2, 3, 4, -1, -2, -3,-4};
x2={1, 2, -1, -2, 1, 2, -1, -2};
2. Buatlah :
a. Matriks X
satu=j(8,1,1);
X=satu||x1||x2;
b. Matriks XX
xx=x`*x;
c. Vektor Xy
xy=x`*y;
d. Buat Matriks A =
yx=y`*x;
yy=y`*y;
A=(xx||xy)//(yx||yy);
3. Tampilkan Output
a. y=b0
b. y=b0+ b2X2
X2i
1
2
-1
-2
1
2
-1
-2
d. y=b0+ b1X1
e. y=b0