I have a large number of continuous independent variables and I want to analyse how they correlate with a continuous dependent variable.
There is one independent variable ("size") which is correlated with the dependent variable ("target") but also more or less strongly correlated with many other independent variables. The reason is that all the independent variables measure e.g. an average or maximum of some property of items in the set.
For example "var1" may be the average weight of an item in a set. "size" is the size of the set itself. Now if I correlate var1 and size with the target variable and it turns out the target depends a bit on the set size, then inevitably it will probably also depend on var1 because larger sets have a bigger chance to contain heavier items and may have a bigger average item weight.
What is the best approach to find out what the actual contribution of each independent variable is without the influence of size? So in the example, is there an approach to find the influence of weight on the target variable?
There is no way to directly correlate the set element properties with the target so some kind of aggregation of the set needs to be done first.
Is there a standard procedure for doing this?