Skip to main content
MethodsX logoLink to MethodsX
. 2025 Feb 14;14:103217. doi: 10.1016/j.mex.2025.103217

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

Suliyanto 1,⁎, Toha Saifudin 1, Marisa Rifada 1, Dita Amelia 1
PMCID: PMC12370154  PMID: 40852569

Abstract

This study develops statistical inference methods, including estimation and hypothesis testing procedures, which consist of partial and simultaneous tests for nonparametric regression models based on Fourier series approximations. The Fourier series is effective for data with periodic characteristics, offering flexible nonparametric regression solutions. While previous work primarily focused on estimation techniques, this research introduces a structured hypothesis testing framework using F-test and T-test statistics to evaluate the significance of model parameters. Utilizing real-world expenditure data from 29 districts in Papua, Indonesia, we examine the Gross Regional Domestic Product per capita, poverty rates, and labor force participation rates as predictors of per capita expenditure. The best oscillation parameter is determined through Generalized Cross Validation (GCV), improving the accuracy of the model. The findings demonstrate significant effects of the predictor variables on the model, supported by both simultaneous tests using the F-test and partial tests using T-tests. The highlights of this research are:

  • •

    Introduces hypothesis testing using F-test and T-test for nonparametric regression with Fourier series.

  • •

    Applies model to regional expenditure data with optimal parameter selection.

  • •

    Validates model using real data, showing significant predictor influence.

Keywords: Fourier series, Hypothesis testing, Nonparametric regression, Partial, Simultaneous

Method name: Statistical Inference for Nonparametric Regression Models based on Fourier Series

Graphical abstract

Image, graphical abstract


Specifications table

Subject area: Mathematics and Statistics
More specific subject area: Nonparametric Regression
Name of your method: Statistical Inference for Nonparametric Regression Models based on Fourier Series
Name and reference of original method: Fourier series function developed by Bilodeau (1992),
M. Bilodeau, Fourier smoother and additive models, Canad. J. Stat. 20 (1992) 257–269, https://doi.org/10.2307/3315313.
F-test and T-test statistic for hypothesis testing of parameters in the book of Rencher and Schaalje (2008) and Hogg and Craig (2019),
A.C. Rencher and G. B. Schaalje, Linear Models in Statistics, 2nd ed., John Wiley & Sons, Inc., New Jersey, 2008
R. V. Hogg, J. W. McKean and A. T. Craig, Introduction to Mathematical Statistics, Eighth ed., Pearson Education, Inc, United States, 2019
Resource availability: Real Expenditure per Capita in Papua and its predictor variables can be accessed through the website of the Central Bureau of Statistics (BPS) as follows:

Background

Regression analysis using nonparametric regression does not necessitate assuming a certain regression curve form.. This method is more flexible, enabling the regression curve to organically fit the data's local patterns. [1]. Nevertheless, determining the regression curve in nonparametric regression requires insights from the data, which can be gained by examining a scatter plot of the data pattern [2,3]. Various estimators are available for nonparametric regression, including Spline functions [[4], [5], [6]], Kernel functions [[7], [8], [9]], Fourier series [[10], [11], [12], [13]], among others. The Fourier series, in particular, has attracted significant interest among researchers because it is well-suited to data with periodic patterns. Bilodeau proposed a variation of the Fourier series that uses only the cosine function and adds a trend component to the regression model [10]. While other researchers describe the Fourier series as a trigonometric polynomial comprising both cosine and sine components [[14], [15], [16]]. This modified Fourier series estimator has gained popularity and has been refined by many researchers to estimate nonparametric regression curves [13,[17], [18], [19], [20]]. In practice, it has been successfully applied to model different types of data [21,22].

Statistical inference in regression analysis is fundamental for achieving optimal model estimation. In this context, statistical inference is generally divided into two primary components, i.e. parameter estimation and hypothesis testing. Parameter estimation pertains to the computation of model parameter values, which subsequently enables the derivation of inferences about the response variable in relation to the predictor variables. On the other hand, hypothesis testing is employed to evaluate if the parameters significantly influence the model. This type of testing is generally categorized into partial and simultaneous hypothesis testing. Simultaneous testing evaluates the overall effect of all parameters on the model. If a significant impact is detected, then partial testing is conducted to determine which individual parameter contribute to the model. Various researchers have thoroughly explored the role of statistical inference in regression analysis [[23], [24], [25]]. Statistical inference in nonparametric regression models using Fourier series approximation has largely focused on the estimation of model parameters [10,12,[17], [18], [19],21,22]. Furthermore, Ramli et al. has explored hypothesis testing with a specific emphasis on simultaneous testing [20]. However, partial hypothesis testing has not yet been explored in this model. Considering the significance of statistical inference in regression analysis, especially in nonparametric regression models utilizing Fourier series approximation, this topic becomes highly relevant for further research. Previous studies have explored topics such as estimation and simultaneous hypothesis testing, both theoretically and practically. However, this research will only briefly address these areas, focusing instead on developing a theoretical framework for hypothesis testing using F-test and T-test, which remains unexplored. Additionally, real world expenditure data from 29 districts in Papua for 2023 will be utilized to implement in this study.

Method details

Nonparametric regression model with fourier series

