Question
Question: From a lot of 6 items containing 2 defective items, a sample of 4 items are drawn at random. Let the...
From a lot of 6 items containing 2 defective items, a sample of 4 items are drawn at random. Let the random variable X denote the number of defective items in the sample. If the sample is drawn without replacement, find the Mean of X.
Solution
Find the probability of drawing x number of defective items in the sample. Since there are 2 defective items in the sample, x can vary from 0 to 2. This generates the probability mass function (or PMF) of the random variable X. Thus, if f(x) is the PMF of X, the mean or expectation of the random variable X is x = 0∑2x⋅f(x).
X is the number of defective items in the sample drawn of size 4 from the lot of 6 items containing 2 defective items. Thus, X takes the values x = 0, 1, 2.
Define, P(X = x) = Probability of drawing x defective items in the sample.
= Total no of ways a sample can be drawnNo. of cases where x defective items are drawn
Complete step-by-step answer:
Since, 4 items are drawn out of 6 items in the lot, total number of ways in which a sample can be drawn6C4
Now, as x defective items are drawn in a sample of size 4, no of non-defective items = (4 – x)
Therefore, number of cases where x defective items are drawn 2Cx×4C4−x
P(X=x)=6C42Cx×4C4−x,x=0,1,2
This is the probability mass function of X.
∴ Mean (or Expectation) of X
x=0=∑2x.P(X=x)x=1=∑2x.P(X=x)(0.P(X=0)=0)=1.(6C42C1×4C3)+2.(6C42C2×4C2)=2×16×51×2×4+2×1×6=1520=34
Thus, the mean of the random variable X is 34.
Note: In this problem, from the PMF of the random variable X, it is clear that X follows a Hypergeometric distribution with parameters N = 6, n = 4 and p = 62 = 31. The mean of a hypergeometric distribution with parameters N, n and p is np. Here also, np = 4 x 31 = 34. Thus, we can cross examine that our answer is correct.