arXiv Science⌕ Search

arXiv subjects

Andrey Shternshis

Publications and source records attributed to Andrey Shternshis.

6 recordsLinked to original sources

Emergence of Randomness in Temporally Aggregated Financial Tick Sequences

Market efficiency implies that price changes are unpredictable, so that an efficient market behaves like a random number generator. At the level of individual transactions, however, prices are dominated by microstructural effects and are far from random. We study how randomness emerges when tick-by-tick prices are aggregated in transaction time. The signs of aggregated returns are encoded as binary strings, whose randomness is assessed with the NIST Statistical Test Suite, the Alphabit and Rabbit batteries of TestU01 and two entropy-based tests, after a sanity check that selects the tests suited to the available string lengths. A solvable benchmark explains the whitening: for stationary Gaussian models of tick returns with positive long-run variance, the entropy deficit of the sign sequence vanishes as the inverse square of the aggregation level, and in a finite sample the residual memory remains detectable up to a level growing as the cube root of the number of transactions. Data on nine US assets confirm that randomness increases with aggregation, at a pace that depends on trading activity, and that stocks with a large relative tick size are most predictable at intermediate aggregation levels. The procedure yields an online, model-free source of pseudorandom bits.

q-fin.ST↗

High-Frequency Financial Data for Public Randomness

A randomness beacon provides cryptographic protocols with a publicly verifiable source of unbiased randomness for tasks such as selection, challenge generation, and auditing. Financial data is an attractive entropy source for such beacons because it is publicly observable, difficult to predict, and, in some markets, generated continuously. Prior work has characterized the entropy in daily stock closing prices, limiting beacon production to once per trading day. We introduce a beacon that draws entropy from trading data across a configurable window of time, and uses an entropy-based circuit breaker to fail when entropy is insufficient. Each trade-to-trade price change contributes one bit, its sign, and we quantify the entropy of each window with a conservative lower bound, keeping a margin against manipulation of the market data. We demonstrate that Binance cryptocurrency trading markets could have enabled a beacon every 5 minutes without failing once across the entire year 2025. Finally, we adapt the security analysis of an existing delay-based beacon protocol to our use case.

cs.CR↗

Variational Autoencoders for Efficient Simulation-Based Inference

We present a generative modeling approach based on the variational inference framework for likelihood-free simulation-based inference. The method leverages latent variables within variational autoencoders to efficiently estimate complex posterior distributions arising from stochastic simulations. We explore two variations of this approach distinguished by their treatment of the prior distribution. The first model adapts the prior based on observed data using a multivariate prior network, enhancing generalization across various posterior queries. In contrast, the second model utilizes a standard Gaussian prior, offering simplicity while still effectively capturing complex posterior distributions. We demonstrate the ability of the proposed approach to approximate complex posteriors while maintaining computational efficiency on well-established benchmark problems.

cs.LG↗

Price predictability at ultra-high frequency: Entropy-based randomness test

We use the statistical properties of Shannon entropy estimator and Kullback-Leibler divergence to study the predictability of ultra-high frequency financial data. We develop a statistical test for the predictability of a sequence based on empirical frequencies. We show that the degree of randomness grows with the increase of aggregation level in transaction time. We also find that predictable days are usually characterized by high trading activity, i.e., days with unusually high trading volumes and the number of price changes. We find a group of stocks for which predictability is caused by a frequent change of price direction. We study stylized facts that cause price predictability such as persistence of order signs, autocorrelation of returns, and volatility clustering. We perform multiple testing for sub-intervals of days to identify whether there is predictability at a specific time period during the day.

q-fin.ST↗

Variance of entropy for testing time-varying regimes with an application to meme stocks

Shannon entropy is the most common metric to measure the degree of randomness of time series in many fields, ranging from physics and finance to medicine and biology. Real-world systems may be in general non stationary, with an entropy value that is not constant in time. The goal of this paper is to propose a hypothesis testing procedure to test the null hypothesis of constant Shannon entropy for time series, against the alternative of a significant variation of the entropy between two subsequent periods. To this end, we find an unbiased approximation of the variance of the Shannon entropy's estimator, up to the order O(n^(-4)) with n the sample size. In order to characterize the variance of the estimator, we first obtain the explicit formulas of the central moments for both the binomial and the multinomial distributions, which describe the distribution of the Shannon entropy. Second, we find the optimal length of the rolling window used for estimating the time-varying Shannon entropy by optimizing a novel self-consistent criterion based on the counting of significant variations of entropy within a time window. We corroborate our findings by using the novel methodology to test for time-varying regimes of entropy for stock price dynamics, in particular considering the case of meme stocks in 2020 and 2021. We empirically show the existence of periods of market inefficiency for meme stocks. In particular, sharp increases of prices and trading volumes correspond to statistically significant drops of Shannon entropy.

q-fin.ST↗

Efficiency of the Moscow Stock Exchange before 2022

This paper investigates the degree of efficiency for the Moscow Stock Exchange. A market is called efficient if prices of its assets fully reflect all available information. We show that the degree of market efficiency is significantly low for most of the months from 2012 to 2021. We calculate the degree of market efficiency by (i) filtering out regularities in financial data and (ii) computing the Shannon entropy of the filtered return time series. We have developed a simple method for estimating volatility and price staleness in empirical data, in order to filter out such regularity patterns from return time series. The resulting financial time series of stocks' returns are then clustered into different groups according to some entropy measures. In particular, we use the Kullback-Leibler distance and a novel entropy metric capturing the co-movements between pairs of stocks. By using Monte Carlo simulations, we are then able to identify the time periods of market inefficiency for a group of 18 stocks. The inefficiency of the Moscow Stock Exchange that we have detected is a signal of the possibility of devising profitable strategies, net of transaction costs. The deviation from the efficient behavior for a stock strongly depends on the industrial sector it belongs.

q-fin.ST↗