On positivity of orthogonal series and its applications in probability