chi_bar_square_weights function

function for computing the chi-bar-square weights based on Monte Carlo simulation.