Inference 5 of 8
On this page

Inference

6.4 Confidence Interval

Chapter 4 of 7 36 min read

A confidence interval (CI) is an estimated range of a parameter of interest in a population. Instead of estimating the parameter by a single value, a range of likely estimates is given. How likely these estimates are will be determined by the confidence coefficient $(1-\alpha)$, for $\alpha \in (0, 1)$.

Confidence intervals are used to indicate the reliability of an estimate. For example, a CI can be used to describe how reliable the results of a survey are. All estimates being equal, a survey that results in a small CI is more reliable than one that results in a larger CI.

Se $U$ and $V$ are statistics (i.e., sample functions) whose probability distribution depends on the parameter $\theta$, and

$$\mathbb{P}(U \ < \ \theta \ < \ V \ | \ \theta) = 1-\alpha$$

then the random interval $(U,V)$ is a confidence interval with level $100(1-\alpha)\char37$ for $\theta$. Therefore, we can interpret the confidence interval as an interval that contains the “plausible” values that the parameter $\theta$ can take over. Thus, the amplitude of the interval is associated with the uncertainty we have regarding the parameter.

Consider $X_1,X_2,\ldots,X_n$ a random sample drawn from a population with distribution $f_{\theta}$ which depends on the parameter $\theta$. For example, we take $X_1,X_2,\ldots,X_n$ a random sample with normal distribution with mean $\mu$ unknown and known standard deviation $\sigma = 1$. To propose a confidence interval for the parameter $\theta$, let’s introduce the concept of pivotal quantity. A function $Q$ of the sample $(X_1,X_2,\ldots,X_n)$ and the parameter $\theta$ whose probability distribution does not depend on the parameter $\theta$ is called a pivotal quantity. In this way, given the level of confidence $1-\alpha$, we take

$$1-\alpha=\mathbb{P}\left(q_1\leq Q(X_1,X_2,\ldots,X_n;\theta)\leq q_2\right)$$

If the pivotal quantity $Q$ is invertible, we can solve the above inequality with respect to $\theta$ and obtain a confidence interval.

Motivation

Suppose we want to estimate the mean $\mu$ of a population with normal distribution with variance $\sigma^2$ known. The maximum likelihood estimator for the population mean $\mu$ is given by the sample mean $\overline{X}$ of a sample size $n$. Thus, we have the following pivotal quantity $e=(\overline{X}-\mu)\sim N(0,\sigma^2/n)$.

$$\mathbb{P}\left(|e| \ < \ 1,96\ \sigma/\sqrt{n}\right)=0,95$$

$$\mathbb{P}\left(|\overline{X}-\mu| \ < \ 1,96\ \sigma/\sqrt{n}\right)=0,95$$

$$\mathbb{P}\left(\overline{X}-1,96\ \sigma/\sqrt{n} \ < \ \mu \ < \ \overline{X}+1,96\ \sigma/\sqrt{n}\right)=0,95.$$

To interpret the confidence interval for the mean, we assume that the values were independently and randomly sampled from a normally distributed population with mean $\mu$ and variance $\sigma^2$. Given that these assumptions are valid, we have a 95% “chance” that the interval contains the true value of the population mean. In other words, if we produce several confidence intervals from different independent samples of the same size, we can expect that approximately 95% of these intervals should contain the true value of the population mean.

Figura6.4.1.svg

Figure 6.4.1: Representation of Confidence Interval with 95% confidence

6.4.1 Confidence interval for mean

When we want to estimate the mean of a population through a sample we have two distinct cases to consider: when the population variance is known and when it is unknown. Below we have both cases.

6.4.1.1 Known variance

Let us consider a simple random sample $X_1,\ldots,X_n$ obtained from a population with normal distribution, with mean $\mu$ and variance $\sigma^2$ known. Thus, the sampling distribution of the mean is also Normal with mean $\mu$ and variance $\sigma^2/n$, that is, $$\overline{X}\sim N\left(\mu,\frac{\sigma^2}{n}\right).$$

So, we have to

$$Z=\frac{\overline{X}-\mu}{\frac{\sigma}{\sqrt{n}}}\sim N(0,1),$$

that is, the variable $Z$ has a standardized normal distribution.

Let us consider that the probability of the variable $Z$ take values between $-Z_{\alpha/2}$ and $Z_{\alpha/2}$ is $1-\alpha$. The values $-Z_{\alpha/2}$ and $Z_{\alpha/2}$ are obtained from the normal distribution table as shown in Figure 6.4.2 below:

Figura6.4.2.svg

Figure 6.4.2: Representation of the confidence interval of $1-\alpha$ between $-Z_{\alpha/2}$ and $Z_{\alpha/2}$

So, we have to

$$\mathbb{P}[-Z_{\alpha/2}\leq Z\leq Z_{\alpha/2}]= 1-\alpha$$

i.e.

$$\mathbb{P}\left[-Z_{\alpha/2}\leq \frac{\overline{X}-\mu}{\frac{\sigma}{\sqrt{n}}}\leq Z_{\alpha/2}\right]=(1-\alpha)$$

which implies that

$$\mathbb{P}\left[\overline{X}-Z_{\alpha/2}\frac{\sigma}{\sqrt{n}}\leq\mu\leq\overline{X} +Z_{\alpha/2}\frac{\sigma}{\sqrt{n}}\right]=1-\alpha.$$

Therefore, the confidence interval for the mean is given by

$$IC(\mu,1-\alpha)=\left(\overline{X}-Z_{\alpha/2}\frac{\sigma}{\sqrt{n}};\overline{X}+ Z_{\alpha/2}\frac{\sigma}{\sqrt{n}}\right).$$

If the data is not normally distributed, we can apply the central limit theorem and construct an approximate confidence interval.

Interpretation

We can say that if we can repeat the experiment many times and collect the data, approximately $100(1-\alpha)\char37$ Sometimes the population mean will be in the range found.

Example 4.2.1.1

An industrial designer took a sample of 36 employees to check the average time taken to assemble a certain toy. Remembering that it was verified that $\overline{x}= 19,9$ and $\sigma = 5,73$, construct a level confidence interval $95\char37$ for $\mu$.

From the standardized normal distribution table, we obtain that $Z_{0,025}=1,96$. Replacing $\overline{x}=19,9, n=36, \sigma=5,73$ and $Z_{0,025}=1,96$ In the formula for the confidence interval, we have

$$19,9-1,96\frac{5,73}{\sqrt{36}}\leq\mu\leq 19,9+1,96\frac{5,73}{\sqrt{36}}$$

and therefore

$$IC(\mu,0,95) = (18,02; \ 21,77)$$

One of the main interpretations of the confidence interval is to evaluate the uncertainty we have regarding estimating the population parameter $\mu$ from a random sample of size $n$.

6.4.1.2 Unknown variant

Having the basic concepts about confidence intervals, let us now deal with a more realistic situation: when the variance $\sigma^2$ of the population is unknown.

Let us consider a simple random sample $X_1,X_2,\ldots,X_n$, obtained from a population with normal distribution, with mean $\mu$ and variance $\sigma^2$ unknown. As in this case the variance is unknown, we will use the sample variance $s^2$ instead of $\sigma^2$. So, we have to

$$T=\frac{\overline{X}-\mu}{s/\sqrt{n}}\sim t_{(n-1)}$$

that is, the variable $T$ has a Student t distribution with $n-1$ degrees of freedom.

So, when we set the significance level $\alpha$, we obtain from the Student t distribution table with $n-1$ degrees of freedom, the value $t_{((n-1),\alpha/2)}$, which satisfies

$$\mathbb{P}\left(-t_{((n-1),\alpha/2)}\leq T\leq t_{((n-1),\alpha/2)}\right)=1-\alpha$$

or graphically

Figura6.4.3.svg

Figure 6.4.3: Representation of the confidence interval of $1-\alpha$ between $-t_{n-1,\alpha/2}$ and $t_{n-1,\alpha/2}$

Analogously to the previous case, we obtain that

$$\mathbb{P}\left(-t_{((n-1),\alpha/2)}\leq \frac{\overline{X}-\mu}{s/\sqrt{n}}\leq t_{((n-1),\alpha/2)}\right)=1-\alpha$$

i.e. $$\mathbb{P}\left(\overline{X}-t_{((n-1),\alpha/2)}\frac{s}{\sqrt{n}}\leq\mu\leq \overline{X}+t_{((n-1),\alpha/2)}\frac{s}{\sqrt{n}}\right)=1-\alpha.$$

Therefore, the interval with $100(1-\alpha)\char37$ trustworthy for $\mu$, with unknown variance, will be given by

$$IC(\mu,1-\alpha)=\left(\overline{X}-t_{\alpha/2}\frac{s}{\sqrt{n}};\overline{X}+t_{\alpha/2}\frac{s}{\sqrt{n}}\right).$$

Example 4.2.2.1

Let’s consider that the designer of an industry took a sample of 36 employees to check the average time spent to assemble a certain toy. The times are shown in Table 6.4.1 below. Given that the designer has no knowledge of population variability, construct a confidence interval with $(1-\alpha) = 0,95$ for the average $\mu$.

17,1000 16,8930 14,6004 13,0053
29,6292 19,2500 17,7504 24,6337
29,3567 25,0798 16,7914 29,4087
23,8807 15,2133 19,1536 30,3199
13,0050 24,6795 29,3308 20,7309
16,4541 26,2017 21,7857 19,7393
24,6042 18,6442 21,2594 26,9123
16,9896 32,8977 21,3627 15,4958
18,3113 23,6931 19,5429 16,3855

Table 6.4.1: Sample data ($n=36$)