Assume paired data(yi,x1i,x2i,…,xpi);i=1,2,…,nsatisfies the nonparametric regression model as stated in Eq. (1).

yi=m(x1i,x2i,…,xpi)+εi (1)

whereyi is the response variable for observation-i,xjiis the predictor variable for observationi,for thej-th predictor, andεiis the error for observationiwhich is normally distributed and independent with a mean of 0 and varianceσ2, written asεi∼N(0,σ2). If the predictor variables are assumed to be uncorrelated, the model for the nonparametric regression can be stated in an additive form as follows:

yi=∑j=1pm(xji)+εi (2)

Since the regression curvem(xji)is assumed to be unknown, it can be approximated by one of the estimators in the nonparametric regression model, which is the Fourier series function [10], where the Fourier series function is stated in Eq. (3).

m(xji)=δj2+γjxji+∑k=1λαjkcos(kxji) (3)

Substituting Eq. (3) into Eq. (2) yields the Fourier series nonparametric regression model as stated in Eq. (4).

yi=∑j=1p[δj2+γjxji+∑k=1λαjkcos(kxji)]+εi (4)

In general, fori=1,2,…,n, the Fourier series nonparametric regression model in Eq. (4) can be written in matrix form as shown in Eq. (5).

y=Zβ+ɛ (5)

wherey=(y1,y2,…,yn)′,Z=(X1(λ),X2(λ),…,Xp(λ)),β=(β1′,β2′,…,βp′)′, with

Xj(λ)=(1/2xj1cosxj1⋯cosλxj11/2xj2cosxj2⋯cosλxj2⋮⋮⋮⋱⋮1/2xjncosxjn⋯cosλxjn),βj=(δj,γj,αj1,⋯,αjλ);j=1,2,⋯,p

error vector is assumedɛ=(ε1,ε2,…,εn)′∼Nn(0,σ2I).

Parameter estimation

To estimate the nonparametric regression model with a Fourier series in Eq. (5), it is equivalent to estimating the parameter vector. There are several methods for estimating the parameter vector, such as the Penalized Least Squares (PLS) method if the regression curvem(•)is assumed to be smooth [10,12,21]. If the regression curvem(•)is assumed to be unknown and represented in the linear model form as in Eq. (5), it can be estimated using the Ordinary Least Squares (OLS) method by minimizing the sum of squared errors. The estimation of the parameter vectorβusing the OLS method is obtained as follows [17,18,22]:

β^=argminβ∈Rp(λ+2)(y−Zβ)′(y−Zβ)=(Z′Z)−1Z′y (6)

where

β^=(β^1′,β^2′,…,β^p′)′=(δ^1,γ^1,α^11,…,α^1λ,…,δ^p,γ^p,α^p1,…,α^pλ)′andy=(y1,y2,…,yn)′.

Substituting Eq. (6) into Eq. (5), the estimated nonparametric regression model with a Fourier series is obtained as stated in Eq. (7):

y^=Zβ^=H(λ)y (7)

whereH(λ)=Z(Z′Z)−1Z′.

The vector parameter estimatorβ^, obtained using the OLS method in Eq. (6), includes an unknown oscillation parameterλ. In nonparametric regression with the OLS approach, there is typically an unknown parameter, such as the knot location in Spline functions, the bandwidth in Kernel functions, or the oscillation parameter in Fourier series functions. Thus, to achieve the best parameter estimates for modeling nonparametric Fourier series regression, it is crucial to determine the optimal number of oscillation parametersλ. Methods such as Cross Validation (CV) or Generalized Cross Validation (GCV) can be employed to determine this optimalλ. GCV, in particular, has been extensively developed by researchers for applications in Spline functions [6] and Fourier series functions [10]. The GCV method selects the optimal oscillation parameterλbased on the minimum GCV value.

GCV(λ)=MSE(λ)(1ntr[I−H(λ)])2=1ny′(I−H(λ))y(1ntr[I−H(λ)])2 (8)

Hypothesis testing of parameters using the F-Test statistic and T-Test statistic

Parameter hypothesis testing is essential in modeling and forms a key component of inferential statistics within regression analysis. This testing method determines whether parameter estimates significantly impact the regression model. In the context of nonparametric Fourier series regression models, an F-test for hypothesis testing of parameters has not been previously conducted. According to prior studies, this model has been employed by researchers for modeling or predicting various fields or datasets [17,18,22]. Previous research primarily focused on parameter estimation in nonparametric regression modeling. Recently, parameter hypothesis testing for nonparametric regression models with Fourier series functions has been developed using the Likelihood Ratio Test (LRT) approach [20]. Several researchers have constructed the F-test statistic for hypothesis testing of parameters in parametric regression models [26]. Fundamentally, the F-test statistic is used to compare a reduced model to a full model. This study advances the application of parameter hypothesis testing in nonparametric Fourier series regression models using the F-test statistic.

According to Casella and Berger, the F-test statistic for testing parameter hypotheses in parametric regression models is associated with the distribution of quadratic forms [27].

Lemma 1

Given an identity matrixJof sizen×nand a matrixH(λ)as defined in Eq. (7), it follows that

  • (i)H(λ)is symmetric and idempotent

  • (ii)H(λ)J=JandJH(λ)=J

