Inference for joint dependency structure