To find out how many broken bars of soap the factory would expect to produce in a day, we first need to determine the proportion of broken bars from the inspected sample.
From the provided data, we see that there were 3 broken bars out of 100 inspected bars.
To find the probability of a bar being broken, we calculate:
\[ \text{Probability of broken bar} = \frac{\text{Number of broken bars}}{\text{Total bars inspected}} = \frac{3}{100} = 0.03 \]
Now, to find the expected number of broken bars in a day when the factory produces 5,000 bars, we apply this probability:
\[ \text{Expected number of broken bars} = \text{Total bars produced} \times \text{Probability of broken bar} \] \[ \text{Expected number of broken bars} = 5000 \times 0.03 = 150 \]
Therefore, the factory would expect 150 bars to be broken.