Uncertainty Analysis And Optimization By Using The Orthogonal Polynomials