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.
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.
We make use of:
$$\displaystyle{ \frac{\mathrm{d}} {\mathrm{d}x}\tan ^{-1}(x) = \frac{1} {1 + x^{2}}. }$$
References
Devroye, L.: Non-uniform Random Variate Generation. Springer, Berlin/Heidelberg (1986)
Chow, Y.S., Teicher, H.: Probability Theory, 3rd edn. Springer Texts in Statistics. Springer, Berlin/Heidelberg (1997)
Kienke, A.: Probability Theory. Universitext. Springer, Berlin/Heidelberg (2008)
Stroock, D.W.: Probability Theory. Cambridge University Press, Cambridge (2011)
Bratley, P., Fox, B.L., Schrage, L.E.: A Guide to Simulation. Springer, Berlin/Heidelberg (1987)
Knuth, D.: The Art of Computer Programming, vol. II, 3rd edn. Addison Wesley, Menlo Park (1998)
Press, W.H., Teukolsky, S.A., Vetterling, W.T., Flannery, B.P.: Numerical Recipes in C++, 2nd edn. Cambridge University Press, Cambridge (2002)
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-3-319-27265-8_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-27263-4
Online ISBN: 978-3-319-27265-8
eBook Packages: Physics and AstronomyPhysics and Astronomy (R0)