You are viewing a javascript disabled version of the site. Please enable Javascript for this site to function properly.
Go to headerGo to navigationGo to searchGo to contentsGo to footer
In content section. Select this link to jump to navigation

An estimating parameter of nonparametric regression model based on smoothing techniques

Abstract

This paper studies the estimating parameter of a nonparametric regression model that consists of the function of independent variables and observation of dependent variables. The smoothing spline, penalized spline, and B-spline methods in a class of smoothing techniques are considered for estimating the unknown parameter on nonparametric regression model. These methods use a smoothing parameter to control the smoothing performance on data set by using a cross-validation method. We also compare these methods by fitting a nonparametric regression model on simulation data and real data. The nonlinear model is a simulation data which is generated in two different models in terms of mathematical function based on statistical distribution. According to the results, the smoothing spline, the penalized spline, and the B-spline methods have a good performance to fit nonlinear data by considering the hypothesis testing of biased estimator. However the penalized spline method shows the minimum mean square errors on two models. As real data, we use the data from a light detection and ranging (LIDAR) experiment that contained the range distance travelled before the light as an independent variable and the logarithm of the ratio of received light from two laser sources as a dependent variable. From the mean square errors of fitting data, the penalized spline again shows the minimum values.

1.Introduction

In statistical modelling, regression analysis is a statistical process for estimating parameters of the relationships between dependent and independent variables in terms of a regression function. However, regression analysis requires an assumption of the underlying regression function to be met. If an inappropriate assumption is used, it is possible to produce misleading results. To overcome this problem, the nonparametric regression is a choice to analyze data when the data are not meeting the assumption of regression analysis. The nonparametric regression is an alternative way for looking at scatter diagram smoothing to depict the relationship between dependent and independent variables. The single independent variable is called scatterplot smoothing it can be used to enhance the visual appearance to help our eyes pick out the trend in the plot.

The smoothing technique is a part of a method to estimate unknown parameters (trend or smoothing estimators) of nonparametric regression models. There are many popular smoothing techniques such as the smoothing spline [1, 2], the penalized spline [3], and the B-spline [4]. The estimating parameters of these methods depend on the smoothing parameter which is controlled the trade-off between fidelity to the data and roughness of function. Smoothing Spline (SS) is a technique that estimates the natural polynomial spline by minimizing the penalized sum of squares based on a smoothing parameter. The penalized Spline (PS) smoother is approximated by minimizing the truncated power function on a low rank thin-plate spline depended on the smoothing parameter. The concept of the B-spline is similar to the smoothing spline and penalized spline. This requires the piecewise constant B-spline that can be obtained from truncated counterparts by differencing the B-spline function.

In this paper, we consider the nonparametric regression model in Section 2, and use the smoothing spline, penalized spline, and B-spline methods to estimate the unknown parameter of nonparametric regression model in Section 3. In Sections 4 and 5, we show the estimation of these methods for simulation data and real data. The conclusion is presented in Section 6.

2.The nonparametric regression model

The nonparametric regression model consists of the cubic spline of piecewise polynomials function based on a function of independent variables (S(xt)), error process (εt), and dependent variables (yt) following

(1)
yt=S(xt)+εt,t=1,2,3,,n.

The error process is assumed to follow the normal distribution with mean zero and variance one.

3.Method of smoothing techniques

The following smoothing techniques show the process to estimate parameters based on nonparametric regression model.

3.1Smoothing spline method

Wahba [1] defined the natural polynomial spline S(xt)=SKm(xt) as a real-valued function on [a,b] with the aid of K so-called knots -a<x1<x2<<xK<b. The class of m-order splines with domain [a,b] will be denoted by Wm[a,b].

The natural measure associated with the function fWm[a,b] that used to measure the roughness of curve which is called the quadratic penalty function given by

(2)
ba{S(m)(xt)}2𝑑x

where S(m)(xt) is the mth derivative of S(x) with respect to x.

Consider the simple nonparametric regression model, to estimate S^() minimizes SK(m)(xt) over the class of function S() following

