“…To ensure the fitting effect, the least squares method is selected to determine the reconstruction parameters, which is the optimal solution to solve the equation when the number of equations in mathematics is more than the number of unknowns and the error in the equation is guaranteed to be minimal, as shown in equation (1). The method is used in the paper to find the optimal parameters in two sets of data points, natural gamma and deep lateral resistivity, and the sum of squared errors of each set of data is used as the criterion for judging the merit of the fitted parameters [5] { 𝑦 Firstly, the error e=K * (xi)-yi, (i=1, 2,..., n) is demanded, then the error sum of squares is ‖e 2 ‖, and in the operation, ‖e 2 ‖ is considered as a weighted sum of squares, i.e.…”