estimate_uncertainty function

Estimate uncertainty parameters