(3)
SK(m)(xt)=mint=1n{yt-S(xt)}2+λab{S()′′(xt)}2𝑑x

where λ> 0 denotes a smoothing parameter. In this study, we emphasize m= 2 so-called the natural cubic spline which is commonly considered in the statistical literature [2].

The natural cubic spline is given the value and second derivatives at each knots yt as

S=S(xt)=β0+β1S1(x)+βn+3Sn+3(x),
γ=S′′(xt),t=1,2,3,,n.

Let S be the vector (S1,,Sn+3)T and let γ be the vector (γ1,,γn+3)T.

The condition of natural cubic spline depends on two matrices Q and R below

Q=(h1-100-h1-1-h2-1h2-10h2-1-h2-1-h3-100h3-1000hn-1-1)(n)×(n-2),

where ht=xt+1-xt, for t=1,2,,n, then Q is a n×(n-2) matrix.

Matrix R is a symmetric (n-2)×(n-2) matrix with elements below

R=(13(h1+h3)16h2016h213(h2+h3)00013(hn-2+hn-1))(n-2)×(n-2).

The matrix K can be decomposed by

(4)
K=QR-1QT.

The roughness penalty will satisfy

(5)
ab{S′′(xt)}2𝑑xt=γTRγ=STKS=ΩN(i,j).

To illustrate, it can be written in matrix form introduced by [2] as residual sum of squares (RSS)

(6)
𝑅𝑆𝑆=t=2n{yt-S(xt)}2=(y-S)T(y-S),

where y=(y1,,yn)T and S=(S(x1),,S(xn))T. Letting N be a matrix with N(i,j)=Sj(xi) and S=Nβ.

The roughness penalty term S2′′ as ΩN in Eq. (5) to obtain

(7)
S^λ(xt)=(y-Nβ)T(y-Xβ)+λβTΩNβ

It therefore follows that Eq. (7) has a unique minimum, other smoothing spline estimator is obtained by

β^=(NTN+λΩN)-1NTy,

then

(8)
S^λ(xt)=N(NTN+λΩN)-1NT.

In this paper, we also select the smoothing parameter using the method of generalized cross-validation (GCV) suggested by Wahba [5] and Craven and Wahba [6]. In practice, this step can be implemented by using the function of smooth.spline in the software R.

3.2Penalized spline method

Eubank [7, 8] introduced the regression spline that the local neighbourhoods are specified by a group of locations:

(9)
τ0,τ1,τ2,,τK,τK+1

in the range of interval [a,b], where a=τ0<τ1<<τK<τK+1<b. These locations are known as knots, and τr,r=1,2,,K are called interior knots.

A regression spline can be constructed using the k-th degree truncated power basis or called the B-spline basis with K knots τ1,τ2,,τK:

(10)
1,xt,,xtk,(xt-τ1)+k,,(xt-τK)+k,

where w+k denotes k-th power of the positive part of w where w+=max(0,w). The first (k+1) basis functions of the truncated power basis Eq. (12) are polynomials of degree up to k, and the others are all the truncated power functions of degree k. A regression spline can be expressed as

(11)
S(xt)=s=0kβsxts+r=1Kβk+r(xt-τr)+k,

where β0,β1,,βk+K are the unknown coefficients to be estimated by a suitable loss minimization.

The penalized spline is a method to estimate a unknown smooth function using the truncated power function [9], and the penalized spline can be expressed as

(12)
S(xt)=j=0m-1αjxsj+k=1Kβk(xt-τk)2m-1,

where β=(β1,,βK)TN(0,σβ2Ω-1/2(Ω1/2)T), and the (l,k) th entry of Ω is |τ1-τk|2m-1 and only the coefficient of |xt-τk|2m-1 are penalized so that a reasonably large order K can be used.

In this case, we focus m= 2, as the natural cubic spline, or called low-rank thin-plate spline which present of S() as

(13)
S(xt)=α0+α1xt+k=1Kβk|xt-τk|3,

