arXiv:2406.19974v2 Announce Type: replace Abstract: Estimating expectations under distributions known up to a normalizing constant is a fundamental challenge in statistics. The self-normalized importance sampling (SNIS) estimator is widely used for its simplicity. However, SNIS suffers from high variance in some applications, such as Bayesian sensitivity or outlier analysis. Further, there is a lack of general methods to select a proposal tailored to SNIS. We introduce a generalization of SNIS by exploiting its interpretation as a ratio of two IS estimators. We sample from a joint distribution, whose marginals play the role of proposals for numerator and denominator, thereby including existing two-proposal methods as special cases. Our perspective allows us to develop new theory for SNIS. We show that an appropriate selection of the joint can bring the asymptotic variance from infinite to finite. We prove sufficient and necessary sample size results for generalized SNIS valid under infinite variance, inspired by Chatterjee \& Diaconis (2018). Differently from existing results: ours further apply for non-square integrable functions, show the role of the dependence between numerator and denominator, and connect with the known optimal SNIS proposal of Hesterberg (1988). We demonstrate the benefits of the proposed methodology across applications in Bayesian sensitivity and outlier analysis.