Joint Probability Distributions MATH30-6 Probability and Statistics Objectives At the end of the lesson, the students are expected to β’ Use joint probability mass functions and joint probability density functions to calculate probabilities; β’ Calculate marginal and conditional probability distributions from joint probability distributions; and β’ Interpret and calculate covariances and correlations between random variables. Joint Probability Mass Function The joint probability mass function of the discrete random variables X and Y, denoted as πππ π₯, π¦ , satisfies (1) πππ π₯, π¦ β₯ 0 (2) π₯ π¦ πππ π₯, π¦ = 1 (3) πππ π₯, π¦ = π π = π₯, π = π¦ (5-1) β’ Sometimes referred to as the bivariate probability distribution or bivariate distribution of the random variables β’ π π = π₯ and π = π¦ is usually written as π π = Joint Probability Mass Function Examples: 5-1/153 Signal Bars Calls are made to check the airline schedule at your departure city. You monitor the number of bars of signal strength on your cell phone and the number of times you have to state the name of your departure city before the voice system recognizes the name. In the first four bits transmitted, let X denote the number of bars of signal strength on your cell phone Y denote the number of times you need to state your departure city Joint Probability Mass Function By specifying the probability of each of the points in Fig. 5-1, we specify the joint probability distribution of X and Y. Similarly to an individual random variable, we define the range of the random variables (X, Y) to be the set of points (x, y) in two-dimensional space for which the probability that X = x and Y = y is positive. Joint Probability Mass Function 3.14/95 Two refills for a ballpoint pen are selected at random from a box that contains 3 blue refills, 2 red refills, and 3 green refills. If π is the number of blue refills and π is the number of red refills selected, find (a) the joint probability function π π₯, π¦ , and (b) (b) π π, π β π΄ , where π΄ is the region π₯, π¦ |π₯ + Joint Probability Density Function A joint probability density function for the continuous random variables X and Y, denoted as πππ π₯, π¦ , satisfies the following properties: (1) πππ π₯, π¦ β₯ 0 for all x, y (2) β β π ββ ββ ππ π₯, π¦ ππ₯ ππ¦ = 1 (3) For any region R of two-dimensional space, π π, π β π = πππ π₯, π¦ ππ₯ ππ¦ π (5-2) Joint Probability Density Function Examples: 5-2/155 Server Access Time Let the random variable X denote the time until a computer server connects to your machine (in milliseconds), and let Y denote the time until the server authorizes you as a valid user (in milliseconds). Each of these random variables measures the wait from a common starting time and X < Y. Assume that the joint probability density function for X and Y is πππ π₯, π¦ = 6 × 10β6 π β0.001π₯β0.002π¦ for π₯ < π¦ Joint Probability Density Function The region with nonzero probability is shaded in Fig. 5-4. The property that this joint probability density function integrates to 1 can be verified by the integral of πππ π₯, π¦ over this region as follows: β β πππ π₯, π¦ ππ¦ ππ₯ ββ ββ β β 6 × 10β6 π β0.001π₯β0.002π¦ ππ¦ ππ₯ = 0 π₯ β β = 6 × 10β6 π β0.002π¦ ππ¦ π β0.001π₯ ππ₯ 0 π₯ Joint Probability Density Function β = 6 × 10β6 0 π β0.002π₯ β0.001π₯ π ππ₯ 0.002 β π β0.003π₯ ππ₯ = 0.003 β 0 β πππ ββ ββ 1 π₯, π¦ ππ¦ ππ₯ = 0.003 =1 0.003 Joint Probability Density Function Joint Probability Density Function The probability that X < 1000 and Y < 2000 is determined as the integral over the darkly shaded region in Fig 5-5. 1000 2000 π π β€ 1000, π β€ 2000 = 1000 2000 = 6 × 10β6 πππ π₯, π¦ ππ¦ ππ₯ 0 π₯ π β0.002π¦ ππ¦ π β0.001π₯ ππ₯ 0 1000 = 6 × 10β6 0 1000 π₯ π β0.002π₯ β π β4 β0.001π₯ π ππ₯ 0.002 π β0.003π₯ β π β4 π β0.001π₯ ππ₯ = 0.003 0 Joint Probability Density Function β1 1 β π β3 1 β π = 0.003 β π β4 0.003 0.001 π π β€ 1000, π β€ 2000 = 0.003 316.738 β 11.578 = 0.915 Joint Probability Density Function 3.15/96 A privately owned business operates a drive-in facility and a walk-in facility. On a randomly selected day, let π and π, respectively, be the proportions of the time that the drive-in and the walk-in facilities are in use, and suppose that the joint density function of these random variables is 2 π π₯, π¦ = 5 2π₯ + 3π¦ , 0 β€ π₯ β€ 1, 0 β€ π¦ β€ 1, 0, elsewhere. (a) Verify condition 2. (b) Find π π, π β π΄ , where π΄ = 1 1 2 4 π₯, π¦ |0 < π₯ < , < Marginal Probability Mass Function Marginal probability distribution β’ The individual probability distribution of a random variable The marginal probability mass functions of π alone and of π alone are ππ π₯ = π π₯, π¦ π¦ and ππ π¦ = π π₯, π¦ π₯ Marginal Probability Mass Function Examples: 5-3/157 Marginal Distribution The joint probability distribution of X and Y in Fig. 5-1 can be used to find the marginal probability distribution of X. For example, ππ 3 = π π = 3 = π π = 3, π = 1 + π π = 3, π = 2 + π π = 3, π = 3 + π π = 3, π = 4 = 0.25 + 0.2 + 0.05 + 0.05 = 0.55 The marginal probability distribution for X is found by summing the probabilities in each column, whereas the marginal probability distribution for Y is found by summing the probabilities in each row. The results are shown in Fig. 5-6. Marginal Probability Mass Function Marginal Probability Mass Function 3.16/98 Show that the column and row totals of Table 3.1 give the marginal distribution of π alone and of π alone. Table 3.1: Joint Probability Distribution for Example 3.14 x Row Totals f(x, y) 0 1 2 0 3/28 3/14 1/28 1 9/28 3/14 0 2 3/28 0 0 15/28 3/7 1/28 Column Totals 5/14 15/28 3/28 1 y Marginal Probability Mass Function 3.50/106 Suppose that X and Y have the following joint probability distribution: f(x, y) y 1 3 5 x 2 0.10 4 0.15 0.20 0.10 0.30 0.15 (a) Find the marginal distribution of X. (b) Find the marginal distribution of Y. Marginal Probability Density Function If the joint probability density function of random variables X and Y is πππ π₯, π¦ , the marginal probability density functions of X and Y are ππ π₯ = π¦ πππ π₯, π¦ ππ¦ and ππ π¦ = π₯ πππ π₯, π¦ ππ₯ (5-3) where the first integral is over all points in the range of π, π for which X = x and the second integral is over all points in the range of π, π for which Y = y. Marginal Probability Density Function A probability for only one random variable, say, for example, π π < π < π , can be found from the marginal probability distribution of X or from the integral of the joint probability distribution of X and Y as π π π<π<π = π = π ππ π₯ ππ₯ = π β π π₯, π¦ ππ¦ ππ₯ π ββ β π π₯, π¦ ππ¦ ππ₯ π ββ Marginal Probability Density Function Examples: 5-4/157 Server Access Time For the random variables that denote times in Example 5-2, calculate the probability that Y exceeds 2000 milliseconds. This probability is determined as the integral of πππ π₯, π¦ over the darkly shaded region in Fig. 5-7. The region is partitioned into two parts and different limits of integration are determined for each part. Marginal Probability Density Function Marginal Probability Density Function π π > 2000 2000 β 6 × 10β6 π β0.001π₯β0.002π¦ ππ¦ ππ₯ = 0 β 2000 β 6 × 10β6 π β0.001π₯β0.002π¦ ππ¦ ππ₯ + 2000 π₯ Marginal Probability Density Function The first integral is 2000 6 × 10β6 0 10β6 6× = π β4 0.002 π β0.002π¦ β π β0,001π₯ ππ₯ β0.002 2000 2000 π β0.001π₯ ππ₯ 0 6 × 10β6 β4 1 β π β2 = π 0.002 0.001 = 0.0475 Marginal Probability Density Function The second integral is β π β0.002π¦ 6 × 10β6 2000 10β6 6× = 0.002 β π β0.001π₯ ππ₯ β0.002 π₯ β π β0.003π₯ ππ₯ 2000 10β6 6× = 0.002 π β6 = 0.0025 0.003 Therefore, π π > 2000 = 0.0475 + 0.0025 = 0.05 Marginal Probability Density Function Alternatively, the probability can be calculated from the marginal probability distribution of Y as follows. For y > 0, π¦ 6 × 10β6 π β0.001π₯β0.002π¦ ππ₯ ππ π¦ = 0 π¦ = 6 × 10β6 π β0.002π¦ π β0.001π₯ ππ₯ 0 = 6 × 10β6 π β0.002π¦ =6× 10β6 π β0.002π¦ π β0.001π₯ π¦ β0.001 0 π β0.001π¦ 1β 0.001 Marginal Probability Density Function ππ π¦ = 6 × 10β3 π β0.002π¦ 1 β π β0.001π¦ for y > 0 We have obtained the marginal probability density function of Y. Now, β π π > 2000 = 6 × 10β3 = 6 × 10β3 π β0.002π¦ π β0.002π¦ 1 β π β0.001π¦ ππ¦ 2000 β β0.002 = 6 × 10β3 2000 π β4 β π β0.003π¦ β β0.003 π β6 β = 0.05 0.002 0.003 2000 Marginal Probability Density Function 3.40/105 A fast-food restaurant operates both a drive-through facility and a walk-in facility. On a randomly selected day, let X and Y, respectively, be the proportions of the time that the drive-through and walk-in facilities are in use, and suppose that the joint density function of these random variables is 2 π π₯, π¦ = 3 π₯ + 2π¦ , 0 β€ π₯ β€ 1, 0 β€ π¦ β€ 1, 0, elsewhere. (a) Find the marginal density of X. (b) Find the marginal density of Y. (c) Find the probability that the drive-through facility is busy less than one-half of the time. Conditional Probability Mass Function Let X and Y be two random variables, discrete or continuous. The conditional distribution of the random variable Y, given that X = x, is πππ π₯, π¦ ππ|π₯ π¦ = , ππ π₯ > 0. ππ π₯ Similarly, the conditional distribution of the random variable X, given that Y = y, is πππ π₯, π¦ ππ|π¦ π₯ = , ππ π¦ > 0. ππ π¦ Conditional Probability Mass Function Examples: 5-5/159 Signal Bars For Example 5-1, X and Y denote the number of bars of signal strength and times you need to state your departure city received, respectively. Then, π π = 1|π = 3 = π π = 3, π = 1 π π = 3 = πππ 3,1 ππ 3 = 0.25 0.55 = 0.454 The probability that π = 2 given that π = 3 is π π = 2|π = 3 = π π = 3, π = 2 π π = 3 = πππ 3,2 ππ 3 = 0.2 0.55 = 0.364 Conditional Probability Mass Function Additional Conclusion: Further work shows that π π = 3|π = 3 = 0.091 and π π = 4|π = 3 = 0.091. Note that π π = 1|π = 3 + π π = 2|π = 3 + π π = 3|π = 3 = π π = 4|π = 3 = 1 . This set of probabilities defines the conditional probability distribution of Y given that X = 3. Conditional Probability Mass Function 3.18/99 Referring to Example 3.14, find the conditional distribution of X, given that Y = 1, and use it to determine π π = 0|π = 1 . Table 3.1: Joint Probability Distribution for Example 3.14 x Row Totals f(x, y) 0 1 2 0 3/28 3/14 1/28 1 9/28 3/14 0 2 3/28 0 0 15/28 3/7 1/28 Column Totals 5/14 15/28 3/28 1 y Conditional Probability Mass Function 3.49/106 Let X denote the number of times a certain numerical control machine will malfunction: 1, 2, or 3 times on any given day. Let Y denote the number of times a technician is called on an emergency call. Their joint probability distribution is given as f(x, y) y 1 3 5 x 1 2 3 0.05 0.05 0.10 0.05 0.10 0.35 0.00 0.20 0.10 (a) Evaluate the marginal distribution of X. (b) Evaluate the marginal distribution of Y. (c) Find π π = 3|π = 2 . Conditional Probability Density Function Given continuous random variables X and Y with joint probability density function πππ π₯, π¦ , the conditional probability density function of Y given X = x is ππ|π₯ π¦ = πππ π₯,π¦ ππ π₯ for ππ π₯ > 0 Equivalently, ππ|π¦ πππ π₯, π¦ π₯ = , ππ π¦ > 0 ππ π¦ (5-4) Conditional Probability Density Function Because the conditional probability density function ππ|π₯ π¦ is a probability density function for all y in π π₯ , the following properties are satisfied: (1) ππ|π₯ π¦ β₯ 0 (2) ππ|π₯ π¦ ππ¦ = 1 (3) π π β π΅|π = π₯ = range of Y π΅ ππ|π₯ π¦ ππ¦ for any set B in the (5-5) Conditional Probability Density Function Examples: 3.19/100 The joint density function for the random variables π, π , where X is the unit temperature change and Y is the proportion of spectrum shift that a certain atomic particle produces is 10π₯π¦ 2 , 0 < π₯ < π¦ < 1 πππ π₯, π¦ = 0, elsewhere. a) Find the marginal densities ππ π₯ , ππ π¦ , and the conditional probability ππ|π₯ π¦ . b) Find the probability that the spectrum shifts more than half of the total observations, given the temperature is increased to 0.25 units. Conditional Probability Density Function 3.20/100 Given the joint density function π₯ 1 + 3π¦ 2 , 0 < π₯ < 2, 0 < π¦ < 1 πππ π₯, π¦ = 4 0, elsewhere, find ππ π₯ , ππ π¦ , ππ|π¦ π₯ , and evaluate π 1 4 <π< Conditional Probability Density Function 3.53/106 Given the joint density function πππ 6βπ₯βπ¦ , 0 < π₯ < 2, 2 < π¦ < 4, π₯, π¦ = 8 0, elsewhere, find π 1 < π < 3|π = 1 . Independence For random variables X and Y, if any one of the following properties is true, the others are also true, and X and Y are independent. (1) πππ π₯, π¦ = ππ π₯ ππ π¦ for all x and y (2) ππ|π₯ π¦ = ππ π¦ for all x and y with ππ π₯ > 0 (3) ππ|π¦ π₯ = ππ π₯ for all x and y with ππ π¦ > 0 (4) π π β π΄, π β π΅ = π π β π΄ π π β π΅ for any sets A and B in the range of X and Y, respectively. (5-7) Independence Examples: 5-11/162 Independent Random Variables Suppose that Example 5-2 is modified so that the joint probability density function of X and Y is πππ π₯, π¦ = 2 × 10β6 ππ₯π β0.001π₯ β 0.002π¦ for π₯ β₯ 0 and π¦ β₯ 0. Show that X and Y are independent and determine π π > Independence The marginal probability density function of Y is β 2 × 10β6 π β0.001π₯β0.002π¦ ππ₯ ππ π¦ = 0 = 0.002π β0.002π¦ for y > 0 Therefore, πππ π₯, π¦ = ππ π₯ ππ π¦ for all x and y, and X and Y are independent. Independence To determine the probability requested, property (4) of Equation 5-7 and the fact that each random variable has an exponential distribution can be applied. π π > 1000, π < 1000 = π π > 1000 π π < 1000 = π β1 1 β π β2 = 0.0318 Independence 3.21/102 Show that the random variables of Example 3.14 are not statistically independent. Table 3.1: Joint Probability Distribution for Example 3.14 f(x, y) 0 y 1 2 Column Totals 0 3/28 3/14 1/28 5/14 x 1 9/28 3/14 0 15/28 2 3/28 0 0 3/28 Row Totals 15/28 3/7 1/28 1 Examples 5-1/167 Show that the following function satisfies the properties of a joint probability mass function. x 1 1.5 y 1 2 fXY(x, y) 1/4 1/8 1.5 3 1/4 2.5 4 1/4 3 5 1/8 Determine the following: (a) π π < 2.5, π < 3 (b) π π < 2.5 (c) π π < 3 (d) π π > 1.8, π > 4.7 Examples (e) πΈ π , πΈ π , π π , and π π (f) Marginal probability distribution of the random variable X (g) Conditional probability distribution of Y given that X = 2.5 (h) Conditional probability distribution of X given that Y = 2. (i) πΈ π|π = 1.5 (j) Are X and Y independent? Examples 5-2/167 Determine the value of c that makes the function π π₯, π¦ = π π₯ + π¦ a joint probability mass function over the nine points with x = 1, 2, 3 and y = 1, 2, 3. Determine the following: (a) π π = 1, π < 4 (b) π π = 1 (c) π π = 2 (d) π π < 2, π < 2 (e) πΈ π , πΈ π , π π , and π π (f) Marginal probability distribution of the random variable X (g) Conditional probability distribution of Y given that X = 1 Examples (h) Conditional probability distribution of X given that Y = 2 (i) πΈ π|π = 1 (j) Are X and Y independent? Examples 5-4/167 Four electronic printers are selected from a large lot of damaged printers. Each printer is inspected and classified as containing either a major or a minor defect. Let the random variables X and Y denote the number of printers with major and minor defects, respectively. Determine the range of the joint probability distribution of X and Y. Examples 5-6/167 A small-business Web site contains 100 pages and high graphic content, respectively. A sample of four pages is selected without replacement, and X and Y denote the number of pages with moderate and high graphics output in the sample. Determine: (a) πππ π₯, π¦ (b) ππ π₯ (c) πΈ π (d) ππ|3 π¦ (e) πΈ π|π = 3 (f) π π|π = 3 (g) Are X and Y independent? Expected Value of a Function of Two Random Variables β π₯, π¦ πππ π₯, π¦ πΈ β π, π π, π discrete = β π₯, π¦ πππ π₯, π¦ ππ₯ ππ¦ (5-13) π, π continuous Expected Value of a Function of Two Random Variables Example: 5-19/171 For the joint probability distribution of the two random variables in Fig. 5-12, calculate πΈ π β ππ π β ππ . Covariance β’ A measure of linear relationship between the random variables β’ If the relationship between the random variables is nonlinear, the covariance might not be sensitive to the relationship, as illustrated in Fig. 5-13(d). The only points with nonzero probability are the points on the circle. cov π, π = πππ = πΈ π β ππ π β ππ (5-14) Covariance Covariance Examples: 5-20/173 In Example 5-1, the random variables X and Y are the number of signal bars and the number of times you need to state your departure city, respectively. Is the covariance between X and Y positive or negative? Negative covariance Covariance 4.47/127 For the random variables X and Y whose joint density function is given in Exercise 3.40 on page 105, find the covariance. 2 π π₯, π¦ = 3 π₯ + 2π¦ , 0 β€ π₯ β€ 1, 0 β€ π¦ β€ 1, 0, elsewhere Correlation The correlation between random variables X and Y, denoted as ΟXY, is cov π, π Οππ πππ = = ππ ππ π π π π (5-15) For any two random variables X and Y β1 β€ ΟXY β€ +1 (5-16) If X and Y are independent random variables, ΟXY = ΟXY = 0 (5-17) Covariance Examples: 5-21/173 Covariance For the discrete random variables X and Y with the joint distribution shown in Fig. 5-14, determine ΟXY and ΟXY. Correlation 5-22/174 Correlation Suppose that the random variable X has the following distribution: π π = 1 = 0.2, Examples 5-29/175 Determine the covariance and correlation for the following joint probability distribution x y fXY(x, y) 2 3 1/8 1 4 1/4 2 5 1/2 4 6 1/8 Examples 5-31/175 Determine the value for c and the covariance and correlation for the joint probability mass function πππ π₯, π¦ = π π₯ + π¦ for x = 1, 2, 3 and y = 1, 2, 3. 5-37/175 Determine the covariance and correlation for the joint probability density function πππ π₯, π¦ = π βπ₯βπ¦ over the range 0 < x and 0 < y. Examples 5-39/175 The joint probability distribution is x y fXY(x, y) β1 0 1/4 0 β1 1/4 0 1 1/4 1 0 1/4 Show that the correlation between X and Y is zero, but X and Y are not independent. Summary β’ A joint probability mass function is a function used to calculate probabilities for two or more discrete random variables. β’ A joint probability density function is a function used to calculate probabilities for two or more continuous random variables. β’ A marginal probability mass function is the probability mass function of a discrete random variable obtained from the joint probability distribution of two or more random variables. Summary β’ A marginal probability density function is the probability density function of a continuous random variable obtained from the joint probability distribution of two or more random variables. β’ A conditional probability mass function is the probability mass function of the conditional probability distribution of a discrete random variable. β’ A conditional probability density function is the probability density function of the conditional probability distribution of a continuous random variable. Summary β’ The covariance is a measure of association between two random variables obtained as the expected value of the product of the two random variables around their means; that is Cov π, π = πππ = πΈ π β References β’ Montgomery and Runger. Applied Statistics and Probability for Engineers, 5th Ed. © 2011 β’ Walpole, et al. Probability and Statistics for Engineers and Scientists 9th Ed. © 2012, 2007, 2002
© Copyright 2024