Analyzing this data set we have $\overline{x}=21,39$ and $s=5,388.$ Substituting these values into the confidence interval formula, we have

$$21,39-2,03\cfrac{5,38}{\sqrt{36}}\leq\mu\leq 21,39+2,03\cfrac{5,38}{\sqrt{36}}.$$

Therefore,

$$IC(\mu,0,95) = (19,568;\ 23,214).$$

Example 4.2.2.2

Glycemic tests were performed on 25 patients after an 8-hour fast. The results are presented in the table below. Finding a Level Confidence Interval $95$ % to average $\mu$.

80 118 100 90 83
117 95 84 102 80
112 78 102 121 82
77 88 73 104 88
132 91 103 140 101

Table 6.4.2: Table of glycemic test results (mg/dL)

Initially, we calculate the sample mean $\overline{X}$ and the sample standard deviation $s$, which are given by

$$\overline{X} = \frac{1}{25}\sum_{i=1}^{25}X_i = 97,64 \qquad s = \sqrt{\frac{1}{24}\sum_{i=1}^{25}\left(X_i-\overline{X}\right)^2}= 17,82.$$

As confidence is 95%, it follows $t_{0,025, 24} = 2,06$ and then, substituting these values into the confidence interval formula, we have

$$IC(\mu;0,95)=\left[97,64-2,06\frac{17,82}{\sqrt{25}};97,64+2,06\frac{17,82}{\sqrt{25}}\right]=[90,28;\ 105].$$

6.4.2 Confidence interval for proportion

Let us consider $X$ the random variable that represents the presence (or not) of a certain characteristic of a population. So we have to $X$ has a Bernoulli distribution with parameter $p$, in which $p$ represents the probability of a given sample element having the characteristic of interest. We take a random sample $X_1,\ldots,X_n$ of this population. Each $X_i, i = 1,\ldots,n$ has a Bernoulli distribution with parameter $p$, that is,

$$X_1,X_2,\ldots,X_n\sim \ \text{Bernoulli}(p)$$

with average $\mu = p$ and variance $\sigma^2 = p(1-p)$.

In this case, the maximum likelihood estimator $(\hat{p})$ for the population parameter $p$ is given by $$\hat{p}=\frac{\text{Nº de elementos da amostra com a característica}}{\text{Total de elementos da amostra}}=\displaystyle\cfrac{\displaystyle\sum_{i=1}^nx_i}{n}=\overline{x}.$$

We will use three different methods to find the confidence interval for the proportion: Normal approximation, normal approximation with continuity correction and exact binomial.

6.4.2.1 Normal approximation

Let’s see how to construct confidence intervals for the proportion $p$, using the Normal approximation. Let us consider $\hat{p}$ the sample proportion. By the Central Limit Theorem we have that, for a large sample size, we can consider the sample proportion $\hat{p}$ as having approximately normal distribution with mean p and variance p(1-p)/n. It therefore follows that

$$\hat{p}\sim N\left(p,\frac{p(1-p)}{n}\right).$$

Let us note that the variance of $\hat{p}$ depends on unknown parameter $p$. However, due to the fact that $n$ be big, we can replace $p$ by $\hat{p}$. With this we have to

$$\frac{\hat{p}-p}{\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}}\sim N(0,1).$$

Considering the same procedure for assembling the interval for the mean, we construct the interval with $100(1 - \alpha)\char37$ reliable for the proportion $p$:

$$IC(p,1-\alpha)=\left(\hat{p}-Z_{\alpha/2}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}},\hat{p}+Z_{\alpha/2}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}\right).$$

Example 4.3.1.1

In a random sample of size $n=700$ were found $68$ defective elements. Find a level confidence interval $95\char37$ for the proportion $p$ of defective.

We have to $\hat{p}=68/700=0,0971$. For $\alpha=0,05$, we have from the normal distribution table that $Z_{0,025}=1,96$. Then the confidence interval is given by

$$\left(0,0971-1,96\sqrt{\frac{0,0971(0,9028)}{700}};0,0971+1,96\sqrt{\frac{0,0971(0,9028)}{700}}\right)=(0,0752;\ 0,119).$$

6.4.2.2 Normal approximation with continuity correction

Another way to obtain a confidence interval for the proportion is through the normal approximation with continuity correction. Considering the previous process, the only difference is that here we will not simply consider the sample proportion $\hat{p}$, but rather a correction of it. Thus, to determine the confidence interval we consider a modification of the proportion $\hat{p}$, given by:

$$\hat{p}_c= \begin{cases} \displaystyle\hat{p}+\frac{1}{2n} \ \hbox{se} \ \hat{p} \ < \ 0,5 \cr \cr \hat{p}-\frac{1}{2n} \ \hbox{se} \ \hat{p} \ > \ 0,5. \end{cases} $$

Thus, the confidence interval for proportion $p$ with continuity correction, is given by

$$IC(p,1-\alpha)=\left(\hat{p_c} \mp Z_{\alpha/2} \sqrt{\frac{\hat{p}_c(1-\hat{p}_c)}{n}} \right).$$

The continuity factor is used to improve the approximation of a discrete random variable $\hat{p}$ by the normal distribution which is continuous.

Example 4.3.2.1

Let us consider Example 4.2.1.1 again. Let’s now find the confidence interval with continuity correction.

We have to $\hat{p}=68/700=0,0971$. Like this, $\hat{p} \ < \ 0,5$. Then $\hat{p_c}=0,0971+1/1400=0,0978$. For α=0.05, we have from the normal distribution table that $Z_{0,025}$=1.96. Then the confidence interval is given by:

$$IC(p,0,95)=\left(0,0978-1,96\sqrt{\frac{0,0978(1-0,0978)}{700}};\quad 0,0978+1,96\sqrt{\frac{0,0978(1-0,0978)}{700}}\right)$$

i.e.

$$IC(p,0,95)=(0,07579;\ 0,1198).$$

6.4.2.3 Exact binomial

Let us consider a random sample $X_1,\ldots,X_n$ of a population with Bernoulli distribution with parameter $p$. Let’s see how to obtain a confidence interval for the proportion using the Exact Binomial method (without using the central limit theorem).

Be $1 - \alpha$ the level of trust. Consider $P_1= 1 - \alpha/2$. Be $Y$ the number of successes (occurrences of the event of interest) and consider the value $x = Y - 1$. Find the value of $P_1$ corresponding to the values of $n$ and $x$. The value $p$ found at the top of the column containing the value $P_1$ is the lower limit of the confidence interval. To find the upper limit consider $P_2= \alpha/2$, $x = Y$ and enter the same table with the values of $n$ and $x$ until you find the value of $P_2$. The corresponding value of $p$ at the top of the table is the upper limit of the confidence interval.

Example 4.3.3.1

In a batch with $19$ parts, $4$ were defective. Obtain a confidence interval, with $\alpha = 0,05$, for the proportion $p$ of defective parts.

We have to $P_1= 1-\alpha/2=1-0,025=0,975$, $x=3$ and $n=19$. Thus, we obtain in the binomial distribution table the lower limit $0,05$. On the other hand, $P_2= 0,025$ and $x=4$. Thus we obtain that the upper limit is equal to $0,45$.

Then the 95% confidence interval for the proportion of defectives is $(0,05;0,45)$.

Note

This method is only used for small sample sizes. For large samples, we use the central limit theorem to obtain the confidence interval.

6.4.3 Confidence interval for rate

Let us consider a random sample $X_1,\ldots,X_n$ of a population with Poisson distribution with parameter $\lambda$, that is,

$$X_1,X_2,\ldots,X_n\sim \ \hbox{Poisson}(\lambda).$$

We know that $\hat{\lambda}=\displaystyle \sum_{i=1}^n\frac{X_i}{n}$ is a maximum likelihood estimator for $\lambda$. Using the central limit theorem, we have

$$\hat{\lambda}=\displaystyle\sum_{i=1}^n\frac{X_i}{n}\sim N\left(\lambda,\frac{\lambda}{n}\right)$$

which implies that

$$Z=\frac{\hat{\lambda}-\lambda}{\sqrt{\frac{\hat{\lambda}}{n}}}\sim N(0,1).$$

Analogously to the previous cases, we obtain an interval with $100(1 - \alpha)\char37$ reliable rate:

$$IC(\lambda,1-\alpha)=\left(\hat{\lambda}-Z_{\alpha/2}\sqrt{\frac{\hat{\lambda}}{n}};\ \hat{\lambda}+Z_{\alpha/2}\sqrt{\frac{\hat{\lambda}}{n}}\right).$$

Example 4.4.1

In a factory process, 72 parts were chosen at random and the number of defects found in each part is shown in Table 6.4.3 below. Build a confidence interval, with $\alpha=0,05$, for the rate of defects in parts.

0 0 1 0 2 0 0 0 0 1 0 0
0 0 1 0 3 1 0 2 0 1 2 1
1 0 0 0 0 1 0 1 1 1 5 1
0 0 2 0 0 1 0 3 0 0 0 2
0 2 1 0 0 1 0 0 0 0 2 1
0 2 0 0 0 1 0 0 0 1 0 1

Table 6.4.3: Number of sample defects

We have to $\hat{\lambda}=\displaystyle\sum_{i=1}^{72} \frac{X_i}{72}=0,64$. For $\alpha=0,05$, we have from the normal distribution table that $Z_{0,025}=1,96$. Then, the confidence interval is given by

$$IC(\lambda,1-\alpha)=\left(0,64-1,96\sqrt{\frac{0,64}{72}};\ 0,64+1,96\sqrt{\frac{0,64}{72}}\right)=(0,455;\ 0,825).$$

