An improved method for spectral analysis of traction current of an Alternating Current (AC) electric locomotive is considered in the article. A new method of spectral analysis considers the change in voltage in the catenary system as a non-deterministic, non-ergodic and non-Gaussian process. It has been established that higher voltage harmonics in the catenary system have a significant negative effect on the operation of non-traction railway consumers of electricity. In addition, electric locomotives operating in the same feeder zone have a mutual influence on each other. Electric railway transport is a source of higher voltage harmonics and strongly distorts the shape of the sinusoidal voltage of the catenary system, which are caused by the higher spectral components of the current in the electric locomotive traction drive circuit. These spectral components of the traction current arise in the traction drive circuit due to the nonlinearity of the current-voltage characteristics of the electronic devices of an electric locomotive, for example, a contact rectifier, a capacitor circuit of traction motors. Reactive power compensators are used in electric locomotives to eliminate components of higher harmonic traction current in the catenary system. Traditionally, spectral analysis in such systems is performed using Fourier methods. However, the determination of the spectral components of the traction current by the Fourier method for constructing a control system for a reactive power compensator is possible only if the process of voltage variation is a deterministic or ergodic Gaussian process. Otherwise, the application of Fourier transform methods will be incorrect. An analysis of the factors that affect voltage changes in the catenary system showed that this process is significantly different from the ergodic Gaussian process. Such factors include the following: the operating mode of the electric locomotives; number and total capacity of electric locomotives in one feeder zone; electric locomotives passing through feeder zones; instability of collection current. Thus, in the case under consideration, the application of the Fourier methods is incorrect for the analysis of the spectral components of the traction current. This affects the quality of compensation of the higher harmonic components of the traction current, and in some cases, the unstable operation of the control system of the active part of the reactive power compensator. Proposed scientific approach is based on the Levinson–Durbin linear prediction algorithm. On the one hand, this allows adapting the control system of the compensator to the voltage parameters of the catenary system. On the other hand, this allows taking into account the operating modes of electric rail vehicle with reactive power compensation. The construction of a compensator control system using the Levinson–Durbin algorithm significantly simplifies thensynchronization scheme of the compensator and power circuits of the traction electric drive of AC electric locomotive. A comparison of the traditional method of spectral analysis, based on the Fast Fourier Transform (FFT), and the method, based on the Levinson–Durbin algorithm, proposed by the authors, showed the high efficiency of the latter.