I wanted to create the complete sample space of Binomial distribution for a given value of n & k. So Bin(n = 4, k =2)
should return something like:
1 1 0 0
1 0 1 0
1 0 0 1
0 1 1 0
0 1 0 1
0 0 1 1
I wanted to create the complete sample space of Binomial distribution for a given value of n & k. So Bin(n = 4, k =2)
should return something like:
1 1 0 0
1 0 1 0
1 0 0 1
0 1 1 0
0 1 0 1
0 0 1 1