I'm upgrading my 1d binary hypothesis testing algorithm to sampling based n-d binary hypothesis testing algorithm:
Right now, I'm verifing a sub-function "sampling from probability distribution - nd" using the following verification flowchart:
I've finished 1-d test, moving on to 2-d test. The 2-d intermediate result is as follows: