Generalized functional linear model explained

The generalized functional linear model (GFLM) is an extension of the generalized linear model (GLM) that allows one to regress univariate responses of various types (continuous or discrete) on functional predictors, which are mostly random trajectories generated by a square-integrable stochastic processes. Similarly to GLM, a link function relates the expected value of the response variable to a linear predictor, which in case of GFLM is obtained by forming the scalar product of the random predictor function

X

with a smooth parameter function

\beta

. Functional Linear Regression, Functional Poisson Regression and Functional Binomial Regression, with the important Functional Logistic Regression included, are special cases of GFLM. Applications of GFLM include classification and discrimination of stochastic processes and functional data.[1]

Overview

A key aspect of GFLM is estimation and inference for the smooth parameter function

\beta

which is usually obtained by dimension reduction of the infinite dimensional functional predictor. A common method is to expand the predictor function

X

in an orthonormal basis of L2 space, the Hilbert space of square integrable functions with the simultaneous expansion of the parameter function in the same basis. This representation is then combined with a truncation step to reduce the contribution of the parameter function

\beta

in the linear predictor to a finite number of regression coefficients. Functional principal component analysis (FPCA) that employs the Karhunen–Loève expansion is a common and parsimonious approach to accomplish this. Other orthogonal expansions, like Fourier expansions and B-spline expansions may also be employed for the dimension reduction step. The Akaike information criterion (AIC) can be used for selecting the number of included components. Minimization of cross-validation prediction errors is another criterion often used in classification applications. Once the dimension of the predictor process has been reduced, the simplified linear predictor allows to use GLM and quasi-likelihood estimation techniques to obtain estimates of the finite dimensional regression coefficients which in turn provide an estimate of the parameter function

\beta

in the GFLM.

Model components

Linear predictor

The predictor functions

styleX(t),t\inT

, typically are square integrable stochastic processes on a real interval

T

and the unknown smooth parameter function

\beta(t),t\inT

, is assumed to be square integrable on

T

. Given a real measure

dw

on

T

, the linear predictor is given by

η=\alpha+\intXc(t)\beta(t)dw(t)

where

Xc(t)=X(t)-E(X(t))

is the centered predictor process and

\alpha

is a scalar that serves as an intercept.

Response variable and variance function

The outcome

Y

is typically a real valued random variable which may be either continuous or discrete. Often the conditional distribution of

Y

given the predictor process is specified within the exponential family. However it is also sufficient to consider the functional quasi-likelihood set up, where instead of the distribution of the response one specifies the conditional variance function,

\rm{Var}(Y\midX)=\sigma2(\mu)

, as a function of the conditional mean,

\rm{E}(Y\midX)=\mu

.

Link function

The link function

g

is a smooth invertible function, that relates the conditional mean of the response

\rm{E}(Y\midX)=\mu

with the linear predictor

η=\alpha+\intXc(t)\beta(t)dw(t)

. The relationship is given by

\mu=g(η)

.

Formulation

In order to implement the necessary dimension reduction, the centered predictor process

Xc(t)

and the parameter function

\beta(t)

are expanded as,

Xc(t)=

infty
\sum
j=1

\xij\rhoj(t)and\beta(t)=

infty
\sum
j=1

\betaj\rhoj(t),

where

\rhoj,j=1,2,\ldots

is an orthonormal basis of the function space

L2(dw),

such that

\intT\rhoj(t)\rhok(t)dw(t)=\deltajk

where

\deltajk=1

if

j=k

and

0

otherwise.

The random variables

\xij

are given by

\xij=\intXc(t)\rhoj(t)dw(t)

and the coefficients

\betaj

as

\betaj=\int\beta(t)\rhoj(t)dw(t)

for

j=1,2,\ldots

.

E(\xij)=0

and
infty
\sum
j=1
2
\beta
j

<infty

and denoting
2=
\sigma
j

Var(\xij)=

2)
E(\xi
j
, so
infty
\sum
j=1
2
\sigma
j

=\intE(Xc(t))2dw(t)<infty

.

From the orthonormality of the basis functions

\rhoj

, it follows immediately that

\intXc(t)\beta(t)dw(t)=

infty
\sum
j=1

\betaj\xij

.

The key step is then approximating

η=\alpha+\intXc(t)\beta(t)dw(t)=\alpha+

infty
\sum
j=1

\betaj\xij

by

η\alpha

p
+\sum
j=1

\betaj\xij

for a suitably chosen truncation point

p

.

FPCA gives the most parsimonious approximation of the linear predictor for a given number of basis functions as the eigenfunction basis explains more of the variation than any other set of basis functions.

For a differentiable link function with bounded first derivative, the approximation error of the

p

-truncated model i.e. the linear predictor truncated to the summation of the first

p

components, is a constant multiple of
infty
Var(\sum
j=p+1

\betaj\xij)=

infty
E\left(\left(\sum
j=p+1

\betaj

2\right)=
\xi
j\right)
infty
\sum
j=p+1

\betaj\sigma

2
j
.

A heuristic motivation for the truncation strategy derives from the fact that

infty
E\left(\left(\sum
j=p+1

\betaj

2\right)
\xi
j\right)

=

infty
\sum
j=p+1

\betaj\sigma

2
j

\leq

infty
\sum
j=p+1
2
\beta
j
infty
\sum
j=p+1
2
\sigma
j
which is a consequence of the Cauchy–Schwarz inequality and by noting that the right hand side of the last inequality converges to 0 as

pinfty

since both
2
\sum
j
and
2
\sum
j
are finite.

For the special case of the eigenfunction basis, the sequence

2,
\sigma
j

j=1,2,\ldots

corresponds to the sequence of the eigenvalues of the covariance kernel

G(s,t)=Cov(X(s),X(t)),s,t\inT

.

For data with

n

i.i.d observations, setting
0
\xi
j

=1

,

\beta0=\alpha

and
i
\xi
j

=\intXi(t)\rhoj(t)dw(t)

, the approximated linear predictors can be represented as

ηi=

p
\sum
j=0

\betaj

i,
\xi
j

i=1,2,\ldots,n

which are related to the means through

\mui=g(ηi)

.

Estimation

The main aim is to estimate the parameter function

\beta

.

Once

p

has been fixed, standard GLM and quasi-likelihood methods can be used for the

p

-truncated model to estimate

\boldsymbol

T=(\beta
\beta
0,

\beta1,\ldots,\betap)

by solving the estimating equation or the score equation

U(\beta)=0.

The vector valued score function turns out to be

U(\beta)=

n
\sum
i=1

(Yi-\mui)g'(ηi)\xii/

2(\mu
\sigma
i)
which depends on

\boldsymbol\beta

through

\mu

and

η

.

Just as in GLM, the equation

U(\beta)=0

is solved using iterative methods like Newton–Raphson (NR) or Fisher scoring (FS) or iteratively reweighted least squares (IWLS) to get the estimate of the regression coefficients

\boldsymbol\hat{\beta}

, leading to the estimate of the parameter function

\hat{\beta}(t)=\hat{\beta}o+

p
\sum
j=1

\hat{\beta}j\rhoj(t)

. When using the canonical link function, these methods are equivalent.

Results are available in the literature of

p

-truncated models as

pinfty

which provide asymptotic inference for the deviation of the estimated parametric function from the true parametric function and also asymptotic tests for regression effects and asymptotic confidence regions.

Exponential family response

If the response variable

Yi

, given

Xi\inL2(T)

follows the one parameter exponential family, then its probability density function or probability mass function (as the case may be) is

f(yi\midXi)=\exp\left(

yi\thetai-b(\thetai)
\phi

+c(yi,\phi)\right)

for some functions

b

and

c

, where

\thetai

is the canonical parameter, and

\phi

is a dispersion parameter which is typically assumed to be positive.

In the canonical set up,

ηi=\alpha+\int

c(t)
X
i

\beta(t)dw(t)=\thetai

and from the properties of exponential family,

\mui=b'(\thetai),andso\mui=b'(ηi).

Hence

b'

serves as a link function and is called the canonical link function.

Var(yi)=\phib''(\thetai)=\phib''(ηi)=\phig'(ηi)=\phig'(g-1(\mui)))