Proof

  • (i) Symmetry and Idempotence ofH(λ)

To show thatH(λ)is symmetric, we compute the transpose ofH(λ):

[H(λ)]′=[Z(Z′Z)−1Z′]′=Z(Z′Z)−1Z′=H(λ)

Thus,H(λ)is symmetric.

For idempotence, we calculate[H(λ)]2:

[H(λ)]2=H(λ)H(λ)=Z(Z′Z)−1Z′Z(Z′Z)−1Z′=Z(Z′Z)−1Z′=H(λ)

Therefore, H(λ)is idempotent. ◻

  • (ii) PropertiesH(λ)J=JandJH(λ)=J

To verify these properties, note thatH(λ)Z=Z, which implies thatH(λ)acts as a projection matrix, preserving the columns ofZ. Specifically:

H(λ)(X1(λ),X2(λ),…,Xp(λ))=(X1(λ),X2(λ),…,Xp(λ))

Thus, for any columnXj(λ)withj=1,2,…,p, we have

H(λ)Xj(λ)=Xj(λ)

Forj=1, let us choose one particular structure:

H(λ)[12j,X˜1(λ)]=[12j,X˜1(λ)]

wherejis a unit vector of dimensionn×1,X˜1(λ)represents the matrix ofX1(λ)with the first column removed. We also find

[12H(λ)j,H(λ)X˜1(λ)]=[12j,X˜1(λ)]

This hold becauseH(λ)j=jandH(λ)X˜1(λ)=X˜1(λ)

Finally, by definition ofH(λ)jj′=jj′we conclude that

H(λ)J=JandJ′=[H(λ)J]′=J[H(λ)]′=JH(λ)=J

Lemma 2

The matrices I−H(λ)andH(λ)−1nJ, whereJis ann×nidentity matrix, have the following properties:

  • (i)I−H(λ)is symmetric and idempotent

  • (ii)H(λ)−1nJis symmetric and idempotent

Proof

  • (i) Symmetry ofI−H(λ):

SinceH(λ)is symmetric, we have

[I−H(λ)]′=I−[H(λ)]′=I−H(λ)(fromLemma1(i))

thus,I−H(λ)is symmetric.

Idempotence ofI−H(λ):

To show idempotence, we compute

[I−H(λ)]2=[I−H(λ)][I−H(λ)]=I−H(λ)−H(λ)+[H(λ)]2

Using Lemma 1(i), where[H(λ)]2=H(λ), we obtain:

[I−H(λ)]2=I−H(λ)(idempotence is confirmed) ◻

  • (ii) Symmetry ofH(λ)−1nJ:

Since bothH(λ)and1nJare symmetric matrices, their difference is also symmetric:

[H(λ)−1nJ]′=[H(λ)]′−[1nJ]′=H(λ)−1nJ(fromLemma1(i))

Thus,H(λ)−1nJis symmetric.

Idempotence ofH(λ)−1nJ:

To confirm idempotence, we calculate

[H(λ)−1nJ]2=[H(λ)−1nJ][H(λ)−1nJ]

Expanding this expression:

[H(λ)−1nJ]2=[H(λ)]2−1nH(λ)J−1nJH(λ)+1n2JJ

Based on Lemma 1(i) where[H(λ)]2=H(λ)and Lemma 2(i) thatH(λ)J=Jand noting thatJJ=nJ, we obtain:

[H(λ)−1nJ]2=H(λ)−1nJ−1nJ+1n2nJ=H(λ)−1nJ(idempotenceisconfirmed)□

Based on the nonparametric Fourier series regression model, we can define the Total Sum of Squares (SST), Regression Sum of Squares (SSR), and Error Sum of Squares (SSE) as follows:

SST=∑i=1n(yi−y¯)2,SSR=∑i=1n(y^i−y¯)2,andSSE=∑i=1n(yi−y^i)2.

The formulas for SST, SSR, and SSE can be represented in matrix notation, as stated in the following theorem.

Theorem 1

The Total Sum of Squares (SST), Regression Sum of Squares (SSR), and Error Sum of Squares (SSE) can be expressed as follows:

SST=y′(I−1nJ)y,SSR=y′(H(λ)−1nJ)y,andSSE=y′(I−H(λ))y

Proof

SST=∑i=1n(yi−y¯)2=∑i=1nyi2−ny¯2=y′y−y′1nJy=y′(I−1nJ)y
SSR=∑i=1n(y^i−y¯)2=(y^−y¯j)′(y^−y¯j)=y^′y^−2y¯j′y^+y¯2j′j
=(H(λ)y)′(H(λ)y)−2y¯j′H(λ)y+ny¯2=y′H(λ)2y−2y¯j′y+ny¯2
=y′H(λ)y−2ny¯2+ny¯2=y′H(λ)y−y′1nJy
=y′(H(λ)−1nJ)y
SSE=∑i=1n(yi−y^i)2=(y−y^)′(y−y^)=y′y−2y′y^+y^′y^

=y′y−y′H(λ)y=y′(I−H(λ))y ◻

Based on Theorem 1, the relationship between SST, SSR, and SSE can be expressed as:

SST=SSR+SSE (9)

