Stochastic approach for analytical fragility curves