Appendix B A Brief Overview of Importance Sampling

This section provides a brief overview of importance sampling [15, 16] in the context of ray tracing for the simulation of radio wave propagation. We consider the channel gain g (5). To account for a continuum of paths, such as those arising from diffuse reflections, we generalize the gain from a discrete sum to a path integral:

g=∫𝒫|a⁢(p)|2⁢𝑑μ⁢(p). (180)

Here, 𝒫 represents the high-dimensional space of all possible propagation paths from the transmitter to the receiver. A single element p∈𝒫 denotes a specific path. The term a⁢(p) is the path coefficient associated with that path, and μ⁢(p) is the measure on the path space 𝒫. For a more in-depth discussion of path integrals within ray tracing, see [24, Chapter 8].

We aim to estimate the channel gain g using NS samples, by sampling paths following a distribution q⁢(p), such that q⁢(p)>0 if |a⁢(p)|2>0 and ∫𝒫q⁢(p)⁢𝑑μ⁢(p)=1. For a ray-tracing algorithm, this full path density is induced jointly by the source-direction distribution, the conditional interaction-type probabilities, the conditional outgoing-direction distributions (e.g., for diffuse reflection and diffraction), the mapping from sampled directions to surface intersections, and the target-connection and candidate-selection rules. The estimate of the channel gain is then given by:

g^=1NS⁢∑n=1NS|a⁢(pn)|2q⁢(pn). (181)

An important consideration is that the estimate g^ is unbiased, i.e., 𝔼⁢[g^]=g for any sampling distribution q⁢(⋅). Therefore, we aim to choose the sampling distribution q⁢(⋅) such that the variance of the estimate g^ is minimized. Practically, this would result in estimating the channel gain with a smaller number of samples NS, i.e., achieving a higher sample efficiency. The variance of the estimator g^ is given by:

Var⁢(g^) =𝔼⁢[g^2]−g2 (182)
=1NS2⁢𝔼⁢[∑n=1NS∑m=1NS|a⁢(pn)|2⁢|a⁢(pm)|2q⁢(pn)⁢q⁢(pm)]−g2 (183)
=1NS⁢(𝔼⁢[(|a⁢(p)|2q⁢(p))2]−g2). (184)

where the last equality holds because the samples pn are independent. Observe that

𝔼⁢[(|a⁢(p)|2q⁢(p))2]=∫𝒫q⁢(p)⁢(|a⁢(p)|2q⁢(p))2⁢𝑑μ⁢(p)=∫𝒫|a⁢(p)|4q⁢(p)⁢𝑑μ⁢(p). (185)

If we choose the sampling distribution

q∗⁢(p)≔|a⁢(p)|2g (186)

then

𝔼⁢[(|a⁢(p)|2q∗⁢(p))2]=∫𝒫g⁢|a⁢(p)|2⁢𝑑μ⁢(p)=g2. (187)

This implies that the variance of the estimator g^ is zero, i.e., Var⁢(g^)=0, which is optimal. A zero-variance estimator would allow us to determine the channel gain exactly from a single sample. In practice, however, this is unattainable because evaluating the optimal distribution q∗⁢(⋅) requires prior knowledge of the path coefficients a⁢(p) and the channel gain g, i.e., the quantity we aim to estimate. Nevertheless, this result provides useful guidance: an effective sampling distribution q⁢(⋅) should give more importance to paths that contribute more to the channel gain g. The distribution 𝒬, introduced in (20), is designed as a practical choice by selecting interaction types based on the squared magnitudes of the corresponding reflection and refraction coefficients. However, it does not account for the antenna pattern, the free-space propagation loss, or the scattering pattern from diffuse reflection, and is thus suboptimal. Developing effective, practical importance sampling strategies remains an open and challenging problem.