Recall that a Binomial variable is the sum of \( n \) independent Bernoulli variables and has \( \operatorname{pmf} P(X=x)=\left(\begin{array}{l}n \\ x\end{array}\right) p^{x}(1-p)^{n-x} \). Write an algorithm for generating a Binomial random variable from n Uniform random variables. A. Derive a formula and explain how to generate a random variable with the density (pdf) f(x)=1.5x 2
for −1