题目
Problem
A bag contains a large number of balls, each with one of the numbers 1, 2 or 5 written on it in the ratio 2:3:4 respectively.
A random sample of 3 balls is taken from the bag.
The random variable B represents the range of the numbers written on the balls in the sample.
(i) Find P(B=4)
(ii) Find the sampling distribution of B.
(10)
(Total for Question 4 is 10 marks)
题目中文翻译
一个袋子里有很多球,每个球上写着 1、2 或 5 之一,比例分别为 2:3:4。
从袋中随机抽取 3 个球。
随机变量 B 表示样本中所写数字的极差。
(i) 求 P(B=4)。
(ii) 求 B 的抽样分布。
(10)
(第 4 题共 10 分)
解答
(i)
解法一
思路
展开
先把比例化成单次抽到各数字的概率。极差为 4 表示样本中必须同时出现 1 和 5;三个球的无序组合只有 (1,1,5)、(1,2,5)、(1,5,5)。分别考虑排列数后相加。
答题过程
展开
Let A be the number written on one selected ball. Then
P(A=1)=P(A=2)=P(A=5)=923194.
The possible unordered samples with range 4 are
(1,1,5),(1,2,5),(1,5,5).
Samples with two equal numbers have 3!/2!=3 possible orders; a sample with three different numbers has 3!=6 possible orders. Their probabilities, including all possible orders, are
P(1,1,5)=3(92)2(94)=24316,
P(1,2,5)=6(92)(31)(94)=8116,
and
P(1,5,5)=3(92)(94)2=24332.
Therefore,
P(B=4)=24316+8116+24332=8132.
解法二
思路
展开
也可以把“同时出现 1 和 5”作为两个事件的交集,用容斥原理计算。总概率减去“没有 1”与“没有 5”,再加回被重复减去的“只有 2”。
答题过程
展开
The event B=4 occurs when the sample contains at least one 1 and at least one 5. Hence, by inclusion-exclusion,
P(B=4)=1−P(no 1)−P(no 5)+P(only 2s)=1−(97)3−(95)3+(31)3=8132.
(ii)
解法一
思路
展开
三个可抽到的数字为 1、2、5,所以极差只可能是 0、1、3、4。极差为 0 时三个数字相同;极差为 1 时只出现 1 和 2 且两者都要出现;极差为 3 时只出现 2 和 5 且两者都要出现;极差为 4 已由 (i) 求出。
答题过程
展开
For B=0, all three numbers must be the same:
P(B=0)=(92)3+(31)3+(94)3=8111.
For B=1, both 1 and 2 must occur, but 5 must not occur:
P(B=1)=3(92)2(31)+3(92)(31)2=8110.
For B=3, both 2 and 5 must occur, but 1 must not occur:
P(B=3)=3(31)2(94)+3(31)(94)2=8128.
Using part (i), P(B=4)=32/81.
Alternatively, once the probabilities for B=0, B=1 and B=4 are known, the probability for B=3 can be obtained by subtracting them from 1, since 0, 1, 3 and 4 are the only possible ranges:
P(B=3)=1−8111−8110−8132=8128.
Therefore the sampling distribution is
| b | P(B=b) |
|---|
| 0 | 8111 |
| 1 | 8110 |
| 3 | 8128 |
| 4 | 8132 |
The probabilities sum to
8111+10+28+32=1.