This paper deals with problems which occur in discrete multi-dimensional statistics and shows how they are solved using APL2. In particular, the APL2 feature primitive function with axis proves to be helpful and allows smart solutions to the problems of computing conditional probability tables and performing the iterative proportional fitting procedure. The implementation is done using the literate APL2-style.
/lp/association-for-computing-machinery/concrete-multidimensional-statistics-in-apl2-NLp0fBTDWO