Chien-Pin Chen problem 2a first fraft  about 8 years ago

Commit id: 49eab35d32041a086b282c192a3c7e62516fa661

deletions | additions      

       

the figure, and $m_k=n+h$, figure out $p_n(n)$ and   $p_h(h)$.   Becasue $m_k=n+h$ and $p_z(z)=p_x(x)*p_y(y)$, I could derive that $p(m_k)=p(n+h)=p_n(n)*p_h(h)$.  $p(m_k)$ is a symmetrical triangular-shaped distribution, and, from wikipedia, it is the result of convolution of   two identical uniform distribution. Therefor, $p_n(n)$ and $p_h(h)$ can be two identical uniform distribution as:  (b) Use your conclusion from (a) to write a MATLAB code that  generates the sequence from Problem 1. Generate the sequence   100 (or more) times and based on these sequences, verify the