1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Foundations of Probability in Python

Connected

Bài tập

Formula 1 engines

Suppose that two manufacturers, A and B, supply the engines for Formula 1 racing cars, with the following characteristics:

  • 99% of the engines from factory A last more than 5,000 km.
  • Factory B manufactures engines that last more than 5,000 km with 95% probability.
  • 70% of the engines are from manufacturer A, and the rest are produced by manufacturer B.

What is the chance that an engine will last more than 5,000 km?

Hướng dẫn

100 XP
  • Calculate the following probabilities:
    • The manufacturer is A (P_A).
    • The engine lasts more than 5,000 km given that manufacturer is A (P_last5000_g_A).
    • The manufacturer is B (P_B).
    • The engine lasts more than 5,000 km given that manufacturer is B (P_last5000_g_B).
  • Use the total probability law to calculate the probability that the engine will last more than 5,000 km and store the result into P_last_5000.