nahead <- 2000 nsim <- 100 w_eq <- 1/2
sigma_1 and sigma_2 are matrices of size (nahead, nsim) nu_ is a vector of size nsim