According to Rencher and Schaalje in Theorem 5.5A, lety∼Np(μ,Σ), whereAis a symmetricp×pmatrix of constants with rankr, and letν=12μ′Aμ. Theny′Ay∼χ2(r,ν)if and only ifAΣis idempotent. Additionally, Rencher and Schaalje states that if A and B are two symmetric matrices of constants andy∼Np(μ,Σ), theny′Ayandy′Byare independent if and onlyAΣB=0[26].

Theorem 2

Ify∼Nn(Zβ,σ2I), then:

  • (i)

    SSRσ2∼χ2(p(λ+2)−1,ν1), withν1=β′Z′(H(λ)−1nJ)Zβ/2σ2

  • (ii)

    SSE/σ2∼χ2(n−p(λ+2))

  • (iii)

    SSR and SSE are independent

Proof

  • (i) Distribution ofSSR/σ2:

From Theorem 1, we have

SSR/σ2=y′(H(λ)−1nJ)y/σ2

SinceH(λ)−1nJis symmetric and idempotent (from Lemma 2(ii)), we get

rank[(H(λ)−1nJ)/σ2]=rank(H(λ)−1nJ)=tr(H(λ)−1nJ)=p(λ+2)−1

Now, considering that

AΣ=[(H(λ)−1nJ)/σ2]σ2I=H(λ)−1nJ

is idempotent (by Lemma 2(ii)), we can apply the result of Rencher and Schaalje in Theorem 5.5A [26]. The noncentrality parameter is given by

ν=12μ′Aμ=12(Zβ)′[(H(λ)−1nJ)/σ2](Zβ)=β′Z′(H(λ)−1nJ)Zβ/2σ2

Thus, we have

SSR/σ2∼χ2(p(λ+2)−1,ν)withν=β′Z′(H(λ)−1nJ)Zβ/2σ2□
  • (ii) Distribution ofSSE/σ2:

From Theorem 1, we have

SSE/σ2=y′(I−H(λ))y/σ2

SinceI−H(λ)is symmetric and idempotent (from Lemma 2(i)), we have

rank[(I−H(λ))/σ2]=rank(I−H(λ))=tr(I−H(λ))=n−p(λ+2)

Similarly, forAΣ=[(I−H(λ))/σ2]σ2I=I−H(λ), which is idempotent (by Lemma 2(i)), the noncentrality parameter is

ν=12μ′Aμ=12(Zβ)′[(I−H(λ))/σ2](Zβ)

Simplifying, we get

ν=β′Z′(I−H(λ))Zβ2σ2=β′[Z′Z−Z′H(λ)Zβ]2σ2=β′[Z′Z−Z′Z]β2σ2=0

Thus, we conclude

SSE/σ2∼χ2(n−p(λ+2)).
  • (iii) Independence ofSSRandSSE:

From Theorem 1, we haveSSR=y′(H(λ)−1nJ)yandSSE=y′(I−H(λ))y. Note that

AΣB=[H(λ)−1nJ]σ2I[I−H(λ)]

Expanding this, we obtain

AΣB=σ2(H(λ)−[H(λ)]2−1nJ+1nJH(λ))

Using the properties from Lemma 1(i) and (ii), we get

AΣB=σ2(H(λ)−H(λ)−1nJ+1nJ)=0□

Thus, according to Rencher (2008),SSRandSSEare independent.

According to Hog et al., if the random variables UandV are independent and each follows a chi-square distribution with degrees of freedomr1 andr2, respectively, then the random variable defined by [27]:

F=U/r1V/r2∼F(r1,r2)

Theorem 3

Lety∼Nn(Zβ,σ2I)and define the F-statistic as follows:

F=SSR/(p(λ+2)−1)SSE/(n−p(λ+2))

If the null hypothesisH0:β=0is true, thenν=0andF∼F(p(λ+2)−1,n−p(λ+2)).

Proof

According to Hog et al. [27] and by applying Theorem 2(i) and (ii), we have

F=SSR/(p(λ+2)−1)SSE/(n−p(λ+2))=SSR/σ2(p(λ+2)−1)SSE/σ2(n−p(λ+2))∼F(p(λ+2)−1,n−p(λ+2)) ◻

If the Fourier series coefficients are found to be jointly significant in testing, we can proceed to test individual parameters of the nonparametric Fourier regression model [28]. According to Hog et al. [27], if the random variablesWandVare independent withW∼N(0,1)andV∼χ2(r), then the random variable

T=WV/r∼t(r)

The individual parameter tests in the nonparametric Fourier regression model include testing the intercept parameterδj,the trend parameterγj, and the cosine function parameterαjiforj=1,2,…,p;i=1,2,…,n. To test these parameters individually, the first step is to compute the covariance of the estimatorβ^ in Eq. (6) as follows:

cov(β^)=σ2G (10)

whereG=(Z′Z)−1. Since the error varianceσ2in Eq. (10) is unknown, it can be estimated by

s2=y′(I−H(λ))yn−p(λ+2) (11)

Finally, an estimator forcov(β^)in Eq. (10) is given by

cov^(β^)=s2G (12)

Theorem 4

If s2 is as defined in Eq. (11), then

[n−p(λ+2)]s2σ2∼χ2(n−p(λ+2))

Proof

[n−p(λ+2)]s2σ2=y′(I−H(λ))yσ2=SSEσ2∼χ2(n−p(λ+2))(fromTheorem2(ii)) ◻

