Q1: The planet Tralfamadore has years with 500 days. There are 5 Tralfamadorans in the room. Write an expression for the probability that no two of them have the same birthday.
Solution: Suppose that there are n Tralfamadorans in the room. The probability that no two of them have the same birthday is given by
p ( n ) : = { A 500 n 50 0 n , n ≤ 500 0 , n > 500 p(n):= \begin{cases} \frac{A_{500}^n}{500^n}, & n\leq500\\ 0,&n>500 \end{cases} p(n):={
500nA500n,0,n≤500n>500
When n = 5 n=5 n=5, we have p ( 5 ) = A 500 5 / 50 0 5 ≈ 0.9801 p(5)=A_{500}^5/500^5\approx0.9801 p(5)=A5005/5005≈0.9801
How would you find the smallest n n n for which a room of n n n Tralfamadorans has probability at least 1 / 2 1/2 1/2 of having two members with the same birthday?
Solution: n n n要满足的条件为
1 − 500 ! ( 500 − n ) ! 50 0 n ≥ 1 2 1-\frac{500!}{(500-n)!500^n}\geq\frac{1}{2} 1−(500−n)!500n500!≥21
即
500 ! ( 500 − n ) ! 50 0 n ≤ 1 2 \frac{500!}{(500-n)!500^n}\leq\frac{1}{2} (500−n)!500n500!≤21
可计算得 n n n的最小值为27
The above two questions really require some sort of assumption to get an answer. In case you did not already provide one, what is the customary assumption one uses in probability exercises?
Solution: The birthdays of the n n n Tralfamadorans are independent and uniformly distributed over the 500 days.
Q2: Write an expression for ϕ X ( t ) \phi_X(t) ϕX(t), the moment generating function (MGF) of a random variable X. Find and interpret the second derivative ϕ ′ ′ X ( 0 ) \phi{''}_X(0) ϕ′′X(0). If the MGF does not exist what would we use instead?
Solution:
ϕ x ( t ) = ∫ − ∞ + ∞ e t x d F ( x ) \phi_x(t)=\displaystyle\int_{-\infty}^{+\infty}e^{tx}dF(x) ϕx(t)=∫−∞+∞etxdF(x)
ϕ x ′ ′ ( 0 ) = ∫ − ∞ + ∞ x 2 e t x d F ( x ) ∣ t = 0 = E x 2 \phi_x^{''}(0)=\displaystyle\int_{-\infty}^{+\infty}x^2e^{tx}dF(x)|_{t=0}=Ex^2 ϕx′′(0)=∫−∞+∞x2etxdF(x)∣t=0=Ex2
用特征函数表示
ϕ x ′ ′ ( 0 ) = E x 2 = − f 2 ( 0 ) \phi_x^{''}(0)=Ex^2=-f^{2}(0) ϕx′′(0)=Ex2=−f2(0)
Q3: If X X X and Y Y Y are uncorrelated random variables must they be independent?If X X X and Y Y Y are independent random variables must they be uncorrelated?Explain in both cases.
Solution: 如果 X X X和 Y Y Y是不相关的随机变量,它们不一定是独立的,比如说,存在一个简单的例子,
X \ Y | -1 | 0 | 1 |
---|---|---|---|
0 | 0 | 1/3 | 0 |
1 | 1/3 | 0 | 1/3 |
从表格中可以得知, E ξ = 0 E\xi=0 Eξ=0, E η = E ξ 2 = 2 3 E\eta=E\xi^2=\frac{2}{3} Eη=Eξ2=32, E ξ η = E ξ 3 = 0 E\xi\eta=E\xi^3=0 Eξη=Eξ3=0,故 c o v ( ξ , η ) = E ξ η − E ξ ⋅ E η = 0 cov(\xi,\eta)=E\xi\eta-E\xi{\cdot}E\eta=0 cov(ξ,η)=Eξη−Eξ⋅Eη=0,所以 ξ \xi ξ与 η \eta η不相关,但也不独立。反之,如果X和Y是独立随机变量,则它们一定是不相关的
Q4: For events A A A and B B B define P ( A ∣ B )