functions obtaining (joint) (conditional) distribution of ki, ibs. no docs yet