0
$\begingroup$

I ws given a question: Use 1000 simulations of uniform random variable U[0,1] to simulate 1000 simulations of another uniform random variable U[-3,7], how can I do that in Excel using rand() command?

$\endgroup$
2
$\begingroup$

If $X\sim U([0,1])$, it follows that $10X-3\sim U([-3,7])$.

$\endgroup$
  • $\begingroup$ I was thinking about this, but U[-3,7] is a special case as you can minus -3 on both sides, what should I do if I want to simulate U[-3,6]? $\endgroup$ – whoisit Sep 6 '16 at 8:25
  • 2
    $\begingroup$ You can always use the same "trick". If you want to simulate $U([-3,6])$, just consider $9X-3$. In general, if you want to simulate $U([a,b])$, consider $(b-a)X+a$. $\endgroup$ – Augustin Sep 6 '16 at 8:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.