The probability of positivity in symmetric and quasisymmetric functions