|
17 | 17 | "to the topic.\n",
|
18 | 18 | "\n",
|
19 | 19 | "The *failure rate* for a widget over a period of time is the average number \n",
|
20 |
| - "of failures in that time per widget. An annual failure \n", |
21 |
| - "rate of 0.25 means that on average, there are 0.25 failures per widgets.\n", |
| 20 | + "of failures in that period per widget. An annual failure \n", |
| 21 | + "rate of 0.25 means that on average, there are 0.25 failures per widget.\n", |
22 | 22 | "If you have 100 widgets for one year, there would be an average of 25 failures per year.\n",
|
23 | 23 | "\n",
|
24 | 24 | "A failure rate of 0.25 is frequently written as 25%.\n",
|
|
57 | 57 | "\n",
|
58 | 58 | "If you add up the infinite sequence of probabilites, it will add up to 1.0.\n",
|
59 | 59 | "\n",
|
| 60 | + "To calculate the probability of zero failures, you can simplify the formula:\n", |
| 61 | + "\n", |
| 62 | + "$$\\text{probability of 0 failures} = e^{-\\lambda} \\: \\frac{\\lambda^0}{0!} \\: = \\: \\: e^{-\\lambda}$$\n", |
| 63 | + "\n", |
60 | 64 | "The probability of having at least one failure is the sum of entries from 1 on, which is \n",
|
61 |
| - "the same as one minus the probability of 0 failures. Because $lambda^0 = 1$ and $0! = 1$,\n", |
62 |
| - "the formula can be simplified:\n", |
| 65 | + "the same as one minus the probability of 0 failures:\n", |
63 | 66 | "\n",
|
64 |
| - "$$\\text{probability of 0 failures} = 1 \\: - \\: e^{-\\lambda} \\: \\frac{\\lambda^0}{0!} \\: = \\: 1 \\: - \\: e^{-\\lambda}$$\n", |
| 67 | + "$$\\text{probability of one or more failures} \\: = \\: 1 \\: - \\: e^{-\\lambda}$$\n", |
65 | 68 | "\n",
|
66 | 69 | "We'll use this formula later to calculate the probability of failures given a failure rate.\n",
|
67 | 70 | "\n",
|
|
72 | 75 | "Let's look at an example: You have three widgets with an annual failure rate of 0.25 (25%). \n",
|
73 | 76 | "What is the probability that 2 or more of the three widgets will fail in the year?\n",
|
74 | 77 | "\n",
|
75 |
| - "We'll use $P$ for the probability of a given widget failing at least one time.\n", |
| 78 | + "We'll use $P$ for the probability of a given widget failing at least once in the period.\n", |
76 | 79 | "Using the formula from the prevous section, that probability is $0.2212$:\n",
|
77 | 80 | "\n",
|
78 | 81 | "$$P = 1 - e^{-0.25} \\approx 0.2212$$\n",
|
|
81 | 84 | "\n",
|
82 | 85 | "$$\\text{probability of not failing} = 1 - P \\approx 0.7788$$\n",
|
83 | 86 | "\n",
|
84 |
| - "There are eight possible combinations of failure for the three widgets. The first one is that none of them fail. The probability for that is the product of the probabilities for each of the widgets: $0.7788 * 0.7788 * 0.7788 = 0.4724$$\n", |
| 87 | + "There are eight possible combinations of failure for the three widgets. The first one is that none of them fail. The probability for that is the product of the probabilities for each of the widgets not failing: $0.7788 \\times 0.7788 \\times 0.7788 = 0.4724$\n", |
85 | 88 | "\n",
|
86 |
| - "We can compute the probability of all eight cases:\n", |
| 89 | + "We can compute the probability of all eight cases by taking the probability that each\n", |
| 90 | + "widget will be OK or FAIL and multiplying them together. The sum of the resulting probabilities\n", |
| 91 | + "in the right column add up to 1.0:\n", |
87 | 92 | "\n",
|
88 | 93 | "A | A prob | B | B prob | C | C prob | Probability\n",
|
89 | 94 | "--- | --- | --- | --- | --- | --- | ---\n",
|
|
99 | 104 | "To get the probability of two or more failing, we add up the probabilities of all\n",
|
100 | 105 | "rows that have two or more failures. The rows with exactly two failures add up\n",
|
101 | 106 | "to $0.1143$. The one row with three failures has a probability of $0.0108$. Those\n",
|
102 |
| - "add up to a $0.1251$ probability of two or more failures.\n", |
| 107 | + "add up to a probability of $0.1251$ for two or more failures.\n", |
103 | 108 | "\n",
|
104 | 109 | "You'll notice that all of the rows with two failures have the same probability,\n",
|
105 | 110 | "which makes sense. The number of those rows is given by: $\\binom{3}{2}$, which \n",
|
|
0 commit comments