|
Learning to
model the problem
The real art
in developing Monte Carlo models lies in
translating a real-world problem into Excel
equations. This is a skill you can
develop over time. The examples later
in this tutorial will give you a good start.
As a first
example, look at the case of a single coin
toss. In the real world we think in
terms of "heads" and "tails", but for data
analysis it makes much more sense to
translate these outcomes to 0 and 1.
Next you have to figure out how to convert
the output generated by the RAND() function
into the output of a coin toss -- i.e., take
evenly distributed randomly generated
numbers greater than or equal to 0 and less
than 1, and translate them into two single
outcomes - 0 or 1 - with a 50% probability
of each.
Of course the
shortcut is to use the RANDBETWEEN()
function. The following formula
entered into a worksheet cell would give
exactly the desired output:
"=RANDBETWEEN(0, 1)".
As your model
variables increase in complexity, however,
it's important to master the art of RAND()
manipulation. For the coin toss, a
simple approach would be "=ROUND(RAND(),0)".
Another approach that works equally well is
"=INT(RAND()*2)". |