See below the results obtained by the Action Stat software.

Z Statistics -0.01178511
P-Value 0.9905971
Average Sample Rate 0.6388889
Sample Size 72
Alternative Hypothesis Different from 0.64
Confidence Level 95%
Lower Limit 0.4542622
Upper Limit 0.8235156

Table 6.4.4: Results obtained by Action Stat

6.4.4 Confidence interval for variance

Let us consider a random sample $X_1,\ldots,X_n$ in size $n$ of a population with normal distribution with mean $\mu$ and variance $\sigma^2$. An estimator for $\sigma^2$ is the sampling variance $s^2$. Thus, we know that the pivotal quantity $$Q=\frac{(n-1)s^2}{\sigma^2}\sim\chi_{n-1}^2.$$

Be $1-\alpha$ the probability of the variable $Q$, with $n-1$ degrees of freedom, take values between $Q_{\alpha/2}$ and $Q_{1-\alpha/2}$, values obtained from the chi-square distribution table such that $\mathbb{P}[Q \ < \ Q_{\alpha/2}]=\mathbb{P}[Q \ > \ Q_{1-\alpha/2}]=\alpha/2$.

Figura6.4.4.svg

Figure 6.4.4: Chi-square distribution and critical values

Observing the equation

$$Q_{\alpha/2}\leq Q\leq Q_{1-\alpha/2}$$

we see that we can replace $Q$ by the expression above and then we get

$$Q_{\alpha/2}\leq\frac{(n-1)s^2}{\sigma^2}\leq Q_{1-\alpha/2}.$$

Rewriting this inequality, we obtain the confidence interval for the variance,

$$\frac{(n-1)s^2}{Q_{1-\alpha/2}} \ < \ \sigma^2 \ < \ \frac{(n-1)s^2}{Q_{\alpha/2}}.$$

So,

$$\mathbb{P}\left(\frac{(n-1)s^2}{Q_{1-\alpha/2}} \ < \ \sigma^2 \ < \ \frac{(n-1)s^2}{Q_{\alpha}}\right)=1-\alpha.$$

Therefore, the interval with level $100(1-\alpha)\char37$ trustworthy for $\sigma^2$ will be given by

$$IC(\sigma^2,1-\alpha)=\left(\frac{(n-1)s^2}{Q_{1-\alpha/2}},\frac{(n-1)s^2}{Q_{\alpha/2}}\right).$$

Example 4.5.1

The weight of mechanical components produced by a given company is a random variable that is assumed to have a normal distribution. The aim is to study the variability in the weight of the aforementioned components. For this, a sample of size 11 was obtained, whose values in grams are:

98, 97, 102, 100, 98, 101, 102, 105, 95, 102, 100

Construct a confidence interval for the weight variance, with a confidence level equal to 95%.

We have to $n=11$, $\overline{x}=100$ and

$$s^2=\sum_{i=1}^11\frac{(x_i-\overline{x})^2}{10}=\frac{4+9+\ldots+25+4+0}{10}=8.$$

Using the chi-square distribution table with $10$ degrees of freedom, we have $Q_{0,025}= 3,25$ and $Q_{0,975} = 20,48$. So,

$$IC(\sigma^2,1-\alpha)=\left(\frac{10\times 8}{20,48},\ \frac{10\times 8}{3,25}\right)=(3,90;\ 24,61).$$

6.4.5 Confidence interval for the ratio between two variances

Let’s see how to construct a confidence interval for the ratio between two independent normal population variances. To do this, we took a random sample $X_1,X_2,\dots,X_{n_1}$ of population 1, with distribution $N(\mu_1,\sigma^2_1)$, and a sample $Y_1,Y_2,\dots,Y_{n_2}$ of population 2, with distribution $N(\mu_2,\sigma^2_2)$. How

$$Q_1=\cfrac{(n_1-1)}{\sigma_1^2}s_1^2\sim\chi_{n_1-1}^2 \quad \hbox{(Qui-quadrado com} \ n_1-1 \ \hbox{graus de liberdade)}$$

$$Q_2=\cfrac{(n_2-1)}{\sigma_2^2}s_2^2\sim\chi_{n_2-1}^2 \quad \hbox{(Qui-quadrado com} \ n_2-1 \ \hbox{graus de liberdade)}$$

in which $s^2_1$ is the sampling variance of population 1 and $s^2_2$ the sampling variance of population 2. In this case, the expression $F$ defined by

$$F=\cfrac{\cfrac{Q_1}{N_1-1}}{\cfrac{Q_2}{n_2-1}}=\cfrac{\cfrac{s_1^2}{\sigma_1^2}}{\cfrac{s_2^2}{\sigma_2^2}}=\cfrac{s_1^2}{s_2^2}\cfrac{\sigma_2^2}{\sigma_1^2}$$

has F distribution of Snedecor with $n_1-1$ degrees of freedom in the numerator and $n_2-1$ degrees of freedom in the denominator and we denote by $F_{(n_1-1;n_2-1)}$.

Let us consider that the probability of the variable $F$ take values between $F_{(\frac{\alpha}{2};n_1-1;n_2-1)}$ and $F_{(1-\frac{\alpha}{2};n_1-1;n_2-1)}$ is $1-\alpha$. These values are obtained from the Fisher-Snedecor distribution table referring to the value of $\alpha$ and the degrees of freedom of the numerator and denominator, $n_1-1$ and $n_2-1$, respectively. See the following figure.

Figura6.4.5.svg

Figure 6.4.5: Fisher-Snedecor Distribution and critical values

Observing the equation

$$F_{\alpha/2} \ < \ F \ < \ F_{(1-\alpha/2)}$$

we see that we can replace $F$ by the expression above and so we have

$$F_{\alpha/2} \ < \frac{s_1^2}{s_2^2}\frac{\sigma_2^2}{\sigma_1^2} \ < \ F_{(1-\alpha/2)}.$$

Rewriting this equation we obtain:

$$\cfrac{1}{F_{(1-\alpha/2)}}\frac{s_1^2}{s_2^2} \ < \ \frac{\sigma_1^2}{\sigma_2^2} \ < \ \frac{1}{F_{\alpha/2}}\frac{s_1^2}{s_2^2}.$$

So,

$$P\left(\frac{1}{F_{(1-\alpha/2)}}\frac{s_1^2}{s_2^2} \ < \ \frac{\sigma_1^2}{\sigma_2^2} \ < \ \frac{1}{F_{\alpha/2}}\frac{s_1^2}{s_2^2}\right)=1-\alpha.$$

Please note that $F_{(1-\alpha/2,n_1-1,n_2-1)}=\frac{1}{F_{(\alpha/2,n_2-1,n_1-1)}}$ and $F_{(\alpha/2,n_1-1,n_2-1)}=\frac{1}{F_{(1-\alpha/2,n_2-1,n_1-1)}}$.

Therefore, the confidence interval with level $100(1-\alpha)\char37$ for the ratio between two variances will be given by

$$IC(\sigma_1^2/\sigma_2^2,1-\alpha)=\left(\frac{1}{F_{(1-\alpha/2)}}\frac{s_1^2}{s_2^2};\ \frac{1}{F_{(\alpha/2)}}\frac{s_1^2}{s_2^2}\right).$$

6.4.6 Confidence interval for the difference in means

6.4.6.1 1st Case: Known variances

Let us consider two random samples, $X_1,X_2,\ldots,X_{n1}$ in size $n_1$ and $Y_1,Y_2,\ldots,Y_{n2}$ in size $n_2$, both with normal distribution, averages $\mu_1$ and $\mu_2$ and variances $\sigma_1^2$ and $\sigma_2^2$, respectively. So,

$$\overline{X}\sim N\left(\mu_1,\frac{\sigma_1^2}{n_1}\right) \ \hbox{e} \ \overline{Y}\sim N\left(\mu_2,\frac{\sigma_2^2}{n_2}\right).$$

Hence, we have to,

$$\overline{X}-\overline{Y}\sim N\left(\mu_1-\mu_2,\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}\right)$$

which implies that

$$Z=\frac{(\overline{X}-\overline{Y})-(\mu_1-\mu_2)}{\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}}\sim N(0,1).$$

Let us consider that the probability of the variable $Z$ take values between $-Z_{\alpha/2}$ and $Z_{\alpha/2}$ is $1-\alpha$. Observing the equation

$$-Z_{\alpha/2}\leq Z\leq Z_{\alpha/2}$$

we see that we can replace $Z$ using the expression above and we get

$$-Z_{\alpha/2}\leq\frac{\overline{X}-\overline{Y}-(\mu_1-\mu_2)}{\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}}\leq Z_{\alpha/2}.$$

Rewriting this inequality, we obtain the confidence interval for the difference in means $\mu_1-\mu_2$

$$IC(\mu_1-\mu_2,1-\alpha)=\left((\overline{X}-\overline{Y})-Z_{\alpha/2}\left(\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}\right);(\overline{X}-\overline{Y})+Z_{\alpha/2}\left(\sqrt{\frac{\sigma_1^2}{n_1}+\frac{\sigma_2^2}{n_2}}\right)\right)$$

and we can say that if we could construct a large number of intervals $IC(\mu_1-\mu_2,1-\alpha)$, all based on sample sizes $n_1$ and $n_2$, around $100(1-\alpha)\char37$ of them would contain the true value of the population mean.

6.4.6.2 2nd Case: Unknown variances - but equal

Let us now consider two random samples, $X_1,X_2,\ldots,X_{n1}$ in size $n_1$ and $Y_1,Y_2,\ldots,Y_{n2}$ in size $n_2$, with only one difference from the previous case: the variances are unknown, but equal, that is, $\sigma_1^2 = \sigma_2^2 = \sigma^2$. How

