Algorithm 1.
Algorithm for projected distance correlation with OGA
Require: Observed random sample vectors xn ∈ Rn×p, yn ∈ Rn×q, zn ∈ Rn×r. | |
1: | for i = 1 to p do |
2: | Initialize , T0 = ϕ. |
3: | for k = 1 to do |
4: | Update the active set by , where . |
5: | Update the estimate by , where is the orthogonal projection onto Tk. |
6: | Update the residue . |
7: | Record . |
8: | end for |
9: | Find k* = argminkHDICk. |
10: | Select . |
11: | end for |
12 | Calculate squared sample projected distance correlation and the corresponding p-value. |