# blocks' weights calculation in multi-block setting

Issue #83 resolved
Arnaud created an issue

Hello,

Can you please explain how the weights of the blocks in a multi-block setting are calculated ?

In the manual page 134 ("predict" function) it is stated that "the weights of the blocks are calculated as the correlation between a block's components and the outcome's components". However there are typically several components whereas there's only 1 weight value per block.

Is it something like the sum of all correlations between the blocks' components and the outcome's components ? Or the sum of the squared previous correlations ?

1. reporter
• edited description

Hi Arnaud,

The weight of a block is calculated as the average of the absolute values of all correlations (over 3 correlations if you have 3 components). That way we get a weight between 0 and 1.

Hoping it's clearer!

Florian

2. reporter

Thank you Florian.

However isn't it the case that if there are 3 components the average is over 9 correlations (the 3 components of the X block * the 3 components of the outcome Y) ?