Comparative Analysis of Predictive Performance in Nonparametric Functional Regression: A Case Study of Spectrometric Fat Content Prediction


  • Kurdistan M. Taher Omar Department of Mathematics, Faculty of Science, University of Zakho, Kurdistan Region, Iraq
  • Sameera Abdulsalam Othman Department of Mathematics, College of Basic Education, University of Dohuk, Kurdistan Region, Iraq



Nonparametric regression, Functional data, Kernel function, Functional covariates, KNN estimator, Semi-metrics


Objective: This research aims to compare two nonparametric functional regression models, the Kernel Model and the K-Nearest Neighbor (KNN) Model, with a focus on predicting scalar responses from functional covariates. Two semi-metrics, one based on second derivatives and the other on Functional Principle Component Analysis, are employed for prediction. The study assesses the accuracy of these models by computing Mean Square Errors (MSE) and provides practical applications for illustration.

Method: The study delves into the realm of nonparametric functional regression, where the response variable (Y) is scalar, and the covariate variable (x) is a function. The Kernel Model, known as, and the KNN Model, termed funopare.knn.gcv, are used for prediction. The Kernel Model employs automatic bandwidth selection via Cross-Validation, while the KNN Model employs a global smoothing parameter. The performance of both models is evaluated using MSE, considering two different semi-metrics.

Results: The results indicate that the KNN Model outperforms the Kernel Model in terms of prediction accuracy, as supported by the computed MSE. The choice of semi-metric, whether based on second derivatives or Functional Principle Component Analysis, impacts the model's performance. Two real-world applications, Spectrometric Data for predicting fat content and Canadian Weather Station data for predicting precipitation, demonstrate the practicality and utility of the models.

Conclusion: This research provides valuable insights into nonparametric functional regression methods for predicting scalar responses from functional covariates. The KNN Model, when compared to the Kernel Model, offers superior predictive performance. The selection of an appropriate semi-metric is essential for model accuracy. Future research may explore the extension of these models to cases involving multivariate responses and consider interactions between response components.


Ramsay J, Silverman BW. Functional Data Analysis, Springer, New York 1997. DOI:

Ramsay J, Silverman BW. Functional Data Analysis, Second ed., Springer, New York 2005. DOI:

Cao G, Wang S, Wang L. Estimation and inference for functional linear regression models with partially varying regression coefficients. Stat 9(1) (2020): p.e286Montgomery AA, Peters TJ, Little P. Design, analysis and presentation of factorial randomised controlled trials. BMC Medical Research Methodology 2003; 3(1): 1-5. DOI:

Cardot H, Ferraty F, Sarda P. Spline estimators for the functional linear model. Statistica Sinica 2003; 13(3): 571-592.

Ramsay J, Silverman BW. Applied Functional Data Analysis: Methods and case studies, Springer, New York 2002. DOI:

Mahalanobis PC. A method of fractile graphical analysis. Sankhy: The Indian Journal of Statistics Series A 1961; 23(1): 41-64.

Nadaraya EA. On estimating regression. Theory of Probability and Its Applications 1964; 9(1): 141-142. DOI:

Watson GS. Smooth regression analysis. Sankhyā: The Indian Journal of Statistics, Series A 1964; pp. 359-372.

H¨ardle W. Applied nonparametric regression, Cambridge university press, UK 1990. DOI:

Ferraty F, Vieu P. Nonparametric functional data analysis: theory and practice. Springer Science, New York 2006.

Omar KMT, Wang B. Nonparametric regression method with functional covariates and multivariate response. Communications in Statistics-Theory and Methods 2019; 48(2): 368-380. DOI:

Midi H, Sani M, Ismaeel SS, Arasan J. Fast Improvised Influential Distance for the Identification of Influential Observations in Multiple Linear Regression. Sains Malaysiana 2021; 50(7): 2085-2094. DOI:

Ferraty F, Vieu P. Curves discrimination: a nonparametric functional approach. Computational Statistics and Data Analysis 2003; 44(1): 161-173. DOI:

Ferraty F, Mas A, Vieu P. Nonparametric regression on functional data: inference and practical aspects. Australian and New Zealand Journal of Statistics 2007; 49(3): 267-286. DOI:

Rachdi M, Vieu P. Nonparametric regression for functional data: automatic smoothing parameter selection. Journal of Statistical Planning and Inference 2007; 137(9): 2784-2801. DOI:

Ismaeel SS, Omar KMT, Wang B. K-nearest neighbor method with principal component analysis for functional nonparametric regression. Baghdad Science Journal 2022; 19(6 (Suppl.)): 1612. DOI:

Doori A. Hazard Rate Estimation Using Varying Kernel Function for Censored Data Type I. Baghdad Science Journal 2019; 16(3 (Suppl.)): 0793-0793.

Ferraty F, Vieu P. Nonparametric models for functional data, with application in regression, time series prediction and curve discrimination. Nonparametric Statistics 2004; 16(1-2): 111-125. DOI:

Burba F, Ferraty F, Vieu P. k-Nearest Neighbor method in functional nonparametric regression. Journal of Nonparametric Statistics 2009; 21(4): 453-469. DOI:

Midi H, Ismaeel SS. Fast improvised diagnostic robust measure for the identification of high leverage points in multiple linear regression. Journal of Statistics and Management Systems 2018; 21(6): 1003-1019. DOI:

Ba´ıllo A, Gran´e A. Local linear regression for functional predictor and scalar response. Journal of Multivariate Analysis 2009; 100(1): 102-111. DOI:

Shang HL. Bayesian bandwidth estimation for a nonparametric functional regression model with mixed types of regresses and unknown error density. arXiv preprint arXiv:1403.1913, 2014. DOI:




How to Cite

Taher Omar, K. M. ., & Othman, S. A. . (2023). Comparative Analysis of Predictive Performance in Nonparametric Functional Regression: A Case Study of Spectrometric Fat Content Prediction. International Journal of Statistics in Medical Research, 12, 179–184.



General Articles