$$\frac{(n_1-1)s_1^2}{\sigma^2}\sim\chi_{n_1-1}^2 \quad \hbox{e} \quad \frac{(n_2-1)s_2^2}{\sigma_2}\sim\chi_{n_2-1}^2$$

where $s_1^2$ is the sample variance of the population $1$ and $s_2^2$ is the sample variance of the population $2$, we have to

$$T=\frac{(\overline{X}-\overline{Y})-(\mu_1-\mu_2)}{s_p\sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}\sim t_{n_1+n_2-2}$$

where $$s_p=\sqrt{\frac{(n_1-1)s_1^2+(n_2-1)s_2^2}{n_1+n_2-2}}.$$

Hence, using the Student t distribution table with $\nu=(n_1+n_2- 2)$ degrees of freedom, we obtain the value of $t_{(a,\alpha/2)}$ so that

$$-t_{(\nu,\alpha/2)} \ < \ \frac{(\overline{X}-\overline{Y})-(\mu_1-\mu_2)}{s_p\sqrt{\frac{1}{n_1}+\frac{1}{n_2}}} \ < \ t_{(\nu,\alpha/2)}.$$

Rewriting this inequality, we obtain the confidence interval for the difference in means $\mu_1-\mu_2$ when the variances are unknown but equal,

$$(\overline{X}-\overline{Y})-t_{(\nu,\alpha/2)}s_p\sqrt{\frac{1}{n_1}+\frac{1}{n_2}}\leq\mu_1-\mu_2\leq (\overline{X}-\overline{Y})+t_{(\nu,\alpha/2)}s_p\sqrt{\frac{1}{n_1}+\frac{1}{n_2}}$$

i.e.

$$\text{IC}(\mu_1-\mu_2,1-\alpha)=\left((\overline{X}-\overline{Y})-t_{(\nu,\alpha/2)}s_p\sqrt{\frac{1}{n_1}+\frac{1}{n_2}};(\overline{X}-\overline{Y})+t_{(\nu,\alpha/2)}s_p\sqrt{\frac{1}{n_1}+\frac{1}{n_2}}\right)$$

and we can say that if we could construct a large number of intervals $\text{IC}(\mu_1-\mu_2, 1 - \alpha)$, all based on sample sizes $n_1$ and $n_2$, around $100(1-\alpha)\char37$ of them would contain the true difference in population averages.

6.4.6.3 3rd Case: Unknown and different variances

Let us consider two random samples, $X_1,X_2,\ldots,X_{n1}$ in size $n_1$ and $Y_1,Y_2,\ldots,Y_{n2}$ in size $n_2$, with normal distributions, but now with unknown and different variances, i.e. $\sigma_1^2\neq\sigma_2^2$. As population variances are unknown, we will use sample variances $s_1^2$ and $s_2^2$ in their places. Let us consider the variable $T$ such that

$$T=\frac{(\overline{X}-\overline{Y})-(\mu_1-\mu_2)}{\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}}\sim t_{\nu}$$

that is, the variable $T$ given by the equation above has Student’s t distribution with $\nu$ degrees of freedom, where

$$\nu=\frac{\left(\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}\right)^2}{\frac{\left(\frac{s_1^2}{n_1}\right)^2}{n_1-1}+\frac{\left(\frac{s_2^2}{n_2}\right)^2}{n_2-1}}.$$

Using a similar construction to the previous case, we obtain the confidence interval for the difference of two means with unknown and unequal variances:

$$\text{IC}(\mu_1-\mu_2,1-\alpha)=\left((\overline{X}-\overline{Y})-t_{(\nu,\alpha/2)}\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}};\ (\overline{X}-\overline{Y})+t_{(\nu,\alpha/2)}\sqrt{\frac{s_1^2}{n_1}+\frac{s_2^2}{n_2}}\right).$$

Example 4.7.3.1

The following data correspond to levels of an element that indicates the quality of a certain product. were collected $2$ samples relating to $2$ production methods. Construct a confidence interval for the difference in the means of the two methods.

Method 1 0,9 2,5 9,2 3,2 3,7 1,3 1,2 2,4 3,6 8,3
Method 2 5,3 6,3 5,5 3,6 4,1 2,7 2,0 1,5 5,1 3,5

Table 6.4.5: Two samples referring to two production methods

The average referring to the method $1$ is $\overline{x}_1 = 3,63$ and the method $2$ is $\overline{x}_2 = 3,96$. Calculating the sampling variances, we obtain

$$s_1^2=\sum_{i=1}^{10}\frac{(x_{1i}-\overline{x}_1)^2}{9}=8,29 \quad s_2^2=\sum^{10}_{i=1}\frac{(x_{2i}-\overline{x}_2)^2}{9}=2,53$$

in which $x_{1i}$ are the contents referring to the method $1$ and $x_{2i}$ to the method $2$, $i = 1, …, 10$. The degrees of freedom are given by

$$\nu=\frac{\left(\frac{8,29}{10}+\frac{2,53}{10}\right)^2}{\frac{\left(\frac{8,29}{10}\right)^2}{9}+\frac{\left(\frac{2,35}{10}\right)^2}{9}}=14,028.$$

Thus, from the Student t distribution table we obtain that $t_{14,0,025}= 2,145$ and then we have to

$$\text{IC}(\mu_1-\mu_2,1-\alpha)=\left((3,63-3,96)(-2,145)\sqrt{\frac{8,29}{10}+\frac{2,53}{10}};(3,63-3,96)(2,145)\sqrt{\frac{8,29}{10}+\frac{2,53}{10}}\right),$$

i.e. $\text{IC}(\mu_1-\mu_2,1-\alpha)=(-2,56;1,90)$.

Using the Action Stat software we have the following results:

Information Value
T-statistic -0.3172124
Degrees of Freedom 14.01997
P-value 0.7557571
Sample 1 Mean 3.63
Sample 2 Mean 3.96
Sample 1 Standard Deviation 2.88
Sample 2 Standard Deviation 1.59
Alternative Hypothesis Different from 0
Confidence Level 95%
Lower Limit -2.56095
Upper Limit 1.90095

Table 6.4.6: Confidence Interval Results for two samples of unknown and different population variances

6.4.7 Tolerance interval

In statistical science there is the possibility of creating several different types of intervals. Within the Bayesian paradigm there is the credibility interval. In relation to classical inference there is the widely known confidence interval. Furthermore, there are other intervals, such as the forecast interval.

The classic confidence interval aims to bring greater confidence regarding a point estimate, generating two values (lower and upper limits) in which the probability of this interval containing the true population parameter is $\gamma$, called the confidence level. This interval is always associated with a population measure (mean, variance, among others).

Unlike the confidence interval mentioned above, the tolerance interval aims to construct limits in such a way that at least a certain population proportion is contained between the lower and upper limits with a confidence level $\gamma$. Therefore, the main factor that distinguishes both intervals is the fact that, while the confidence interval is relative to a population parameter, the tolerance interval is associated with the distribution of the data itself.

This protocol contains statistical techniques for constructing two-sided and one-sided confidence intervals for data resulting from continuous distributions.

So, be it $X$ a continuous random variable with probability distribution $f_X(x)$ and cumulative distribution function $F_X(x)$. Still, $\mathbb{P}(\cdot)$ denotes a probability measure.

The general form of tolerance intervals are:

  • Lower one-sided tolerance range

So a one-sided lower tolerance interval for a population population of at least $P$ and with confidence $\gamma = 1 - \alpha$ will be constituted by a lower limit $L$ such that:

$$\mathbb{P}\left[1-F_{X}(L ; \theta) \geq P\right] \geq 1-\alpha. \tag{4.8.1}$$

  • Upper unilateral tolerance range;

The upper unilateral tolerance interval is defined for a population of at least $P$ and with confidence $\gamma = 1 - \alpha$ as the upper limit $U$, such that:

$$\mathbb{P}\left[F_{X}(U ; \theta) \geq P\right] \geq 1-\alpha. \tag{4.8.2}$$

  • Bilateral tolerance interval;

The bilateral tolerance interval for a population proportion of at least $P$ with confidence $1-\alpha$ is made up of values $L$ and $U$ such that:

$$\mathbb{P}\left[F_{X}(U ; \theta) - F_{X}(L ; \theta) \geq P\right] \geq 1-\alpha. \tag{4.8.3}$$

The above formulations are generic. For each probability distribution, they resulted in different expressions.

Furthermore, it is possible to construct tolerance intervals without assuming a probabilistic distribution for the data. This type of interval is called a nonparametric (or distribution-free) tolerance interval.

6.4.7.1 Parametric tolerance interval

The parametric tolerance interval consists of assigning a probabilistic distribution to the sample data. Thus, from the equations $4.8.1,\ 4.8.2 \ $ and $\ 4.8.3$, the shape of the tolerance interval for each distribution is obtained.

The assumption of a probability distribution can be justified from a hypothesis test for goodness of fit. Some of these tests are: Anderson - Darling, Kolmogorov - Smirnov and Cramér–von Mises. Furthermore, the assumption of a distribution can be verified graphically using histograms, empirical accumulated distribution and through quantile graphs.

Below are the shapes of the tolerance interval for seven different distributions.

Normal Distribution

A random variable $X$ has a normal distribution if its cumulative distribution function can be written in the form: $$ F_{X}(x ; \mu, \sigma)=\int_{t=-\infty}^{t = x}\left(2 \pi \sigma^{2}\right)^{-1 / 2} e^{-\frac{(t-\mu)^{2}}{2 \sigma^{2}}} d t. $$

