Tropical geometry

From formulasearchengine
Revision as of 22:05, 1 February 2014 by Deltahedron (talk | contribs) (Basic definitions: Chan & Sturmfels (2013))
Jump to navigation Jump to search

In statistics, importance sampling is a general technique for estimating properties of a particular distribution, while only having samples generated from a different distribution rather than the distribution of interest. It is related to umbrella sampling in computational physics. Depending on the application, the term may refer to the process of sampling from this alternative distribution, the process of inference, or both.

Basic theory

Let X:Ω be a random variable in some probability space (Ω,,P). We wish to estimate the expected value of X under P. If we have random samples x1,,xn, generated according to P, then an empirical estimate of E[X;P] is

E^n[X;P]=1ni=1nxi.

The basic idea of importance sampling is to change the probability P so that the estimation of E[X;P] is easier. Choose a random variable L0 such that E[L;P]=1 and that P-almost everywhere L(ω)0. The variate L defines another probability P(L)=LP that satisfies

E[X;P]=E[XL;P(L)].

The variable X/L will thus be sampled under P(L) to estimate E[X;P] as above. This procedure will improve the estimation when var[XL;P(L)]<var[X;P]. Another case of interest is when X/L is easier to sample under P(L) than X under P.

When X is of constant sign over Ω, the best variable L would clearly be L*=XE[X;P]0, so that X/L* is the searched constant E[X;P] and a single sample under P(L*) suffices to give its value. Unfortunately we cannot take that choice, because E[X;P] is precisely the value we are looking for! However this theoretical best case L* gives us an insight into what importance sampling does:

a,P(L*)(X[a;a+da])=ω{X[a;a+da]}X(ω)E[X;P]dP(ω)=1E[X;P]aP(X[a;a+da])

to the right, aP(X[a;a+da]) is one of the infinitesimal elements that sum up to E[X;P]:

E[X;P]=a=+aP(X[a;a+da])

therefore, a good probability change P(L) in importance sampling will redistribute the law of X so that its samples' frequencies are sorted directly according to their weights in E[X;P]. Hence the name "importance sampling."

Note that whenever P is the uniform distribution and Ω=, we are just estimating the integral of the real function X:, so the method can also be used for estimating simple integrals.


Application to probabilistic inference

Such methods are frequently used to estimate posterior densities or expectations in state and/or parameter estimation problems in probabilistic models that are too hard to treat analytically, for example in Bayesian networks.

Application to simulation

Importance sampling is a variance reduction technique that can be used in the Monte Carlo method. The idea behind importance sampling is that certain values of the input random variables in a simulation have more impact on the parameter being estimated than others. If these "important" values are emphasized by sampling more frequently, then the estimator variance can be reduced. Hence, the basic methodology in importance sampling is to choose a distribution which "encourages" the important values. This use of "biased" distributions will result in a biased estimator if it is applied directly in the simulation. However, the simulation outputs are weighted to correct for the use of the biased distribution, and this ensures that the new importance sampling estimator is unbiased. The weight is given by the likelihood ratio, that is, the Radon–Nikodym derivative of the true underlying distribution with respect to the biased simulation distribution.

The fundamental issue in implementing importance sampling simulation is the choice of the biased distribution which encourages the important regions of the input variables. Choosing or designing a good biased distribution is the "art" of importance sampling. The rewards for a good distribution can be huge run-time savings; the penalty for a bad distribution can be longer run times than for a general Monte Carlo simulation without importance sampling.

Mathematical approach

Consider estimating by simulation the probability pt of an event Xt, where X is a random variable with distribution F and probability density function f(x)=F(x), where prime denotes derivative. A K-length independent and identically distributed (i.i.d.) sequence Xi is generated from the distribution F, and the number kt of random variables that lie above the threshold t are counted. The random variable kt is characterized by the Binomial distribution

P(kt=k)=(Kk)ptk(1pt)Kk,k=0,1,,K.

One can show that E[kt/K]=pt, and var[kt/K]=pt(1pt)/K, so in the limit K we are able to obtain pt. Note that the variance is low if pt1. Importance sampling is concerned with the determination and use of an alternate density function f*(for X), usually referred to as a biasing density, for the simulation experiment. This density allows the event Xt to occur more frequently, so the sequence lengths K gets smaller for a given estimator variance. Alternatively, for a given K, use of the biasing density results in a variance smaller than that of the conventional Monte Carlo estimate. From the definition of pt, we can introduce f* as below.

pt=E[1(Xt)]=1(xt)f(x)f*(x)f*(x)dx=E*[1(Xt)W(X)]

where

W()f()f*()

is a likelihood ratio and is referred to as the weighting function. The last equality in the above equation motivates the estimator

p^t=1Ki=1K1(Xit)W(Xi),Xif*

This is the importance sampling estimator of pt and is unbiased. That is, the estimation procedure is to generate i.i.d. samples from f* and for each sample which exceeds t, the estimate is incremented by the weight W evaluated at the sample value. The results are averaged over K trials. The variance of the importance sampling estimator is easily shown to be

