Skip to main content

Random Sampling Methods

  • Chapter
  • First Online:

Abstract

Random numbers sampled from non-uniform probability density functions are an important ingredient of stochastic methods. Here we discuss the direct sampling method, the inverse transformation method, the rejection method, and the method of probability mixing. All these methods are based on random numbers generated by pseudo random number generators which obey a uniform distribution. The quality of the generated random numbers is tested by means of the histogram method.

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

Notes

  1. 1.

    This follows from the transformation of pdfs (see Chap. 14):

    $$\displaystyle{ f(y) =\int _{ 0}^{1}\!\mathrm{d}\,x_{ 1}\!\int _{0}^{1}\!\mathrm{d}\,x_{ 2}\,\delta [y -\mathrm{ max}(x_{1},x_{2})] = 2y. }$$
  2. 2.

    We make use of:

    $$\displaystyle{ \frac{\mathrm{d}} {\mathrm{d}x}\tan ^{-1}(x) = \frac{1} {1 + x^{2}}. }$$

References

  1. Devroye, L.: Non-uniform Random Variate Generation. Springer, Berlin/Heidelberg (1986)

    Google Scholar 

  2. Chow, Y.S., Teicher, H.: Probability Theory, 3rd edn. Springer Texts in Statistics. Springer, Berlin/Heidelberg (1997)

    Google Scholar 

  3. Kienke, A.: Probability Theory. Universitext. Springer, Berlin/Heidelberg (2008)

    Google Scholar 

  4. Stroock, D.W.: Probability Theory. Cambridge University Press, Cambridge (2011)

    Google Scholar 

  5. Bratley, P., Fox, B.L., Schrage, L.E.: A Guide to Simulation. Springer, Berlin/Heidelberg (1987)

    Google Scholar 

  6. Knuth, D.: The Art of Computer Programming, vol. II, 3rd edn. Addison Wesley, Menlo Park (1998)

    Google Scholar 

  7. Press, W.H., Teukolsky, S.A., Vetterling, W.T., Flannery, B.P.: Numerical Recipes in C++, 2nd edn. Cambridge University Press, Cambridge (2002)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Springer International Publishing Switzerland

About this chapter

Cite this chapter

Stickler, B.A., Schachinger, E. (2016). Random Sampling Methods. In: Basic Concepts in Computational Physics. Springer, Cham. https://doi.org/10.1007/978-3-319-27265-8_13

Download citation

Publish with us

Policies and ethics