The purpose of the Bayesian approach is to integrate multiple sources of information into one final best-estimate with a unique algorithm, and a few applications have been developed for a variety of studies. This technical note provides two Bayesian algorithms for earthquake studies: the development of earthquake source-to-site distance distributions and the smoothing of earthquake rates in a region. In addition to the derivations, this note also provides demonstrations on the basis of real earthquake data to provide a better explanation of the two Bayesian algorithms proposed.