The least squares estimatorβ^in Eq. (6) is an unbiased estimator forβ. Giveny∼Nn(Zβ,σ2I),from Eq. (10), we have

β^∼Np(λ+2)(β,σ2(Z′Z)−1) (13)

From Eq. (13), the distribution of the individual parameter estimates is

δ^j∼N(δj,var(δ^j)),γ^j∼N(γj,var(γ^j)),andα^ji∼N(αj,var(α^ji))

where:

  • •

    var(δ^j)=σ2ajj, withajjis the(j−1)(λ+2)+1th main diagonal element ofG,

  • •

    var(γ^j)=σ2bjj, withbjjis the(j−1)(λ+2)+2th main diagonal element ofG,

  • •

    var(α^ji)=σ2cji, withcjiis the(j−1)(λ+2)+2+ith main diagonal element ofGforj=1,2,…,pandi=1,2,…,λ.

Fromδ^j∼N(δj,var(δ^j)), we obtain

Zj=δ^j−δjvar(δ^j)=δ^j−δjσajj∼N(0,1) (14)

Forj=1,2,…,p, based on Eq. (14) and Theorem 4, we define the random variable

T1j=δ^j−δjσajj[n−p(λ+2)]s2σ2[n−p(λ+2)]=δ^j−δjsajj∼t(n−p(λ+2)) (15)

To test the parameterδj individually, we use the hypothesis

H0:δj=0versusH1:δj≠0 (16)

Under the null hypothesisH0:δj=0, the test statistic becomes:

T1j=δ^jsajj∼t(n−p(λ+2))

with significance levelα, the critical region for rejectingH0 is|T1j|>tα2(n−p(λ+2)).

Forj=1,2,…,p, based on Eq. (14) and Theorem 4, we define the random variable

T2j=γ^j−γjσbjj[n−p(λ+2)]s2σ2[n−p(λ+2)]=γ^j−γjsajj∼t(n−p(λ+2)) (17)

To test the parameterγj individually, we use the hypothesis

H0:γj=0versusH1:γj≠0 (18)

Under the null hypothesisH0:γj=0, the test statistic is

T2j=γ^jsbjj∼t(n−−p(λ+2))

with significance levelα, the critical region for rejectingH0 is|T2j|>tα2(n−p(λ+2)).

Forj=1,2,…,pandi=1,2,…,λ,based on Eq. (14) and Theorem 4, we define the random variable

T3ji=α^ji−αjiσcji[n−p(λ+2)]s2σ2[n−p(λ+2)]=α^ji−αjiscji∼t(n−p(λ+2)) (19)

To test the parameterαji individually, we use the hypothesis

H0:αji=0versusH1:αji≠0 (20)

Under the null hypothesis H0:αji=0, the test statistic is

T3ji=α^jiscjj∼t(n−p(λ+2))

with significance levelα, the critical region for rejectingH0 is|T3ji|>tα2(n−p(λ+2)).

Method validation

Real data application

Statisical inference on hypothesis testing for nonparametric regression models with fourier series have been theoretically discussed in the previous section. The application of the concept to real data is carried out by analyzing real expenditure data in the province of Papua. The data is obtained from the Central Bureau of Statistics (BPS) in the form of the 2023 Provincial Publication in Figures, the 2023 Human Development Index (HDI) of Papua Province, the 2019–2023 Gross Regional Domestic Product (GRDP) of districts/cities in Indonesia, and the Regional Statistics of Papua Province. In this study, 2023 research data is used with the unit of observation being 29 districts/cities in Papua. The variables used are Real Expenditure per Capita(y)in billion rupiah, Gross Regional Domestic Product per Capita(x1), Percentage of Poor Population(x2), and Labor Force Participation Rate(x3). Real expenditure per capita in Papua is interesting to study because it ranks the lowest among other provinces in Indonesia, which serves as an indicator in assessing the quality of human resources that can enhance a country's competitiveness. Therefore, the government continues to make efforts and create strategies to improve the quality of human resources in the Province of Papua. Improving Indonesia's human development index is one of the main components in achieving the Sustainable Development Goals (SDGs), particularly points 3, 4, and 8, which are Good Health and Well-being, Quality Education, and Decent Work and Economic Growth.

The data analysis in this study utilizes the R software. The program does not rely on any specific libraries or packages but is developed using basic R syntax based on the following algorithms:

Algorithm for Estimating the Model Parameters

  • 1.

    Input the data containing the values of the response variableYand predictorsX1,X2,…,Xp

  • 2.

    Determine the oscillation parameter values for theppredictor variables, denoted asλ1,λ2,…,andλp

  • 3.

    Set the structure of the predictor matrixX1(λ1),X2(λ2),…,Xp(λp)

  • 4.

    Set the matrixZ

  • 5.

    Calculate the estimatorβ^.

Algorithm for Determining the Optimal Oscillation Parameters

1. Input the data containing the values of the response variableY and predictors X1,X2,…,Xp

2. Determine the maximum trial values for each oscillation parameter, denoted asmax_λ1,max_λ2,…,max_λp

