1.7 Determination plan
The use of a sample in a given study inevitably implies the acceptance of a margin of error, which we call sampling error. It is not possible to avoid the occurrence of sampling error, however we can limit its value by choosing a sample of an appropriate size.
Thus, the determination plan is used when we wish to determine the sample size (n) that ensures an adequate probability of error.
Suppose $B_{q}$ be the time for which q×100% of the parts in a study fail. We then want to determine a strategy to evaluate whether a given product meets the requirement $B_{q}$.
To do this, we must consider the following assumptions:
-
Test n pieces for t time units;
-
The product meets the requirement $B_{q}$ if no part fails during the test, that is, “zero defects”.
The question now is how to determine the sample size n that ensures an adequate probability of error. To do this, we consider two possible cases that are presented below.
Case 1: Test the product for t = $B_{q}$ units of time
To deal with this case, we defined the following hypotheses:
$$\begin{cases} H_{0}:~\hbox{o produto não atende ao requisito}~B_q \cr H_{1}:~\hbox{o produto atende ao requisito}~B_q.\end{cases} \tag{7.1}$$
As each product may or may not fail during the test, the binomial distribution is a good probabilistic model for determining the sample size.
We consider n pieces under study and for each piece we associate a random variable $X_{i}$ such that
$$\begin{cases} X_{i}=1,~\hbox{se o produto } i \hbox{ falhar} \cr X_{i}=0,~\hbox{se o produto $i$ não falhar}.\end{cases}$$
In this case we obtain that $X_i \sim \hbox{Bernoulli(p)}$.
We now consider a variable Y that denotes the number of parts that failed during the test. With this, we obtain that $Y \sim \hbox{Binomial(n, p)}$, where p represents the actual probability of defects in the specified time $(B_{q})$.
In this way, we can rewrite hypotheses (7.1) as
$$\begin{cases} H_{0}:~p \geq q,~~~~\hbox{não atende ao requisito} \cr H_{1}:~p~<~ q,~~~~\hbox{atende ao requisito}.\end{cases}$$
The probability of a Type I error is given by
$$\alpha = {P}[\hbox{rejeitar}~H_{0}~|~H_{0}~\hbox{verdadeiro}]$$
So, considering that the product meets the requirement $B_{q}$ if no part fails during the test (zero defect) we have
$$\alpha = {P}[\hbox{zero~defeito}~|~p = q] = \binom{n}{0} q^0(1-q)^{n-0}.$$
Then,
$$\alpha=(1-q)^n \Rightarrow \ln(\alpha)=n\ln(1-q).$$
Therefore, isolating we obtain
$$n=\dfrac{\ln(\alpha)}{\ln(1-q)}.$$
Example 7.1
Determine the sample size to evaluate the requirement $B_{0,1}$ = 320,000 cycles.
In this case, to determine the sample size n, we simply need to establish a probability of type I error ($\alpha$).
Thus, if we consider $\alpha=0,1$ we get
$$n =\dfrac{\ln(\alpha)}{\ln(1-q)}=\dfrac{\ln(0,1)}{\ln(1-0,1)}=21,85=22.$$
For $\alpha=0,4$ we get
$$n=\dfrac{\ln(\alpha)}{\ln(1-q)}=\dfrac{\ln(0,4)}{\ln(1-0,1)}=8,7=9.$$
In Table 1.7.1 we present the sample sizes for different values of $\alpha.$ We can observe that the larger the sample size, the lower the probability of error.
| $ \alpha $ | n |
|---|---|
| 0,05 | 29 |
| 0,1 | 22 |
| 0,15 | 19 |
| 0,2 | 16 |
| 0,25 | 14 |
| 0,3 | 12 |
| 0,35 | 10 |
| 0,4 | 9 |
Table 1.7.1: Sample sizes (n) for different values of $\alpha.$
Case 2: Test the product by t $~\neq~$ $B_{q}$ units of time
In this case, we test the product for t time units different from the requirement $B_{q}$. For this, we assume that the time until failure occurs follows a Weibull distribution (a, δ), where δ is a known parameter.
In this way, we have
$$1-q = {P}[T \geq B_q] = \exp\left(-\left(\dfrac{B_q}{a}\right)^{\delta}\right),$$
where T is the time until failure occurs.
Therefore, when we isolate $a$ we get,
$$\ln(1-q)=-\left(\dfrac{B_q}{a}\right)^{\delta} \Rightarrow \ln(1-q)=-\dfrac{B_q^{\delta}}{a^{\delta}}.$$
Then,
$$a^{\delta}=\dfrac{B_q^{\delta}}{-\ln(1-q)} \Rightarrow a=\left(\dfrac{B_q^{\delta}}{-\ln(1-q)}\right)^{1/\delta}.$$
Therefore,
$$a=\dfrac{B_q}{(-\ln(1-q))^{1/\delta}}.$$
With the value of $a$ obtained above, we can calculate the expected failure proportion for a given time t. With this, it follows that
$$q_t = {P}[T~<~t]=1-\exp\left(-\left(\dfrac{t}{a}\right)^{\delta}\right),$$
being $q_t$ the expected proportion of failure at time t.
With this $q_t$ we perform the steps (probabilistic model) described in Case 1 and we thus obtain the sample size (n), expressed by
$$n=\dfrac{\ln(\alpha)}{\ln(1-q_t)}.$$
Example 7.2
We want to evaluate whether a certain product meets the requirement $B_{0,1}$ = 320,000 cycles. However, we will test the product for t = 600,000 cycles. What should the sample size be?
Note that to resolve this problem we need to follow the steps described in Case 2.
So, we have $B_{q}$ = $B_{0,1}$ = 320,000 cycles, where q = 0.1 = 10%. Suppose that T, the time until failure occurs, follows a Weibull distribution with parameter δ = 2. Using the expressions obtained in Case 2 we have
$$1-q = {P}[T \geq B_q]=\exp\left(-\left(\dfrac{B_q}{a}\right)^{\delta}\right).$$
So, making the appropriate substitutions, it follows that
$$1-0,1 = {P}[T \geq B_{0,1}]=\exp\left(-\left(\dfrac{320.000}{a}\right)^{2}\right).$$
Therefore, isolating $a$ we get
$$a=\dfrac{320.000}{(-\ln(1 - 0,1))^{1/2}} = 985850,4399.$$
With the value of a = 985850.4399, we can find the expected failure rate for time t = 600,000 cycles. In this way,
$$q_t = P[T~<~t] = 1 - \exp\left(-\left(\dfrac{t}{a}\right)^{\delta}\right) = 1 - \exp\left(-\left(\dfrac{600000}{985850,4399}\right)^{2}\right) = 0,309547475.$$
Thus, if we consider $\alpha =0,1$ we get
$$n=\dfrac{\ln(\alpha)}{\ln(1-q_t)}=\dfrac{\ln(0,1)}{\ln(1-0,309547475)}=6,216347115 = 7.$$
For $\alpha =0,4$ we get
$$n=\dfrac{\ln(\alpha)}{\ln(1-q_t)} = \dfrac{\ln(0,4)}{\ln(1-0,309547475)}=2,473733225 = 3.$$
In Table 7.2 we present the sample sizes for different values of $\alpha.$ Analogous to Case 1, the larger the sample size, the lower the probability of error.
| $ \alpha $ | n |
|---|---|
| 0,05 | 9 |
| 0,1 | 7 |
| 0,15 | 6 |
| 0,2 | 5 |
| 0,25 | 4 |
| 0,3 | 4 |
| 0,35 | 3 |
| 0,4 | 3 |
Table 1.7.2: Sample sizes (n) for different values of $\alpha.$
Note that, following the procedure described by Case 2 we obtain smaller sample sizes (n) than by Case 1. However, the two possible cases are suitable for determining the sample size, using the procedure (Case 1 or Case 2) that best adapts to the situation in question.