If a computer code is correctly programmed, it gives 90% acceptable results. But if it is not correctly programmed, it gives only 40% acceptable results. From previous experience, it is observed that only 80% of codes are correctly programmed. If after a certain programming, the code gives 2 acceptable results, then the approximate probability that the code is correctly programmed is
If a computer code is correctly programmed, it gives 90% acceptable results. But if it is not correctly programmed, it gives only 40% acceptable results. From previous experience, it is observed that only 80% of codes are correctly programmed. If after a certain programming, the code gives 2 acceptable results, then the approximate probability that the code is correctly programmed is
Solution
Let denote the event that the code is correctly programmed, and denote the event that 2 acceptable results are obtained.
Given information:
The probability of getting 2 acceptable results given the code is correctly programmed:
The probability of getting 2 acceptable results given the code is incorrectly programmed:
The total probability of getting 2 acceptable results:
Using Bayes' theorem:
Therefore, the approximate probability that the code is correctly programmed is .
Related questions:
2025: 22 May Shift 2
2022: 16 July Shift 2
2024: 16 May Shift 1
2026: 31 May Shift 2