Least squares and approximate equidistribution in multidimensions