東京大学 新領域創成科学研究科 人間環境学専攻 2024年8月実施 概率统计
Author
思齐塾, 祭音Myyura
Description
ある製品が箱に収められているとする. 1つの箱には24個の製品が入っており、そのうち不良品が0個, 1個, 2個含まれている確率はそれぞれ80%, 15%, 5%であるとする. いま、任意に1つの箱を選び、その中から4個の製品を取り出したところ、不良品は見つからなかった. ベイズの定理 (Bayes' theorem) を用いて、この箱の中に不良品が存在しない確率を求め、有効数字2桁の小数で表せ.
(参考) ベイズの定理 (Bayes' theorem): 事象 Hi が
Hi∩Hj=∅(i=j),i⋃Hi=Ω(Ω:全事象)
を満たすとき、任意の事象 A に対して、事前確率 P(Hi) と事後確率 P(Hi∣A) の間に
P(Hi∣A)=∑kP(Hk)P(A∣Hk)P(Hi)P(A∣Hi)
が成り立つ。
题目描述
每个箱子装有 24 件产品。一个箱子中含有 0、1、2 件次品的概率分别为 80%、15%、5%。现随机选取一个箱子,从中抽出 4 件产品,结果没有发现次品。使用贝叶斯定理,求该箱子原本不含次品的概率,并以两位有效数字的小数表示。
参考:若一组事件 Hi 两两互斥且穷尽样本空间,即
Hi∩Hj=∅(i=j),i⋃Hi=Ω,
其中 Ω 表示全事件,则对任意事件 A,先验概率与后验概率满足
P(Hi∣A)=∑kP(Hk)P(A∣Hk)P(Hi)P(A∣Hi).
Kai
Let H0 be the event that the box contains 0 defective products.
Let H1 be the event that the box contains 1 defective product.
Let H2 be the event that the box contains 2 defective products.
Let A be the event that 4 products are taken out and none are defective.
We are given that P(H0)=0.80 , P(H1)=0.15 , and P(H2)=0.05 .
We need to find P(H0∣A) .
Using Bayes' theorem, we have
P(H0∣A)=P(H0)P(A∣H0)+P(H1)P(A∣H1)+P(H2)P(A∣H2)P(H0)P(A∣H0)
We need to compute P(A∣H0) , P(A∣H1) , and P(A∣H2) .
If the box contains 0 defective products, then P(A∣H0)=1 .
If the box contains 1 defective product, then P(A∣H1)=(424)(423)=24⋅23⋅22⋅2123⋅22⋅21⋅20=2420=65 .
If the box contains 2 defective products, then P(A∣H2)=(424)(422)=24⋅23⋅22⋅2122⋅21⋅20⋅19=24⋅2320⋅19=6⋅235⋅19=13895 .
Now, we plug these values into Bayes' theorem:
P(H0∣A)=0.80⋅1+0.15⋅65+0.05⋅138950.80⋅1=0.8+0.15⋅65+0.05⋅138950.8=0.8+0.125+0.034420.8=0.959420.8≈0.8338
Rounding to two significant figures, we get 0.83.
Therefore, the probability that the box contains no defective products given that 4 products were drawn and none were defective is approximately 0.83.