This paper describes several applications in astronomy and cosmology that are addressed using probabilistic modelling and statistical inference.