Compute product prices with linear least square method.