There is no inbuilt weighted correlation, but you can easily implement
Pearson Weighted Correlation as followswcov: {[x;y;w] w wavg (x-w wavg
x)*y-w wavg y} // weighted covariancewcor: {[x;y;w] wcov[x;y;w]%sqrt
wcov[x;x;w]*wcov[y;y;w]} // weighted co...
This is generating Fibonacci sequence, in each iteration appending the
sum of last two elements.Can also use scanq)last flip 10{x[1],sum x}\1
11 2 3 5 8 13 21 34 55 89 144
It will be easier to see it this wayq)rs:2 2 2 2#16#.Q.aq)rs"ab" "cd"
"ef" "gh""ij" "kl" "mn" “op"Now lets dissect (,’/)' one by oneRightmost
each(‘) is just iterating an top level lists in rs, so we can ignore
that for the time being and directly lo...