In this research, the optical properties of the PVP: ZnTiO3 nanocomposite are studied using the spectroscopic ellipsometry technique. The preparation procedure of the ZnTiO3 nanocomposite is explained in detail. The absorbance/transmittance, surface morphology, structural information, chemical identification, and surface topography of the ZnTiO3 nanocomposite is studied using UV–Vis spectroscopy, field-emission scanning electron microscopy, Raman spectroscopy, Fourier transform infra-red, and atomic force microscopy, respectively. The ellipsometry method is used to obtain the spectra of the real and imaginary parts of the dielectric function and refractive index in the photon energy range of 0.59–4.59 eV. Moreover, using two machine learning algorithms, namely artificial neural network and support vector regression methods, the ellipsometric parameters ψ and Δ are analyzed and compared with non-linear regression. The error and accuracy of each three methods, as well as the time required for their execution, are calculated to compare their suitability in the ellipsometric data analysis. Also, the absorption coefficient was used to determine the band gap energy of the ZnTiO3 nanocomposite, which is found to be 3.83 eV. The second-energy derivative of the dielectric function is utilized to identify six critical point energies of the prepared sample. Finally, the spectral-dependent optical loss function and optical conductivity of the ZnTiO3 nanocomposite are investigated.