where θ=(α0,α1,β1,,βK)T is the vector of regression coefficients, and τ1<τ2<<τK are fixed knots. The number of knots, K can be selected using a cross-validation method or information theoretic methods (e.g., BIC or AIC).

This class of penalized spline smoothers (S^()) may also be expressed as

(14)
S^(xt)=C(CTC+λ3D)-1CTy,

where

C=[1xt|xt-τk|1kK3]1tn,
D=[02×202×K0K×2(ΩK1/2)TΩK1/2],

and λ=σβ2/σε2 is a smoothing parameter. The penalized spline smoothers are estimated by using the SemiPar package in the software R.

3.3B-spline method

B-splines are very interesting as a basic function for univariate independent variable of nonparametric regression function. De Boor [10] gave an algorithm to compute B-spline of lower degree on piece wise polynomials function.

The mth degree of B-spline function are evaluated from (m-1)th degree as

(15)
Bjm(x)=xt-τjτj+m-1-τjBjm-1+τj+m-xtτj+m-τj+1Bj+1m-1,

where basis of order m with knots {Bim|i=M-m+1,,M+K}, and auxiliary knots τj. B-splines base on non-zero over domain spanned by at most M+1 knots. In this case, we focus the m= 4 or called the cubic B-spline with K knots has basis expansion as

S(xt)=j=1K+4Bj4(xt)βj.

The nonparametric regression model can written in form of B-splines as

(16)
yt=j=1K+4Bj4(xt)βj+εt,t=1,2,3,,n.

Figure 1.

The scatter plot of dependent and independent variables on model 1.

The scatter plot of dependent and independent variables on model 1.

In matrix form, B-splines can be written in form a linear model

B=[B14(x1)BK+44(x1)B14(xn)BK+44(xn)],y=[y1y2yn],
 and ε=[ε1ε2εn].

The B-splines estimators are approximated by least square problems as

β^=[β^1β^2β^K+4]=(BTB)-1BTy.

The B-spline and penalties are studied by Eilers and Marx [4] that advocate the use of the equally spaced knots, instead of the order statistics of the independent variable. The B-spline coefficients can be estimated as

(17)
β^=(BTB+λDTD)-1BTy,

where D is a banded matric which correspond to the difference penalty and denote by

D=[00000-110000-1100000-11].

The fitting cubic B-splines are S^(xt)=j=1K+4Bj4(xt)β^j. The smoothing parameter λ choosing by minimizing the ordinary function or the generalized cross-validation function.

Figure 2.

The scatter plot of dependent and independent variables on model 2.

The scatter plot of dependent and independent variables on model 2.

Table 1

The summary statistics of simulation studies with model 1 based on smoothing spline (SS), penalized spline (PS), and B-spline (BS)

Sample sizesMethodsMeanS.D.LCIUCIt-statisticp-values
n= 50SS-0.33446.5444-0.90950.2405-1.14280.2537
PS-0.34846.7454-0.94110.2442-1.15520.2468
BS0.36666.6935-0.22140.95481.22490.2212
n= 100SS0.07194.2680-0.30310.44690.37670.7065
PS0.08374.2029-0.28550.45300.44540.6562
BS-0.08954.2152-0.45990.2807-0.47510.6349
n= 200SS-0.09542.8932-0.35040.1595-0.73530.4625
PS-0.09212.9123-0.34800.1637-0.70720.4798
BS0.01493.2685-0.22990.25980.12000.9045
n= 300SS-0.15744.2673-0.53470.2197-0.82010.4125
PS-0.14414.1982-0.51300.2247-0.76760.4431
BS0.14751.8514-0.27860.57380.68020.4966

Table 2

The summary statistics of simulation studies with model 2 based on smoothing spline (SS), penalized spline (PS), and B-spline (BS)

