find distance of bet from regression