Q about modeling. How do u decide betw using something as a continuous variable, or a dummy variable (either 0 or 1)? Let's say Im modeling futureReturns. A potential feature is currentPriceDistance from50dayTrend. I could use a dummy, 1 if distance>thresh,else0. @therobotjames
-
-
Gotcha, hope can find a text on tht. Curious how2 cap max and min exposure, but still have exposure scale smoothly basedOn alpha. Last thing Im wondering is how to test a binary signal. Just do lin reg with 1 dummyVar? backtest trading it directly? or should I avoid it entirely

-
To cap exposure, solve the optimization problem with upper and lower bounds on the solution :) to test a binary signal I wouldn’t do lin reg at all, just backtest directly (1/0 is either long/flat or long/short depending on what the signal is)
- Show replies
New conversation -
-
-
ah... just mansplained (robotsplained?) exactly the same thing...
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.