var*p^t=1Kvar*[1(Xt)W(X)]=1K{E*[1(Xt)2W2(X)]pt2}=1K{E[1(Xt)W(X)]pt2}

Now, the importance sampling problem then focuses on finding a biasing density f* such that the variance of the importance sampling estimator is less than the variance of the general Monte Carlo estimate. For some biasing density function, which minimizes the variance, and under certain conditions reduces it to zero, it is called an optimal biasing density function.

Conventional biasing methods

Although there are many kinds of biasing methods, the following two methods are most widely used in the applications of importance sampling.

Scaling

Shifting probability mass into the event region Xt by positive scaling of the random variable X with a number greater than unity has the effect of increasing the variance (mean also) of the density function. This results in a heavier tail of the density, leading to an increase in the event probability. Scaling is probably one of the earliest biasing methods known and has been extensively used in practice. It is simple to implement and usually provides conservative simulation gains as compared to other methods.

In importance sampling by scaling, the simulation density is chosen as the density function of the scaled random variable aX, where usually a>1 for tail probability estimation. By transformation,

f*(x)=1af(xa)

and the weighting function is

W(x)=af(x)f(x/a)

While scaling shifts probability mass into the desired event region, it also pushes mass into the complementary region X<t which is undesirable. If X is a sum of n random variables, the spreading of mass takes place in an n dimensional space. The consequence of this is a decreasing importance sampling gain for increasing n, and is called the dimensionality effect.

Translation

Another simple and effective biasing technique employs translation of the density function (and hence random variable) to place much of its probability mass in the rare event region. Translation does not suffer from a dimensionality effect and has been successfully used in several applications relating to simulation of digital communication systems. It often provides better simulation gains than scaling. In biasing by translation, the simulation density is given by

f*(x)=f(xc),c>0

where c is the amount of shift and is to be chosen to minimize the variance of the importance sampling estimator.

Effects of system complexity

The fundamental problem with importance sampling is that designing good biased distributions becomes more complicated as the system complexity increases. Complex systems are the systems with long memory since complex processing of a few inputs is much easier to handle. This dimensionality or memory can cause problems in three ways:

In principle, the importance sampling ideas remain the same in these situations, but the design becomes much harder. A successful approach to combat this problem is essentially breaking down a simulation into several smaller, more sharply defined subproblems. Then importance sampling strategies are used to target each of the simpler subproblems. Examples of techniques to break the simulation down are conditioning and error-event simulation (EES) and regenerative simulation.

Evaluation of importance sampling

In order to identify successful importance sampling techniques, it is useful to be able to quantify the run-time savings due to the use of the importance sampling approach. The performance measure commonly used is σMC2/σIS2, and this can be interpreted as the speed-up factor by which the importance sampling estimator achieves the same precision as the MC estimator. This has to be computed empirically since the estimator variances are not likely to be analytically possible when their mean is intractable. Other useful concepts in quantifying an importance sampling estimator are the variance bounds and the notion of asymptotic efficiency.

Variance cost function

Variance is not the only possible cost function for a simulation, and other cost functions, such as the mean absolute deviation, are used in various statistical applications. Nevertheless, the variance is the primary cost function addressed in the literature, probably due to the use of variances in confidence intervals and in the performance measure σMC2/σIS2.

An associated issue is the fact that the ratio σMC2/σIS2 overestimates the run-time savings due to importance sampling since it does not include the extra computing time required to compute the weight function. Hence, some people evaluate the net run-time improvement by various means. Perhaps a more serious overhead to importance sampling is the time taken to devise and program the technique and analytically derive the desired weight function.

See also

References

  • Arouna. Adaptative Monte Carlo Method, A Variance Reduction Technique. Monte Carlo Methods and Their Applications. 2004
  • Introduction to rare event simulation, James Antonio Bucklew, Springer-Verlag, New York, 2004.
  • Sequential Monte Carlo Methods in Practice, by A Doucet, N de Freitas and N Gordon. Springer, 2001. ISBN 978-0-387-95146-1
  • M. Ferrari, S. Bellini, "Importance Sampling simulation of turbo product codes," ICC2001, The IEEE International Conference on Communications, vol. 9, pp. 2773–2777, June 2001.
  • Tommy Oberg, Modulation, Detection, and Coding, John Wiley & Sons, Inc., New York, 2001.
  • 20 year-old Real Estate Agent Rusty from Saint-Paul, has hobbies and interests which includes monopoly, property developers in singapore and poker. Will soon undertake a contiki trip that may include going to the Lower Valley of the Omo.

    My blog: http://www.primaboinca.com/view_profile.php?userid=5889534
  • B. D. Ripley, Stochastic Simulation, 1987, Wiley & Sons
  • P. J.Smith, M.Shafi, and H. Gao, "Quick simulation: A review of importance sampling techniques in communication systems," IEEE J.Select.Areas Commun., vol. 15, pp. 597–613, May 1997.
  • R. Srinivasan, Importance sampling - Applications in communications and detection, Springer-Verlag, Berlin, 2002.

External links