Applications of Bayesian hierarchical models in gene expression and product reliability