In which $-\infty < x < -\infty$, $-\infty < \mu < -\infty$ and $\sigma^2 > 0$.

Furthermore, the estimators for $\mu$ and $\sigma$: $\widehat{\mu} = \overline{X}$ and $\widehat{\sigma} = S$ (sample mean and standard deviation). Thus, for normally distributed data, the tolerance interval will consist of: $$\widehat{\mu} \pm k \cdot \widehat{\sigma} \text{, para um intervalo bilateral}.$$ $$\widehat{\mu} - k \cdot \widehat{\sigma} \text{, para um intervalo unilateral inferior}.$$ $$\widehat{\mu} + k \cdot \widehat{\sigma} \text{, para um intervalo unilateral superior}.$$

Bilateral Range

From the equation $4.8.3$, comes: $$\mathbb{P}_{\tilde{X},S} \lbrace \mathbb{P}_X (\bar{X}-k_2S \leq X \leq \bar{X}+k_2S \mid \bar{X},S) \geq P \rbrace \geq 1-\alpha $$

Standardizing the variable, we have: $$\mathbb{P}_{Z_n, U}(F_X (Z_n+k_2 U)- F_X (Z_n-k_2 U) \geq P) \geq 1-\alpha. $$

In which $Z_{n} = \frac{\overline{X} - \mu}{\sigma} \sim N(0, \frac{1}{n})$ independent of $U^2 = \frac{S^2}{\sigma^2} \sim \frac{\chi^2_{(n-1)}}{n-1}$.

Now, we have to $k$ is the solution to the equation: $$ \sqrt{\frac{2 n}{\pi}} \int_{0}^{\infty} \mathbb{P}\left(\chi_{n-1}^{2}>\frac{(n-1) \cdot \chi_{1 ; P}^{2}\left(z^{2}\right)}{k^{2}}\right) e^{-\frac{1}{2} n z^{2}} d z=1-\alpha. $$

There are some methods to solve this equation and find the value of k. The one used by Action Stat is the Howe method (Howe, 1969).

$$ k = z_{\frac{1+P}{2}} \sqrt{1+n^{-1}} \cdot \sqrt{\frac{n-1}{\chi_{n-1 ; \alpha}^{2}}} \cdot \sqrt{1+\frac{n-3-\chi_{n-1 ; \alpha}^{2}}{2(n+1)^{2}}}. $$

In which $z_{\frac{1+P}{2}}$ is the quantile $\frac{1 + P}{2}$ of the standard normal.

One-sided Interval

Below is how to obtain the value $k$ for the upper unilateral range. The same value as $k$ is obtained for the lower unilateral interval.

From the equation $4.8.2$, along with the fact that the range can be written as follows $\widehat{\mu} + k \cdot \widehat{\sigma}$, comes: $$ \mathbb{P}_{\bar{X}, S}\left \lbrace \mathbb{P}\left(X<\bar{X}+k_1 S \mid \bar{X}, S\right)>P\right \rbrace =1-\alpha. $$

Standardizing we have: $$ \mathbb{P}_{Z_n, U}\left \lbrace F_X \left(Z_n+k_1 U\right)\geq P\right \rbrace = 1 - \alpha $$

In which $Z_{n} = \frac{\overline{X} - \mu}{\sigma} \sim N(0, \frac{1}{n})$ independent of $U^2 = \frac{S^2}{\sigma^2} \sim \frac{\chi^2_{(n-1)}}{n-1}$.

In this way, the value of $k$ is: $$ k = \frac{1}{\sqrt{n}} t_{n-1 ; 1-\alpha}\left(z_{P} \sqrt{n}\right). $$

In which $z_P$ is the Pth percentile of the standard normal.

LogNormal Distribution

A random variable $X$ It has a log-normal distribution when its natural logarithm has a normal distribution. That is, if a random variable $Y$ is normally distributed, then $X = e^Y$ has a log-normal distribution.

Due to the fact explained above, to construct the tolerance interval for data distributed according to Log Normal, the natural logarithm of the data is taken, the interval is constructed in accordance with the theory explained in section $\textbf{4.8.1}$ and, subsequently, the exponential of the intervals obtained is taken.

Exponential Distribution

A random variable $X$ has an exponential distribution with mean $\lambda$ if your accumulated distribution function is of the type: $$F_{X}(x ; \lambda)=1-e^{- \frac{x}{\lambda}}.$$

According to the equations $4.8.1$ and $4.8.2$ The formulas for obtaining the limits of unilateral tolerance intervals are: $$ L =\frac{2 n \hat{\lambda} \ln (1/P)}{\chi_{2 n ; 1-\alpha}^{2}}$$ $$ U =\frac{2 n \hat{\lambda} \ln (1/(1-P))}{\chi_{2 n ; \alpha}^{2}} $$

Where:

  • $\hat{\lambda}$: maximum likelihood estimator of $\lambda$;
  • n: sample size;
  • P: population proportion;
  • $\alpha$: significance level;
  • $\chi_{2 n ; 1-\alpha}^{2}$: quantile $1 - \alpha$ of the chi-square distribution with $2n$ degrees of freedom.

Bilateral tolerance range can be obtained approximately by exchanging $\alpha$ by $\alpha/2$ and $P$ by $(P+1)/2$.

Logistics Distribution

A random variable $X$ has logistic distribution if its accumulated distribution function is of the type: $$ F_{X}(x ; \theta, \sigma)=\int_{t=-\infty}^{x}\left[1+e^{-\frac{\pi(t-\theta)}{\sqrt{3 \sigma}^{2}}}\right]^{-1} d t $$

In which $-\infty < x < -\infty$, $-\infty < \theta < -\infty$ and $\sigma > 0$.

According to $4.8.1,\ 4.8.2\ $ and $\ 4.8.3$ the formulas to find $L$ and $U$, for data that follows logistical distribution, are: $$ L =\hat{\theta}-k_{1} \hat{\sigma} $$ $$ U =\hat{\theta}+k_{2} \hat{\sigma} $$ For unilateral limits the values of $k_1$ and $k_2$ are: $$ k_{1} \approx \frac{t_{1}+\sqrt{t_{1}^{2}-u v}}{v}$$ $$k_{2} \approx \frac{t_{2}+\sqrt{t_{2}^{2}-u v}}{v}$$

Such that: $$t_{1} =F_{X}^{-1}(P ; \theta=0, \sigma=1)-\hat{\sigma}_{1,2} z_{1-\alpha}^{2}$$ $$t_{2} =F_{X}^{-1}(P ; \theta=0, \sigma=1)+\hat{\sigma}_{1,2} z_{1-\alpha}^{2}$$ $$u =\left[F_{X}^{-1}(P ; \theta=0, \sigma=1)\right]^{2}-\hat{\sigma}_{1}^{2} z_{1-\alpha}^{2}$$ $$v =1-\hat{\sigma}_{2}^{2} z_{1-\alpha}^{2}$$

Furthermore, bilateral intervals can be obtained by substituting $\alpha$ by $\alpha/2$ and $P$ by $(P+1)/2$.

Gamma Distribution

A random variable $X$ has a gamma distribution if its accumulated distribution function is of the type: $$ F_{X}(x ; \theta, \beta)=\int_{t=0}^{x} \frac{t^{\theta-1} e^{-t / \beta}}{\beta^{\theta} \Gamma(\theta)} d t. $$

With $x > 0$, $\theta > 0$ and $\beta > 0$.

As discussed in (Krishnamoorthy, 2008), if a random variable $X$ has gamma distribution with parameters $\theta$ and $\beta$, then $X^{\frac{1}{3}}$ has approximately normal distribution with parameters: $$ \mu =\frac{\beta^{1 / 3} \Gamma(\theta+1 / 3)}{\Gamma(\theta)},$$ $$\sigma^{2} =\frac{\beta^{2 / 3} \Gamma(\theta+2 / 3)}{\Gamma(\theta)}-\mu^{2}.$$

To obtain their estimates, simply replace $\theta$ and $\beta$ by their respective estimates. Therefore, the limits are obtained based on the tolerance interval for normal distribution: $$ L_{N}=\hat{\mu}-k \hat{\sigma} $$ $$ U_{N}=\hat{\mu}+k \hat{\sigma}.$$

The value of $k$ is obtained as presented in section $\textbf{4.8.1}$. And, subsequently, the cubing operation is applied to these limits to obtain the limits of the tolerance interval for the gamma distribution. $$L=L_{N}^{3},$$ $$U=U_{N}^{3}$$

Weibull Distribution

A random variable $X$ has a Weibull distribution if its cumulative distribution function is of the type: $$ F_{X}(x ; \theta, \beta)=1-e^{-(x / \theta)^{\beta}}. $$

In which $x > 0$, $\beta > 0$ and $\theta > 0$.

Furthermore, a random variable is taken as a function of $X$, $Y = \ln(X)$. So $Y$ has extreme value distribution, also known as Gumbel distribution for the minimum, such that its cumulative distribution is: $$ F_{Y}(y ; \xi, \delta)=1-\exp \left \lbrace -e^{\frac{y-\xi}{\delta}}\right \rbrace . $$

Where $-\infty < y < \infty$, $- \infty < \xi = \ln(\theta) < \infty$ and $\delta = \beta^{-1} > 0$.

That said, the equations for obtaining the unilateral tolerance interval for the distribution of extreme values for the minimum are: $$ L=\hat{\xi}-\frac{\hat{\delta} t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{P}\right)}{\sqrt{n-1}},$$ $$U=\hat{\xi}-\frac{\hat{\delta} t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{1-P}\right)}{\sqrt{n-1}}. $$

