I'm looking for an existing algorithm which carries out the task shown in the title.
My use-case in other words: I have a set of continuous independent variables (X) and a continuous dependent variable (y). I want to find a linear component from X along which y varies the most.
Conceptually, I think I'm looking for something analog to LDA but in my case the dependent variable is continuous. I'd want to maximize the standard deviation of y instead of mean difference between groups. There are no groups in my case.
Thanks!
Edit:
Adding a visual example with synthetic data to clarify what I'm looking for.
Suppose I have 2 independent variables (X) and one dependent variable (y). X is two dimensional, y is color coded. I added a small amount of noise to y.
What I'm looking for is an algorithm which finds the axis along which the trend in y varies the most.
If I take trends in y along the two original axes, I get a flat line for each (apart from noise):
However, if I take axes along the diagonals (space rotated by 45 degrees):
I get much stronger trends:
I'm looking for something that would automate this search, without assuming anything about the shape of the trend apart from it being the most different from flat.