# Confusion about equation (1.37) in the UQLab User Manual Structural Reliability (Rare Event Estimation)

**URL:** <https://uqworld.org/t/confusion-about-equation-1-37-in-the-uqlab-user-manual-structural-reliability-rare-event-estimation/1756>\
**Category:** Community Q&A and How To\
**Tags:** reliability\
**Created:** [December 8, 2022, 4:18am UTC](https://uqworld.org/t/confusion-about-equation-1-37-in-the-uqlab-user-manual-structural-reliability-rare-event-estimation/1756 "2022-12-08T04:18:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jingyu\_Liu](https://uqworld.org/user_avatar/uqworld.org/jingyu_liu/32/1140_2.png) [@Jingyu\_Liu](https://uqworld.org/u/Jingyu_Liu)\
**Post date:** [December 8, 2022, 4:18am UTC](https://uqworld.org/t/confusion-about-equation-1-37-in-the-uqlab-user-manual-structural-reliability-rare-event-estimation/1756/1 "2022-12-08T04:18:03Z")

</div>

Hello all,

I am really confused about the expression of MCS estimatior (Page.11, eqn (1.37)) in Structural Reliability manual (Version:UQLAB-V2.0-107):

> **[UserManual\_Reliability.pdf](https://uqftp.ethz.ch/uqlab_doc_pdf/2.0.0/UserManual_Reliability.pdf)**
>
> 3.72 MB

Personally, I think it is inaccurate or incorrect

As an estimator of the true P\_f, \hat{P\_f} should be a random variable. According to the Central Limit Theorem, when the number of samples is large enough, the distribution of \hat{P\_f} will converge to normal distribution. However, I think the mean and variance of equation given in eqn (1.37) is inaccurate or inappropriate:

1. For mathematical expression of normal distributions, it might be better to use the variance, instead of standard deviation?

2. For the mean value, I think it should theoretically be P\_f, which is the true mean or true failure probability, instead of \hat{P\_f}.

3. For the variance, I think it should be the ture variance \frac{P\_f(1-P\_f)}{N}. I am really confused about the reason why the standard deviation is \sqrt{\hat{P\_f}(1-\hat{P\_f})} (i.e., it is using the estimated value and is not divided by N). Intuitively speaking, at least the variance should decrease along with the increasing number of N.

Jingyu

---

<div class="post-metadata">

**Author:** ![xujia](https://uqworld.org/user_avatar/uqworld.org/xujia/32/214_2.png) [@xujia](https://uqworld.org/u/xujia)\
**Post date:** [January 3, 2023, 11:09am UTC](https://uqworld.org/t/confusion-about-equation-1-37-in-the-uqlab-user-manual-structural-reliability-rare-event-estimation/1756/3 "2023-01-03T11:09:10Z")

</div>

Hi @Jingyu_Liu,

Thank you for creating the post here and for the remarks.

1. Both notations, \mathcal{N}(\mu,\sigma^2) and \mathcal{N}(\mu,\sigma), to represent normal distributions are commonly used.
2. Yes, you are right: \widehat{P}\_f is an unbiased estimator of P\_f, i.e., \mathbb{E}\left[\widehat{P}\_f\right]=P\_f.
3. Yes, you are right: the variance \sigma^2\_{P\_f} of \widehat{P}\_f is \frac{P\_f(1-P\_f)}{N}. The reasoning between Eq. (1.27) and Eq. (1.28) should be reorganized as follows for a more rigorous mathematical presentation. The variance of a single trial (which is a Bernouilli random variable) is \sigma^2\_{1\_{\mathcal{D}\_f}} = P\_f(1-P\_f). Because the trials are independent and identically distributed, the Monte Carlo estimator \widehat{P}\_f follows asymptotically a Gaussian distribution, i.e., \sqrt{N}(\widehat{P}\_f - P\_f)/\sigma\_{1\_{\mathcal{D}\_f}} \stackrel{d}{\rightarrow}\mathcal{N}(0,1), according to the [central limit theorem](https://en.wikipedia.org/wiki/Central_limit_theorem). Because P\_f is unknown, the standard deviation \sigma\_{1\_{\mathcal{D}\_f}} is unknown. Since \widehat{P}\_f is a consistent estimator of P\_f, \widehat{\sigma}\_{1\_{\mathcal{D}\_f}} = \sqrt{\widehat{P}\_f(1-\widehat{P}\_f)} is a consistent estimator of \sigma\_{1\_{\mathcal{D}\_f}}, which follows from the [continuous mapping theorem](https://en.wikipedia.org/wiki/Continuous_mapping_theorem). According to [Slutsky’s theorem](https://en.wikipedia.org/wiki/Slutsky%27s_theorem), \sqrt{N}(\widehat{P}\_f - P\_f)/\widehat{\sigma}\_{1\_{\mathcal{D}\_f}} also converges in distribution to \mathcal{N}(0,1), based on which Eq. (1.39) was derived to calculate the confidence interval. Note that a confidence interval itself is **random** , as it is calculated from data. Moreover, an \alpha-confidence interval indicates that the interval has the probability \alpha to contain the true value.

We will modify and update the manual in the next release. Thanks again for your feedback.

Best regards,  
Xujia
