Professional Documents
Culture Documents
MATRICES
GL-5001 Pemodelan Geologi
Matrix Algebra
2 5 3 4
A
1 2 7 1
a 2 x 4 matrix.
Asep HP Kesumajana
a11 a12
A a21 a22
a
31 a32
Equality of matrices
SiO2
Specimen1 43.70
Specimen2 44.97
.
.
.
.
.
.
Specimen130 45.33
.
.
. . .
.
.
.
. . .
.
13.32 2.77 . . . 0.08
3 1 2
A 4 2 5
1 1 6
a13
a23
a33
3 1 2
B 4 2 5
1 1 6
Addition of matrices
A + B = (aij + bij)
Example:
3 1 2
A 4 2 5
1 1 6
1 1 3
B 2 7 4
0 2 6
4 0 5
A B 6 9 1
1 3 12
Multiplication by a scalar
cA = (caij)
2 3 5 3 1 27 53
2 8
The result is a row vector.
3
The result is a column vector 1 4 1 2 15
Diagonal Matrix
4
A
7
4 2
0 1
3 2
1 6
3 5
B 2 1
4 3
19
16
AB
35
32
15
23
44
29
3 0 0 1 2 3 6
A 0 4 0 3 4 12 16
0 0 2 5 6 10 12
AB<>BA
2 1 6 3 0 0 6 4 12
A 3 4 1 0 4 0 9 16 2
1 2 3 0 0 2 3 8 6
Identity matrix
Inverse matrix
1 0 0
0
1
0
0 0 1
10
Transpose of a matrix
Symmetric matrix
3 4 1
A
2 7 5
2 5 3
A 5 1 4
3 4 9
3 2
T
A 4 7
1 5
11
12
Orthogonal matrices
cos
sin
sin cos
cos sin
Translation:
sin 1 0
cos 0 1
equation:
Tx translation in x direction
Ty translation in y direction
x = x + Tx
y = y + Ty
matrix:
13
0
1
Ty
0
1
14
equation:
x = x cos y sin
y = y cos + x sin
Matrix:
equation:
cos sin 0
simplified:
Matrix:
cos
15
sin
cos
(1 cos ) yr xr sin
0
1
16
equation:
Sx scale in x direction
Sy scale in y direction
x = x Sx
y = y Sy
equation:
matrix:
Sx
0
Sy
0
0
1
x = x Sx + (1 Sx)xs
y = y Sy + (1 Sy)ys
Simplified:
Sx scale in x direction
Sy scale in y direction
x = xs + (x xs) * Sx
y = ys + ( y ys)* Sy
matrix:
Sx
17
0
Sy
1 S y ys
0
1
S
S
S y sin 0
x
x
1 0
S x cos S y sin 0
y
18
1 Tx Ty 1
Tx
Ty
For (x,y)
S x cos
S y sin
S y cos
Ty
0
1
19
20
cos
sin
(1 cos ) x y sin
p
p
sin
cos
(1 cos ) y p x p sin
S x cos
S x sin
S (1 cos ) x S y sin 1 S x
x
p
x p
x
p
Sx
0
0
0
1 1 S x x p
0
Sy
1 S y
y
0
1
S y sin
S y cos
S y (1 cos ) y p S y x p sin 1 S y y p
0
1
S x cos
S y sin
0
S y cos
S x sin
0
S x cos
S y sin
0 1 0 0
S y cos
S x sin
0 0 1 0
x
p
S x cos
S y sin
0
S y cos
S x sin
0
equation:
21
Skew / Shear
Reflection
Shear in x direction
1
0 0
1 0
0 1
Reflection to X axis
1 0 0
Reflection to Y axis
-5
1 0 0
1 0
0 0 1
22
Shear in y direction
1 SHy 0
1
0
0
0
1
0
-4
0 0
1 0
0 1
-4
-5
23
24
Reflection
0 1 0
Markov Chain
0
Asep HP Kesumajana
-6
25
Markov Chain
27
28
Notation:
Artificial music.
Spread of epidemics.
Traffic on highways.
Occurrence of accidents.
Growth and decay of living organisms.
Emission of particles from radioactive sources.
Number of people waiting in a line (queue).
Arrival of telephone calls at a particular telephone exchange.
29
Notation (cont)
Likewise,
31
30
This week:
40% watched station X
60% watched station Y.
each week:
15% of the X viewers switched to station Y
5% of the Y viewers switched to station X.
32
Example 1:
Example 1:
From:
To:
watched station X:
(1.00 - 0.15) * 0.40 + 0.05 * 0.60 = 0.37
0.85 * 0.40 + 0.05 * 0.60 = 0.37
or
watched station Y:
or
0.85
0.05
0.15
0.95
P1
0
.
15
0
.
95
0
.
60
0
.
63
P1 = [0.37,0.63]T
33
Example 1:
K=2:
or
P2
0.15 0.95 0.15 0.95 0.60 0.654
in general:
P2
0.15 0.95 0.63 0.654
P k = Ak P 0
35
34
36
37
38
Third level
First level
SS:
SH:
0.28
0.24
0.48
LS:
LS:
39
40
First level
SS:
LS:
SS:
SH:
0.24
0.28
0.48
41
42
Third level
First level
SH:
LS:
SS:
SH:
0.24
0.24
0.52
43
44
1st level
(initial/
state)
LS
SS
SH
LS
0.28
0.24
0.48
SS
0.24
0.28
0.48
SH
0.24
0.24
0.52
45
46
Overlaying lithology
Starting
lithology
If matrix
LS
SS
SH
LS
10
30
60
SS
30
10
60
SH
30
30
40
AxA=A2
1st level
(initial/
state)
GL-5001 - Pemodelan Geologi
LS
SS
SH
LS
0.28
0.24
0.48
SS
0.24
0.28
0.48
SH
0.24
0.24
0.52
LS
P0
47
SS
SH
P1 :
Iterate to find P2
(3rd order Markov Chain)
P2 = P1 x A:
49
50
P2 = P1 x A = P0 x A x A = P0 x A2
AND
51
In General: Pn = Pn-1 x A = P0 x An
52
For P3:
LS
SH
SS
SH
SS
LS
SH
SS
LS
SH
CO
SH
SS
SH
SS
SH
SS
SH
SS
CO
SH
LS
SH
SS
SH
Downward prediction
Frequency matrix
SH
SS
LS
CO
SH
7
5
4
2
SS
8
7
0
0
LS
1
2
0
0
CO
1
1
0
0
17
15
4
2
18
15
38
SH
SS
LS
CO
0.412 0.471 0.059 0.059
0.333 0.467 0.133 0.067
1
0
0
0
1
0
0
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
53
LS
SH
SH
SS
SH
SS
SS
LS
SH
SS
LS
SH
SH
SH
CO
SH
SS
SH
SH
SS
SH
SS
SH
SS
SS
CO
SH
SH
LS
SH
SH
SH
SS
SS
SS
SS
SS
SS
SH
?
?
55
54
SS
SS
SH
SS
?
SH
SS
LS
CO
SH
0.427
0.461
0.444
0.444
SS
0.435
0.403
0.444
0.444
LS
0.084
0.086
0.056
0.056
CO
0.054
0.050
0.056
0.056
SS
SS
SH
SS
SH
SH
SS
LS
CO
SH
0.444
0.449
0.427
0.427
SS
0.422
0.420
0.435
0.435
LS
0.082
0.079
0.084
0.084
CO
0.053
0.052
0.054
0.054
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
LS
SH
SH
SS
SH
SS
SS
LS
SH
SS
LS
SH
SH
SH
CO
SH
SS
SH
SH
SS
SH
SS
SH
SS
SS
CO
SH
SH
LS
SH
SH
SH
SS
SS
SS
SS
SS
SS
SH
?
?
56
Upward prediction
Frequency matrix
SH
SS
LS
CO
SH
7
8
1
1
SS
5
7
2
1
LS
4
0
0
0
CO
2
0
0
0
18
15
3
2
17
15
38
SH
0.39
0.53
0.33
0.50
SS
LS
CO
0.28 0.222 0.111
0.47
0
0
0.67
0
0
0.50
0
0
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
?
?
LS
SH
SH
SS
SH
SS
SS
LS
SH
SS
LS
SH
SH
SH
CO
SH
SS
SH
SH
SS
SH
SS
SH
SS
SS
CO
SH
SH
LS
SH
SH
SH
SS
SS
SS
SS
SS
SS
57
SH
?
SH
LS
SH
SH
SH
SS
LS
CO
SH
0.43
0.46
0.49
0.46
SS
0.44
0.37
0.40
0.37
LS
0.09
0.12
0.07
0.11
CO
0.04
0.06
0.04
0.06
SH
SH
LS
SH
SH
SH
SS
LS
CO
SH
0.45
0.44
0.45
0.44
SS
0.40
0.41
0.39
0.40
LS
0.10
0.10
0.11
0.10
CO
0.05
0.05
0.05
0.05
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
?
?
LS
SH
SH
SS
SH
SS
SS
LS
SH
SS
LS
SH
SH
SH
CO
SH
SS
SH
SH
SS
SH
SS
SH
SS
SS
CO
SH
SH
LS
SH
SH
SH
SS
SS
SS
SS
SS
SS
58
SH