Text this: Statistical inferences and applications of nonparametric regression models based on fourier series