3. Forλ1=1,2,…,max_λ1;λ2=1,2,…,max_λ2; andλp=1,2,…,max_λp, iterate the following steps:

  • •

    Calculate the estimatorβ^

  • •

    Calculatey^

  • •

    CalculateMSE(λ1,λ2,…,λp)

  • •

    CalculateH(λ1,λ2,…,λp)

  • •

    CalculateGCV(λ1,λ2,…,λp)

4. Determine the minimumGCV

5. Selectλ1,λ2,…,andλpcorresponding to the minimumGCVas the optimal oscillation parameters.

Algorithm for Hypothesis Testing

1. Input the data containing the values of the response variableYand predictorsX1,X2,…,Xp

2. Input the significance levelα

3. Input the optimal oscillation parameter values, denoted as λ1opt,λ2opt,…,andλpopt

4. Calculate the estimatorβ^

5. Calculate The Total Sum of Squares (SST), Regression Sum of Squares (SSR), and Error Sum of Squares (SSE)

6. Perform the simultaneous testing steps:

  • a.

    Calculate the test statisticFbased on Theorem 3

  • b.

    Compute thep−valuefor the simultaneous test

  • c.

    RejectH0ifp−value<α

7. Perform the partial testing steps:

  • a.

    Calculate the variance-covariance matrixcov(β^)

  • b.

    Compute the standard error ofβ^as the square root of the main diagonal of the variance-covariance matrixcov(β^)

  • c.

    Calculate the test statisticTfor each regression parameter

  • d.

    Compute thep−valuefor each partial test

  • e.

    RejectH0ifp−value<α.

As an initial identification, data exploration was conducted to understand the pattern of the relationship between the response and predictor variables using a scatter plot. Based on Fig. 1(a)-(c), it can be seen that the pattern of the relationship between Real Per Capita Expenditure(y)and the three predictor variables does not follow a specific pattern and tends to change at certain sub-intervals. In districts/cities with a per capita GDP below 100 million, an increase in per capita GDP affects all response variables with sharp movements. Conversely, in the interval of per capita GDP above 100 million, the movements slow down. In the predictor variable of the percentage of poor population, a pattern of relationship that tends to repeat at certain intervals follows a downward trend line. The downward trend line indicates a negative relationship. Although it follows a downward trend line, there is a repeating pattern within it. In the predictor variable of the Labor Force Participation Rate, a relationship pattern that tends to be dispersed and does not form a clear pattern is observed. The plot in Fig. 1(a)-(c) shows no specific relationship pattern and indicates a periodic pattern resembling a distribution, so the data can be analyzed using a Fourier series.

Fig. 1.

Fig. 1

Scatter plot of real expenditure per capita (Y) vs predictor variables, (a) X1, (b) X2 and (c) X3.

The model of the relationship between the response variable and the predictor variable is best obtained using the optimal oscillation parameter(λ)with the Minimum GCV criterion. The plot of GCV values for each combination of K value trials is presented in the following Fig. 2.

Fig. 2.

Fig. 2

GCV plot for each experimental combination.

By using a maximum K value of 4, 64 experimental combinations are obtained.The minimum GCV was obtained at the 17th combination with a GCV value of 2.4679. More detailed information about the optimal oscillation parameter(λ)obtained by testing the value of K on each predictor is presented in the following Table 1.

Table 1.

Optimal oscillation parameter values and GCV.

Trial Num. K1 K2 K3 GCV Value
1 1 1 1 2.6690
2 1 1 2 2.8490
3 1 1 3 3.0675
⋮ ⋮ ⋮ ⋮ ⋮
17 2 1 1 2.4679
⋮ ⋮ ⋮ ⋮ ⋮
64 4 4 4 4.0991

After obtaining the optimal oscillation parameter(λ), the output results of the Fourier model parameters are obtained in the following Table 2.

Table 2.

Model parameter results.

Parameter Estimation δ^1 γ^1 α^11 α^12 δ^2 γ^2 α^21 δ^3 γ^3 α^31
Coefficient 3.6326 0.0134 −0.3221 −0.7187 3.6326 −0.1685 −0.9947 3.6326 0.0062 −0.1451

Based on the output results in Table 2, a Fourier series model can be formed as follows:

=3.63262+0.0134x1−0.3221cosx1−0.7187cos2x1+3.63262−0.1685x2−0.9947cosx2+3.63262+0.0062x3−0.1451cosx3

The next step is to simultaneously test the Fourier series coefficients, using the following hypothesis:

H0:δ1=γ1=α11=α12=δ2=γ2=α21=δ3=γ3=α31=0

H1:at least one parameter is not equal to 0

From the test results, an F-value of 8.318087 was obtained with a P-value of 0.000059. Since the P-value is <5 %, the decision is to rejectH0, thus it can be concluded that the parameters in the nonparametric Fourier series regression model for Real Per Capita Expenditure have a significant simultaneous effect. In addition, individual/partial tests will also be conducted on the Fourier series model, with the following hypothesis in Table 3:

Table 3.

Partial test hypothesis.

H0: δ1=0 γ1=0 α11=0 α12=0 δ2=0 γ2=0 α21=0 δ3=0 γ3=0 α31=0
H1: δ1≠0 γ1≠0 α11≠0 α12≠0 δ2≠0 γ2≠0 α21≠0 δ3≠0 γ3≠0 α31≠0

