0
$\begingroup$

I have a piece of daily volume and a piece of daily trades data, now I divide them and I get volume/trades as a factor. This factor has positive value and I want it to be normalized to predict the next-day return by its sign. My solution is to revise the factor as factor = factor - factor.rolling.mean(window). In this way the factor indeed contains both negative and positive value. However, it uses window as an extra parameter. The problem is: Is there any normalization method without using an extra parameter? Thanks in advance!

$\endgroup$
5
  • $\begingroup$ What about standard way: (factor(t)-mean)/stdDev ? $\endgroup$
    – K. Roman
    Commented Jul 25, 2023 at 6:25
  • $\begingroup$ That is known as standardization, while the OP is asking about normalization (but they use the term incorrectly, so perhaps your solution is fine for them). $\endgroup$ Commented Jul 25, 2023 at 7:17
  • $\begingroup$ Actually I only need the sign of the factor, so this standard method is equivalent to factor minus mean. Yet the mean needs a window. $\endgroup$ Commented Jul 25, 2023 at 7:17
  • $\begingroup$ @RichardHardy Here I didn't distinguish standardization and normalization. What I request is transforming the original data into a piece of data distributed equally into negative side and positive side. $\endgroup$ Commented Jul 25, 2023 at 7:20
  • $\begingroup$ @atlantic0cean, OK, so what you want is neither std. nor norm. but rather some other transformation (perhaps mean-centering or median-centering). It is usually helpful to stick to established terminology, so it could make sense to edit the post accordingly. $\endgroup$ Commented Jul 25, 2023 at 8:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.