Skip to main content

Computers and Probability

  • Chapter
  • 2344 Accesses

Part of the book series: Undergraduate Texts in Mathematics ((READINMATH))

Abstract

As we have seen in the previous chapter, a modern computer with a good random number generator allows you to do simulations and Monte Carlo calculations, and in so doing enables you to see many of the fundamental laws of probability in action. Lots of the results in probability, such as the Law of Large Numbers, require a large number of trials before something nice happens. With the computer, we can simulate a large number of trials in a very short time, so we should be able to test out our results and even perhaps discover new ones by playing around with probability and the computer. In this chapter, we want to do a little of this, so some familiarity with a personal computer and a programming language will be assumed. We are going to write some elementary algorithms for simulation and Monte Carlo procedures illustrating examples discussed in preceding chapters. An algorithm is just a step-by-step description of the solution of a problem in a finite number of steps. We are going to write the algorithm in pseudocode, that is, ordinary English. To get these algorithms to produce output on a computer, you will have to translate the pseudocode into a computer language you are familiar with. I used a language called QBASIC, a version of the well-known programming language BASIC. The execution time of the programs derived from the algorithms given below will depend on a variety of factors, for example, the number of trials requested and the power of your computer.

This is a preview of subscription content, log in via an institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   49.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   64.95
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD   64.95
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer Science+Business Media New York

About this chapter

Cite this chapter

Isaac, R. (1995). Computers and Probability. In: The Pleasures of Probability. Undergraduate Texts in Mathematics. Springer, New York, NY. https://doi.org/10.1007/978-1-4612-0819-8_14

Download citation

  • DOI: https://doi.org/10.1007/978-1-4612-0819-8_14

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4612-6912-0

  • Online ISBN: 978-1-4612-0819-8

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics