返回题库

随机价格购买:剩余金额期望

What is the expected amount of money that remaining

专题
Probability / 概率
难度
L4

题目详情

Assume that M>0M > 0 is a fixed real number and that XX is a random variable with uniform distribution on the interval (0,M)(0,M) . A price of an item is exactly SX\mathbb{S}X . A person with a total wealth of SM\mathbb{S}M has decided to buy as many of these items as possible. What is the expected amount of money that the person will have remaining?

解析

XU(0,M)X\sim U(0,M),能买 M/X\lfloor M/X\rfloor 件,剩余

R=MM/XX.R=M-\lfloor M/X\rfloor X.

Y=X/MU(0,1)Y=X/M\sim U(0,1),则

E[R]=M(1k=11/(k+1)1/kkydy) =M(112k=1k(1k21(k+1)2)).\mathbb{E}[R]=M\left(1-\sum_{k=1}^\infty \int_{1/(k+1)}^{1/k}k y\,dy\right)\ = M\left(1-\frac12\sum_{k=1}^\infty k\left(\frac{1}{k^2}-\frac{1}{(k+1)^2}\right)\right).

该和为 π2/6\pi^2/6,因此

E[R]=M(1π212)0.178M.\boxed{\mathbb{E}[R]=M\left(1-\frac{\pi^2}{12}\right)}\approx 0.178M.