new derivation for confidence interval on 1D from 2D pdf