Furthermore, the one-sided range for the Weibull distribution is given by: $$L_{W} =e^{L},$$ $$U_{W} =e^{U}.$$

To find bilateral range just substitute $\alpha$ by $\alpha/2$ and $P$ by $(P + 1)/2$.

Gumbel Distribution

Finally, within the distributions that this protocol proposes to describe, there is the Gumbel distribution for the maximum that has accumulated distribution as below: $$ F_{Z}(z ; \xi, \delta)=1-\exp \left \lbrace -e^{-\left(\frac{z-\xi}{\delta}\right)}\right \rbrace , $$ with $-\infty< z <+\infty$, $-\infty< \xi <+\infty$ and $\delta > 0$.

Finally, for the Gumbel distribution for the maximum the lower and upper limits are given by: $$ L=\hat{\xi}+\frac{\hat{\delta} t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{1-P}\right)}{\sqrt{n-1}},$$ $$ U=\hat{\xi}+\frac{\hat{\delta} t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{P}\right)}{\sqrt{n-1}}. $$

To obtain approximate bilateral intervals, simply substitute $\alpha$ by $\alpha/2$ and $P$ by $(P+1)/2$.

6.4.7.2 Applications

An application of the tolerance interval methodology is presented.

Normal

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

29,52 37,22 18,44 32,47 29,96 36,73 35,24 31,97 34,99 29,04
41,83 24,53 24,71 24,05 32,10 25,22 23,35 47,82 37,37 18,04
42,66 24,29 24,47 32,41 39,01 13,82 25,39 20,30 27,77 8,87

Table 6.4.7: Data from a normal distribution with mean 30 and standard deviation 9

For these data we have:

  • Sample mean: $\overline{x} = 29,1197$;
  • Sample standard deviation: $s = 8,7690$.

One-sided range

It has to $k$ is given by: $$ k = \frac{1}{\sqrt{n}} t_{n-1 ; 1-\alpha}\left(z_{P} \sqrt{n}\right). $$

In this case:

  • $n = 30$;
  • $1/\sqrt{n} = 0,1825742$;
  • $z_P = 1,281552$;
  • $t_{n-1 ; 1-\alpha}\left(z_{P} \sqrt{n}\right) = 9,734831$.

Then, $$ k = 0,1825742 \cdot 9,734831 = 1,777329. $$

Therefore, the lower unilateral tolerance range is: $$IT_{100\cdot(1-\alpha) \char37 }[P] = [\overline{x} - k\cdot s ; \infty] $$ $$ IT_{95\char37}[90\char37] = [29,1197 - 1,777329 \cdot 8,7690 ; \infty] = [13,5343 ; \infty].$$

While the upper one is: $$IT_{100\cdot(1-\alpha)\char37}[P] = [-\infty ; \overline{x} + k\cdot s] $$ $$IT_{95\char37}[90\char37] = [-\infty ; 29,1197 + 1,777329 \cdot 8,7690] = [-\infty ; 44,7051].$$

With Action Stat we have the following results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 13.5342207 44.7051126

Table 6.4.8: Results of the unilateral Tolerance Interval (with normal distribution) with the Action Stat

Bilateral range

In the bilateral case, we have to $k$ is given by: $$ k = z_{\frac{1+P}{2}} \sqrt{1+n^{-1}} \cdot \sqrt{\frac{n-1}{\chi_{n-1 ; \alpha}^{2}}} \cdot \sqrt{1+\frac{n-3-\chi_{n-1 ; \alpha}^{2}}{2(n+1)^{2}}}. $$

In this case:

  • $P = 0,9$;
  • $n = 30$;
  • $\alpha = 0,05$;
  • $z_{\frac{1+P}{2}} = 1,644854$;
  • $\sqrt{1+n^{-1}} = 1,01653$;
  • $\chi_{n-1 ; \alpha}^{2} = 17,70837$;
  • $\sqrt{\frac{n-1}{\chi_{n-1 ; \alpha}^{2}}} = 1,279705$;
  • $\sqrt{1+\frac{n-3-\chi_{n-1 ; \alpha}^{2}}{2(n+1)^{2}}} = 1,002414$.

Then, $$ k = 1,644854 \cdot 1,01653 \cdot 1,279705 \cdot 1,002414 = 2,144888 $$

And consequently, the tolerance interval is: $$IT_{100\cdot(1-\alpha)\char37}[P] = [\overline{x} - k\cdot s ; \overline{x} - k\cdot s] $$ $$IT_{95\char37}[90\char37] = [29,1197 - 2,144888 \cdot 8,7690 ; 29,1197 + 2,144888 \cdot 8,7690]$$ $$IT_{95\char37}[90\char37] = [10,3112 ; 47,9282]$$

With Action Stat we have the following results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 10.3111 47.9282

Table 6.4.9: Results of the bilateral Tolerance Interval (with normal distribution) with the Action Stat

Normal Log

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

6612612988005,81 27847248463,48 106349853386,77
1467365074548577024,00 118982792768420,97 76629252025051,09
3365135824271395840,00 10267451919698,46 586087048871485505536,00
14602950613189902,00 87267567199064,16 654904512,15
45003225413,33 87463678566640976,00 1570232354786859,25
35400790947,99 8946152978611619,00 16966208067273982,00
101950708,05 89723629552,60 1149099835437,40
53878642861,33 1004499,53 4091775093419,58
42382441591,17 2016218253651770,50 68339603,31
126340277771542,59 13828534337,99 7115,28

Table 6.4.10: Data from a Lognormal distribution

For this data, we take the natural logarithm and construct the interval based on the normal distribution, as described in section 4.8.1 of this statistical protocol.

When taking the exponential of the data, we arrive at the same values present in the Table 6.4.21, which are normally distributed. Therefore, simply calculate the interval for data with normal distribution and, subsequently, apply the exponential function.

One-sided range

Therefore, the lower unilateral tolerance range is:

$$IT_{100\cdot(1-\alpha)\char37}[P] = [\exp \lbrace 13,53422 \rbrace ; \infty]$$ $$IT_{95\char37}[90\char37] = [754809 ; \infty].$$

While the upper one is:

$$IT_{100\cdot(1-\alpha)\char37}[P] = [ -\infty ; \exp \lbrace 44,70511 \rbrace ]$$ $$IT_{95\char37}[90\char37] = [-\infty ; 2,601253 \cdot 10^{19}].$$

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 754809.5123 26012597896719430000

Table 6.4.11: Results of the bilateral Tolerance Interval (with normal distribution) with the Action Stat

Bilateral range

In the bilateral case, we have to: $$ IT_{100\cdot(1-\alpha)\char37}[P] = [\exp \lbrace 10,31109 \rbrace ; \exp \lbrace 47,92824 \rbrace ]$$ $$IT_{95\char37}[90\char37] = [30064,19 ; 6,530857 \cdot 10^{20}].$$

In Action Stat, you have:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 30064.2008 653087585678552900000

Table 6.4.12: Results of the unilateral Tolerance Interval (with normal distribution) with the Action Stat

Exponential

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

3,25 0,57 0,16 4,08 3,77 1,12 3,88 1,39 1,32 0,83
1,48 0,57 0,10 0,84 1,21 0,13 0,30 0,30 6,40 1,20
2,33 0,25 3,75 1,21 1,01 0,54 3,10 0,38 0,22 0,16
3,61 0,60 3,77 2,87 0,47 3,47 3,11 3,81 0,30 17,72

Table 6.4.13: Data from an exponential distribution with mean 2

For these data we have $\widehat{\lambda} = 2,1395$.

One-sided range

For the one-sided tolerance interval of the exponential distribution we have:

$$L =\frac{2 n \hat{\lambda} \ln (1/P)}{\chi_{2 n ; 1-\alpha}^{2}}$$ $$U =\frac{2 n \hat{\lambda} \ln (1/(1-P))}{\chi_{2 n ; \alpha}^{2}}$$

In this case:

  • $n = 40$;
  • $\widehat{\lambda} = 2,1395$;
  • $P = 0,90$;
  • $\alpha = 0,05$;
  • $\chi_{2 n ; 1-\alpha}^{2} = 101,8795$;
  • $\chi_{2 n ; \alpha}^{2} = 60,39148$.

Then, $$L =\frac{2 \cdot 40 \cdot 2,1395 \cdot \ln (1/0,9)}{101,8795} = 0,1770082$$ $$U =\frac{2 \cdot 40 \cdot 2,1395 \cdot \ln (1/(1-0,9))}{60,39148} = 6,525928$$

Therefore, the lower unilateral tolerance range is: $$IT_{95\char37}[90\char37] = [0,1770082 ; \infty]$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 0.177 6.5259

Table 6.4.14: Results of the unilateral Tolerance Interval (exponential distribution) with Action Stat

Bilateral range

For the bilateral tolerance interval of the exponential distribution we have: $$L =\frac{2 n \hat{\lambda} \ln (2/(1+P))}{\chi_{2 n ; 1-\alpha/2}^{2}}$$ $$U =\frac{2 n \hat{\lambda} \ln (2/(1-P))}{\chi_{2 n ; \alpha/2}^{2}}$$

In this case:

  • $n = 40$;
  • $\widehat{\lambda} = 2,1395$;
  • $P = 0,90$;
  • $\alpha = 0,05$;
  • $\chi_{2 n ; 1-\alpha/2}^{2} = 106,6286$;
  • $\chi_{2 n ; \alpha/2}^{2} = 57,15317$.