Sample sizesMethodsMeanS.D.LCIUCIt-statisticp-values
n= 50SS-0.003724.2710-2.13632.1288-0.00340.9972
PS-0.258223.8736-2.35591.9893-0.24190.8089
BS-0.323027.1906-2.71212.0660-0.26560.7906
n= 100SS-0.396615.8261-1.78710.9939-0.56030.5755
PS-0.248916.4557-1.69471.1969-0.33820.7353
BS0.546116.2381-0.88061.97290.75200.4524
n= 200SS-0.37048.1031-1.08380.3430-1.02010.3082
PS-0.34477.8716-1.03630.3468-0.97920.3279
BS0.40358.5116-0.34431.15141.06020.2896
n= 300SS0.04117.3081-0.60550.68780.12500.9005
PS0.04087.0664-0.58000.66170.12910.8973
BS0.03447.2205-0.59990.66880.10660.9151

4.Simulation study

The nonlinear data of this study is simulated in two models for estimating the performance of smoothing techniques based on independent variables which are considered in the class of uniform distribution. These models in the process of construction a curve on mathematical function, that show the best fit to a series of data points. Figures 1 and 2 show the scatter plot of xt and yt on models 1 and 2 with 50, 100, 200, 300 sample sizes.

Model 1

S(xt)=(xt3)-cos(xt)-exp{xt1+|xt|},
xt𝑈𝑛𝑖𝑓𝑜𝑟𝑚(-2,2),t=1,2,3,,n
yt=S(xt)+εt,εt𝑁𝑜𝑟𝑚𝑎𝑙(0,1),
t=1,2,3,,n

Model 2

S(xt)=sin(xt)-exp{xt1+|xt|}-xt3,
xt𝑈𝑛𝑖𝑓𝑜𝑟𝑚(-2,2),t=1,2,3,,n
yt=S(xt)+εt,εt𝑁𝑜𝑟𝑚𝑎𝑙(0,1),
t=1,2,3,,n

The next step, the estimates of S(xt) or called S^(xt) are approximated from smoothing spline (SS), penalized spline (PS), and B-spline (BS) that used to compute the bias and MSE of S(xt) following

S𝑏𝑖𝑎𝑠=t=1n(S^(xt)-S(xt)S(xt)),
𝑀𝑆𝐸=t=1n[S^(xt)-S(xt)]2n.

The data are generated and repeated for fitting the model 500 times. A t-statistic is adopted to test that the mean of bias is equal the zero or called unbiased estimator. Tables 1 and 2 present the various summary statistics for the smoothing estimator obtained from three methods. The third and the fourth columns of these tables represent the sample mean and standard deviation of biases. The sample mean for the lower and upper bounds of the 95% confidence interval are given in the next two columns. The last two columns of these tables list the t-statistic, and p-values for hypothesis testing (H0:μS𝑏𝑖𝑎𝑠=0 versus H0:μS𝑏𝑖𝑎𝑠0) that means when reject H0:μS𝑏𝑖𝑎𝑠=0 the estimator SS, PS, and BS with bias. The histogram of the bias estimator of SS, PS, and BS in model 1 are presented in Figs 35, and model 2 are presented in Figs 68.

Figure 3.

Histogram of bias for fitting data of smoothing spline method with model 1.

Histogram of bias for fitting data of smoothing spline method with model 1.

Figure 4.

Histogram of bias for fitting data of penalized spline method with model 1.

Histogram of bias for fitting data of penalized spline method with model 1.

Figure 5.

Histogram of bias for fitting data of B-spline method with model 1.

Histogram of bias for fitting data of B-spline method with model 1.

Figure 6.

Histogram of bias for fitting data of smoothing spline method with model 2.

Histogram of bias for fitting data of smoothing spline method with model 2.

Figure 7.

Histogram of bias for fitting data of penalized spline method with model 2.

Histogram of bias for fitting data of penalized spline method with model 2.

Figure 8.

Histogram of bias for fitting data of B-spline method with model 2.

Histogram of bias for fitting data of B-spline method with model 2.

