Let the random variable $X$ represent the number of defective items produced by the machine. The possible values of $X$ are 0, 1, and 2, with corresponding probabilities as given in the problem:
- $P(X = 0) = \frac{1}{4}$
- $P(X = 1) = \frac{1}{2}$
- $P(X = 2) = \frac{1}{4}$
We will first calculate the mean ($\mu$) and variance ($\sigma^2$), and then find the standard deviation ($\sigma$).
Step 1: Calculate the mean
The mean is given by:
\[
\mu = E[X] = \sum x P(X = x) = 0 \times \frac{1}{4} + 1 \times \frac{1}{2} + 2 \times \frac{1}{4} = 0 + \frac{1}{2} + \frac{2}{4} = 1
\]
Step 2: Calculate the variance
The variance is given by:
\[
\sigma^2 = E[X^2] - (E[X])^2
\]
First, calculate $E[X^2]$:
\[
E[X^2] = 0^2 \times \frac{1}{4} + 1^2 \times \frac{1}{2} + 2^2 \times \frac{1}{4} = 0 + \frac{1}{2} + \frac{4}{4} = 1.5
\]
Now, calculate the variance:
\[
\sigma^2 = 1.5 - (1)^2 = 1.5 - 1 = 0.5
\]
Step 3: Calculate the standard deviation
The standard deviation is the square root of the variance:
\[
\sigma = \sqrt{\sigma^2} = \sqrt{0.5} = \frac{1}{\sqrt{2}}
\]
Thus, the standard deviation is $\frac{1}{\sqrt{2}}$.