Stochastic analysis of surface roughness