CHAPTER 3
RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
3.1 Concept of a Random Variable EXAMPLE 3.3. A major metropolitan newspaper asked whether the paper should increase its coverage of local news. Let X denote the proportion of readers who would Random Variable like more coverage of local news. Is X a random vari- A random variable is a function that associates a real able? What does it mean by saying 0.6 < x < 0.7? number with each element in the sample space. EXAMPLE 3.4. Denote T be the survival time for the prostate cancer patients in a local hospital. Explain why In other words, a random variable is a function T is a random variable. X : S R,whereS is the sample space of the random experiment! under consideration. Discrete Random Variable NOTE. By convention, we use a capital letter, say X, to denote a random variable, and use the corresponding If a sample space contains a finite number of possibil- lower-case letter x to denote the realization (values) of ities or an unending sequence with as many elements the random variable. as there are whole numbers (countable), it is called a discrete sample space. A random variable is called a EXAMPLE 3.1 (Coin). Consider the random experi- discrete random variable if its set of possible outcomes ment of tossing a coin three times and observing the re- is countable. sult (a Head or a Tail) for each toss. Let X denote the total number of heads obtained in the three tosses of the Continuous Random Variable coin. If a sample space contains an infinite number of pos- (a) Construct a table that shows the values of the ran- sibilities equal to the number of points on a line seg- dom variable X for each possible outcome of the ment, it is called a continuous sample space. When random experiment. a random variable can take on values on a continuous scale, it is called a continuous random variable. (b) Identify the event X 1 in words. { } EXAMPLE 3.5. Categorize the random variables in the above examples to be discrete or continuous. Let Y denote the difference between the number of heads obtained and the number of tails obtained.
(c) Construct a table showing the value of Y for each 3.2 Discrete Probability Distributions possible outcome. The probability distribution of a discrete random vari- (d) Identify the event Y = 0 in words. { } able X lists the values and their probabilities. EXAMPLE 3.2. Suppose that you play a certain lottery Value of X x x x x by buying one ticket per week. Let W be the number of 1 2 3 ··· k Probability p p p p weeks until you win a prize. 1 2 3 ··· k where (a) Is W a random variable? Brief explain. 0 p 1 and p + p + + p = 1 (b) Identify the following events in words: (i) W > i 1 2 ··· k { 1 , (ii) W 10 , and (iii) 15 W < 20 } { } { } 3.3 Continuous Probability Distributions 87
f (x) f (x) 6/16 6/16 5/16 5/16 4/16 4/16
3/16 3/16
2/16 2/16 10 Chapter 3. Random Variables and Probability Distributions 1/16 1/16
x x 01234 01234 EXAMPLE 3.6. Determine the value of k so that the (a) Find the PMF of X, assuming that the selection is function f (x)=k x2 + 1 for x = 0,1,3,5 can be a legit- done randomly. Plot it. imate probability distributionFigure of a discrete 3.1: Probability random vari- mass function plot. Figure 3.2: Probability histogram. able. (b) What is the probability that at least one woman is included in the interview pool? probabilities is necessary for our consideration of the probability distribution of a Probability Mass Function (PMF) continuous random variable. The graphCumulative of the cumulative Distribution distribution Function function (CDF) of of Example a disc. r.v. 3.9, which ap- The set of ordered pairs (x, f (x)) is a probabilitypears func- as a step function in Figure 3.3, is obtained by plotting the points (x, F (x)). The cumulative distribution function F(x) of a discrete tion, probability mass function, or probabilityCertain distri- probability distributions are applicable to more than one physical situ- random variable X with probability mass function f (x) bution of the discrete random variable X if,ation. for each The probability distribution of Example 3.9, for example, also applies to the is possible outcome x, random variable Y , where Y is the number of heads when a coin is tossed 4 times, or to the random variable W , where W is the number of red cards that occur when i). f (x) 0, F(x)=P(X x) 4 cards are drawn at random from a deck in succession with each card replaced and the deck shu ed before the= next f drawing.(t), for Special• < discretex < •. distributions that can ii).  f (x)=1, t x x be applied to many di erent experimental situations will be considered in Chapter 5. iii). P(X = x)= f (x). 3.3 Continuous Probability Distributions 87 F(x)
f (x) f (x) 1 6/16 6/16 3/4 5/16 5/16 4/16 4/16 1/2
3/16 3/16 1/4 2/16 2/16 x 1/16 1/16 0 123 4
x x 01234 Figure01234 3.3: Discrete cumulative distribution function. 3.3 Continuous Probability Distributions 87 EXAMPLE 3.9. Given that the CDF Figure 3.1: Probability mass function plot. Figure 3.2: Probability histogram. f (x) f (x) 0, x < 1 6/16 1/3, 1 x < 2 6/16 3.3probabilitiesContinuous is necessary for our Probability consideration of the Distributions probability8 distribution of a 5/16 continuous random variable. >1/2, 2 x < 4 5/16 F(x)=> The graph of theAcontinuousrandomvariablehasaprobabilityof0ofassuming cumulative distribution function of Example> 3.9, which ap- exactly any of its 4/16 >4/7, 4 x < 7 4/16 <> pears as a step functionvalues. in Figure Consequently, 3.3, is obtained its probability by plotting the3 distribution/4 points, 7 (xx,< Fcannot10(x)). be given in tabular form. 3/16 3/16 Certain probability distributions are applicable to more than> one physical situ- ation. The probability distribution of Example 3.9, for example,>1, also appliesx 10 to the 2/16 > 2/16 random variable Y , where Y is the number of heads when a> coin is tossed 4 times, :> 1/16 1/16 or to the random variable W , where WFindis the number of red cards that occur when 4 cards are drawn at random from a deck in succession with each card replaced and x x 01234 01234the deck shu ed before the next drawing.(a) SpecialP(X discrete4),P(X distributions< 4) and P(X that= 4) can be applied to many di erent experimental situations will be considered in Chapter 5. (b) P(X 8),P(X < 8) and P(X = 8) Figure 3.1: Probability mass function plot. EXAMPLEFigure3.7. Refer 3.2: Probability to Example histogram.3.1 (Coin). Find a formula for the PMF of X when (c) P(X > 2) and P(X > 6) F(x) probabilities is necessary for our consideration of the probability distribution of a 1 (d) P(3 < X 5) continuous random variable. (a) the coin is balanced. The graph of the cumulative distribution function of Example 3.9, which ap- (b) the coin has probability 0.2 of a head on3/4 any given (e) P(X 7 X > 4) pears as a step function in Figure 3.3, is obtained by plotting the points (x, F (x)). | tosses. Certain probability distributions are applicable to more than one physical1/2 situ- EXAMPLE 3.10. Refer to Example 3.8 (Interview). ation. The probability distribution(c) ofthe Example coin has 3.9, probability for example,p (0 alsop applies1) of to a the head random variable Y , where Y is the number of heads when a coin is tossed 4 times, on any given toss. 1/4 (a) Find the CDF of X. or to the random variable W , where W is the number of red cards that occur when 4 cards are drawn at random from a deck in succession with each card replaced and x EXAMPLE 3.8 (Interview). Six men and five women0 12(b) Use3 the CDF4 to find the probability that exactly the deck shu ed before the nextapply drawing. for an executive Special positiondiscrete indistributions a small company. that can Two two women are included in the interview pool. be applied to many di erent experimental situations will be considered in Chapter of the applicants are selected for interview.Figure Let 3.3:X denote Discrete cumulative distribution function. 5. the number of women in the interview pool. (c) Use the CDF to verify 3.8 (b).
F(x) STAT-3611 Lecture Notes 2015 Fall X. Li 1 3.3 Continuous Probability Distributions
3/4 Acontinuousrandomvariablehasaprobabilityof0ofassumingexactly any of its values. Consequently, its probability distribution cannot be given in tabular form. 1/2
1/4
x 0 123 4
Figure 3.3: Discrete cumulative distribution function.
3.3 Continuous Probability Distributions
Acontinuousrandomvariablehasaprobabilityof0ofassumingexactly any of its values. Consequently, its probability distribution cannot be given in tabular form. Section 3.4. Joint Probability Distributions 11
3.3 Continuous Probability Distri- (a) Determine the value k that makes f be a legitimate butions density function. (b) Evaluate P(0 X 1). Probability Density Function (PDF) EXAMPLE 3.13. Consider the density function
2x The function f (x) is a probability density function 2e if x > 0 (pdf) for the continuous random variable X,defined h(x)= . (0, otherwise over the set of real numbers, if Find i). f (x) 0 for all x R. 3.3 Continuous Probability Distributions 2 89 • (a) P(0 < X < 1) bounded byii). the x axisf ( isx)= equal1. to 1 when computed over the range of X for which • (b) P(X > 5) f(x) is defined.Z Should this range of X be a finite interval, it is always possible to extend the interval to include the entireb set of real numbers by defining f(x)to be zero atiii). all pointsP(a in< theX < extendedb)= portionsf (x) dx of. the interval. In Figure 3.5, theCumulative Distribution Function (CDF) of a con- probability that X assumes a valueZ betweena a and b is equal to the shaded area under the density function between the ordinates at x = a and x = b, and fromtinuous r.v. integral calculus is given by The cumulative distribution function F(x) of a contin- b uous random variable X with probability density func- P (a