| |
Algorithm 1 The EM Algorithm for estimating Ω | |
| |
1: | Initialize , and for i = 1, …, n and j,j′ = 1, …,p; |
2: | Initialize sj,j′ for 1 ≤ j,j′ ≤ p using the Line 1 above, and then estimate by maximizing criterion (7); {Start outer loop} |
3: | repeat |
4: | E-step: estimate S in (6); {Start inner loop} |
5: | repeat |
6: | for i = 1 to n do |
7: | if j = j′ then |
8: | Update using RHS of equation (18) for j = 1, …, p; |
9: | else |
10: | Update using RHS of equation (17) for j = 1, …, p and then set for 1 ≤ j ≠ j′ ≤ p; |
11: | end if |
12: | end for |
13: | Update for 1 ≤ j,j′ ≤ p; |
14: | until The inner loop converges; |
15: | M-step: update by maximizing criterion (7); |
16: | until The outer loop converges. |
|