From Tables 1 and 2, by observing the p-values, the SS, PS, and BS provide asymptotically unbiased estimates for estimating parameter of S(xt) nearly for all sample sizes of two models. From the p-values for the two tables it is seen that are seen that the SS, PS, and BS of smoothing method have a good performance to fit data in a class of nonlinear data. From the histogram it is apparent that a standard deviation of relative biases increase with increasing sample sizes, so it makes the leptokurtic distribution. The average of MSE can answer the final question which smoothing method is the best estimator. Table 3 shows the average MSE for fitting 500 times on two models, and it can be seen that the PS method shows the minimum of average MSE for all sample sizes and models.

Table 3

The average MSE of simulation studies with 3 models based on smoothing spline (SS), penalized spline (PS), and B-spline (BS)

Sample sizesMethodsModel 1Model2
n= 50SS0.82250.8348
PS 0.7712 0.7846
BS0.91740.9364
n= 100SS0.90870.9029
PS 0.8810 0.8719
BS0.96320.9508
n= 200SS0.95280.9521
PS 0.9387 0.9439
BS0.97840.9840
n= 300SS0.96660.9648
PS 0.9640 0.9615
BS0.98990.9877

Figure 9.

The plot of LIDAR data frame and model fitting of SS, PS, and BS methods.

The plot of LIDAR data frame and model fitting of SS, PS, and BS methods.

5.Application of real data

In this section, we consider the application of smoothing method based on SS, PS, and BS methods that we developed in the previous section. As the real data, we use the data frame which consists of 221 observations from a light detection and ranging (LIDAR) experiment. This data frame contains the range distance travelled before the light is reflected back to its source and logarithm of the ratio of received light from two laser sources as shown in the plot in Fig. 9.

After fitting the model, the estimating values play on a plot of light detection of ranging. It can be seen that the SS and PS interpolate in mass data more than the BS method that followed the MSE values such as SS = 0.006016, PS = 0.006010, and BS = 0.009288. The minimum of MSE is the PS which is closed the SS as the result on Table 3.

6.Conclusion

In this section, we used the smoothing techniques of SS, PS, and BS methods based on nonparametric regression models. Through a Monte Carlo simulation study, we evaluated the smoothing estimator of SS, PS, and BS methods. For hypothesis testing based on the p-value, the fitting values supported the null value, and showed that the smoothing estimators work reasonably well for all methods, but the PS shows the minimum of average MSE.

Acknowledgments

This work was supported by Faculty of Science Fund, King Mongkut’s Institute of Technology Ladkrabang, Bangkok, Thailand.

References

[1] 

Wahba G. Spline Models for Observational Data, SIAM: Philadelphia; (1990) .

[2] 

Green PJ, Silverman BW. Nonparametric Regression and Generalized Linear Models: A Roughness Penalty Approach, Chapman and Hall: London; (1994) .

[3] 

Ruppert D, Wand MP, Carroll RJ. Semiparametric Regression, Cambridge University Press: New Your; (2003) .

[4] 

Eilers PHC, Marx BD. Flexible Smoothing with B-splies and Penalties, Statistical Science 11: (2) ((1996) ), 89–102.

[5] 

Wahba G. A survey of some smoothing problems and the method of generalized cross-validation for solving them, In Proceeding of the Conference on the Application of Statistic, (1976) , pp. 507–523.

[6] 

Craven P, Wahba G. Smoothing noisy data with spline functions: estimating the correct degree of smoothing by the method of generalized cross-validation, Numerische Mathematik 31: ((1979) ), 377–403.

[7] 

Eubank RL. Spline Smoothing and Nonparametric Regression, Marcel Dekker: New York; (1988) .

[8] 

Eubank RL. Nonparametric Regression and Spline Smoothing, Marcel Dekker: New York; (1999) .

[9] 

Ruppert D, Carroll RJ. Spatial-adaptive penalties for spline fitting Australian and New Zealand Journal of Statistics 42: ((2000) ), 205–224.

[10] 

De Boor C. A Practical Guide to Splines, Springer: Berlin; (1978) .