<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=VEGAS_algorithm</id>
	<title>VEGAS algorithm - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=VEGAS_algorithm"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=VEGAS_algorithm&amp;action=history"/>
	<updated>2026-10-05T06:40:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=VEGAS_algorithm&amp;diff=219965&amp;oldid=prev</id>
		<title>imported&gt;Fadesga: /* References */</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=VEGAS_algorithm&amp;diff=219965&amp;oldid=prev"/>
		<updated>2022-07-20T02:59:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;References&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{short description|Algorithm}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;VEGAS algorithm&amp;#039;&amp;#039;&amp;#039;, due to [[G. Peter Lepage]],&amp;lt;ref name=Lepage1978&amp;gt;{{cite journal|last=Lepage|first=G.P.|title=A New Algorithm for Adaptive Multidimensional Integration|journal=Journal of Computational Physics|date=May 1978|volume=27|issue=2|pages=192–203|doi=10.1016/0021-9991(78)90004-9|bibcode=1978JCoPh..27..192L}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=Lepage1980&amp;gt;{{cite journal|last=Lepage|first=G.P.|title=VEGAS: An Adaptive Multi-dimensional Integration Program|journal=Cornell Preprint|volume=CLNS 80-447|date=March 1980}}&amp;lt;/ref&amp;gt;&amp;lt;ref name=Ohl1999&amp;gt;{{cite journal|last=Ohl|first=T.|title=Vegas revisited: Adaptive Monte Carlo integration beyond factorization|journal=Computer Physics Communications|date=July 1999|volume=120|issue=1|pages=13–19|doi=10.1016/S0010-4655(99)00209-X|arxiv=hep-ph/9806432|bibcode=1999CoPhC.120...13O|s2cid=18194240}}&amp;lt;/ref&amp;gt; is a method for [[variance reduction|reducing error]] in [[Monte Carlo simulation]]s by using a known or approximate [[probability distribution]] function to concentrate the search in those areas of the [[integrand]] that make the greatest contribution to the final [[integral]].&lt;br /&gt;
&lt;br /&gt;
The VEGAS algorithm is based on [[importance sampling]]. It samples points from the probability distribution described by the function &amp;lt;math&amp;gt;|f|,&amp;lt;/math&amp;gt; so that the points are concentrated in the regions that make the largest contribution to the integral. The [[GNU Scientific Library]] (GSL) provides a VEGAS routine.&lt;br /&gt;
&lt;br /&gt;
==Sampling method==&lt;br /&gt;
{{Further|Importance sampling}}&lt;br /&gt;
In general, if the Monte Carlo integral of &amp;lt;math&amp;gt;f&amp;lt;/math&amp;gt; over a volume &amp;lt;math&amp;gt;\Omega&amp;lt;/math&amp;gt; is sampled with points distributed according to a probability distribution described by the function &amp;lt;math&amp;gt;g,&amp;lt;/math&amp;gt; we obtain an estimate &amp;lt;math&amp;gt;\mathrm{E}_g(f; N),&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathrm{E}_g(f; N) = {1 \over N } \sum_i^N { f(x_i)} / g(x_i) .&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The [[variance]] of the new estimate is then&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;math&amp;gt;\mathrm{Var}_g(f; N) = \mathrm{Var}(f/g; N)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\mathrm{Var}(f;N)&amp;lt;/math&amp;gt; is the variance of the original estimate, &amp;lt;math&amp;gt;\mathrm{Var}(f; N) = \mathrm{E}(f^2; N) - (\mathrm{E}(f; N))^2.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the probability distribution is chosen as &amp;lt;math&amp;gt;g = |f|/\textstyle \int_\Omega |f(x)|dx &amp;lt;/math&amp;gt; then it can be shown that the variance &amp;lt;math&amp;gt;\mathrm{Var}_g(f; N)&amp;lt;/math&amp;gt; vanishes, and the error in the estimate will be zero. In practice it is not possible to sample from the exact distribution g for an arbitrary function, so importance sampling algorithms aim to produce efficient approximations to the desired distribution.&lt;br /&gt;
&lt;br /&gt;
==Approximation of probability distribution==&lt;br /&gt;
The VEGAS algorithm approximates the exact distribution by making a number of passes over the integration region while [[histogram]]ming the function f. Each histogram is used to define a sampling distribution for the next pass. Asymptotically this procedure converges to the desired distribution. In order to avoid the number of histogram bins growing like &amp;lt;math&amp;gt;K^d&amp;lt;/math&amp;gt; with dimension &amp;#039;&amp;#039;d&amp;#039;&amp;#039; the probability distribution is approximated by a separable function: &amp;lt;math&amp;gt;g(x_1, x_2, \ldots) = g_1(x_1) g_2(x_2) \cdots&amp;lt;/math&amp;gt; so that the number of bins required is only &amp;#039;&amp;#039;Kd&amp;#039;&amp;#039;. This is equivalent to locating the peaks of the function from the [[projection (mathematics)|projection]]s of the integrand onto the coordinate axes. The efficiency of VEGAS depends on the validity of this assumption. It is most efficient when the peaks of the integrand are well-localized. If an integrand can be rewritten in a form which is approximately separable this will increase the efficiency of integration with VEGAS.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Las Vegas algorithm]]&lt;br /&gt;
* [[Monte Carlo integration]]&lt;br /&gt;
* [[Importance sampling]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Monte Carlo methods]]&lt;br /&gt;
[[Category:Computational physics]]&lt;br /&gt;
[[Category:Statistical algorithms]]&lt;br /&gt;
[[Category:Variance reduction]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{compu-physics-stub}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Fadesga</name></author>
	</entry>
</feed>