Contributions to Distributed Learning and Selective Inference