This is somewhat related to a previous question I asked
I have three variables in a programming function, and a 4th variable depends on these. I have to test the dependent variable against all combinations of the three variables:
- Var A: 2 possible values
- Var B: 3 possible values
- Var C: 5 possible values
Now I know that there are 30 combinations of these three variables (2x3x5), but how do I draw this in table form?
If each variable was binary, I could draw a truth table: 000, 001, 010 etc. But is there an equivalent system for the combination I have detailed here?
Regards
Brian
Excel is not the end of the world. You have a three-dimensional array, and if you want to render its three-dimensional structure "graphically" there is no other way than to draw "perspectively" a $2\cdot 3\cdot5$ lattice of black dots, and to annotate each of these dots with the intended value $f(A,B,C)$. As $A$ can take only two different values the $30$ dots come in two layers à $3\cdot5$ dots, which might simplify the figure.
Given that there are only $30$ values of the independent variable $(A,B,C)$ you can as well list them in lexicographic order $$(a_1,b_1,c_1), \ (a_1,b_1,c_2),\ldots, \ (a_1,b_1,c_5),\ (a_1,b_2,c_1),\ldots,\ (a_1,b_2,c_5), \ldots, \ (a_2,b_3,c_5)\ ,$$ and every reader will be able to follow step for step.