Log Returns and Alternative Sampling for Trading Signals
Summary
The document discusses why fixed-interval log returns are common and whether researchers can model returns sampled with volume bars or generated by technical signals. It lists common motivations for log returns: approximate correspondence with simple returns for small changes, additivity across time, and mathematical convenience in continuous-time models. It also mentions the customary statistical assumptions behind return modeling, while not deriving them in detail.
The response argues that alternative sampling and signals can be studied as candidate sources of alpha, and that volume or other event-based bars may better reflect irregular trading activity. It cautions that non-time sampling complicates the estimation of signal frequency, elapsed time, and latency; layering models also carries forward uncertainty from earlier stages. These are broad suggestions rather than demonstrated findings: the document provides no empirical comparison, and its claim that modeling any signal is acceptable does not replace checks for stationarity, data leakage, or out-of-sample performance.
Key ideas
- Log returns are additive over time and convenient for continuous-time financial mathematics.
- Volume bars and other event-based sampling schemes can be modeled as potential signal sources.
- Alternative sampling changes the timing structure, so elapsed time, signal frequency, and latency may need attention.
- Signals built from earlier models inherit uncertainty from those models.
- The document offers no empirical evidence that alternative bars improve statistical properties or trading performance.
Tags
Full text
# Non-fixed stationary "conversion" # Non-fixed stationary "conversion" Dear users of StackExchange, I was wondering why the log returns of a fixed period of time is such a common use in "transforming" a time series into a more stationary one? I thought that when using the returns of a fixed period like the daily log returns, finding an edge would be hard as I see online almost everybody using them. I could also be using the returns of volume bars of a fixed volume rate right? And how about using the log returns of something like the crossing of two MA's based on a fixed length of time bars? I am asking this because I am wondering if taking the returns of something like the crossing of two MA's violates some rules as maybe before even applying two MA's, the data needs to be stationary. Or can I just apply some simple model (that has constant signals) on non-stationary data, take those log return. And voila, I made a stationary return series. And what about a model that doesn't have constant signals, can I model of those returns? So the questions are: - Are the log returns of some fixed time period just used for simplicity or is there something else? - Am I allowed to model on the log returns of a different kind of data into a homogeneous series like volume bars? - Am I allowed to model on the log returns of a simple model that has an input of non-stationary time series data that has constant signals, like the log returns of the crossing of two MA's on non-stationary data (time candles)? 3.1 Can I do this because of the insertion of the non-stationary data in the model that gives the log-returns? - Am I allowed to model on the log returns of a more complex model that has an input of non-stationary time series data that has non-constant signals, like the log returns of when a RSI on non-stationary data (time candles) hits 70 or 30 till a 50 RSI? My line of thought is that when using something that isn't fixed in price or time (dollar bars or time bars) the underlying statistics may have a better statistical properties and/or confidence interval. ## Answer by Bob hhhuh (score 0, accepted) https://quant.stackexchange.com/a/63587 Oke so i've done some research myself and hope that I can help someone with answering my questions. I also want to thank the Algo Trading and Quant Crew Discord groups for helping me answering the questions. I also want to thank Ramon for discussing some answers with me. #### Question 1: Are the log returns of some fixed time period just used for simplicity or is there something else? This is pretty simple, I won't be giving an in depth explanation answering this question. I am going to try to explain each one in a single sentence, for a more extensive explanation please visit the sources or reference. There are four main reasons why someone would want to use log returns for some fixed time period. - Log-normality, this assumes that the returns are distributed log-normal as much of classic statistics presumes normality. - Approximate raw-log equality, which ensures they are close in value to raw returns. - Time-additivity, the individual log returns can just be added which reduces the algorithmic complexity. - Mathematical ease, calculus identities from the e^x which is useful as much of financial mathematics is build upon continuous time stochastic processes. - https://quantivity.wordpress.com/2011/02/21/why-log-returns/ - https://stats.stackexchange.com/questions/244199/why-is-it-that-natural-log-changes-are-percentage-changes-what-is-about-logs-th - https://en.wikipedia.org/wiki/Vector_calculus_identities - https://en.wikipedia.org/wiki/Rate_of_return#:~:text=Logarithmic%20returns%20are%20time%2Dadditive,in%20models%20from%20becoming%20negative. #### Question 2: Am I allowed to model on the log returns of a different kind of data into a homogeneous series like volume bars? Yes, I am allowed to do that as I can use the log returns of any kind of data as an Alpha can be found anywhere. The goal is to generate an Alpha not absolute statistical purity. A personal thing I am seeing is that often time based returns are being used. I think the motive is that with the fixed time period, the length in time (t) is a constant and only the frequency (f) of the signal needs to be analyzed. With a non-fixed time series or every other series that doesn't involve time, the length in time (t) and the frequency (f) of the signal needs to be estimated. This is because we need to predict the future of the model with time (t) as we might want to use the efficient frontier to split our portfolio between the different models. The alternative bars might need some calculation time so, the model doesn't have as fast of a reaction time as models that just use raw data. But on the brighter side, alternative bars might have better statistical properties as Marcos Lopez De Prado explained in his book Advances in Financial Machine Learning. Time bars also assume that markets are chronological, which they are not, where alternative bars doesn't assume that trades occur at a constant time interval. So, modeling on the log returns of a different kind of data into a homogeneous series like volume bars is allowed. This might result in better statistical properties and fixes the chronological market problem. When doing this remember that you might want to estimate not only the frequency of the signal but also the time of the signal and to calculate the latency of the signal. - Volume or Dollar bars vs. volatility normalized and demeaned financial time series - https://davidzhao12.medium.com/advances-in-financial-machine-learning-for-dummies-part-1-7913aa7226f5 - https://alpaca.markets/learn/alternative-bars-01/ - http://www.blackarbs.com/blog/exploring-alternative-price-bars - https://www.reddit.com/r/algotrading/comments/ihv96z/alternative_bars_that_are_to_solve_some/ - https://towardsdatascience.com/non-stationarity-and-memory-in-financial-markets-fcef1fe76053 - https://poseidon01.ssrn.com/delivery.php?ID=095121121119088082082108069090076078040064035059032043111087085103027020067088098119120010051124040104010081108123126124088002038022029046084100114030099066012094028020094067083065015085094101101120092100065024092095094120026108085086024091079114093&EXT=pdf&INDEX=TRUE - Advances In Financial Machine Learning, Marcos Lopez De Prado #### Question 3: Am I allowed to model on the log returns of a simple model that has an input of non-stationary time series data that has constant signals, like the log returns of the crossing of two MA's on non-stationary data (time candles)? Yes, as mentioned in the answer of question 2, you can model any kind of data as an Alpha can be found anywhere. The goal is to generate an Alpha not absolute statistical purity. This is basically what you're doing when taking a couple indicators and layering them above each other. But what about the insertion of non-stationary data? The insertion of non-stationary data is irrelevant as the signal needs to be stationary. When modeling on top of another model, the margin of error of the first model needs to be considered in the statistics of the 2nd model. So when the model is made on top of another model the chances of success are getting smaller and smaller. - Check sources question 2 #### Question 4: Am I allowed to model on the log returns of a more complex model that has an input of non-stationary time series data that has non-constant signals, like the log returns of when a RSI on non-stationary data (time candles) hits 70 or 30 till a 50 RSI? The answer to this question is the same as question 3. Everything can be put inside a model to generate an Alpha, the goal is to generate an Alpha not absolute statistical purity. - Check sources question 2 #### Inference Everything can be modeled, it might not follow certain statistical rules but that doesn't matter. The thing that matters is that the Alpha signals follows the statistical rules. When using some kind of homogeneous series derived from regular sampling, the statistical properties might be better and might solve the chronological market problem. Modeling on homogeneous data has pros and cons as every other existing choice. We are going to build our model on inhomogeneous and homogeneous data to make sure we include everything in our model. We need to find an equillibruim in inserting the data to the different features as we don't have unlimited computer power.
Shown in full with attribution under the source's licence. Licence: CC BY-SA 4.0 (Stack Exchange)
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.