{'fraction_non_alphanumeric': 0.012584704743465635, 'fraction_numerical': 0.0, 'mean_word_length': 5.343558282208589, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Risk-Efficient Sequential Simulation Estimators

Using steady state mean estimation as the prototypical context, we present a decision-theoretic framework for sequentially estimating quantities associated with an observable discrete-time stochastic process. Our framework includes weights for estimator quality and a linear cost of sampling. We first show that the optimal time to stop sampling in the hypothetical case when the autocovariance function of the process is known is the square root of the relative cost and the area under the autocovariance function. This expression inspires a sequential procedure that uses a partially overlapping batch means estimator to "stand-in" for the area under the autocovariance function. The sequential procedure is asymptotically optimal in the sense that the ratio of its risk and that of the optimal risk in the hypothetical scenario approaches unity in a certain asymptotic regime. The nature of our analysis hints at a general optimality principle that may be more generally prevalent.