Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-wzw2p Total loading time: 0 Render date: 2024-05-21T21:48:51.045Z Has data issue: false hasContentIssue false

3 - Computer simulation of Markov chains

Published online by Cambridge University Press:  29 March 2010

Olle Häggström
Affiliation:
Chalmers University of Technology, Gothenberg
Get access

Summary

A key matter in many (most?) practical applications of Markov theory is the ability to simulate Markov chains on a computer. This chapter deals with how that can be done.

We begin by stating a lie:

In most high-level programming languages, we have access to some random number generator producing a sequence U0, U1, … of i.i.d. random variables, uniformly distributed on the unit interval [0, 1].

This is a lie for at least two reasons:

  1. (A) The numbers U0, U1, … obtained from random number generators are not uniformly distributed on [0, 1]. Typically, they have a finite binary (or decimal) expansion, and are therefore rational. In contrast, it can be shown that a random variable which (truly) is uniformly distributed on [0, 1] (or in fact any continuous random variable) is irrational with probability 1.

  2. (B) U0, U1, … are not even random! Rather, they are obtained by some deterministic procedure. For this reason, random number generators are sometimes (and more accurately) called pseudo-random number generators.

The most important of these objections is (B), because (A) tends not to be a very big problem when the number of binary or decimal digits is reasonably large (say, 32 bits). Over the decades, a lot of effort has been put into constructing (pseudo-)random number generators whose output is as indistinguishable as possible from a true i.i.d. sequence of uniform [0, 1] random variables.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2002

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×