Inference on joint dependency structures