document.write( "Question 1174433: A production line of 5000 transistors has an unknown number D of defectives. A sample of 100 is taken and we ascertain that this sample of transistors has 10 defectives. The maximum likelihood estimate for D is the number of defectives which gives the highest probability for obtaining the number of defectives observed in the sample. Guess this number D. \n" ); document.write( "
Algebra.Com's Answer #850659 by CPhill(2189)\"\" \"About 
You can put this solution on YOUR website!
Let $N = 5000$ be the total number of transistors.
\n" ); document.write( "Let $D$ be the unknown number of defective transistors.
\n" ); document.write( "We take a sample of $n = 100$ transistors.
\n" ); document.write( "We observe $d = 10$ defectives in the sample.\r
\n" ); document.write( "\n" ); document.write( "We want to find the maximum likelihood estimate for $D$.
\n" ); document.write( "The probability of observing $d$ defectives in a sample of $n$ is given by the hypergeometric distribution:
\n" ); document.write( "$$P(X=d) = \frac{\binom{D}{d} \binom{N-D}{n-d}}{\binom{N}{n}}$$
\n" ); document.write( "We want to find the value of $D$ that maximizes this probability.\r
\n" ); document.write( "\n" ); document.write( "We can approximate the hypergeometric distribution with the binomial distribution when $n$ is much smaller than $N$.
\n" ); document.write( "In our case, $n=100$ and $N=5000$, so $n/N = 100/5000 = 1/50 = 0.02$, which is small.
\n" ); document.write( "So we can use the binomial approximation.\r
\n" ); document.write( "\n" ); document.write( "The probability of a transistor being defective is $p = D/N$.
\n" ); document.write( "The probability of observing $d$ defectives in a sample of $n$ is:
\n" ); document.write( "$$P(X=d) = \binom{n}{d} p^d (1-p)^{n-d}$$
\n" ); document.write( "We want to maximize this probability with respect to $D$.
\n" ); document.write( "Since $p = D/N$, we have:
\n" ); document.write( "$$P(X=d) = \binom{n}{d} \left(\frac{D}{N}\right)^d \left(1-\frac{D}{N}\right)^{n-d}$$
\n" ); document.write( "To find the maximum likelihood estimate, we can take the derivative of the log-likelihood function with respect to $D$ and set it to zero.
\n" ); document.write( "The log-likelihood function is:
\n" ); document.write( "$$L(D) = \ln\left(\binom{n}{d}\right) + d\ln\left(\frac{D}{N}\right) + (n-d)\ln\left(1-\frac{D}{N}\right)$$
\n" ); document.write( "Taking the derivative with respect to $D$:
\n" ); document.write( "$$\frac{dL}{dD} = \frac{d}{D} - \frac{n-d}{N-D}$$
\n" ); document.write( "Setting the derivative to zero:
\n" ); document.write( "$$\frac{d}{D} = \frac{n-d}{N-D}$$
\n" ); document.write( "$$d(N-D) = D(n-d)$$
\n" ); document.write( "$$dN - dD = nD - dD$$
\n" ); document.write( "$$dN = nD$$
\n" ); document.write( "$$D = \frac{dN}{n}$$
\n" ); document.write( "Plugging in the given values:
\n" ); document.write( "$$D = \frac{10 \times 5000}{100}$$
\n" ); document.write( "$$D = \frac{50000}{100}$$
\n" ); document.write( "$$D = 500$$\r
\n" ); document.write( "\n" ); document.write( "Therefore, the maximum likelihood estimate for $D$ is 500.\r
\n" ); document.write( "\n" ); document.write( "Final Answer: The final answer is $\boxed{500}$
\n" ); document.write( "
\n" ); document.write( "
\n" );