document.write( "Question 1150084: A box of 30 flashbulbs contains 10 defective bulbs. A random sample of 2 is selected and tested. Let X be the random variable associated with the number of defective bulbs in the sample.
\n" ); document.write( "​(A) Find the probability distribution of X.
\n" ); document.write( "​(B) Find the expected number of defective bulbs in the sample.
\n" ); document.write( "

Algebra.Com's Answer #771445 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Part A
\n" ); document.write( "X = number of defective bulbs
\n" ); document.write( "X is an integer chosen from the set {0, 1, 2}.
\n" ); document.write( "---------
\n" ); document.write( "If X = 0, then we have no defective bulbs, which means both bulbs are working.
\n" ); document.write( "The probability of choosing 2 working bulbs is (20/30)*(19/29) = 38/87
\n" ); document.write( "20/30 represents the probability of choosing one working bulb (20 working out of 30 total)
\n" ); document.write( "19/29 represents the probability of choosing a second working bulb (each value goes down by 1 becuse we dont replace whatever bulb was selected)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So if X = 0, then P(X) = 38/87
\n" ); document.write( "We'll have this in the table below
\n" ); document.write( "---------
\n" ); document.write( "When X = 1, we have one working bulb and one defective bulb
\n" ); document.write( "A = P(first bulb works) = 20/30 = 2/3
\n" ); document.write( "B = P(second bulb doesnt work) = 10/29
\n" ); document.write( "C = A*B = (2/3)*(10/29) = 20/87\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "D = P(first bulb doesnt work) = 10/30 = 1/3
\n" ); document.write( "E = P(second bulb works) = 20/29
\n" ); document.write( "F = D*E = (1/3)*(20/29) = 20/87
\n" ); document.write( "We get the same result each time so the order doesnt matter (if we get defective first or not)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "C+F = (20/87)+(20/87) = 40/87 is the probability of having one bulb working and the other defective\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If X = 1, then P(X) = 40/87
\n" ); document.write( "We'll have this in the table below
\n" ); document.write( "---------
\n" ); document.write( "Finally, if X = 2 then we have 2 defective bulbs
\n" ); document.write( "P(both defective) = P(first defective)*P(second defective) = (10/30)*(9/29) = 3/29\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "So if X = 2, then P(X) = 3/29
\n" ); document.write( "We'll have this in the table below\r
\n" ); document.write( "\n" ); document.write( "---------
\n" ); document.write( "---------
\n" ); document.write( "The probability distribution looks like this
\n" ); document.write( "\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\n" ); document.write( "
XP(X)
038/87
140/87
23/29
\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "The fractions can be replaced with their decimal approximations
\n" ); document.write( "\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\n" ); document.write( "
XP(X)
00.43678
10.45977
20.10345

\n" ); document.write( "38/87 = 0.43678
\n" ); document.write( "40/87 = 0.45977
\n" ); document.write( "3/29 = 0.10345
\n" ); document.write( "===========================================================
\n" ); document.write( "Part B\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Refer to the table created in part A
\n" ); document.write( "\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\n" ); document.write( "
XP(X)
038/87
140/87
23/29
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Let's add on a new column called X*P(X). This column is the result of multiplying each X and P(X) value together for any given row
\n" ); document.write( "\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\r\n" ); document.write( "\n" ); document.write( "
XP(X)X*P(X)
038/870*(38/87) = 0
140/871*(40/87) = 40/87
23/292*(3/29) = 6/29
\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Add up the results in that new column
\n" ); document.write( "0+40/87+6/29 = 40/87+18/87 = 58/87 = (29*2)/(29*3) = 2/3\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Expected number of defective bulbs in the sample = 2/3 = 0.667\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Keep in mind that having a fractional amount of defective bulbs does not make sense for a single sample; however, if you repeatedly pulled out 2 bulbs at random (do this say 1000 times), then you should expect on average to have 0.667 defective bulbs.
\n" ); document.write( "
\n" ); document.write( "
\n" );