Based on the hypothesis in Table 3 and the partial test results in Table 4, with a significance level of 5 %, it was found that all parameters have a significant influence on the model except for the parametersα11,α12,γ3,α31which are not statistically significant.

Table 4.

Partial test results.

Parameter Estimated Coefficients SE Coefficients T-Test P-value Decision
δ1 36.326 0,63,140,731 5,7532 0 RejectH0
γ1 0,093,055,556 0,00,556,812 2,4132 0,0261 RejectH0
α11 −0.3221 0,45,155,398 −0,7133 0,4843 Failed to rejectH0
α12 −0.7187 0,38,134,101 −1,8846 0,0749 Failed to rejectH0
δ2 36.326 0,63,140,731 5,7532 0 RejectH0
γ2 −0.1685 0,03,867,522 −4,3567 0,0003 RejectH0
α21 −0.9947 0,415,009 −2,3968 0,027 RejectH0
δ3 36.326 0,63,140,731 5,7532 0 RejectH0
γ3 0.0062 0,02,344,497 0,2647 0,7941 Failed to rejectH0
α31 −0.1451 0,43,192,972 −0,336 0,7406 Failed to rejectH0

Model interpretation

Modeling Real Per Capita Expenditure in Papua using a nonparametric Fourier series regression model depends on the selection of the optimal oscillation parameter(λ)with the Minimum GCV criterion, resulting in a combination of K (2,1,1) with a minimum GCV value of 2.4679. The complete combination of various experiments can be seen in Table 1. By using the estimated model parameters in Table 2, the regression model equation is obtained as follows

y^=3.63262+0.0134x1−0.3221cosx1−0.7187cos2x1+3.63262−0.1685x2−0.9947cosx2+3.63262+0.0062x3−0.1451cosx3

Wherey^is the estimated model of Real Per Capita Expenditure in Papua in 2023. This model produces anR2value of 79.76 % and a MAPE of 12.51, which means the predictor variables used, namely Gross Regional Domestic Product per Capita(x1), Percentage of Poor Population(x2), and Labor Force Participation Rate(x3), can explain 79.76 % of the model's variability. This indicates that the model fits the actual data. The results obtained by this model are better when compared to the parametric regression method with anR2value of 68.67 % and a MAPE of 14.33. The plot between the actual data and the predictions using a nonparametric Fourier series regression model is presented in Fig. 3 below.

Fig. 3.

Fig. 3

Comparison between actual and predicted for the variable Real Expenditure per Capita in Papua.

Limitations

Not applicable.

Ethics statements

The data is obtained from the Central Bureau of Statistics (BPS) in the form of the 2023 Provincial Publication in Figures, the 2023 Human Development Index (HDI) of Papua Province, the 2019–2023 Gross Regional Domestic Product (GRDP) of districts/cities in Indonesia, and the Regional Statistics of Papua Province. The data is available at https://papua.bps.go.id/id/publication and https://www.bps.go.id/id/publication.

CRediT author statement

Suliyanto: Conceptualization, Methodology, Writing – original draft. Toha Saifudin: Conceptualization, Methodology, Software, Visualization. Marisa Rifada: Methodology, Writing – review & editing, Validation. Dita Amelia: Conceptualization, Visualization, Writing – original draft, Validation.

Declaration of competing interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

Acknowledgments

This research did not receive any specific grant from funding agencies in the public, commercial, or not-for-profit sectors.

Footnotes

Related research article: None.

Data availability

Data will be made available on request.

