题目
Problem
The number of cakes, X, bought by customers at a particular shop has probability distribution
| x | 1 | 2 | 3 | 4 | 5 | 6 | >6 |
|---|
| P(X=x) | 0.35 | a | a | 0.15 | b | b | 0 |
where a and b are constants.
Given that E(X)=2.5
(a) (i) show that a=0.2
(ii) find the value of b
(5)
(b) Calculate Var(4X+3)
(4)
The cost to produce each cake is 20 cents and the shopkeeper sells each cake for 80 cents.
(c) Find the expected profit made by the shopkeeper for a randomly selected customer buying cakes.
(2)
The shopkeeper decides to run a promotion where she gives 1 free cake to all customers who buy 4 or more cakes. During the promotion the number of cakes, Y, taken away by a customer buying cakes has the following probability distribution
| y | 1 | 2 | 3 | 4 | 5 | 6 |
|---|
| P(Y=y) | 403 | 404 | 403 | 0 | 4022 | 408 |
(d) Find the expected profit made by the shopkeeper for a randomly selected customer buying cakes during the promotion.
(4)
解答
(a)
解法一
思路
展开
用总概率为 1 得到一个方程,再用 E(X)=2.5 得到另一个方程,联立求 a,b。
答题过程
展开
From the sum of probabilities,
0.35+a+a+0.15+b+b=1.
So
2a+2b=0.5.
Hence
a+b=0.25.
Using E(X)=2.5,
1(0.35)+2a+3a+4(0.15)+5b+6b=2.5.
So
5a+11b=1.55.
Since b=0.25−a,
5a+11(0.25−a)=1.55.
Thus
5a+2.75−11a=1.55.
So
6a=1.20.
Therefore
a=0.20.
Then
b=0.25−0.20=0.05.
(b)
解法一
思路
展开
先求 Var(X),再使用 Var(4X+3)=16Var(X)。
答题过程
展开
First,
E(X2)==12(0.35)+22(0.2)+32(0.2)+42(0.15)+52(0.05)+62(0.05)8.4.
Therefore
Var(X)=8.4−2.52=2.15.
So
Var(4X+3)=42Var(X)=16(2.15)=34.4.
(c)
解法一
思路
展开
每个 cake 利润 80−20=60 cents,平均卖出 E(X)=2.5 个。
答题过程
展开
The profit per cake is
80−20=60
cents.
Therefore the expected profit is
2.5(60)=150
cents, or
$1.50.
(d)
解法一
思路
展开
促销时 Y 是顾客带走的蛋糕数,但若 Y≥5,其中 1 个是免费的。也就是说 Y=5 时顾客付 4 个,利润 4×80−5×20=220 cents;Y=6 时利润 5×80−6×20=280 cents。
答题过程
展开
The profit, in cents, for each value of Y is
Yprofit1602120318052206280
Therefore
E(profit)==401{60(3)+120(4)+180(3)+220(22)+280(8)}207.
So the expected profit is
207 cents.
解法二
思路
展开
期望线性性质法。
设促销期间每位顾客带来的利润为随机变量 W(单位为 cents),顾客带走的蛋糕数为随机变量 Y。
我们知道每个蛋糕成本为 20 cents,售价为 80 cents。
- 如果顾客带走的蛋糕 Y⩽3,他们付 Y 个蛋糕的钱,利润为 80Y−20Y=60Y。
- 如果顾客带走的蛋糕 Y⩾5,因为促销送了 1 个免费蛋糕,所以顾客实际付 Y−1 个蛋糕的钱,利润为 80(Y−1)−20Y=60Y−80。
我们可以引入指示变量 I{Y⩾5}(表示带走蛋糕数是否不小于 5。若是则为 1,否则为 0),将利润 W 统一表达为关于 Y 的线性组合:
W=60Y−80I{Y⩾5}
根据期望的线性性质,预期的利润期望即为:
E(W)=60E(Y)−80E(I{Y⩾5})=60E(Y)−80P(Y⩾5)
这种方法将复杂的分类讨论利润转化为对 Y 期望的线性修正,极大减少了算术运算量,且不易出错。
答题过程
展开
Let W be the profit in cents from a randomly selected customer. Let Y be the number of cakes taken away.
The relationship between W and Y is:
- If Y⩽3: W=80Y−20Y=60Y
- If Y⩾5: W=80(Y−1)−20Y=60Y−80
This can be written compactly using the indicator variable for {Y⩾5}:
W=60Y−80I{Y⩾5}.
By the linearity of expectation:
E(W)=60E(Y)−80P(Y⩾5).
First, calculate the expected number of cakes taken away, E(Y):
E(Y)====1(403)+2(404)+3(403)+5(4022)+6(408)403+8+9+110+48401784.45.
Next, find P(Y⩾5):
P(Y⩾5)====P(Y=5)+P(Y=6)4022+40840300.75.
Substitute E(Y)=4.45 and P(Y⩾5)=0.75 into the expectation formula:
E(W)===60(4.45)−80(0.75)267−60207.
So the expected profit is
207 cents.