



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























27
This chapter reviews basic notions of probability (or “sto- chastic variability”) which is the formal study of the laws of chance, i.e., where the ambiguity in outcome is inherent in the nature of the process itself. Both the primary views of probability, namely the frequentist (or classical) and the Bayesian, are covered, and some of the important probabi- lity distributions are presented. Finally, an effort is made to explain how probability is different from statistics, and to present different views of probability concepts such as ab- solute, relative and subjective probabilities.
A random variable is a numerical description of the outcome of an experiment whose value depends on chance, i.e., whose outcome is not entirely predictable. Tossing a dice is a ran- dom experiment. There are two types of random variables: (i) discrete random variable is one that can take on only a finite or countable number of values, (ii) continuous random variable is one that may take on any value in an interval. The following basic notions relevant to the study of pro- bability apply primarily to discrete random variables.
Random data by its very nature is indeterminate. So how can a scientific theory attempt to deal with indeterminacy? Probability theory does just that, and is based on the fact that though the result of any particular result of an experi- ment cannot be predicted, a long sequence of performances taken together reveals a stability that can serve as the basis for fairly precise predictions. Consider the case when an experiment was carried out a number of times and the anticipated event E occurred in some of them. Relative frequency is the ratio denoting the fraction of events when success has occurred. It is usually estimated empirically after the event from the following proportion:
For certain simpler events, one can determine this proportion without actually carrying out the experiment; this is referred to as “ wise before the event ”. For example, the relative fre- quency of getting heads (selected as a “success” event) when tossing a fair coin is 0.5 In any case, this apriori proportion is interpreted as the long run relative frequency, and is refer- red to as probability. This is the classical, or frequentist or traditionalist definition, and has some theoretical basis. This interpretation arises from the strong law of large numbers (a well-known result in probability theory) which states that the average of a sequence of independent random variables ha- ving the same distribution will converge to the mean of that distribution. If a dice is rolled, the probability of getting a pre- selected number between 1 and 6 (say, 4) will vary from event to event, but on an average will tend to be close to 1/6.
The classical or traditional probability concepts are associa- ted with the frequentist view of probability, i.e., interpreting
p(E) =
number of times E occured number of times the experiment was carried out
T�AgamiReddy, Applied Data Analysis and Modeling for Energy Engineers and Scientists, DOI 10 �1007/978-1-4419-9613-8_2,©SpringerScience+BusinessMedia,LLC 2011
Probability Concepts and Probability Distributions
28 2 Probability Concepts and Probability Distributions
probability as the long run frequency. This has a nice intui- tive interpretation, hence its appeal. However, people have argued that most processes are unique events and do not occur repeatedly, thereby questioning the validity of the fre- quentist or objective probability viewpoint. Even when one may have some basic preliminary idea of the probability as- sociated with a certain event, the frequentist view excludes such subjective insights in the determination of probability. The Bayesian approach, however, recognizes such issues by allowing one to update assessments of probability that integrate prior knowledge with observed events , thereby all- owing better conclusions to be reached. Both the classical and the Bayesian approaches converge to the same results as increasingly more data (or information) is gathered. It is when the data sets are small that the additional benefit of the Bayesian approach becomes advantageous. Thus, the Bayesian view is not an approach which is at odds with the frequentist approach, but rather adds (or allows the addition of) refinement to it. This can be a great benefit in many types of analysis, and therein lies its appeal. The Bayes’ theorem and its application to discrete and continuous pro- bability variables are discussed in Sect. 2.5, while Sect. 4. (of Chap. 4) presents its application to estimation and hypo- thesis problems.
The very first concept needed for the study of probability is a sound knowledge of combinatorial mathematics which is concerned with developing rules for situations involving permutations and combinations.
(a) Permutation P(n, k) is the number of ways that k ob- jects can be selected from n objects with the order being im- portant. It is given by:
(^) (2�2a)
A special case is the number of permutations of n objects taken n at a time:
(2�2b)
(b) Combinations C(n, k) is the number of ways that k ob- jects can be selected from n objects with the order not being important. It is given by:
P(n, k) =
n! (n − k)!
P(n, n) = n! = n(n − 1)(n − 2)...(2)(1)
C(n, k) =
n! (n − k)!k!
n k
Note that the same equation also defines the binomial coef- ficients since the expansion of (a+b) n^ according to the Bino- mial theorem is
Example 2 � 2 �1: (a) Calculate the number of ways in which three people from a group of seven people can be seated in a row. This is a case of permutation since the order is important. The number of possible ways is:
(b) Calculate the number of combinations in which three people can be selected from a group of seven. Here the order is not important and the combination for- mula can be used. Thus:
Another type of combinatorial problem is the factorial pro- blem to be discussed in Chap. 6 while dealing with design of experiments. Consider a specific example involving equip- ment scheduling at a physical plant of a large campus which includes primemovers (diesel engines or turbines which pro- duce electricity), boilers and chillers (vapor compression and absorption machines). Such equipment need a certain amount of time to come online and so operators typically keep some of them “idling” so that they can start supplying electricity/ heating/cooling at a moment’s notice. Their operating states can be designated by a binary variable; say “1” for on-sta- tus and “0” for off-status. Extensions of this concept include cases where, instead of two states, one could have m states. An example of 3 states is when say two identical boilers are to be scheduled. One could have three states altogether: (i) when both are off (0–0), (ii) when both are on (1–1), and (iii) when only one is on (1–0). Since the boilers are identical, state (iii) is identical to 0–1. In case, the two boilers are of different size, there would be four possible states. The num- ber of combinations possible for “n” such equipment where each one can assume “m” states is given by mn. Some simple cases for scheduling four different types of energy equipment in a physical plant are shown in Table 2.1.
A compound or joint or composite event is one which arises from operations involving two or more events. The use of Venn’s diagram is a very convenient manner of illustrating and unders- tanding compound events and their probabilities (see Fig. 2.1).
(a + b) n^ =
∑^ n
k = 0
n k
a n−k^ bk^.
30 2 Probability Concepts and Probability Distributions
Let the sample space S consist of two events A and B with probabilities p(A) and p(B) respectively. Then: (i) probability of any event, say A, cannot be negative. This is expressed as:
(2�5)
(ii) probabilities of all events must be unity (i.e., normal- ized): (^) (2�6)
(iii) probabilities of mutually exclusive events add up:
If a dice is rolled, the outcomes are mutually exclusive. If event A is the occurrence of 2 and event B that of 3, then p(A or B) = 1/6 + 1/6 = 1/3. Mutually exclusive events and in- dependent events are not to be confused. While the former is a property of the events themselves, the latter is a property that arises from the event probabilities and their intersections (this is elaborated further below). Some other inferred relations are: (iv) probability of the complement of event A:
(2�8)
(v) probability for either A or B (when they are not mutual- ly exclusive) to occur is equal to:
This is intuitively obvious from the Venn diagram (see Fig. 2.1b) since the hatched area (representing p ( A ∩ B )) gets counted twice in the sum and, so needs to be deducted once. This equation can also be deduced from the axioms of pro- bability. Note that if events A and B are mutually exclusive, then Eq. 2.9 reduces to Eq. 2.7.
(a) Joint probability of two independent events represents the case when both events occur together, i.e. p ( A and B ) = p ( A ∩ B ). It is equal to:
p(A) ≥ 0
p(S) ≡ p(A) + p(B) = 1
p(A ∪ B) = p(A) + p(B) if A and B are mutually exclusive
p(
− A )^ =^1 −^ p(A)
p(A ∪ B) = p(A) + p(B) − p(A ∩ B)
These are called product models. Consider a dice tossing ex- periment. If event A is the occurrence of an even number, then p(A) = 1/2. If event B is that the number is less than or equal to 4, then p(B) = 2/3. The probability that both events occur when a dice is rolled is p(A and B) = 1/2 × 2/3 = 1/3. This is consistent with our intuition since events {2,4} would satisfy both the events. (b) Marginal probability of an event A refers to the pro- bability of A in a joint probability setting. For example, con- sider a space containing two events, A and B. Since S can be taken to be the sum of event space B and its complement B¯, the probability of A can be expressed in terms of the sum of the disjoint parts of B:
(^) (2�11)
This notion can be extended to the case of more than two joint events.
Example 2 � 2 �2: Consider an experiment involving drawing two cards from a deck with replacement. Let event A = {first card is a red one} and event B = {card is between 2 and 8 inclu- sive}. How Eq. 2.11 applies to this situation is easily shown. Possible events A: hearts (13 cards) plus diamonds ( cards) Possible events B: 4 suites of 2, 3, 4, 5, 6, 7, 8. Also, p ( A^ ∩^ B )^ =^
and
p ( A ∩ ¯ B ) =
Consequently, from Eq. 2.11: p ( A ) =
This result of p ( A ) = 1/2 is obvious in this simple experiment, and could have been deduced intuitively. However, intuition may mislead in more complex cases, and hence, the useful- ness of this approach. (c) Conditional probability : There are several situations involving compound outcomes that are sequential or succes- sive in nature. The chance result of the first stage determi- nes the conditions under which the next stage occurs. Such events, called two-stage (or multi-stage) events, involve step- by-step outcomes which can be represented as a probability tree. This allows better visualization of how the probabilities progress from one stage to the next. If A and B are events, then the probability that event B occurs given that A has al- ready occurred is given by:
p ( A ∩ B ) = p ( A ) · p ( B ) if A and B are independent
p(A) = p(A ∩ B) + p(A ∩
− B )
p(B/A) =
p(A ∩ B) p(A)
31
A special but important case is when p(B/A) = p(B). In this case, B is said to be independent of A because the fact that event A has occurred does not affect the probability of B oc- curring. Thus, two events A and B are mutually exclusive if p ( B / A ) = p ( B ). In this case, one gets back Eq. 2.10. An example of a conditional probability event is the dra- wing of a spade from a pack of cards from which a first card was already drawn. If it is known that the first card was not a spade, then the probability of drawing a spade the second time is 12/51 = 4/17. On the other hand, if the first card drawn was a spade, then the probability of getting a spade on the second draw is 11/51.
Example 2 � 2 �3: A single fair dice is rolled. Let event A= {even outcome} and event B={outcome is divisible by 3}. (a) List the various events in the sample space: {1 2 3 4 5 6} (b) List the outcomes in A and find p(A): {2 4 6}, p(A) = 1/ (c) List the outcomes of B and find p(B): {3 6}, p(B) = 1/ (d) List the outcomes in A ∩ B and find p ( A ∩ B ): {6}, p ( A ∩ B ) = 1/ (e) Are the events A and B independent? Yes, since Eq. 2.10 holds
Example 2 � 2 �4: Two defective bulbs have been mixed with 10 good ones. Let event A= {first bulb is good}, and event B = {second bulb is good}. (a) If two bulbs are chosen at random with replacement, what is the probability that both are good? p ( A ) = 8/10 and p ( B ) = 8/10. Then:
p(A ∩ B) =
(b) What is the probability that two bulbs drawn in sequen- ce (i.e., not replaced) are good where the status of the bulb can be checked after the first draw? From Eq. 2.12, p(both bulbs drawn are good):
Example 2 � 2 �5: Two events A and B have the following pro- babilities: p(A)^ =^0 .3,^ p(B)^ =^0.^4 and p( A¯ ∩ B) = 0. 28. (a) Determine whether the events A and B are independent or not? From Eq. 2.8, (^) P ( A¯) = 1 − p(A) = 0. 7. Next, one will verify whether Eq. 2.10 holds or not. In this case, one needs to verify whether: p ( A ¯ ∩ B ) = p ( A ¯) · p ( B ) ⋅ or whether 0.28 is equal to (0.7 × 0.4). Since this is correct, one can state that events A and B are independent. (b) Find p ( A ∪ B ) From Eqs. 2.9 and 2.10: p(A ∪ B) = p(A) + p(B) − p(A ∩ B) = p(A) + p(B) − p(A) · p(B) = 0. 3 + 0. 4 − ( 0. 3 )( 0. 4 ) = 0. (^58)
p(A ∩ B) = p(A) · p(B/A) =
Example 2 � 2 �6: Generating a probability tree for a residen- tial air-conditioning (AC) system. Assume that the AC is slightly under-sized for the house it serves. There are two possible outcomes (S- satisfactory and NS- not satisfactory) depending on whether the AC is able to maintain the desired indoor temperature. The outcomes depend on the outdoor temperature, and for simplicity, its annual variability is grouped into three categories: very hot (VH), hot (H) and not hot (NH). The probabilities for out- comes S and NS to occur in each of the three day-type ca- tegories are shown in the probability tree diagram (Fig. 2.2) while the joint probabilities computed following Eq. 2.10 are assembled in Table 2.2. Note that the relative probabilities of the three branches in both the first stage as well as in each of the two bran- ches of each outcome add to unity (for example, in the Very Hot, the S and NS outcomes add to 1.0, and so on). Further, note that the joint probabilities shown in the table also have to sum to unity (it is advisable to perform such verificati- on checks). The probability of the indoor conditions being satisfactory is determined as: p(S)=0.02 + 0.27 + 0.6 = 0. while p(NS)= 0.08 + 0.03 + 0 = 0.11. It is wise to verify that p(S)+p(NS)=1.0.
Example 2 � 2 �7: Consider a problem where there are two bo- xes with marbles as specified: Box 1: 1 red and 1 white and Box 2: 4 red and 1 green A box is chosen at random and a marble drawn from it. What is the probability of getting a red marble? One is tempted to say that since there are 4 red marbles in total out of 6 marbles, the probability is 2/3. However, this is incorrect, and the proper analysis approach requires that one frame this problem as a two-stage experiment. The first stage is the selection of the box, and the second the drawing
Fig. 2.2 The forward probability tree for the residential air-con- ditioner when two outcomes are possible ( S satisfactory or NS not satisfactory) for each of three day-types ( VH very hot, H hot and NH not hot)
VH
H
S
S
NS
NS
Day type
0.6 S 0.0 NS
NH
Table 2.2 Jointprobabilitiesofvariousoutcomes p(V H ∩ S) = 0. 1 × 0. 2 = 0. 02 p(V H ∩ NS) = 0. 1 × 0. 8 = 0. 08 p(H ∩ S) = 0. 3 × 0. 9 = 0. 27 p(H ∩ NS) = 0. 3 × 0. 1 = 0. 03 p(NH ∩ S) = 0. 6 × 1. 0 = 0. 6 p(NH ∩ NS) = 0. 6 × 0 = 0
2.2 Classical Probability
33
delphia, PA. Notice that this is the envelope of the histogram of Fig. 1.2. Since the variable is continuous, it is implausible to try to determine the probability of, say temperature outco- me of 57.5°F. One would be interested in the probability of outcomes within a range, say 55°–60°F. The probability can then be determined as the area under the PDF as shown in Fig. 2.5b. It is for such continuous random variables that the cumulative distribution function (CDF ) is useful. It is simply the cumulative area under the curve starting from the lowest value of the random variable to the current value (Fig. 2.6). The vertical scale directly gives the probability (or, in this case, the fractional time) that X is less than or greater than a certain value. Thus, the probability ( x ≤ 60) is about 0.58. The concept of CDF also applies to discrete variables as illustra- ted in Fig. 2.4b for the dice rolling example. To restate, depending on whether the random variable is discrete or continuous, one gets discrete or continuous pro- bability distributions. Though most experimentally gathered data is discrete, the underlying probability theory is based on the data being continuous. Replacing the integration sign by the summation sign in the equations that follow allows extending the following definitions to discrete distributions. Let f(x) be the probability distribution function associated with a random variable X. This is a function which provides the probability that a discrete random variable X takes on some specific value x among its various possible values. The axioms of probability (Eqs. 2.5 and 2.6) for the discrete case are expressed for the case of continuous random variables as:
(2�13)
f ( x ) ≥ 0 −∞ < x < ∞
−∞
f (x)dx = 1
The cumulative distribution function (CDF) or F(a) repre- sents the area under f(x) enclosed in the range − ∞ < x < a :
The inverse relationship between f(x) and F(a), provided a derivative exists, is:
This leads to the probability of an outcome a ≤ X ≤ b given by:
Notice that the CDF for discrete variables will be a step function (as in Fig. 2.4b) since the PDF is defined at di- screte values only. Also, the CDF for continuous variab- les is a function which increases monotonically with in- creasing x. For example, the probability of the outdoor temperature being between 55 ° and 60 °F is given by p{ 55 ≤ X ≤ 60 } = F (b) − F (a) = 0. 58 − 0. 50 = 0. 08 (see Fig. 2.6). The concept of probability distribution functions can be extended to the treatment of simultaneous outcomes of mul- tiple random variables. For example, one would like to study how temperature of quenching of a particular item made of steel affects its hardness. Let X and Y be the two random variables. The probability that they occur together can be re- presented by a function f ( x , y ) for any pair of values ( x , y ) within the range of variability of the random variables X and Y. This function is referred to as the joint probability density function of X and Y which has to satisfy the following pro- perties for continuous variables:
(2�18)
where A is any region in the xy plane. If X and Y are two independent random variables, their joint PDF will be the product of their marginal ones:
F (a) = p{X ≤ a} =
∫^ a
−∞
f (x)dx
f (x) =
dF (x) dx
p{a ≤ X ≤ b} =
∫^ b
a
f (x)dx
∫^ b
−∞
f (x)dx−
∫^ a
−∞
f (x)dx
= F (b) − F (a)
f (x, y) ≥ 0 for all (x, y)
∫^ ∞
−∞
−∞
f (x, y)dxdy = 1
p[(X, Y ) ∈ A] =
A
f (x, y)dxdy
Fig. 2.6 The cumulative distribution function (CDF) for the PDF shown in Fig. 2.5. Such a plot allows one to easily determine the proba- bility that the temperature is less than 60°F
Dry-bulb Temperature (°F)
CDF
0
0
1
20 40 60 80 100
2.3 Probability Distribution Functions
34 2 Probability Concepts and Probability Distributions
(2�21)
Note that this is the continuous variable counterpart of Eq. 2.10 which gives the joint probability of two discrete events. The marginal distribution of X given two jointly distri- buted random variables X and Y is simply the probability distribution of X ignoring that of Y. This is determined for X as:
(2�22)
Finally, the conditional probability distribution of X given that X=x for two jointly distributed random variables X and Y is:
Example 2 � 3 �1: Determine the value of c so that each of the following functions can serve as probability distributions of the discrete random variable X:
(a)
(b)
(a) One uses the discrete version of Eq. 2.14, i.e.,
∑^3
i= 0
f (x (^) i ) = 1 leads to 4c + 5c + 8c + 13c = 1 from which
c = 1/ (b) One uses Eq. 2.14 modified for the limiting range in x: ∫^2 − 1
ax^2 dx = 1 from which
ax^3 3
− 1
= 1 resulting in
a = 1 / 3.^
Example 2 � 3 �2: The operating life in weeks of a high effi- ciency air filter in an industrial plant is a random variable X having the PDF:
f (x) =
(x + 100) 3
for x > 0
Find the probability that the filter will have an operating life of: (a) at least 20 weeks (b) anywhere between 80 and 120 weeks First, determine the expression for the CDF from Eq. 2.14. Since the operating life would decrease with time, one needs to be careful about the limits of integration applicable to this case. Thus,
f (x, y) = f (x) · f (y)
g(x) =
−∞
f (x, y)dy
f ( y / x ) =
f ( x , y ) g ( x )
g ( x ) > 0
(a) with x = 20, the probability that the life is at least 20 weeks:
p(20 < X < ∞) =
(x + 100) 2
20
(b) for this case, the limits of integration are simply modi- fied as follows:
p(80 < X < 120) =
(x + 100) 2
80
Example 2 � 3 �3: Consider two random variables X and Y with the following joint density function:
(a) Verify whether the normalization criterion is satisfied. This is easily verified from Eq. 2.19:
(b) Determine the joint probability in the region ( 0 < x < 1 /2, 1/ 4 < y < 1 / 2 ). In this case, one uses Eq. 2.20 as follows:
(c) Determine the marginal distribution g(x). From Eq. 2.22:
f (x, y) =
(2x + 3 y)
f or 0 ≤ x ≤ 1, 0 ≤ y ≤ 1
−∞
−∞
f ( x , y ) dxdy =
0
0
(2 x + 3 y ) dxdy
0
2 x^2 5
6 xy 5
] x = 1
x = 0
dy
0
6 y 5
dy =
p(0 < X < 1 /2, 1/ 4 < Y < 1 /2) =
1 / 4
0
(2x + 3 y)dxdy
g ( x ) =
0
(2 x + 3 y ) dy =
4 xy 5
6 y^2 10
] y = 1
y = 0
4 x + 3 5
x
( x ′^ + 100) 3
dx ′^ =
( x ′^ + 100) 2
x
f (x) = c(x^2 + 4) for x = 0, 1, 2, 3
f (x) = ax^2 for −1 < x < 2
36 2 Probability Concepts and Probability Distributions
variables which are not independent, Eq. 2.30 needs to be modified into:
Moments higher than the second are sometimes used. For example, the third moment yields the skewness which is a measure of the symmetry of the PDF. Figure 2.7 shows three distributions: one skewed to the right, a symmetric distribu- tion, and one skewed to the left. The fourth moment yields the coefficient of kurtosis which is a measure of the peaki- ness of the PDF. Two commonly encountered terms are the median and the mode. The value of the random variable at which the PDF has a peak is the mode , while the median divides the PDF into two equal parts (each part representing a probabi- lity of 0.5). Finally, distributions can also be described by the number of “humps” they display. Figure 2.8 depicts the case of uni- modal and bi-modal distributions, while Fig. 2.5 is the case of a distribution with three humps.
Example 2 � 3 �5: Let X be a random variable representing the number of students who fail a class. Its PDF is given in Table 2.5. The discrete event form of Eqs. 2.24 and 2.25 is used to com- pute the mean and the variance:
Further:
Hence:
var[a 0 + a 1 X 1 + a 2 X 2 ] = a^21 var[X 1 ] + a^22 var[X 2 ]
μ = (0)(0.51) + (1)(0.38) + (2)(0.10) + (3)(0.01) = 0. 61
H ence : σ 2 = 0. 87 − (0.61) 2 = 0. 4979
Example 2 � 3 �6: Consider Example 2.3.2 where a PDF of X is defined. Let g(x) be a function of this PDF such that g ( x ) = 4 x + 3. One wishes to determine the expected value of g(X). From Eq. 2.24,
Then from Eq. 2.
E [ f ( x )] =
∞
20 x ( x + 100) 3
dx = 0. 1
E[g(X)] = 3 + 4 .E[f (X)] = 3. 4
Fig. 2.7 Skewed and symmetric distributions. a Skewed to the right. b Symmetric. c Skewed to the left
a b c
Fig. 2.8 Unimodal and bi-modal distributions. a Unimodal, b Bi-modal
Table 2.5 PDFofnumberofstudentsfailingaclass X 0 1 2 3 f(x) 0.51 0.38 0.10 0.
37
Data arising from an occurrence or phenomenon or descrip- tive of a class or a group can be viewed as a distribution of a random variable with a PDF associated with it. A majority of data sets encountered in practice can be described by one (or two) among a relatively few PDFs. The ability to charac- terize data in this manner provides distinct advantages to the analysts in terms of: understanding the basic dynamics of the phenomenon, in prediction and confidence interval specifi- cation, in classification, and in hypothesis testing (discussed in Chap. 4). Such insights eventually allow better decision making or sounder structural model identification since they provide a means of quantifying the random uncertainties inherent in the data. Surprisingly, most of the commonly encountered or important distributions have a common ge- nealogy, shown in Fig. 2.9 which is a useful mnemonic for the reader.
(a) Bernouilli Process� Consider an experiment involving repeated trials where only two complementary outcomes are possible which can be labeled either as a “success” or a “fai- lure”. Such a process is called a Bernouilli process: (i) if the successive trials are independent, and (ii) if the probability of success p remains constant from one trial to the next. Note that the number of partitions or combinations of n outcomes into two groups with x in one group and (n-x) in the other is equal to
C(n, x) =
n x
(b) Binomial Distribution� The number of successes in n Bernouilli trials is called a binomial random variable. Its PDF is called a Binomial distribution (so named because of its association with the terms of the binomial expansion). It is a unimodal distribution which gives the probability of x successes in n independent trials, if the probability of suc- cess in any one trial is p. Note that the outcomes must be Bernouilli trials. This distribution is given by:
Fig. 2.9 Genealogy between different important probability distribution functions. Those that are discrete functions are repre- sented by “D” while the rest are continuous functions. (Adapted with modification from R. E. Lave, Jr. of Stanford University)
Bernouilli Trials (two outcomes, success prob. p)
Hypergeometric
Binomial B(n,p)
Geometric G(n,p)
Multinomial
Poisson
Exponential
Weibull
Student Lognormal Chi-square
Gamma
F-distribution F(m,n)
n trials w/o replacement
outcomes >
Number of trials before success
Frequency of events per time
n trials with replacement
Time between events
n<
D
D
D
D
D
P ( t )
n → ∞ n → ∞ p → 0 λ t = np
p = cte
β = 1
E ( ) λ
α= 1 L ( μ,σ ) χ^2 ( v )
1
α λ
/ 1/
α ν λ
χ^2 ( m )/ m χ^2 ( n )/ n
W ( α β, )
Normal N ( μ (^) ,σ)
t ( μ, s , n )
G ( α,λ )
2.4 Important Probability Distributions
39
time during the n th^ trial then it did not occur during the pre- vious (n − 1) trials. Then, the geometric distribution is given by: (2�34a)
An extension of the above concept relates to the time bet- ween two successive occurrences of the same event, called the recurrence time. Since the events are assumed indepen- dent, the mean recurrence time denoted by random variable T between two consecutive events is simply the expected va- lue of the Bernouilli distribution:
(2�34b)
Example 2 � 4 �3:^1 Using geometric PDF for 50 year design wind problems The design code for buildings in a certain coastal region spe- cifies the 50-year wind as the “design wind”, i.e., a wind velocity with a return period of 50 years, or one which may be expected to occur once every 50 years. What are the pro- babilities that: (a) the design wind is encountered in any given year. From Eq. 2.34b, p^ =^
− T
(b) the design wind is encountered during the fifth year of a newly constructed building (from Eq. 2.34a): G(5; 0.02) = (0.02).(1 − 0 .02) 4 = 0. 018 (c) the design wind is encountered within the first 5 years:
G(n ≤ 5; p) =
∑^5
t= 1
(0.02).(1 − 0 .02)t−^1 = 0. 02
Figure 2.11 depicts the PDF and the CDF for the geometric function corresponding to this example.
(^1) From Ang and Tang (2007) by permission of John Wiley and Sons.
G(n; p) = p · (1 − p)n−^1 n = 1, 2, 3,...
− T =^ E ( T^ )^ =
t = 1
t · p (1 − p ) t −^1
= p [1 + 2(1 − p ) + 3(1 − p ) 2 ] ≈
p
(d) Hypergeometric Distribution� The Binomial distribu- tion applies in the case of independent trials or when sam- pling from a batch of items is done with replacement. Anot- her type of dependence arises when sampling is done without replacement. This case occurs frequently in areas such as ac- ceptance sampling, electronic testing and quality assurance where the item is destroyed during the process of testing. If n items are to be selected without replacement from a set of N items which contain k items that pass a success criterion, the PDF of the number X of successful items is given by the hypergeometric distribution:
(2�35a)
x=0,1,2, 3 …
(2�35b)
Note that C(k, x) is the number of ways x items can be cho- sen from the k “successful” set, while C(N-k, n-x) is the number of ways that the remainder (n-x) items can be chosen from the “unsuccessful” set of (N-k) items. Their product divided by the total number of combinations of selecting equally likely samples of size n from N items is represented by Eq. 2.35a.
Example 2 � 4 �4: Lots of 10 computers each are called accep- table if they contain no fewer than 2 defectives. The proce- dure for sampling the lot is to select 5 computers at random and test for defectives. What is the probability that exactly one defective is found in the sample if there are 2 defectives in the entire lot? Using the hypergeometric distribution given by Eq. 2.35a with n = 5, N = 10, k = 2 and x = 1:
H (x; N, n, k) =
C(k, x) · C(N − k, n − x) C(N, n)
k x
N − k n − x
n
x = 0, 1, 2, 3...
with mean μ =
nk N
and
variance σ 2 =
N − n N − 1
· n ·
k N
k N
2.4 Important Probability Distributions
Fig. 2.11 Geometric distribution G(x;0.02) for Example 2.4. where the random variable is the number of trials until the event occurs, namely the “50 year de- sign wind” at the coastal location in question. a PDF. b CDF
x
0 100 200 300 400
0
x
CDF
0 100 200 300 400
0
1
a b
40 2 Probability Concepts and Probability Distributions
(e) Multinomial Distribution. A logical extension to Ber- nouilli experiments where the result is a two-way outcome, either success/good or failure/defective, is the multinomi- al experiment where k possible outcomes are possible. An example of k = 5 is when the grade of a student is either A, B, C, D or F. The issue here is to find the number of combina- tions of n items which can be partitioned into k independent groups (a student can only get a single grade for the same class) with x 1 being in the first group, x 2 in the second,… This is represented by:
(2�36a)
with the conditions that ( x 1 +^ x 2 +^...^ +^ x^ k )^ =^ n^ and that all partitions are mutually exclusive and occur with equal probability from one trial to the next. It is intuitively obvious that when n is large and k is small, the hypergeometric distri- bution will tend to closely approximate the Binomial. Just like Bernouilli trials lead to the Binomial distribu- tion, the multinomial experiment leads to the multinomial distribution which gives the probability distribution of k ran- dom variables x 1 , x 2 ,…xk in n independent trials occurring with probabilities p 1 , p 2 ,… pk:
(^) (2�36b)
Example 2 � 4 �5: Consider an examination given to 10 stu- dents. The instructor, based on previous years’ experience, expects the distribution given in Table 2.6. On grading the exam, he finds that 5 students got an A, 3 got a B and 2 got a C, and no one got either D or F. What is the probability that such an event could have occurred purely by chance? This answer is directly provided by Eq. 2.36b which yi- elds the corresponding probability of the above event taking place:
n x 1 , x 2 ,... xk
n! x 1 !x 2!... xk!
f (x 1 , x 2 ,... xk ) =
n x 1 , x 2 , ..xk
p x 1 1 · p x 2 2... p (^) kx^ k
with
∑^ k
i = 1
x (^) i = n and
∑^ k
i = 1
pi = 1
This is very low, and hence this occurrence is unlikely to have occurred purely by chance.
(f) Poisson Distribution� Poisson experiments are those that involve the number of outcomes of a random variable X which occur per unit time (or space); in other words, as describing the occurrence of isolated events in a continuum. A Poisson experiment is characterized by: (i) independent outcomes (also referred to as memoryless), (ii) probability that a single outcome will occur during a very short time is proportional to the length of the time interval, and (iii) probability that more than one outcome occurs during a very short time is negligible. These conditions lead to the Poisson distribution which is the limit of the Binomial distribution when n → ∞ and p → 0 in such a way that the product (n.p) = t remains constant. It is given by:
(^) (2�37a)
where is called the “ mean occurrence rate ”, i.e., the ave- rage number of occurrences of the event per unit time (or space) interval t. A special feature of this distribution is that its mean or average number of outcomes per time t and its variance ^2 are such that
(2�37b)
Akin to the Binomial distribution, tables for certain combi- nations of the two parameters allow the cumulative Poisson distribution to be read off directly (see Table A2) with the latter being defined as:
(2�37c)
Applications of the Poisson distribution are widespread: the number of faults in a length of cable, number of suspended particles in a volume of gas, number of cars in a fixed length of roadway or number of cars passing a point in a fixed time interval (traffic flow), counts of a-particles in radio-active decay, number of arrivals in an interval of time (queuing theory), the number of noticeable surface defects found by quality inspectors on a new automobile,…
Example 2 � 4 �6: During a laboratory experiment, the ave- rage number of radioactive particles passing through a coun- ter in 1 millisecond is 4. What is the probability that 6 partic- les enter the counter in any given millisecond?
f ( A , B , C , D , F ) =
p(x; λt) =
(λt)x^ exp (−λt) x!
x = 0, 1, 2, 3...
μ(X) = σ 2 (X) = λt = n · p
P (r; λt) =
∑^ r
x= 0
P (x; λt)
Table 2.6 PDFofstudentgradesforaclass X A B C D F p(X) 0.2 0.3 0.3 0.1 0.
42 2 Probability Concepts and Probability Distributions
In actual problems, the standard normal distribution is used to determine the probability of the variate having a value wit- hin a certain interval, say z between z 1 and z 2. Then Eq. 2.38a can be modified into:
(2�38c)
The shaded area in Table A3 permits evaluating the above in- tegral, i.e., determining the associated probability assuming z 1 = − ∞. Note that for z = 0, the probability given by the sha- ded area is equal to 0.5. Since not all texts adopt the same format in which to present these tables, the user is urged to use caution in interpreting the values shown in such tables.
Example 2 � 4 �9: Graphical interpretation of probability using the standard normal table Resistors made by a certain manufacturer have a nominal value of 100 ohms but their actual values are normally distri- buted with a mean of μ = 100.6 ohms and standard deviation σ = 3 ohms. Find the percentage of resistors that will have values:
N(z 1 ≤ z ≤ z 2 ) =
∫^ z^2
z (^1)
2 π
exp (− z^2 /2)dz
(i) higher than the nominal rating. The standard normal variable z(x = 100) = (100 – 100.6)/3 = − 0.2. From Table A3, this corresponds to a probability of (1 – 0.4207) = 0.5793 or 57.93%. (ii) within 3 ohms of the nominal rating (i.e., between 97 and 103 ohms).The lower limit z 1 = (97 − 100.6)/3 = − 1.2, and the tabulated probability from Table A3 is p(z = – 1.2) = 0.1151 (as illustrated in Fig. 2.14a). The upper limit is: z 2 = (103 − 100.6)/3 = 0.8. However, care should be taken in properly reading the corresponding value from Tab- le A3 which only gives probability values of z < 0. One first determines the probability about the negative value symme- tric about 0, i.e., p(z = – 0.8) = 0.2119 (shown in Fig. 2.14b). Since the total area under the curve is 1.0, p(z = 0.8) = 1.0 – 0.2119 = 0.7881. Finally, the required probability p(– 1.2 < z < 0.8) = (0.7881 – 0.1151) = 0.6730 or 67.3%. Inspection of Table A3 allows the following statements which are important in statistics: The interval μ^ ±^ σ^ contains approximately [1 – 2(0.1587)] = 0.683 or 68.3% of the observations, The interval μ^ ±^2 σ^ contains approximately 95.4% of the observations, The interval μ^ ±^3 σ^ contains approximately 99.7% of the observations, Another manner of using the standard normal table is for the “backward” problem. Instead of being specified the z value and having to deduce the probability, such a problem arises when the probability is specified and the z value is to be deduced.
Example 2 � 4 �10: Reinforced and pre-stressed concrete structures are designed so that the compressive stresses are carried mostly by the concrete itself. For this and other rea- sons the main criterion by which the quality of concrete is assessed is its compressive strength. Specifications for con- crete used in civil engineering jobs may require specimens of specified size and shape (usually cubes) to be cast and tested on site. One can assume the normal distribution to apply. If the mean and standard deviation of this distribution are μ and σ , the civil engineer wishes to determine the “statistical minimum strength” x specified as the strength below which
Fig. 2.13 Normal or Gaussian distributions with same mean of 10 but different standard deviations. The distribution flattens out as the stan- dard deviation increases
x
0
N(10,2.5)
N(10,5)
Fig. 2.14 Figures meant to illus- trate that the shaded areas are the physical representations of the tabulated standardized probabi- lity values in Table A3. a Lower limit. b Upper limit
a z b
0
p (–1.2) =0.
z
0
p (– 0.8) =0.
z= – 0.8 z = 0.
z = – 1.
43
only say 5% of the cubes are expected to fail. One searches Table A3 and determines the value of z for which the proba- bility is 0.05, i.e., p(z = − 1.645) = 0.05. Hence, one infers that this would correspond to x = μ − 1.645 σ.
(b) Student t Distribution� One important application of the normal distribution is that it allows making statistical in- ferences about population means from random samples (see Sect. 4.2). In case the random samples are small (n < 30), then the t-student distribution, rather than the normal distribution, should be used. If one assumes that the sampled population is approximately normally distributed, then the random va- riable t^ =^
x−μ s√n has the Student t-distribution^ t(μ,^ s,^ ν)^ whe- re s is the sample standard deviation and v is the degrees of freedom = (n − 1). Thus, the number of degrees of freedom (d.f.) equals the number of data points minus the number of constraints or restrictions placed on the data. Table A (which is set up differently from the standard normal table) provides numerical values of the t-distribution for different degrees of freedom at different confidence levels. How to use these tables will be discussed in Sect. 4.2. Unlike the z curve, one has a family of t-distributions for different values of v. Qualitatively, the t-distributions are similar to the standard normal distribution in that they are symmetric about a zero mean, while they are but slightly wider than the correspon- ding normal distribution as indicated in Fig. 2.15. However, in terms of probability values represented by areas under the curves as in Example 2.4.9, the differences between the nor- mal and the student-t distributions are large enough to war- rant retaining this distinction.
(c) Lognormal Distribution� This distribution is appro- priate for non-negative outcomes which are the product of a number of quantities. In such cases, the data are skewed and the symmetrical normal distribution is no longer appropriate. If a variate X is such that log(X) is normally distributed, then
the distribution of X is said to be lognormal. With X ranging from −∞ to +∞, log(X) would range from 0−∞ to +∞,. Not only does the lognormal model accommodate skewness, but it also captures the non-negative nature of many variables which occur in practice. It is characterized by two parame- ters, the mean and variance (μ, σ ), as follows:
The lognormal curves are a family of skewed curves as il- lustrated in Fig. 2.16. Lognormal failure laws apply when the degradation in lifetime is proportional to the previous amount of degradation. Typical applications in civil enginee- ring involve flood frequency, in mechanical engineering with crack growth and mechanical wear, and in environmental en- gineering with pollutants produced by chemical plants and threshold values for drug dosage.
Example 2 � 4 �11: Using lognormal distributions for pollu- tant concentrations Concentration of pollutants produced by chemical plants is known to resemble lognormal distributions and is used to evaluate issues regarding compliance of government regu- lations. The concentration of a certain pollutant, in parts per million (ppm), is assumed lognormal with parameters μ = 4.6 and σ = 1.5. What is the probability that the concen- tration exceeds 10 ppm? One can use Eq. 2.39, or simpler still, use the z tables (Table A3) by suitable transformations of the random variable.
L ( X > 10) = N [ ln (10), 4.6, 1.5] = N
ln (10) − 4. 6
L(x; μ, σ ) =
σ.x(
2 π)
exp
( ln x − μ) 2 2 σ 2
when x ≥ 0
= 0 elsewhere
Fig. 2.15 Comparison of the normal (or Gaussian) z curve to two Stu- dent-t curves with different degrees of freedom (d.f.). As the d.f. in- crease, the PDF for the Student-t distribution flattens out and deviates increasingly from the normal distribution
x
0
Normal
d.f=
d.f= N(0,1)
Fig. 2.16 Lognormal distributions for different mean and standard de- viation values
X
0 2 4 6 8 10
0
1
L(1,1)
L(2,2)
L(3,3)
2.4 Important Probability Distributions
x
0
Normal
d.f=
d.f= N(0,1)
45
(b) What is the probability that there will be no more than two disruptions next year? This is the complement of at least two disruptions.
Probability = 1 − CDF [E(X ≤ 2; λ)] = 1 − [1 − e−^0 .4(2)^ ] = 0. 4493
(f) Weibull Distribution� Another versatile and widely used distribution is the Weibull distribution which is used in ap- plications involving reliability and life testing; for example, to model the time of failure or life of a component. The con- tinuous random variable X has a Weibull distribution with parameters α and β (shape and scale factors respectively) if its density function is given by:
(2�42a)
with mean (2�42b)
Figure 2.19 shows the versatility of this distribution for dif- ferent sets of α and β values. Also shown is the special case
W ( x ; α, β) =
α β α^
· x α−^1 · exp [− ( x /β)α^ ] for x > 0
= 0 elsewhere
μ = β ·
α
of W(1,1) which is the exponential distribution. For β > 1, the curves become close to bell-shaped and somewhat resemble the normal distribution. The Weibull distribution has been found to be very appropriate to model reliability of a system i.e., the failure time of the weakest component of a system (bearing, pipe joint failure,…).
Example 2 � 4 �13: Modeling wind distributions using the Weibull distribution The Weibull distribution is also widely used to model the hourly variability of wind velocity in numerous locations worldwide. The mean wind speed and its distribution on an annual basis, which are affected by local climate conditi- ons, terrain and height of the tower, are important in order to determine annual power output from a wind turbine of a certain design whose efficiency changes with wind speed. It has been found that the shape factor α varies between 1 and 3 (when α = 2, the distribution is called the Rayleigh distribu- tion ). The probability distribution shown in Fig. 2.20 has a mean wind speed of 7 m/s. Determine: (a) the numerical value of the parameter β assuming the shape factor α = 2 One calculates the gamma function (^) (1 + 12 ) = 0. 8862 from which β = (^0). 8862 μ = 7. 9
(b) using the PDF given by Eq. 2.42, it is left to the rea- der to compute the probability of the wind speed being equal to 10 m/s (and verify the solution against the figu- re which indicates a value of 0.064).
(g) Chi-square Distribution� A third special case of the gamma distribution is when α = v /2 and λ = 1 / 2 where v is a positive integer, and is called the degrees of freedom. This distribution called the chi-square (χ^2 ) distribution plays an important role in inferential statistics where it is used as a test of significance for hypothesis testing and analysis of variance type of problems. Just like the t-statistic, there is a family of distributions for different values of v (Fig. 2.21). Note that the distribution cannot assume negative values, and that it is positively skewed. Table A5 assembles critical values of the Chi-square distribution for different values of the degrees of freedom parameter v and for different signifi-
Fig. 2.18 Exponential distributions for three different values of the parameter λ
X
0 1 2 3 4 5
0
2
E(1)
E(0.5)
E(2)
Fig. 2.19 Weibull distributions for different values of the two parameters α and β (the shape and scale factors respectively)
X
X
0
2
4
6
8
0
1
0 2 4 6 8 10 0 1 2 3 4
W(10,0.5) W(10,1) W(10,2)
W(1,1)
W(2,1) W(2,5)
2.4 Important Probability Distributions
46 2 Probability Concepts and Probability Distributions
cance levels. The usefulness of these tables will be discussed in Sect. 4.2. The PDF of the chi-square distribution is:
(2�43a)
while the mean and variance values are :
(2�43b)
(h) F-Distribution� While the t-distribution allows com- parison between two sample means, the F distribution all- ows comparison between two or more sample variances. It is defined as the ratio of two independent chi-square ran- dom variables, each divided by its degrees of freedom. The F distribution is also represented by a family of plots (see Fig. 2.22) where each plot is specific to a set of numbers re- presenting the degrees of freedom of the two random variab- les (v 1 , v 2 ). Table A6 assembles critical values of the F-distri-
χ^2 (x; ν) =
2 ν/^2 (υ/2)
· x ν/^2 −^1 · e−x/^2 x > 0
= 0 elsewhere
μ = v and σ 2 = 2 v
butions for different combinations of these two parameters, and its use will be discussed in Sect. 4.2.
(i) Uniform Distribution� The uniform probability distribu- tion is the simplest of all PDFs and applies to both continu- ous and discrete data whose outcomes are all equally likely, i.e. have equal probabilities. Flipping a coin for heads/tails or rolling a dice for getting numbers between 1 and 6 are examples which come readily to mind. The probability den- sity function for the discrete case where X can assume values x 1 , x 2 ,…xk is given by: (2�44a)
(^) (2�44b)
For random variables that are continuous over an interval (c,d) as shown in Fig. 2.23, the PDF is given by:
(2�44c)
The mean and variance of the uniform distribution (using notation shown in Fig. 2.23) are given by:
U (x; k) =
k
with mean μ =
∑^ k i= 1
x (^) i
k
and
variance σ 2 =
∑^ k i= 1
(x (^) i − μ) 2
k
U ( x ) =
d − c
when c < x < d
= 0 otherwise
Fig. 2.20 PDF of the Weibull distribution W(2, 7.9)
X
0
0 5 10 15 20 25 30
Fig. 2.21 Chi-square distributions for different values of the variable υ denoting the degrees of freedom
X
0 2 4 6 8 10 12
0
1
χ^2 (1)
χ^2 (4) χ^2 (6)
Fig. 2.22 Typical F distributions for two different combinations of the random variables (υ 1 andυ 2 )
X
0 1 2 3 4 5
0
F(6,24)
F(6,5)
Fig. 2.23 The uniform distribu- tion assumed continuous over the interval [c, d]
f(x)
1
x d
d – c
c