Stochastic Processes Applied to the Spectroscopic Diagnostic of Hydrogen in Edge Plasmas