joined inner tables of beta_i_draw and d1 having x_array and y_var