References

  • 1.Eubank R.L. 2nd ed. Marcel Dekker Inc.; New York: 1999. Nonparametric Regression and Spline Smoothing. [Google Scholar]
  • 2.Hardle W. Cambridge University Press; Cambridge: 1990. Applied Nonparametric Regression. [Google Scholar]
  • 3.Cizek P., Sadikoglu S. Robust nonparametric regression: a review. WIREs Comput. Stat. 2020;12:1–16. doi: 10.1002/wics.1492. [DOI] [Google Scholar]
  • 4.Kuter S., Akyurek Z., Weber G.W. Estimation of subpixel snow-covered area by nonparametric regression splines. Int. Arch. Photogramm. Remote Sens. Spatial Inf. Sci. XLII-2/W1. 2016:31–36. doi: 10.5194/isprs-archives-XLII-2-W1-31-2016. [DOI] [Google Scholar]
  • 5.Ahmed S.E., Aydin D., Yilmaz E. Estimating the nonparametric regression function by using pade approximation based on total least squares. Numer. Funct. Anal. Optim. 2020;41:1827–1870. doi: 10.1080/01630563.2020.1794891. [DOI] [Google Scholar]
  • 6.Putra R., Fadhlurrahman M.G. Determination of the best knot and bandwidth in geographically weighted truncated spline nonparametric regression using generalized cross validation. MethodsX. 2023;10:1–17. doi: 10.1016/j.mex.2022.101994. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Aydin D., Guneri O.I., Fit A. Choice of bandwidth for nonparametric regression models using kernel smoothing: a simulation study. Int. J. Sci. 2016;26:47–61. [Google Scholar]
  • 8.Lee A.B., Izbicki R. A spectral series approach to high-dimensional nonparametric regression. Electron. J. Stat. 2016;10:423–463. doi: 10.1214/16-EJS1112. [DOI] [Google Scholar]
  • 9.Zhu T., Politis D.N. Kernel estimates of nonparametric function autoregression models and their bootstrap approximation. Electron. J. Stat. 2017;11:2876–2906. doi: 10.1214/17-EJS1303. [DOI] [Google Scholar]
  • 10.Bilodeau M. Fourier smoother and additive models. Canad. J. Stat. 1992;20:257–269. doi: 10.2307/3315313. [DOI] [Google Scholar]
  • 11.Canditiis D.D., Feis I.D. Pointwise convergence of fourier regularization for smoothing data. J. Comput. Appl. Math. 2006;196:540–552. doi: 10.1016/j.cam.2005.10.009. [DOI] [Google Scholar]
  • 12.Pane R., Budiantara I.N., Zain I., Otok B.W. Fourier series estimator in nonparametric multivariable regression and its characteristics. Proc. Int. Conf. Appl. Stat. 2013;1:34–43. [Google Scholar]
  • 13.Mardianto M.F.F., Gunardi H.U. An analysis about fourier series estimator in nonparametric regression for longitudinal data. Math. Stat. 2021;9:501–510. doi: 10.13189/ms.2021.090409. [DOI] [Google Scholar]
  • 14.Srivani A., Arunkumar T., Ashok S.D. Fourier harmonic regression method for bearing condition monitoring using vibration measurements. Mater. Today. 2018;5:12151–12160. doi: 10.1016/j.matpr.2018.02.193. [DOI] [Google Scholar]
  • 15.Steinerberger S. Wasserstein distance, fourier series and applications. Monatsh. Math. 2021;194:305–338. doi: 10.1007/s00605-020-01497-2. [DOI] [Google Scholar]
  • 16.Octavanny M.A.D., Budiantara I.N., Kuswanto H., Rahmawati D.P. Modeling of children ever born in Indonesia using fourier series nonparametric regression. J. Phys. Conf. Ser. 2021;1752:1–7. doi: 10.1088/1742-6596/1752/1/012019. [DOI] [Google Scholar]
  • 17.Zoumb P.A.W., Li X. Fourier regression model predicting train-bridge interactions under wind and wave actions. Struct. Infrastruct. Eng. 2023;19:1489–1503. doi: 10.1080/15732479.2022.2033281. [DOI] [Google Scholar]
  • 18.Iriany A., Fernandes A.A.R. Hybrid fourier series and smoothing spline path non-parametric estimation model. Front. Appl. Math. Stat. 2023;8:1–8. doi: 10.3389/fams.2022.1045098. [DOI] [Google Scholar]
  • 19.Ramli M., Budiantara I.N., Ratnasari V. A method for parameter hypothesis testing in nonparametric regression with Fourier series approach. MethodsX. 2023;11:1–13. doi: 10.1016/j.mex.2023.102468. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Saputro D.R.S., Sukmayanti A., Widyaningsih P. The nonparametric regression model using fourier series approximation and penalized Least squares (PLS) (case on data proverty in East Java) J. Phys. Conf. Ser. 2019;1188:1–7. doi: 10.1088/1742-6596/1188/1/012019. [DOI] [Google Scholar]
  • 21.Prahutama A., Suparti T.W.U. Modelling fourier regression for time series data- a case study: modelling inflation in foods sector in Indonesia. J. Phys. Conf. Ser. 2018;974:1–9. doi: 10.1088/1742-6596/974/1/012067. [DOI] [Google Scholar]
  • 22.Zhang J.T. Statistical inferences for linear models with functional responses. Stat. Sin. 2011;21:1431–1451. 15 M. Ramli, I.N. Budiantara and V. Ratnasari MethodsX 13 (2024) 102922. [Google Scholar]
  • 23.Wei Z., Fan Y., Zhang J. Statistical inference on restricted regression models with partial distortion measurement errors. Braz. J. Probab. Stat. 2016;30:464–484. doi: 10.1214/15-BJPS289. [DOI] [Google Scholar]
  • 24.Guo X., Li R., Liu J., Zeng M. Reprint: statistical inference for linear mediation models with high-dimensional mediators and application to studying stock reaction to COVID-19 pandemic. J. Econom. 2024;239:1–13. doi: 10.1016/j.jeconom.2023.105650. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Rencher A.C., Schaalje G.B. 2nd ed. John Wiley & Sons, Inc.; New Jersey: 2008. Linear Models in Statistics. [Google Scholar]
  • 26.Casella G., Berger R.L. 2nd ed. Duxbury Press; Pacific Grove: 2002. Statistical Inference. [Google Scholar]
  • 27.Hogg R.V., McKean J.W., Craig A.T. 8th ed. Pearson Education, Inc; United States: 2019. Introduction to Mathematical Statistics. [Google Scholar]
  • 28.Ramli M., Budiantara I.N., Ratnasari V. Statistical inference on nonparametric regression model with approximation of Fourier series function: Estimation and hypothesis testing. MethodsX. 2024;13:1–16. doi: 10.1016/j.mex.2024.102922. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Data Availability Statement

Data will be made available on request.


Articles from MethodsX are provided here courtesy of Elsevier

RESOURCES