generate the data for beta = 0.1, 0.5, 0.9