|
Algorithm 1 Search for with subsequent conditional independence test |
|
Require: Samples (), Range , Significance level , Permutation iterations P, Rejection iterations B
|
|
Initalise:
|
| 1: |
for do ▹Start: Search for
|
| 2: |
for do
|
| 3: |
Permute by cpt, call them
|
| 4: |
|
| 5: |
for do
|
| 6: |
Permute by cpt, call them
|
| 7: |
|
| 8: |
|
| 9: |
|
| 10: |
if then
|
| 11: |
Fail to reject
|
| 12: |
rejects
|
| 13: |
else
|
| 14: |
Reject
|
| 15: |
|
| 16: |
|
| 17: |
if then
|
| 18: |
|
| 19: |
return ▹End: Search for |
| |
|
| 20: |
▹Start: Conditional independence test |
| 21: |
for
do
|
| 22: |
Permute by cpt, call them
|
| 23: |
|
| 24: |
|
| 25: |
if
then
|
| 26: |
Fail to reject
|
| 27: |
else
|
| 28: |
Reject
|
|
▹End: Conditional independence test |