It is now assumed that, in the store:
- $80\%$ of the padlocks offered for sale are budget models, the others are high-end;
- $3\%$ of high-end padlocks are defective;
- $7\%$ of padlocks are defective.
A padlock is randomly selected from the store. We denote:
- $p$ the probability that a budget padlock is defective;
- $H$ the event: ``the selected padlock is high-end'';
- $D$ the event: ``the selected padlock is defective''.
- Represent the situation using a probability tree.
- Express $P(D)$ as a function of $p$. Deduce the value of the real number $p$.
Is the result obtained consistent with that of question A-2?
3. The selected padlock is in good condition. Determine the probability that it is a high-end padlock.