Estadísticas de Hierarchical Bayesian Models for inference Using RR Lyrae as standard candles in the Gaia Era