Making a Random Draw
Last timeWhen the Formula Runs Out
Everything starts from numbers drawn evenly between zero and one. Two standard moves turn those into draws from whatever distribution the problem actually has.
The previous lesson assumed draws of the right kind were available. This one
makes them.
Everything begins with one stream: numbers spread evenly between zero and one,
with no detectable relationship between successive values. Every other draw in
every simulation is manufactured from that stream.
- one number drawn evenly between zero and one, the raw material
- the cumulative function: the chance that the waiting time is at most t
- the rate, so events arrive \lambda times per unit of time on average
- the resulting draw, which has the wanted waiting time distribution exactly
- the natural logarithm, which appears because the cumulative is built from e
When the inverse is unavailable
Most distributions have no cumulative that can be inverted in closed form,
including the normal one. The fallback is to propose and reject.
The lesson stops here
1 more paragraph to go
You have read the opening. The rest of the argument, the problems that check whether it landed, and the lines worth keeping at the end all come with a plan.
The first lesson of every course in the library reads the whole way through, free, so you can see exactly what the rest of them are.
See the planThe contentsThis is the reading half
Starting the course gives you your own copy of it. Every idea on every page has problems standing under it, marked with a reason rather than a tick, and any sentence you do not believe can be opened and argued with. None of that can happen on a page nobody owns.
The contents