is the corresponding variance function and

\phi

the dispersion parameter.

Special cases

Functional linear regression (FLR)

Functional linear regression, one of the most useful tools of functional data analysis, is an example of GFLM where the response variable is continuous and is often assumed to have a Normal distribution. The variance function is a constant function and the link function is identity. Under these assumptions the GFLM reduces to the FLR,

\mu=\operatorname{E}(Y\midX)=η=\alpha+\intXc(t)\beta(t)dw(t)

Without the normality assumption, the constant variance function motivates the use of quasi-normal techniques.

Functional binary regression

When the response variable has binary outcomes, i.e., 0 or 1, the distribution is usually chosen as Bernoulli, and then

\mui=P(Yi=1\midXi)

. Popular link functions are the expit function, which is the inverse of the logit function (functional logistic regression) and the probit function (functional probit regression). Any cumulative distribution function F has range [0,1] which is the range of binomial mean and so can be chosen as a link function. Another link function in this context is the complementary log–log function, which is an asymmetric link. The variance function for binary data is given by

\operatorname{Var}(Yi)=\phi\mui(1-\mui)

where the dispersion parameter

\phi

is taken as 1 or alternatively the quasi-likelihood approach is used.

Functional Poisson regression

Another special case of GFLM occurs when the outcomes are counts, so that the distribution of the responses is assumed to be Poisson. The mean

\mui

is typically linked to the linear predictor

ηi

via a log-link, which is also the canonical link . The variance function is

\operatorname{Var}(Yi)=\phi\mui

, where the dispersion parameter

\phi

is 1, except when the data might be over-dispersed which is when the quasi-Poisson approach is used.

Extensions

Extensions of GFLM have been proposed for the cases where there are multiple predictor functions.[2] Another generalization is called the Semi Parametric Quasi-likelihood Regression (SPQR)[1] which considers the situation where the link and the variance functions are unknown and are estimated non-parametrically from the data. This situation can also be handled by single or multiple index models, using for example Sliced Inverse Regression (SIR).

Another extension in this domain is Functional Generalized Additive Model (FGAM))[3] which is a generalization of generalized additive model(GAM) where

g-1(\operatorname{E}(Y\midX))=\alpha+

p
\sum
j=1

fj(\xij),

where

\xij

are the expansion coefficients of the random predictor function

X

and each

fj

is an unknown smooth function that has to be estimated and where

E(fj(\xij))=0.

.

In general, estimation in FGAM requires combining IWLS with backfitting. However, if the expansion coefficients are obtained as functional principal components, then in some cases (e.g. Gaussian predictor function

X

), they will be independent in which case backfitting is not needed, and one can use popular smoothing methods for estimating the unknown parameter functions

fj

.

Application

A popular data set that has been used for a number of analysis in the domain of functional data analysis consists of the number of eggs laid daily until death of 1000 Mediterranean fruit flies (or medflies for short)http://anson.ucdavis.edu/~mueller/data/medfly1000.htmlhttp://anson.ucdavis.edu/~mueller/data/medfly1000.txt. The plot here shows the egg laying trajectories in the first 25 days of life of about 600 female medflies (those that have at least 20 remaining eggs in their lifetime). The red colored curves belong to those flies that will lay less than the median number of remaining eggs, while the blue colored curves belong to the flies that will lay more than the median number of remaining eggs after age 25. An related problem of classifying medflies as long-lived or short-lived based on the initial egg laying trajectories as predictors and the subsequent longevity of the flies as response has been studied with the GFLM[1]

See also

Notes and References

  1. Muller and Stadtmuller. Generalized Functional Linear Models. The Annals of Statistics. 2005. 33. 2. 774–805. 10.1214/009053604000001156. math/0505638.
  2. James. Generalized linear models with functional predictors. Journal of the Royal Statistical Society, Series B. 2002. 64. 3. 411–432. 10.1111/1467-9868.00342. 10.1.1.165.1333.
  3. Muller and Yao. Functional Additive Models. Journal of the American Statistical Association. 2008. 103. 484. 1534–1544. 10.1198/016214508000000751.