Therefore, $$L =\frac{2 \cdot 40 \cdot 2,1395 \cdot \ln (2/(1+0,9))}{106,6286} = 0,0823359$$ $$U =\frac{2 \cdot 40 \cdot 2,1395 \cdot \ln (2/(1-0,9))}{57,15317} = 8,971498$$

Therefore, the two-sided tolerance range is: $$IT_{95\char37}[90\char37] = [0,0823359 ; 8,971498].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 0.0823 8.9715

Table 6.4.15: Results of the bilateral Tolerance Interval (exponential distribution) with Action Stat

Logistics

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

13,65 18,29 8,02 23,67 7,19 31,77 17,06 12,30 4,45 11,26
12,13 12,76 27,56 16,44 18,30 7,98 15,64 18,94 14,63 18,97
2,36 14,21 5,87 8,19 11,45 11,62 4,81 16,50 15,53 10,35
21,15 12,51 10,32 6,28 21,40 13,44 25,93 12,94 8,26 7,17
18,61 10,65 16,08 19,27 15,99 11,34 33,83 18,54 3,73 18,72

Table 6.4.16: Data from a logistic distribution with parameter location equal to 15 and scale equal to 4

For these data we have:

  • $\widehat{\theta} = 13,96957$;
  • $\widehat{\sigma} = 6,829025$;
  • $\widehat{\sigma}^2_1 = 0,8545755$;
  • $\widehat{\sigma}^2_2 = 0,1973863$;
  • $\widehat{\sigma}_{1,2} = 0,01130623$.

One-sided range

The tolerance range is given by: $$L =\hat{\theta}-k_{1} \hat{\sigma}$$ $$U =\hat{\theta}+k_{2} \hat{\sigma}$$

For unilateral limits the values of $k_1$ and $k_2$ are: $$k_{1} \approx \frac{t_{1}+\sqrt{t_{1}^{2}-u v}}{v}$$ $$k_{2} \approx \frac{t_{2}+\sqrt{t_{2}^{2}-u v}}{v} $$

Such that: $$ t_{1} =F_{X}^{-1}(P ; \theta=0, \sigma=1)-\hat{\sigma}_{1,2} z_{1-\alpha}^{2}$$ $$t_{2} =F_{X}^{-1}(P ; \theta=0, \sigma=1)+\hat{\sigma}_{1,2} z_{1-\alpha}^{2}$$ $$u =\left[F_{X}^{-1}(P ; \theta=0, \sigma=1)\right]^{2}-\hat{\sigma}_{1}^{2} z_{1-\alpha}^{2}$$ $$v =1-\hat{\sigma}_{2}^{2} z_{1-\alpha}^{2} $$

In this case, we have:

  • $n = 50$;
  • $\alpha = 5\char37$;
  • $P = 90\char37$;
  • $z_{1-\alpha}^{2} = 2,705543$;
  • $F_{X}^{-1}(P ; \theta=0, \sigma=1) = 1,211393$;
  • $t_1 = 1,211393 - 0,01130623 \cdot 2,705543 = 1,180804$;
  • $t_2 = 1,211393 + 0,01130623 \cdot 2,705543 = 1,241982$;
  • $u = 1,211393^2 - 0,8545755 \cdot 2,705543 = -0,8446178$;
  • $v = 1 - 0,1973863 \cdot 2,705543 = 0,4659629$.

Staying, $$k_{1} \approx \frac{1,180804+\sqrt{1,180804^{2}-(-0,8446178) \cdots 0,4659629}}{0,4659629} = 5,403676$$ $$k_{2} \approx \frac{1,241982+\sqrt{1,241982^{2}-(-0,8446178) \cdot 0,4659629}}{0,4659629} = 5,651551.$$

Finally, the lower one-sided tolerance range is: $$IT_{95\char37}[90\char37] = [13,96957 - 5,403676 \cdot 6,829025 ; \infty]= [-22,93227 ; \infty].$$

While the upper range is: $$IT_{95\char37}[90\char37] = [ -\infty ; 13,96957 + 5,651554 \cdot 6,829025] = [-\infty ; 52,56417].$$

Bilateral range

We now have an example of a bilateral interval. The bilateral tolerance range is given by: $$L =\hat{\theta}-k_{1} \hat{\sigma}$$ $$U =\hat{\theta}+k_{2} \hat{\sigma}$$

For bilateral limits the values of $k_1$ and $k_2$ are: $$k_{1} \approx \frac{t_{1}+\sqrt{t_{1}^{2}-u v}}{v}$$ $$k_{2} \approx \frac{t_{2}+\sqrt{t_{2}^{2}-u v}}{v}$$

Such that: $$t_{1} =F_{X}^{-1}((P+1)/2 ; \theta=0, \sigma=1)-\hat{\sigma}_{1,2} z_{1-\alpha/2}^{2}$$ $$t_{2} =F_{X}^{-1}((P+1)/2 ; \theta=0, \sigma=1)+\hat{\sigma}_{1,2} z_{1-\alpha/2}^{2}$$ $$u =\left[F_{X}^{-1}((P+1)/2 ; \theta=0, \sigma=1)\right]^{2}-\hat{\sigma}_{1}^{2} z_{1-\alpha/2}^{2}$$ $$v =1-\hat{\sigma}_{2}^{2} z_{1-\alpha/2}^{2}$$

In this case, we have:

  • $n = 50$;
  • $\alpha = 5\char37$;
  • $P = 90\char37$;
  • $z_{1-\alpha/2}^{2} = 3,841459$;
  • $F_{X}^{-1}((P+1)/2 ; \theta=0, \sigma=1) = 1,623354$;
  • $t_1 = 1,623354 - 0,01130623 \cdot 3,841459 = 1,579922$;
  • $t_2 = 1,623354 + 0,01130623 \cdot 3,841459 = 1,666786$;
  • $u = 1,623354^2 - 0,8545755 \cdot 3,841459 = -0,6475385$;
  • $v = 1 - 0,1973863 \cdot 3,841459 = 0,2417486$.

Staying, $$k_{1} \approx \frac{1,579922+\sqrt{1,579922^{2}-(-0,6475385) \cdot 0,2417486}}{0,2417486} = 13,2726$$ $$k_{2} \approx \frac{1,666786+\sqrt{1,666786^{2}-(-0,6475385) \cdot 0,2417486}}{0,2417486} = 13,9810.$$

Finally, the lower one-sided tolerance range is:

$$IT_{95\char37}[90\char37] = [13,96957 - 13,2726 \cdot 6,829025 ; 13,96957 + 13,9810 \cdot 6,829025]$$ $$IT_{95\char37}[90\char37] = [-76,66935 ; 109,4462].$$

Range

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

9,34 5,29 6,15 12,18 9,23 4,48 40,14 25,35 10,67 6,86
11,46 12,73 1,17 18,66 8,55 3,17 23,45 2,64 22,09 24,71
10,04 11,87 32,86 4,80 19,68 13,18 10,10 9,79 6,25 3,55
4,61 23,75 3,54 2,43 18,18 15,23 4,76 44,95 14,05 24,31
29,62 13,50 13,70 20,37 6,95 4,62 14,84 11,16 2,91 4,93

Table 4.9: Data from a gamma distribution with a shape equal to 2 and scale equal to 7

For these data, estimates are obtained via optimization methods. In this case we have:

  • $\widehat{\theta} = 1,892514$;
  • $\widehat{\beta} = 6,96269$.

Still, $$\widehat{\mu} =\frac{6,96269^{1 / 3} \Gamma(1,892514+1 / 3)}{\Gamma(1,892514)} = 2,224858,$$ $$\widehat{\sigma}^{2} =\frac{6,96269^{2 / 3} \Gamma(1,892514+2 / 3)}{\Gamma(1,892514)}-2,224858^{2} =0,3224228.$$

One-sided range

As presented in \ref{gamma_dist}, the normal approximation is used to obtain the value of $k$, then: $$k = \frac{1}{\sqrt{n}} t_{n-1 ; 1-\alpha}\left(z_{P} \sqrt{n}\right).$$

In this case:

  • $n = 50$;
  • $1/\sqrt{n} = 0,1414214$;
  • $z_P = 1,281552$;
  • $t_{n-1 ; 1-\alpha}\left(z_{P} \sqrt{n}\right) = 11,6359$.

Then, $$k = 0,1414214 \cdot 11,6359 = 1,645565.$$

Therefore, the lower unilateral tolerance range is: $$IT_{100\cdot(1-\alpha)\char37}[P] = [ \left \lbrace \widehat{\mu} - k\cdot \sqrt{\widehat{\sigma}^2} \right \rbrace ^3 ; +\infty]$$ $$IT_{95\char37}[90\char37] = [\left \lbrace 2,224858 - 1,645565 \cdot \sqrt{0,3224228} \right \rbrace ^3 ; +\infty]$$ $$IT_{95\char37}[90\char37] = [2.1786 ; +\infty].$$

While the upper one is:

$$IT_{100\cdot(1-\alpha)\char37}[P] = [-\infty ; \left \lbrace \widehat{\mu} + k\cdot \sqrt{\widehat{\sigma}^2} \right \rbrace ^3]$$ $$IT_{95\char37}[90\char37] = [-\infty ; \left \lbrace 2,224858 + 1,645565 \cdot \sqrt{0,3224228} \right \rbrace ^3 ]$$ $$IT_{95\char37}[90\char37] = [-\infty ; 31.9613].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 2.1786 31.9618

Table 6.4.17: Results of the unilateral Tolerance Interval (of gamma distribution) with the Action Stat

Bilateral range

In the bilateral case, we have to $k$ is given by: $$k = z_{\frac{1+P}{2}} \sqrt{1+n^{-1}} \cdot \sqrt{\frac{n-1}{\chi_{n-1 ; \alpha}^{2}}} \cdot \sqrt{1+\frac{n-3-\chi_{n-1 ; \alpha}^{2}}{2(n+1)^{2}}}.$$

In this case:

  • $P = 0,9$;
  • $n = 50$;
  • $\alpha = 0,05$;
  • $z_{\frac{1+P}{2}} = 1,644854$;
  • $\sqrt{1+n^{-1}} = 1,00995$;
  • $\chi_{n-1 ; \alpha}^{2} = 33,93031$;
  • $\sqrt{\frac{n-1}{\chi_{n-1 ; \alpha}^{2}}} = 1,201722$;
  • $\sqrt{1+\frac{n-3-\chi_{n-1 ; \alpha}^{2}}{2(n+1)^{2}}} = 1,001255$.

Then, $$k = 1,644854 \cdot 1,00995 \cdot 1,201722 \cdot 1,001255 = 1,998832.$$

Thus, the bilateral tolerance range is:

$$IT_{100\cdot(1-\alpha)\char37}[P] = \left[\left \lbrace \widehat{\mu} - k\cdot \sqrt{\widehat{\sigma}^2} \right \rbrace ^3 ; \left \lbrace \widehat{\mu} + k\cdot \sqrt{\widehat{\sigma}^2} \right \rbrace ^3 \right]$$ $$IT_{95\char37}[90\char37] = \left[\left \lbrace 2,224858 - 1,998832\cdot \sqrt{0,3224228} \right \rbrace ^3\right. ; \left. \left \lbrace 2,224858 + 1,998832\cdot \sqrt{0,3224228} \right \rbrace ^3 \right]$$ $$IT_{95\char37}[90\char37] = \left[ 1,095213^3 ; 3.374694^3 \right] = [1,3137; 38,433].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 1.3137 38.4329

Table 6.4.18: Results of the bilateral Tolerance Interval (gamma distribution) with the Action Stat

Weibull

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

8,52 6,82 4,28 7,21 3,54 7,39 4,69 7,74 7,50 7,94
5,19 9,01 7,55 5,55 5,50 6,29 8,06 6,65 5,55 7,02
8,07 7,78 6,91 6,56 6,24 6,91 7,93 7,33 6,58 9,64
5,85 9,18 4,01 6,74 4,48 9,26 7,20 7,56 5,47 6,92
9,43 4,15 7,77 7,63 7,19 8,73 7,90 8,71 6,17 6,57

Table 4.10: Weibull distribution data with shape equal to 5 and scale equal to 8

For these data, the following maximum likelihood estimates are available.

  • $\widehat{\beta}: 5,580786$ (shape);
  • $\widehat{\theta}: 7,516806$ (scale).

One-sided range

The range limits are given by: $$L=\hat{\xi}-\frac{\hat{\delta} t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{P}\right)}{\sqrt{n-1}},$$ $$U=\hat{\xi}-\frac{\hat{\delta} t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{1-P}\right)}{\sqrt{n-1}}.$$

Where:

  • $\widehat{\xi} = \ln(\widehat{\theta}) = 2,017141$;
  • $\widehat{\delta} = \widehat{\beta}^{-1} = 0,1791862$;
  • $t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{P}\right) = 19,60841$;
  • $t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{1-P}\right) = -8,04657$.

Therefore, $$L=2,017141-\frac{0,1791862 \cdot 19,60841}{7} = 1,515204,$$ $$U=2,017141-\frac{0,1791862 \cdot (-8,04657)}{7} = 2,223117.$$

The lower one-sided tolerance range being as below: $$IT_{95\char37}[90\char37] = \left[\exp(1,515204) ; \infty \right] = [4,550349 ; \infty].$$

Next is the top:

$$IT_{95\char37}[90\char37] = \left[0 ; \exp(2,223117) \right] = [0 ; 9,236075].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 4.5504 9.2361

Table 6.4.19: Results of the unilateral Tolerance Interval (from Weibull distribution) with the Action Stat

Bilateral range

The range limits are given by: $$L=\hat{\xi}-\frac{\hat{\delta} t_{n-1 ; 1-\alpha/2}^{*}\left(-\sqrt{n} \lambda_{(P+1)/2}\right)}{\sqrt{n-1}},$$ $$U=\hat{\xi}-\frac{\hat{\delta} t_{n-1 ; \alpha/2}^{*}\left(-\sqrt{n} \lambda_{(1-P)/2}\right)}{\sqrt{n-1}}.$$

Where:

  • $\widehat{\xi} = \ln(\widehat{\theta}) = 2,017141$;
  • $\widehat{\delta} = \widehat{\beta}^{-1} = 0,1791862$;
  • $t_{n-1 ; 1-\alpha/2}^{*}\left(-\sqrt{n} \lambda_{(P+1)/2}\right) = 26,63338$;
  • $t_{n-1 ; \alpha/2}^{*}\left(-\sqrt{n} \lambda_{(1-P)/2}\right) = -10,66064$.

Therefore, $$L=2,017141-\frac{0,1791862 \cdot 26,63338}{7} = 1,335379,$$ $$U=2,017141-\frac{0,1791862 \cdot (-10,66064)}{7} = 2,290032.$$

The bilateral tolerance range is: $$IT_{95\char37}[90\char37] = \left[ \exp(1,335379) ; \exp(2,290032) \right] = [3,801436 ; 9,875254].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 3.8014 9.8753

Table 6.4.20: Results of the unilateral Tolerance Interval (Weibull distribution) with the Action Stat

Gumbel

The Gumbel distribution is a distribution for extreme values. In the case of Action it is a distribution for the maximum.

You want to build a tolerance interval with at least $90\char37$ of population population with $95\char37$ trustworthy. To do this, consider the data vector below.

14,24 15,86 11,71 13,93 16,53 9,36 8,21 8,82 5,53 9,46
17,28 11,55 8,94 12,53 8,13 13,60 7,41 11,91 4,32 8,47
6,25 8,28 8,70 9,96 10,54 22,52 18,98 8,38 9,02 9,36
4,84 5,61 12,79 8,66 5,45 24,50 2,49 7,98 7,64 21,04
4,56 12,75 11,69 9,44 4,28 13,70 12,29 14,38 8,33 22,78

Table 6.4.21: Data from the Gumbel distribution with location parameter equal to 9 and scale equal to 4

For these data, the maximum likelihood estimators are:

  • $\hat{\xi} = 8,643191$;
  • $\hat{\delta} = 3,878154$.

One-sided range

The tolerance interval for the Gumbel distribution is given by $$L=\hat{\xi}+\frac{\hat{\delta} t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{1-P}\right)}{\sqrt{n-1}},$$ $$U=\hat{\xi}+\frac{\hat{\delta} t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{P}\right)}{\sqrt{n-1}}.$$

Where:

  • $n = 50$;
  • $\sqrt{n - 1} = \sqrt{50 - 1} = 7$;
  • $P = 0,90$;
  • $\lambda_{1 - P} = \ln(-\ln(1 - 0,90)) = 0,8340324$;
  • $\lambda_{P} = \ln(-\ln(0,90)) = -2,250367$;
  • $\alpha = 0,05$;
  • $t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{1-P}\right) = -8,04657$;
  • $t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{P}\right) = 19,60841$.

So, $$L=8,643191+\frac{3,878154 \cdot -8,04657}{7} = 4,185214,$$ $$U=8,643191+\frac{3,878154 \cdot 19,60841}{7} = 19,50668.$$

The lower unilateral tolerance range is:

$$IT_{95\char37}[90\char37] = \left[4,185214 ; \infty \right].$$

Then there is the top:

$$IT_{95\char37}[90\char37] = [0 ; 19,50668].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 4.1852 19.5067

Table 6.4.22: Results of the unilateral Tolerance Interval (Gumbel distribution) with the Action Stat

The two-sided tolerance interval for the Gumbel distribution is given by $$L=\hat{\xi}+\frac{\hat{\delta} t_{n-1 ; \alpha/2}^{*}\left(-\sqrt{n} \lambda_{(1-P)/2}\right)}{\sqrt{n-1}},$$ $$U=\hat{\xi}+\frac{\hat{\delta} t_{n-1 ; 1-\alpha/2}^{*}\left(-\sqrt{n} \lambda_{(1 + P)/2}\right)}{\sqrt{n-1}}.$$

Where:

  • $n = 50$;
  • $\sqrt{n - 1} = \sqrt{50 - 1} = 7$;
  • $P = 0,90$;
  • $\lambda_{(1 - P)/2} = \ln(-\ln((1 - 0,90)/2)) = 1,097189$;
  • $\lambda_{(1 + P)/2} = \ln(-\ln((1 + 0,90)/2)) = -2,970195$;
  • $t_{n-1 ; \alpha}^{*}\left(-\sqrt{n} \lambda_{(1-P)/2}\right) = -10,66064$;
  • $t_{n-1 ; 1-\alpha}^{*}\left(-\sqrt{n} \lambda_{(1+P)/2}\right) = 26,63338$.

So, $$L=8,643191+\frac{3,878154 \cdot -10,66064}{7} = 2,736962,$$ $$U=8,643191+\frac{3,878154 \cdot 26,63338}{7} = 23,39867.$$

The bilateral tolerance range is: $$IT_{95\char37}[90\char37] = \left[2,736962 ; 23,39867 \right].$$

Results:

Significance level Population proportion Lower limit Upper Limit
0.05 0.9 2.737 23.3987

Table 6.4.23: Results of the bilateral Tolerance Interval (Gumbel distribution) with the Action Stat

↑