analysis of variance for functional data

408
E=mc 2 1 A Uploaded By $am$exy98 theBooks This eBook is downloaded from www.PlentyofeBooks.net PlentyofeBooks.net is a blog with an aim of helping people, especially students, who cannot afford to buy some costly books from the market. For more Free eBooks and educational material visit www.PlentyofeBooks.net

Upload: nandini

Post on 11-Nov-2015

9 views

Category:

Documents


3 download

DESCRIPTION

ANOVA of functional data

TRANSCRIPT

  • E=mc 2

    1

    A

    Uploaded By

    $am$exy98 theBooks

    This eBook is downloaded from

    www.PlentyofeBooks.net

    PlentyofeBooks.net is a blog with an aim of helping people, especially students, who cannot afford to buy some costly

    books from the market.

    For more Free eBooks and educational material visit

    www.PlentyofeBooks.net

  • Despite research interest in functional data analysis in the last three decades, few books are available on the subject. Filling this gap, Analysis of Variance for Functional Data presents up-to-date hypothesis testing methods for functional data analysis. The book covers the reconstruction of functional observations, functional ANOVA, functional linear models with functional responses, ill-conditioned functional linear models, diagnostics of functional observations, heteroscedastic ANOVA for functional data, and testing equality of covariance functions. Although the methodologies presented are designed for curve data, they can be extended to surface data.

    Useful for statistical researchers and practitioners analyzing functional data, this self-contained book gives both a theoretical and applied treatment of functional data analysis supported by easy-to-use MATLAB code. The author provides a number of simple methods for functional hypothesis testing. He discusses pointwise, L2-norm-based, F-type, and bootstrap tests.

    Assuming only basic knowledge of statistics, calculus, and matrix algebra, the book explains the key ideas at a relatively low technical level using real data examples. Each chapter also includes bibliographical notes and exercises. Real functional data sets from the text and MATLAB codes for analyzing the data examples are available for download from the authors website.

    K12912

    Analysis of Variance for Functional D

    ata

    Analysis of Variance for Functional Data

    Jin-Ting Zhang

    Zhang

    Monographs on Statistics and Applied Probability 127127Statistics

    K12912_Cover.indd 1 5/9/13 1:45 PM

  • Analysis of Variance for Functional Data

  • MONOGRAPHS ON STATISTICS AND APPLIED PROBABILITY

    General Editors

    F. Bunea, V. Isham, N. Keiding, T. Louis, R. L. Smith, and H. Tong

    1. Stochastic Population Models in Ecology and Epidemiology M.S. Barlett (1960)2. Queues D.R. Cox and W.L. Smith (1961)3. Monte Carlo Methods J.M. Hammersley and D.C. Handscomb (1964)4. The Statistical Analysis of Series of Events D.R. Cox and P.A.W. Lewis (1966)5. Population Genetics W.J. Ewens (1969)6. Probability, Statistics and Time M.S. Barlett (1975)7. Statistical Inference S.D. Silvey (1975)8. The Analysis of Contingency Tables B.S. Everitt (1977)9. Multivariate Analysis in Behavioural Research A.E. Maxwell (1977)10. Stochastic Abundance Models S. Engen (1978)11. Some Basic Theory for Statistical Inference E.J.G. Pitman (1979)12. Point Processes D.R. Cox and V. Isham (1980)13. ,GHQWLFDWLRQRI2XWOLHUVD.M. Hawkins (1980)14. Optimal Design S.D. Silvey (1980)15. Finite Mixture Distributions B.S. Everitt and D.J. Hand (1981)16. &ODVVLFDWLRQA.D. Gordon (1981)17. Distribution-Free Statistical Methods, 2nd edition J.S. Maritz (1995)18. 5HVLGXDOVDQG,QXHQFHLQ5HJUHVVLRQR.D. Cook and S. Weisberg (1982)19. Applications of Queueing Theory, 2nd edition G.F. Newell (1982)20. Risk Theory, 3rd edition R.E. Beard, T. Pentikinen and E. Pesonen (1984)21. Analysis of Survival Data D.R. Cox and D. Oakes (1984)22. An Introduction to Latent Variable Models B.S. Everitt (1984)23. Bandit Problems D.A. Berry and B. Fristedt (1985)24. Stochastic Modelling and Control M.H.A. Davis and R. Vinter (1985)25. The Statistical Analysis of Composition Data J. Aitchison (1986)26. Density Estimation for Statistics and Data Analysis B.W. Silverman (1986)27. Regression Analysis with Applications G.B. Wetherill (1986)28. Sequential Methods in Statistics, 3rd edition G.B. Wetherill and K.D. Glazebrook (1986)29. Tensor Methods in Statistics P. McCullagh (1987)30. Transformation and Weighting in Regression R.J. Carroll and D. Ruppert (1988)31. Asymptotic Techniques for Use in Statistics O.E. Bandorff-Nielsen and D.R. Cox (1989)32. Analysis of Binary Data, 2nd edition D.R. Cox and E.J. Snell (1989)33. Analysis of Infectious Disease Data N.G. Becker (1989)34. Design and Analysis of Cross-Over Trials B. Jones and M.G. Kenward (1989)35. Empirical Bayes Methods, 2nd edition J.S. Maritz and T. Lwin (1989)36. Symmetric Multivariate and Related Distributions K.T. Fang, S. Kotz and K.W. Ng (1990)37. Generalized Linear Models, 2nd edition P. McCullagh and J.A. Nelder (1989)38. Cyclic and Computer Generated Designs, 2nd edition J.A. John and E.R. Williams (1995)39. Analog Estimation Methods in Econometrics C.F. Manski (1988)40. Subset Selection in Regression A.J. Miller (1990)41. Analysis of Repeated Measures M.J. Crowder and D.J. Hand (1990)42. Statistical Reasoning with Imprecise Probabilities P. Walley (1991)43. Generalized Additive Models T.J. Hastie and R.J. Tibshirani (1990)44. Inspection Errors for Attributes in Quality Control N.L. Johnson, S. Kotz and X. Wu (1991)45. The Analysis of Contingency Tables, 2nd edition B.S. Everitt (1992)

  • 46. The Analysis of Quantal Response Data B.J.T. Morgan (1992)47. Longitudinal Data with Serial CorrelationA State-Space Approach R.H. Jones (1993)48. Differential Geometry and Statistics M.K. Murray and J.W. Rice (1993)49. Markov Models and Optimization M.H.A. Davis (1993)50. Networks and ChaosStatistical and Probabilistic Aspects

    O.E. Barndorff-Nielsen, J.L. Jensen and W.S. Kendall (1993)51. Number-Theoretic Methods in Statistics K.-T. Fang and Y. Wang (1994)52. Inference and Asymptotics O.E. Barndorff-Nielsen and D.R. Cox (1994)53. Practical Risk Theory for Actuaries C.D. Daykin, T. Pentikinen and M. Pesonen (1994)54. Biplots J.C. Gower and D.J. Hand (1996)55. Predictive InferenceAn Introduction S. Geisser (1993)56. Model-Free Curve Estimation M.E. Tarter and M.D. Lock (1993)57. An Introduction to the Bootstrap B. Efron and R.J. Tibshirani (1993)58. Nonparametric Regression and Generalized Linear Models P.J. Green and B.W. Silverman (1994)59. Multidimensional Scaling T.F. Cox and M.A.A. Cox (1994)60. Kernel Smoothing M.P. Wand and M.C. Jones (1995)61. Statistics for Long Memory Processes J. Beran (1995)62. Nonlinear Models for Repeated Measurement Data M. Davidian and D.M. Giltinan (1995)63. Measurement Error in Nonlinear Models R.J. Carroll, D. Rupert and L.A. Stefanski (1995)64. Analyzing and Modeling Rank Data J.J. Marden (1995)65. Time Series ModelsIn Econometrics, Finance and Other Fields

    D.R. Cox, D.V. Hinkley and O.E. Barndorff-Nielsen (1996)66. Local Polynomial Modeling and its Applications J. Fan and I. Gijbels (1996)67. Multivariate DependenciesModels, Analysis and Interpretation D.R. Cox and N. Wermuth (1996)68. Statistical InferenceBased on the Likelihood A. Azzalini (1996)69. Bayes and Empirical Bayes Methods for Data Analysis B.P. Carlin and T.A Louis (1996)70. Hidden Markov and Other Models for Discrete-Valued Time Series I.L. MacDonald and W. Zucchini (1997)71. Statistical EvidenceA Likelihood Paradigm R. Royall (1997)72. Analysis of Incomplete Multivariate Data J.L. Schafer (1997)73. Multivariate Models and Dependence Concepts H. Joe (1997)74. Theory of Sample Surveys M.E. Thompson (1997)75. Retrial Queues G. Falin and J.G.C. Templeton (1997)76. Theory of Dispersion Models B. Jrgensen (1997)77. Mixed Poisson Processes J. Grandell (1997)78. Variance Components EstimationMixed Models, Methodologies and Applications P.S.R.S. Rao (1997)79. Bayesian Methods for Finite Population Sampling G. Meeden and M. Ghosh (1997)80. Stochastic GeometryLikelihood and computation

    O.E. Barndorff-Nielsen, W.S. Kendall and M.N.M. van Lieshout (1998)81. Computer-Assisted Analysis of Mixtures and ApplicationsMeta-Analysis, Disease Mapping and Others

    D. Bhning (1999)82. &ODVVLFDWLRQQGHGLWLRQA.D. Gordon (1999)83. Semimartingales and their Statistical Inference B.L.S. Prakasa Rao (1999)84. Statistical Aspects of BSE and vCJDModels for Epidemics C.A. Donnelly and N.M. Ferguson (1999)85. Set-Indexed Martingales G. Ivanoff and E. Merzbach (2000)86. The Theory of the Design of Experiments D.R. Cox and N. Reid (2000)87. Complex Stochastic Systems O.E. Barndorff-Nielsen, D.R. Cox and C. Klppelberg (2001)88. Multidimensional Scaling, 2nd edition T.F. Cox and M.A.A. Cox (2001)89. Algebraic StatisticsComputational Commutative Algebra in Statistics

    G. Pistone, E. Riccomagno and H.P. Wynn (2001)90. Analysis of Time Series StructureSSA and Related Techniques

    N. Golyandina, V. Nekrutkin and A.A. Zhigljavsky (2001)91. Subjective Probability Models for Lifetimes Fabio Spizzichino (2001)92. Empirical Likelihood Art B. Owen (2001)

  • 93. Statistics in the 21st Century Adrian E. Raftery, Martin A. Tanner, and Martin T. Wells (2001)94. Accelerated Life Models: Modeling and Statistical Analysis

    Vilijandas Bagdonavicius and Mikhail Nikulin (2001)95. Subset Selection in Regression, Second Edition Alan Miller (2002)96. Topics in Modelling of Clustered Data Marc Aerts, Helena Geys, Geert Molenberghs, and Louise M. Ryan (2002)97. Components of Variance D.R. Cox and P.J. Solomon (2002)98. Design and Analysis of Cross-Over Trials, 2nd Edition Byron Jones and Michael G. Kenward (2003)99. Extreme Values in Finance, Telecommunications, and the Environment

    Brbel Finkenstdt and Holger Rootzn (2003)100. Statistical Inference and Simulation for Spatial Point Processes

    Jesper Mller and Rasmus Plenge Waagepetersen (2004)101. Hierarchical Modeling and Analysis for Spatial Data

    Sudipto Banerjee, Bradley P. Carlin, and Alan E. Gelfand (2004)102. Diagnostic Checks in Time Series Wai Keung Li (2004)103. Stereology for Statisticians Adrian Baddeley and Eva B. Vedel Jensen (2004)104. Gaussian Markov Random Fields: Theory and Applications +DYDUG5XHDQG/HRQKDUG+HOG(2005)105. Measurement Error in Nonlinear Models: A Modern Perspective, Second Edition

    Raymond J. Carroll, David Ruppert, Leonard A. Stefanski, and Ciprian M. Crainiceanu (2006)106. *HQHUDOL]HG/LQHDU0RGHOVZLWK5DQGRP(IIHFWV8QLHG$QDO\VLVYLD+OLNHOLKRRG

    Youngjo Lee, John A. Nelder, and Yudi Pawitan (2006)107. Statistical Methods for Spatio-Temporal Systems

    Brbel Finkenstdt, Leonhard Held, and Valerie Isham (2007)108. Nonlinear Time Series: Semiparametric and Nonparametric Methods Jiti Gao (2007)109. Missing Data in Longitudinal Studies: Strategies for Bayesian Modeling and Sensitivity Analysis

    Michael J. Daniels and Joseph W. Hogan (2008)110. Hidden Markov Models for Time Series: An Introduction Using R

    Walter Zucchini and Iain L. MacDonald (2009)111. ROC Curves for Continuous Data Wojtek J. Krzanowski and David J. Hand (2009)112. Antedependence Models for Longitudinal Data Dale L. Zimmerman and Vicente A. Nez-Antn (2009)113. Mixed Effects Models for Complex Data Lang Wu (2010)114. Intoduction to Time Series Modeling Genshiro Kitagawa (2010)115. Expansions and Asymptotics for Statistics Christopher G. Small (2010)116. Statistical Inference: An Integrated Bayesian/Likelihood Approach Murray Aitkin (2010)117. Circular and Linear Regression: Fitting Circles and Lines by Least Squares Nikolai Chernov (2010)118. Simultaneous Inference in Regression Wei Liu (2010)119. Robust Nonparametric Statistical Methods, Second Edition

    Thomas P. Hettmansperger and Joseph W. McKean (2011)120. Statistical Inference: The Minimum Distance Approach

    Ayanendranath Basu, Hiroyuki Shioya, and Chanseok Park (2011)121. Smoothing Splines: Methods and Applications Yuedong Wang (2011)122. Extreme Value Methods with Applications to Finance Serguei Y. Novak (2012)123. Dynamic Prediction in Clinical Survival Analysis Hans C. van Houwelingen and Hein Putter (2012)124. Statistical Methods for Stochastic Differential Equations

    Mathieu Kessler, Alexander Lindner, and Michael Srensen (2012)125. Maximum Likelihood Estimation for Sample Surveys

    R. L. Chambers, D. G. Steel, Suojin Wang, and A. H. Welsh (2012)126. Mean Field Simulation for Monte Carlo Integration Pierre Del Moral (2013)127. Analysis of Variance for Functional Data Jin-Ting Zhang (2013)

  • Monographs on Statistics and Applied Probability 127

    Analysis of Variance for Functional Data

    Jin-Ting Zhang

  • MATLAB is a trademark of The MathWorks, Inc. and is used with permission. The MathWorks does not warrant the accuracy of the text or exercises in this book. This books use or discussion of MAT-LAB software or related products does not constitute endorsement or sponsorship by The MathWorks of a particular pedagogical approach or particular use of the MATLAB software.

    CRC PressTaylor & Francis Group6000 Broken Sound Parkway NW, Suite 300Boca Raton, FL 33487-2742

    2014 by Taylor & Francis Group, LLCCRC Press is an imprint of Taylor & Francis Group, an Informa business

    No claim to original U.S. Government worksVersion Date: 20130516

    International Standard Book Number-13: 978-1-4398-6274-2 (eBook - PDF)

    This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint.

    Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information stor-age or retrieval system, without written permission from the publishers.

    For permission to photocopy or use material electronically from this work, please access www.copy-right.com (http://www.copyright.com/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. CCC is a not-for-profit organization that pro-vides licenses and registration for a variety of users. For organizations that have been granted a pho-tocopy license by the CCC, a separate system of payment has been arranged.

    Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identification and explanation without intent to infringe.Visit the Taylor & Francis Web site athttp://www.taylorandfrancis.comand the CRC Press Web site athttp://www.crcpress.com

  • To my Parents and TeachersTo Tian-Hui, Tian-Yu, and Yan

  • This page intentionally left blankThis page intentionally left blank

  • Contents

    List of Figures xv

    List of Tables xix

    Preface xxi

    1 Introduction 11.1 Functional Data 11.2 Motivating Functional Data 1

    1.2.1 Progesterone Data 21.2.2 Berkeley Growth Curve Data 31.2.3 Nitrogen Oxide Emission Level Data 61.2.4 Canadian Temperature Data 61.2.5 Audible Noise Data 91.2.6 Left-Cingulum Data 111.2.7 Orthosis Data 111.2.8 Ergonomics Data 13

    1.3 Why Is Functional Data Analysis Needed? 161.4 Overview of the Book 171.5 Implementation of Methodologies 171.6 Options for Reading This Book 181.7 Bibliographical Notes 18

    2 Nonparametric Smoothers for a Single Curve 192.1 Introduction 192.2 Local Polynomial Kernel Smoothing 20

    2.2.1 Construction of an LPK Smoother 202.2.2 Two Special LPK Smoothers 222.2.3 Selecting a Good Bandwidth 242.2.4 Robust LPK Smoothing 26

    2.3 Regression Splines 282.3.1 Truncated Power Basis 292.3.2 Regression Spline Smoother 302.3.3 Knot Locating and Knot Number Selection 302.3.4 Robust Regression Splines 34

    2.4 Smoothing Splines 35

    ix

  • x CONTENTS

    2.4.1 Smoothing Spline Smoothers 352.4.2 Cubic Smoothing Splines 362.4.3 Smoothing Parameter Selection 37

    2.5 P-Splines 402.5.1 P-Spline Smoothers 402.5.2 Smoothing Parameter Selection 41

    2.6 Concluding Remarks and Bibliographical Notes 44

    3 Reconstruction of Functional Data 473.1 Introduction 473.2 Reconstruction Methods 49

    3.2.1 Individual Function Estimators 493.2.2 Smoothing Parameter Selection 503.2.3 LPK Reconstruction 503.2.4 Regression Spline Reconstruction 543.2.5 Smoothing Spline Reconstruction 573.2.6 P-Spline Reconstruction 59

    3.3 Accuracy of LPK Reconstructions 613.3.1 Mean and Covariance Function Estimation 633.3.2 Noise Variance Function Estimation 653.3.3 Eect of LPK Smoothing 663.3.4 A Simulation Study 66

    3.4 Accuracy of LPK Reconstruction in FLMs 683.4.1 Coecient Function Estimation 693.4.2 Signicance Tests of Covariate Eects 703.4.3 A Real Data Example 72

    3.5 Technical Proofs 743.6 Concluding Remarks and Bibliographical Notes 803.7 Exercises 81

    4 Stochastic Processes 834.1 Introduction 834.2 Stochastic Processes 83

    4.2.1 Gaussian Processes 854.2.2 Wishart Processes 864.2.3 Linear Forms of Stochastic Processes 884.2.4 Quadratic Forms of Stochastic Processes 884.2.5 Central Limit Theorems for Stochastic Processes 91

    4.3 2-Type Mixtures 924.3.1 Cumulants 934.3.2 Distribution Approximation 94

    4.4 F -Type Mixtures 1004.4.1 Distribution Approximation 101

    4.5 One-Sample Problem for Functional Data 1074.5.1 Pointwise Tests 109

  • CONTENTS xi

    4.5.2 L2-Norm-Based Test 1114.5.3 F -Type Test 1144.5.4 Bootstrap Test 1154.5.5 Numerical Implementation 1164.5.6 Eect of Resolution Number 119

    4.6 Technical Proofs 1194.7 Concluding Remarks and Bibliographical Notes 1264.8 Exercises 127

    5 ANOVA for Functional Data 1295.1 Introduction 1295.2 Two-Sample Problem 129

    5.2.1 Pivotal Test Function 1335.2.2 Methods for Two-Sample Problems 134

    5.3 One-Way ANOVA 1425.3.1 Estimation of Group Mean and Covariance Functions 1455.3.2 Main-Eect Test 1485.3.3 Tests of Linear Hypotheses 160

    5.4 Two-Way ANOVA 1645.4.1 Estimation of Cell Mean and Covariance Functions 1665.4.2 Main and Interaction Eect Functions 1695.4.3 Tests of Linear Hypotheses 1715.4.4 Balanced Two-Way ANOVA with Interaction 1785.4.5 Balanced Two-Way ANOVA without Interaction 184

    5.5 Technical Proofs 1905.6 Concluding Remarks and Bibliographical Notes 1955.7 Exercises 196

    6 Linear Models with Functional Responses 1976.1 Introduction 1976.2 Linear Models with Time-Independent Covariates 197

    6.2.1 Coecient Function Estimation 2006.2.2 Properties of the Estimators 2026.2.3 Multiple Correlation Coecient 2046.2.4 Comparing Two Nested FLMs 2056.2.5 Signicance of All the Non-Intercept Coecient Func-

    tions 2116.2.6 Signicance of a Single Coecient Function 2126.2.7 Tests of Linear Hypotheses 2146.2.8 Variable Selection 218

    6.3 Linear Models with Time-Dependent Covariates 2216.3.1 Estimation of the Coecient Functions 2216.3.2 Compare Two Nested FLMs 2226.3.3 Tests of Linear Hypotheses 228

    6.4 Technical Proofs 232

  • xii CONTENTS

    6.5 Concluding Remarks and Bibliographical Notes 2366.6 Exercises 238

    7 Ill-Conditioned Functional Linear Models 2417.1 Introduction 2417.2 Generalized Inverse Method 245

    7.2.1 Estimability of Regression Coecient Functions 2457.2.2 Methods for Finding Estimable Linear Functions 2477.2.3 Estimation of Estimable Linear Functions 2527.2.4 Tests of Testable Linear Hypotheses 253

    7.3 Reparameterization Method 2597.3.1 The Methodology 2597.3.2 Determining the Reparameterization Matrices 2597.3.3 Invariance of the Reparameterization 2607.3.4 Tests of Testable Linear Hypotheses 261

    7.4 Side-Condition Method 2617.4.1 The Methodology 2617.4.2 Methods for Specifying the Side-Conditions 2627.4.3 Invariance of the Side-Condition Method 2637.4.4 Tests of Testable Linear Hypotheses 264

    7.5 Technical Proofs 2667.6 Concluding Remarks and Bibliographical Notes 2717.7 Exercises 271

    8 Diagnostics of Functional Observations 2738.1 Introduction 2738.2 Residual Functions 276

    8.2.1 Raw Residual Functions 2768.2.2 Standardized Residual Functions 2778.2.3 Jackknife Residual Functions 277

    8.3 Functional Outlier Detection 2798.3.1 Standardized Residual-Based Method 2798.3.2 Jackknife Residual-Based Method 2838.3.3 Functional Depth-Based Method 285

    8.4 Inuential Case Detection 2918.5 Robust Estimation of Coecient Functions 2928.6 Outlier Detection for a Sample of Functions 293

    8.6.1 Residual Functions 2938.6.2 Functional Outlier Detection 294

    8.7 Technical Proofs 2988.8 Concluding Remarks and Bibliographical Notes 2988.9 Exercises 299

  • CONTENTS xiii

    9 Heteroscedastic ANOVA for Functional Data 3079.1 Introduction 3079.2 Two-Sample Behrens-Fisher Problems 308

    9.2.1 Estimation of Mean and Covariance Functions 3109.2.2 Testing Methods 312

    9.3 Heteroscedastic One-Way ANOVA 3189.3.1 Estimation of Group Mean and Covariance Functions 3209.3.2 Heteroscedastic Main-Eect Test 3229.3.3 Tests of Linear Hypotheses under Heteroscedasticity 329

    9.4 Heteroscedastic Two-Way ANOVA 3309.4.1 Estimation of Cell Mean and Covariance Functions 3359.4.2 Tests of Linear Hypotheses under Heteroscedasticity 337

    9.5 Technical Proofs 3449.6 Concluding Remarks and Bibliographical Notes 3489.7 Exercises 348

    10 Test of Equality of Covariance Functions 35110.1 Introduction 35110.2 Two-Sample Case 351

    10.2.1 Pivotal Test Function 35210.2.2 Testing Methods 354

    10.3 Multi-Sample Case 35610.3.1 Estimation of Group Mean and Covariance Functions 35810.3.2 Testing Methods 360

    10.4 Technical Proofs 36410.5 Concluding Remarks and Bibliographical Notes 36610.6 Exercises 366

    Bibliography 369

    Index 381

  • This page intentionally left blankThis page intentionally left blank

  • List of Figures

    1.1 A simulated functional data set 21.2 The raw progesterone data 41.3 Four individual nonconceptive progesterone curves 41.4 The Berkeley growth curve data 51.5 The NOx emission level data 71.6 The Canadian temperature data 81.7 Four individual temperature curves 81.8 The audible noise data 101.9 Four individual curves of the audible noise data 101.10 The left-cingulum data 121.11 Two left-cingulum curves 121.12 The orthosis data 141.13 The ergonomics data 15

    2.1 Fitting the rst nonconceptive progesterone curve by the LPKmethod 25

    2.2 Plot of GCV score against bandwidth h (in log10-scale) fortting the rst nonconceptive progesterone curve 26

    2.3 Fitting the twentieth nonconceptive progesterone curve by therobust LPK method. 27

    2.4 Fitting the fth nonconceptive progesterone curve by theregression spline method 32

    2.5 Plot of GCV score (in log10-scale) against number of knots Kfor tting the fth nonconceptive progesterone curve by theregression spline method 32

    2.6 Fitting the fth Canadian temperature curve by the regressionspline method 33

    2.7 Plot of GCV score (in log10-scale) against number of knotsK for tting the fth Canadian temperature curve by theregression spline method 33

    2.8 Fitting the twentieth nonconceptive progesterone curve by therobust regression spline method 34

    2.9 Fitting the fth audible noise curve by the cubic smoothingspline method 38

    xv

  • xvi LIST OF FIGURES

    2.10 Plot of GCV score against smoothing parameter (in log10-scale) for tting the fth audible noise curve by the cubicsmoothing spline method 38

    2.11 Fitting the fth Berkeley growth curve by the cubic smoothingspline method 39

    2.12 Plot of GCV score against smoothing parameter (in log10-scale) for tting the fth Berkeley growth curve by the cubicsmoothing spline method 39

    2.13 Fitting the fth left-cingulum curve by the P-spline method 422.14 Plot of GCV score against smoothing parameter (in log10-

    scale) for tting the fth left-cingulum curve by the P-splinemethod 42

    2.15 Fitting the fth ergonomics curve by the P-spline method 432.16 Plot of GCV score against smoothing parameter (in log10-

    scale) for tting the fth ergonomics curve by the P-splinemethod 43

    3.1 Plot of GCV score against bandwidth h (in log10-scale) forreconstructing the progesterone curves by the LPK reconstruc-tion method 52

    3.2 Reconstructed progesterone curves 523.3 Four reconstructed nonconceptive progesterone curves 533.4 Four robustly reconstructed nonconceptive progesterone curves 543.5 Plot of GCV score against number of knotsK for reconstructing

    the Canadian temperature data by the regression spline method 553.6 Reconstructed Canadian temperature curves by the regression

    spline method 563.7 Two reconstructed Canadian temperature curves 573.8 Two reconstructed left-cingulum curves obtained by the cubic

    smoothing spline method 593.9 Four reconstructed audible noise curves obtained by the

    P-spline reconstruction method 613.10 Simulation results about the LPK reconstruction for functional

    data 683.11 Estimated nonconceptive and conceptive mean functions with

    95% standard deviation bands 733.12 Null distribution approximations of Tn 73

    4.1 Histograms of two 2-type mixtures 954.2 Estimated pdfs of the 2-type mixtures by the normal approx-

    imation method 964.3 Estimated pdfs of the 2-type mixtures by the two-cumulant

    matched 2-approximation method 974.4 Estimated pdfs of the 2-type mixtures by the three-cumulant

    matched 2-approximation method 98

  • LIST OF FIGURES xvii

    4.5 Estimated pdfs of Ta and Tb by the four methods 994.6 Histograms of two F -type mixtures 1024.7 Estimated pdfs of the F -type mixtures by the normal approxi-

    mation method 1034.8 Estimated pdfs of the F -type mixtures by the two-cumulant

    matched 2-approximation method 1044.9 Estimated pdfs of the F -type mixtures by the three-cumulant

    matched 2-approximation method 1054.10 Estimated pdfs of Fa and Fb by the four methods 1064.11 The conceptive progesterone data example 1084.12 Pointwise t-test, z-test, and bootstrap test for the conceptive

    progesterone data 1114.13 Plots of P-value of the F -type test against resolution number 119

    5.1 Reconstructed individual curves of the progesterone data 1305.2 Sample mean functions of the progesterone data 1315.3 Sample covariance functions of the progesterone data 1325.4 Pointwise t-, z- and bootstrap tests for the two-sample problem

    for the progesterone data 1375.5 Reconstructed Canadian temperature curves obtained by the

    local linear kernel smoother 1435.6 Pointwise tests for the main-eect testing problem with the

    Canadian temperature data 1505.7 Sample group mean functions of the Canadian temperature

    data 1525.8 Sample cell mean functions of the left-cingulum data 1675.9 Pooled sample covariance function of the left-cingulum data 1675.10 Two-way ANOVA for the left-cingulum data by the pointwise

    F -test 174

    6.1 Six selected right elbow angle curves from the ergonomics data 1986.2 The smoothed right elbow angle curves of the ergonomics data 1996.3 Four tted coecient functions of the ergonomics data with

    95% pointwise condence bands 2016.4 The estimated covariance function of the ergonomics data 2026.5 Plots of R2n(t) and R

    2n,adj(t) of the quadratic FLM for the

    ergonomics data 2056.6 Four tted coecient functions of the quadratic FLM for the

    ergonomics data with 95% pointwise condence bands 214

    7.1 Estimated main-eect contrast functions of the seven factorsof the audible noise data 256

    8.1 Reconstructed right elbow angle curves with an unusual curvehighlighted 274

  • xviii LIST OF FIGURES

    8.2 First four tted coecient functions with their 95% condencebands 274

    8.3 Outlier detection for the ergonomics data using the standard-ized residual-based method 282

    8.4 Reconstructed right elbow angle curves of the ergonomics datawith three suspected functional outliers highlighted 283

    8.5 Outlier detection for the ergonomics data using three functionaldepth measures 289

    8.6 Outlier detection for the ergonomics data using three functionaloutlyingness measures 290

    8.7 Inuential case detection for the ergonomics data using thegeneralized Cooks distance 292

    8.8 Outlier detection for the NOx emission level curves for seventy-six working days using the standardized residual-based method 297

    8.9 NOx emission level curves for seventy-six working days withthree detected functional outliers highlighted 297

    8.10 Outlier detection for the ergonomics data using the jackkniferesidual-based method 299

    8.11 Outlier detection for the NOx emission level data for seventy-six working days using the jackknife residual-based method 300

    8.12 Outlier detection for the NOx emission level curves for thirty-nine non-working days using the standardized residual-basedmethod 301

    8.13 NOx emission level curves for thirty-nine non-working dayswith three detected functional outliers highlighted 302

    8.14 Outlier detection for the NOx emission level data for thirty-nine non-working days using the ED-, functional KDE-, andprojection-based functional depth measures 303

    8.15 Outlier detection for the NOx emission level data usingthe ED-, functional KDE-, and projection-based functionaloutlyingness measures 304

    9.1 NOx emission level curves for seventy-three working days andthirty-six non-working days with outlying curves removed 308

    9.2 Sample covariance functions of NOx emission level curves forworking and non-working days with outlying curves removed 309

    9.3 Sample covariance functions of the Canadian temperature data 3199.4 Sample cell covariance functions of the orthosis data 3319.5 Sample cell covariance functions of the orthosis data for Subject

    5 at the four treatment conditions 332

  • List of Tables

    3.1 Test results for comparing the two group mean functions ofthe progesterone data 74

    4.1 Testing (4.39) for the conceptive progesterone data by theL2-norm-based test 113

    4.2 Testing (4.39) for the conceptive progesterone data by theF -type test 115

    4.3 Testing (4.39) for the conceptive progesterone data by theL2-norm-based and F -type bootstrap tests 116

    5.1 Traces of the sample covariance functions 1(s, t) and 2(s, t)and their cross-square functions 21 (s, t) and

    22 (s, t) over

    various periods 1325.2 Traces of the pooled sample covariance function (s, t) and its

    cross-square function 2(s, t) over various periods 1325.3 The L2-norm-based test for the two-sample problem for the

    progesterone data 1405.4 The F -type test for the two-sample problem for the proges-

    terone data 1415.5 The bootstrap tests for the two-sample problem for the

    progesterone data 1425.6 Traces of the pooled sample covariance functions (s, t) and its

    cross-square function 2(s, t) of the Canadian temperaturedata over various seasons 153

    5.7 The L2-norm-based test for the one-way ANOVA problem forthe Canadian temperature data 154

    5.8 The F -type test for the one-way ANOVA problem for theCanadian temperature data 155

    5.9 The L2-norm-based and F -type bootstrap tests for the one-wayANOVA problem with the Canadian temperature data 159

    5.10 Two-way ANOVA for the left-cingulum data by the L2-norm-based test 176

    5.11 Two-way ANOVA for the left-cingulum data by the F -typetest 177

    xix

  • xx LIST OF TABLES

    6.1 Individual coecient tests of the quadratic FLM for theergonomics data 213

    6.2 Functional variable selection for the ergonomics data by theforward selection method 220

    6.3 Functional variable selection for the ergonomics data by thebackward elimination method 220

    7.1 L2-norm-based test for the audible noise data 258

    9.1 Various quantities of the Canadian temperature data overvarious seasons 320

    9.2 Heteroscedastic one-way ANOVA of the Canadian temperaturedata by the L2-norm-based test 325

    9.3 Heteroscedastic one-way ANOVA of the Canadian temperaturedata by the F -type test 328

    9.4 Heteroscedastic two-way ANOVA for the orthosis data by theL2-norm-based test 340

    9.5 Heteroscedastic two-way ANOVA of the orthosis data by theF -type test 343

    10.1 Tests of the equality of the covariance functions for theCanadian temperature data 363

  • Preface

    Functional data analysis has been a popular statistical research topic for thepast three decades. Functional data are often obtained by observing a num-ber of subjects over time, space, or other continua densely. They are fre-quently collected from various research areas, including audiology, biology,childrens growth studies, ergonomics, environmentology, meteorology, andwomens health studies among others in the form of curves, surfaces, or othercomplex objects. Statistical inference for functional data generally refers toestimation and hypothesis testing about functional data. There are at leasttwo monographs available in the literature that are devoted to estimationand classication of functional data. This book mainly focuses on hypothe-sis testing problems about functional data, with topics including reconstruc-tion of functional observations, functional ANOVA, functional linear modelswith functional responses, ill-conditioned functional linear models, diagnosticsof functional observations, heteroscedastic ANOVA for functional data, andtesting equality of covariance functions, among others. Although the method-ologies proposed and studied in this book are designed for curve data only, itis straightforward to extend them to the analysis of surface data.

    The main purpose of this book is to provide the reader with a number ofsimple methodologies for functional hypothesis testing. Pointwise, L2-normbased, F -type, and bootstrap tests are discussed. The key ideas of thesemethodologies are stated at a relatively low technical level. The book is self-contained and assumes only a basic knowledge of statistics, calculus, and ma-trix algebra. Real data examples from the aforementioned research areas areprovided to motivate and illustrate the methodologies. Some bibliographicalnotes and exercises are provided at the end of each chapter. A supporting web-site is provided where most of the real data sets analyzed in this book maybe downloaded. Some related MATLABR codes for analyzing these real dataexamples are also available and will be updated whenever necessary. Statisti-cal researchers or practitioners analyzing functional data may nd this bookuseful.

    Chapter 1 provides a brief overview of the book, and in particular, itpresents real functional data examples from various research areas that havemotivated various models and methodologies for statistical inferences aboutfunctional data. Chapters 2 and 3 review four popular nonparametric smooth-ing techniques for reconstructing or interpolating a single curve or a group ofcurves in a functional data set. Chapters 48 present the core contents of this

    xxi

  • xxii PREFACE

    book. Chapters 9 and 10 are devoted to heteroscedastic ANOVA and tests ofequality of covariance functions.

    Most of the contents of this book should be comprehensible to readers withsome basic statistical training. Advanced mathematics and technical skills arenot necessary for understanding the key ideas of the methodologies and forapplying them to real data analysis. The materials in Chapters 18 may beused in a lower- or medium-level graduate course in statistics or biostatistics.Chapters 9 and 10 may be used in a higher-level graduate course or as referencematerials for those who intend to do research in this eld.

    I have tried my best to acknowledge the work of the many investigatorswho have contributed to the development of the models and methodologies forhypothesis testing in the context of analysis of variance for functional data.However, it is beyond the scope of this book to prepare an exhaustive reviewof the vast literature in this active research eld, and I regret any oversightor omissions of particular authors or publications.

    I am grateful to Rob Calver, Rachel Holt, Jennifer Ahringer, Karen Simon,and Mimi Williams at Chapman and Hall who have made great eorts in co-ordinating the editing, review, and nally the publishing of this book. I wouldlike to thank my colleagues, collaborators, and friends, Mingyen Cheng, Jeng-min Chiou, Jianqing Fan, James S. Marron, Heng Peng, Naisyin Wang, andChongqi Zhang, for their help and encouragement. Special thanks go to Pro-fessor Wenyang Zhang, Department of Mathematics, the University of York,United Kingdom and Professor Je Goldsmith, Department of Biostatistics,Columbia University, New York and an anonymous reviewer who went throughthe rst draft of the book and made some insightful comments and suggestionswhich helped improve the book substantially. Thanks also go to some of myPhD students, including Xuehua Liang, Xuefeng Liu, and Shengning Xiao,for their reading some chapters of the book. I thank my family who providedstrong support and encouragement during the writing process of this book.

    The book was partially supported by the National University of SingaporeAcademic Research grants R-155-000-108-112 and R-155-000-128-112. Mostof the chapters were written when I visited the Department of OperationalResearch and Financial Engineering, Princeton University. I thank ProfessorJianqing Fan for his hospitality and partial nancial support. Some chapters ofthe book were written when I visited Professor Jengmin Chiou at the Instituteof Statistical Science, Academia Sinica, Taipei, Taiwan; and Professor Ming-Yen Cheng at the Department of Mathematics, National Taiwan University,Taipei, Taiwan.

    Jin-Ting ZhangDepartment of Statistics & Applied ProbabilityNational University of SingaporeSingapore

  • PREFACE xxiii

    MATLABR is a registered trademark of The MathWorks, Inc. For productinformation, please contact:

    The MathWorks, Inc.3 Apple Hill DriveNatick, MA 01760-2098 USATel: 508 647 7000Fax: 508-647-7001E-mail: info @ mathworks.comWeb: www.mathworks.com

  • This page intentionally left blankThis page intentionally left blank

  • Chapter 1

    Introduction

    This chapter aims to give an introduction to the book. We rst introduce theconcept of functional data in Section 1.1. We then present several motivat-ing real functional data sets in Section 1.2. The dierence between classicalmultivariate data analysis and functional data analysis is briey discussed inSection 1.3. Section 1.4 gives an overview of the book. The implementation ofthe methodologies, the options for reading this book, and some bibliographicalnotes are given in Sections 1.5, 1.6, and 1.7, respectively.

    1.1 Functional Data

    Functional data are a natural generalization of multivariate data from nitedimensional to innite dimensional. To get some feeling about functional data,Figure 1.1(a) displays a functional data set, consisting of twenty curves, andFigure 1.1(b) displays one of the curves. These curves were simulated withoutadding measurement errors and they look smooth and continuous.

    In practice, functional data are obtained by observing a number of subjectsover time, space, or other continua. The resulting functional data can becurves, surfaces, or other complex objects; see next section for several realcurve data sets and see Zhang (1999) for some surface data sets. One may notethat real functional data can be accurately observed so that the measurementerrors can be ignored, or can be observed subject to substantial measurementerrors. For example, measurements of the heights of children over a wide rangeof ages in the Berkeley growth data presented in Figure 1.4 in Section 1.2.2have an error level so small as to be ignorable. However, the progesterone datapresented in Figures 1.2 and 1.3 in Section 1.2.1 and the daily records of theCanadian temperature data at a weather station presented in Figures 1.6 and1.7 in Section 1.2.4 are very noisy.

    1.2 Motivating Functional Data

    Functional data arise naturally in many research areas. Classical examplesare provided by growth curves in longitudinal studies. Other examples canbe found in Rice and Silverman (1991), Kneip (1994), Faraway (1997), Zhang(1999), Shen and Faraway (2004), Ramsay and Silverman (2002, 2005), Fer-

    1

  • 2 INTRODUCTION

    0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 115

    10

    5

    0

    5

    10(a)

    0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 120

    15

    10

    5

    0

    5

    10(b)

    Figure 1.1 A simulated functional data set with (a) twenty simulated curves and (b)one of the simulated curves.

    raty and Vieu (2006), and references therein. In this section, we presenta number of curve data examples. For surface data examples, see Zhang(1999). These curve data sets are from various research areas, includingaudiology, biology, childrens growth studies, ergonomics, environmentology,meteorology, and womens health studies, among others. They will be usedthroughout this book for motivating and illustrating the functional hypoth-esis testing techniques described in this book. Although these functionaldata examples are from only a few research areas, the proposed method-ologies in this book are also applicable to functional data collected fromother scientic elds. All these curve data sets and the computer codesfor the corresponding analysis in this book are accessible at the website:http://www.stat.nus.edu.sg/zhangjt/books/Chapman/FANOVA.htm.

    1.2.1 Progesterone Data

    The progesterone data were collected in a study of early pregnancy loss con-ducted by the Institute for Toxicology and Environmental Health at the Re-productive Epidemiology Section of the California Department of Health Ser-vices, Berkeley. Each observation shows the levels of urinary metabolite pro-gesterone over the course of the womens menstrual cycles (in days). The ob-servations came from patients with healthy reproductive function enrolled inan articial insemination clinic where insemination attempts were well-timedfor each menstrual cycle. The data had been aligned by the day of ovulation(Day 0), determined by serum luteinizing hormone, and truncated at each end

  • MOTIVATING FUNCTIONAL DATA 3

    to present curves of equal length. Measurements were recorded once per dayper cycle from eight days before the day of ovulation and until fteen daysafter the ovulation. A woman may have one or several cycles. The length ofthe observation period was twenty-four days. Some measurements from somesubjects are missing due to various reasons. For more details about the pro-gesterone data, see Munro et al. (1991), Yen and Jae (1991), Brumback andRice (1998), and Fan and Zhang (2000), among others.

    The data set consisted of two groups: nonconceptive progesterone curves(sixty-nine menstrual cycles) and conceptive progesterone curves (twenty-twomenstrual cycles), as displayed in Figures 1.2 (a) and (b), respectively. Thenonconceptive and conceptive progesterone curves came from those womenwithout or with viable zygotes formed. From Figures 1.2 (a) and (b), it isseen that the raw progesterone data are rather noisy, showing that some non-parametric smoothing techniques may be needed to remove some amount ofmeasurement errors and to reconstruct the progesterone curves. Figure 1.3displays four individual nonconceptive progesterone curves. It is seen thatsome outlying measurements appear in the progesterone curves 10 and 20. Toreduce the eects of these outliers, some robust smoothing techniques maybe desirable. To this end, four major nonparametric smoothing techniques fora single curve and for all the curves in a functional data set will be brieyreviewed in Chapters 2 and 3, respectively.

    From Figure 1.2 (a), it is also seen that the nonconceptive progesteronecurves are quite at before the ovulation day. A question arises naturally. Isthe mean nonconceptive curve a constant before the ovulation day? This is aone-sample problem for functional data. It will be handled in Chapter 4. Thestatement the mean conceptive curve is a constant before the ovulation daycan be tested similarly.

    Other questions also arise. For example, is there a conception eect? Thatis, is there a signicant dierence between the nonconceptive and conceptivemean progesterone curves? Over what period? These are two-sample problemsfor functional data and will be handled in Chapter 5.

    The progesterone data have been used for illustrations of nonparametricregression methods by several authors. Brumback and Rice (1998) used themto illustrate a smoothing spline modeling technique for estimating both meanand individual functions; Fan and Zhang (2000) used them to illustrate theirtwo-step method for estimating the underlying mean function for functionaldata; and Wu and Zhang (2002) used them to illustrate a local polynomialmixed-eects modeling approach.

    1.2.2 Berkeley Growth Curve Data

    The Berkeley growth curve data were collected in the Berkeley growth study(Tuddenham and Snyder 1954). The heights of thirty-nine boys and fty-fourgirls were recorded at thirty-one not equally spaced ages from Year 1 to Year18. The growth curves of girls and boys are displayed in Figures 1.4 (a) and

  • 4 INTRODUCTION

    6 4 2 0 2 4 6 8 10 12 144

    32

    1

    01

    2

    3

    (a)

    Day

    Log(P

    roges

    teron

    e)

    6 4 2 0 2 4 6 8 10 12 144

    2

    0

    2

    4(b)

    Day

    Log(P

    roges

    teron

    e)

    Figure 1.2 The raw progesterone data with (a) nonconceptive progesterone curvesand (b) conceptive progesterone curves. The progesterone curves are the levels ofurinary metabolite progesterone over the course of the womens menstrual cycles (indays). They are rather noisy so that some smoothing may be needed.

    10 5 0 5 10 151

    0

    1

    2

    3

    4Noncon. Prog. Curve 1

    10 5 0 5 10 151

    0.5

    0

    0.5

    1

    1.5

    2

    2.5Noncon. Prog. Curve 5

    10 5 0 5 10 152

    1

    0

    1

    2

    3Noncon. Prog. Curve 10

    10 5 0 5 10 154

    3

    2

    1

    0

    1Noncon. Prog. Curve 20

    Day

    Log(P

    roges

    teron

    e)

    Figure 1.3 Four individual nonconceptive progesterone curves. Outlying measure-ments appear in the progesterone curves 10 and 20.

  • MOTIVATING FUNCTIONAL DATA 5

    2 4 6 8 10 12 14 16 1860

    80

    100

    120

    140

    160

    180

    200(a)

    Age

    Heig

    ht

    2 4 6 8 10 12 14 16 1860

    80

    100

    120

    140

    160

    180

    200(b)

    Age

    Heig

    ht

    Figure 1.4 The Berkeley growth curve data with (a) growth curves for fty-four girlsand (b) growth curves for thirty-nine boys. The growth curves are the heights ofthe children recorded at thirty-one not equally spaced ages from Year 1 to Year 18.The measurement errors of the heights of the children are rather small and may beignored for many purposes.

    (b), respectively. It is seen that these growth curves are rather smooth, indi-cating that the measurement errors of the heights are rather small and may beignored for many purposes. However, to evaluate the individual growth curvesat a desired resolution, these growth curves may be interpolated or smoothedusing some nonparametric smoothing techniques reviewed in Chapter 2.

    It is of interest to check if gender dierence has some impact on the growthprocess of a child. That is, one may want to test if there is any signicantdierence between the mean growth curves of girls and boys. This is a two-sample problem for functional data. It can be handled using the methodsdeveloped in Chapter 5. Another question also arises naturally. Is there anysignicant dierence between the covariance functions of girls and boys? Thisproblem will be handled in an exercise problem in Chapter 10. Then comesa related question. How to test if there is any signicant dierence betweenthe mean growth curves of girls and boys when there is no knowledge about ifthe covariance functions of girls and boys are equal. This latter problem maybe referred to as a two-sample Behrens-Fisher problem that can be handledusing the methodologies developed in Chapter 9.

    The Berkeley growth curve data have been used by several authors. Ram-say and Li (1998) and Ramsay and Silverman (2005) used it to illustratetheir curve registration techniques. Chiou and Li (2007) used it to illustratetheir k-centers functional clustering approach. Zhang, Liang, and Xiao (2010)

  • 6 INTRODUCTION

    used it to motivate and illustrate their testing approaches for a two-sampleBehrens-Fisher problem for functional data.

    1.2.3 Nitrogen Oxide Emission Level Data

    Nitrogen oxides (NOx) are known to be among the most important pollutants,precursors of ozone formation, and contributors to global warming (Febrero,Galeano, and Gonzalez-Manteiga 2008). NOx is primarily caused by combus-tion processes in sources that burn fuels such as motor vehicles, electric utili-ties, and industries among others. Figures 1.5 (a) and (b) show NOx emissionlevels for seventy-six working days and thirty-nine non-working days, respec-tively, measured by an environmental control station close to an industrialarea in Poblenou, Barcelona, Spain. The control station measured NOx emis-sion levels in g/m3 every hour per day from February 23 to June 26 in 2005.The hourly measurements in a day (twenty-four hours) form a natural NOxemission level curve of the day. It is seen that within a day, the NOx levelsincrease in morning, attain their extreme values around 8 a.m., then decreaseuntil 2 p.m. and increase again in evening. The inuence of trac on the NOxemission levels is not ignorable as the control station is located at the city cen-ter. It is not dicult to notice that the NOx emission levels of working daysare generally higher than those of non-working days. This is why these NOxemission level curves were divided into two groups as pointed out by Febrero,Galeano, and Gonzalez-Manteiga (2008). In both the upper and lower panels,we highlighted one NOx emission level curve, respectively, to emphasize thatthey have very large NOx emission levels compared with the remaining curvesin each group. It is important to identify these and other curves whose NOxemission levels are signicantly large and try to gure out the sources thatproduced these abnormally large NOx emissions. This task will be handled inChapter 8.

    The NOx emission level data were kindly provided by the authors ofFebrero, Galeano, and Gonzalez-Manteiga (2008) who used these data to il-lustrate their functional outlier detection methods.

    1.2.4 Canadian Temperature Data

    The Canadian temperature data (Canadian Climate Program 1982) weredownloaded from ftp://ego.psych.mcgill.ca/pub/ramsay/FDAfuns/Matlab/at the book website of Ramsay and Silverman (2002, 2005). The data are thedaily temperature records of thirty-ve Canadian weather stations over a year(365 days), among which fteen are in Eastern, another fteen in Western, andthe remaining ve in Northern Canada. Panels (a), (b), and (c) of Figure 1.6present the raw Canadian temperature curves for these thirty-ve weatherstations.

    From these gures, we see that at least at the middle of the year, the tem-peratures at the Eastern weather stations are comparable with those at the

  • MOTIVATING FUNCTIONAL DATA 7

    2 4 6 8 10 12 14 16 18 20 22 240

    100

    200

    300

    400

    Hours

    NOx

    leve

    l

    (a)

    2 4 6 8 10 12 14 16 18 20 22 240

    100

    200

    300

    400

    Hours

    NOx

    leve

    l

    (b)

    18/03/05Other days

    30/04/05Other days

    Figure 1.5 The NOx emission level data for (a) seventy-six working days and (b)thirty-nine non-working days, measured by an environmental control station close toan industrial area in Poblenou, Barcelona, Spain. Each of the NOx emission levelcurve consists of the hourly measurements in a day (24 hours). In each panel, anunusual NOx emission level curve is highlighted.

    Western weather stations, but they are generally higher than those temper-atures at the Northern weather stations. This observation seems reasonableas the Eastern and Western weather stations are located at about the samelatitudes while the Northern weather stations are located at higher latitudes.Statistically, we can ask the following question. Is there a location eect amongthe mean temperature curves of the Eastern, Western, and Northern weatherstations? This is a three-sample or one-way ANOVA problem for functionaldata. This problem will be treated in Chapters 5 and 9, respectively, whenthe three samples of the temperature curves are assumed to have the sameand dierent covariance functions.

    The gures in Figure 1.6 may indicate that the covariance functions of thetemperature curves of the Eastern, Western, and Northern weather stationsare dierent. In fact, we can see that at the beginning or at the end of theyear, the temperatures at the Eastern weather stations are less variable thanthose at the Western weather stations, but they are generally more variablethan those temperatures at the Northern weather stations. To statisticallyverify if the covariance functions of the temperature curves of the Eastern,Western, and Northern weather stations are the same, we will develop sometests about the equality of the covariance functions in Chapter 10.

    Four individual temperature curves are presented in Figure 1.7. It is seenthat these temperature curves are quite similar in shape and the temperature

  • 8 INTRODUCTION

    0 50 100 150 200 250 300 350

    20

    0

    20

    (a)

    0 50 100 150 200 250 300 350

    20

    0

    20

    (b)

    0 50 100 150 200 250 300 350

    20

    0

    20

    (c)

    Day

    Tem

    pera

    ture

    Figure 1.6 The Canadian temperature data for (a) fteen Eastern weather stations,(b) fteen Western weather stations, and (c) ve Northern weather stations. It isseen that at least at the middle of the year, the temperatures recorded at the Easternweather stations are comparable with those recorded at the Western weather sta-tions, but they are generally higher than those temperatures recorded at the Northernweather stations.

    0 100 200 300

    30

    20

    10

    0

    10

    20

    Weather station 1

    0 100 200 300

    30

    20

    10

    0

    10

    20

    Weather station 5

    0 100 200 300

    30

    20

    10

    0

    10

    20

    Weather station 7

    0 100 200 300

    30

    20

    10

    0

    10

    20

    Weather station 13

    Day

    Tem

    pera

    ture

    Figure 1.7 Four individual Canadian temperature curves. They are similar in shape.It seems that the temperature records have large measurement errors.

  • MOTIVATING FUNCTIONAL DATA 9

    records are with large measurement errors. To remove some of these measure-ment errors, some smoothing techniques may be needed. As mentioned earlier,we will introduce four major smoothing techniques for a single curve and forall the curves in a functional data set in Chapters 2 and 3, respectively.

    The Canadian temperature data have been analyzed in a number of papersand books in the literature, including Ramsay and Silverman (2002, 2005),Zhang and Chen (2007), and Zhang and Liang (2013) among others.

    1.2.5 Audible Noise Data

    The audible noise data were collected in a study to reduce audible noise levelsof alternators, as reported in Nair et al. (2002). When an alternator rotates,it generates some amount of audible noise. With advances in technology, theengine noise can be reduced greatly so that the alternator noise levels be-come more remarkable, leading to an increasing quality concern. A robustdesign study conducted by an engineering team aiming to investigate the ef-fects of seven process assembly factors and their potential for reducing noiselevels. The seven factors under consideration are Through Bolt Torque, Ro-tor Balance, Stator Varnish, Air Gap Variation, Stator Orientation,Housing Stator Slip Fit, and Shaft Radial Alignment. For simplicity, theseseven factors are represented by A, B, C, D, E, F, and G respectively. In theseseven factors, D is the noise factor while the others are control factors. Eachfactor has only two levels: low and high, denoted as 1 and +1, respec-tively.

    The study adopted a 272IV design, supplemented by four additional replica-tions at the high levels of all factors, resulting in an experiment with thirty-sixruns. Nair et al. (2002) pointed out that the fractional factorial design was acombined array, allowing estimation of the main eects of the noise and con-trol factors and all two-factor control-by-noise interactions by assuming thatall three factors and higher-order interactions are negligible. For each run, au-dible noise levels were measured over a range of rotating speeds. The audiblesound was recorded by the microphones located at several positions near thealternator. The response was a transformed pressure measurement, known assound pressure level. For each response curve, forty-three measurements ofsound pressure levels (in decibels) were recorded with rotating speeds rangingfrom 1, 000 to 2, 500 revolutions per minute.

    Figure 1.8 displays the thirty-six response curves of the audible noise data.It appears that the sound pressure levels were accurately measured with themeasurement errors ignorable as shown by the four individual curves of theaudible noise data presented in Figure 1.9. Nevertheless, Figure 1.8 indicatesthat these response curves are rather noisy although the measurement errorsare rather small.

    It is of interest to test if the main eects and the control-by-noise inter-action eects of the seven factors on the response curves are signicant. Thisproblem will be handled in Chapter 7.

  • 10 INTRODUCTION

    1000 1500 2000 250040

    45

    50

    55

    60

    65

    70

    75

    80

    85

    Speed

    Soun

    d pr

    essu

    re le

    vel

    Figure 1.8 The audible noise data with thirty-six sound pressure level curves. Eachcurve has forty-three measurements of sound pressure levels (in decibels), recordedwith rotating speeds ranging from 1, 000 to 2, 500 revolutions per minute. These soundpressure level curves are rather noisy although the measurement errors of each curveare rather small.

    1000 1500 2000 250045

    50

    55

    60

    65

    70

    75

    80Run 1

    1000 1500 2000 250050

    55

    60

    65

    70

    75

    80Run 5

    1000 1500 2000 250045

    50

    55

    60

    65

    70Run 10

    1000 1500 2000 250050

    55

    60

    65

    70

    75

    80Run 30

    Speed

    Soun

    d pr

    essu

    re le

    vel

    Figure 1.9 Four individual curves of the audible noise data. It appears that the soundpressure levels were accurately measured with the measurement errors ignorable.

  • MOTIVATING FUNCTIONAL DATA 11

    The audible noise data have been analyzed by Nair et al. (2002) whocomputed the pointwise estimators of the main eects and control-by-noiseinteraction-eects, and constructed the pointwise condent intervals withstandard errors estimated by the four additional replications at the high lev-els of all factors. They were also analyzed by Shen and Xu (2007) using theirdiagnostic methodologies.

    1.2.6 Left-Cingulum Data

    The cingulum is a collection of white-matter bers projecting from the cingu-late gyrus to the entorhinal cortex in the brain, allowing for communicationbetween components of the limbic system. It is a prominent white-matter bertrack in the brain that is involved in emotion, attention, and memory, amongmany other functions. To study if the Radial Diusibility (RD) in the left-cingulumn is aected by age and family of a child, the left-cingulum data werecollected for thirty-nine children from 9 to 19 years old over arc length from60 to 60. The response variable is RD while the covariates include GHRand AGE where GHR stands for Genetic High Risk and AGE is the age ofa child in the study. The GHR variable is a categorical variable, taking twovalues. When GHR = 1, it means that the child is from a family with at least1 direct relative with schizophrenia disease and when GHR = 0, the child isfrom a normal family. The AGE variable is a continuous variable. Figure 1.10displays the thirty-nine left-cingulum curves over arc length. For each curve,there are 119 measurements. It is seen that the left-cingulum curves are verynoisy and an outlying left-cingulum curve is also seen. Figure 1.11 displaystwo individual left-cingulum curves, showing that the left-cingulum curve wasmeasured with very small measurement errors. The main variations of theleft-cingulum curves come from the between-curve variations.

    In Chapter 5, the left-cingulum data will be used to motivate and illus-trate unbalanced two-way ANOVA models for functional data by transform-ing the AGE variable into a categorical variable with two levels: children withAGE < 15 and children with AGE 15.

    The left-cingulum data were kindly provided by Dr. Hongbin Gu, De-partment of Psychiatry, School of Medicine, University of North Carolina atChapel Hill during email discussions.

    1.2.7 Orthosis Data

    An orthotic is an orthopedic device applied externally to limb or body to pro-vide support, stability, prevention of deformity from getting worse, or replace-ment of lost function. Depending on the diagnosis and physical needs of theindividual, a large variety of orthosis is available. According to Abramovich,Antoniadis, Sapatinas, and Vidakovic (2004), the orthosis data were acquiredand computed in an experiment by Dr. Amarantini David and Dr. MartinLuc (Laboratoire Sport et Performance Motrice, EA 597, UFRAPS, Grenoble

  • 12 INTRODUCTION

    60 40 20 0 20 40 602

    4

    6

    8

    10

    12

    14

    Arc Length

    Rad

    ial D

    iffus

    ibilit

    y

    Figure 1.10 The left-cingulumn data for thirty-nine children from 9 to 19 yearsold. Each curve has 119 measurements of the Radial Diusibility (RD) in the left-cingulum of a child, recorded over arc length from 60 to 60.

    60 40 20 0 20 40 604.5

    5

    5.5

    6

    6.5

    7

    7.5

    8Curve 1

    60 40 20 0 20 40 604

    6

    8

    10

    12

    14Curve 10

    Arc Length

    Radi

    al D

    iffus

    ibilit

    y

    Figure 1.11 Two left-cingulum curves. It appears that the measurements of the left-cingulum curve were measured with very small measurement errors.

  • MOTIVATING FUNCTIONAL DATA 13

    University, France). The aim of the experiment was to analyze how musclecopes with an external perturbation.

    The experiment recruited seven young male volunteers. They wore aspring-loaded orthosis of adjustable stiness under four experimental con-ditions: a control condition (without orthosis), an orthosis condition (withthe orthosis only), and two spring conditions (spring 1, spring 2) in whichstepping-in-place was perturbed by tting a spring-loaded orthosis onto theright knee joint. All the seven subjects tried all the four conditions ten timesfor twenty seconds each while only the central ten seconds were used in thestudy in order to avoid possible perturbations in the initial and nal parts ofthe experiment. The resultant moment of force at the knee is derived by meansof body segment kinematics recorded with a sampling frequency of 200 Hz.For each stepping-in-place replication, the resultant moment was computed at256 time points equally spaced and scaled so that a time interval correspondsto an individual gait cycle. A typical observation is a curve over time t [0, 1].Therefore, the orthosis data set consists of

    7 (Subjects) 4 (Treatments) 10 (Replications) = 280 (Curves).Figure 1.12 presents the 280 raw orthosis curves with each panel displayingten of them.

    The orthosis data have been previously studied by a number of authors,including Abramovich et al. (2004), Abramovich and Angelini (2006), Anto-niadis and Sapatinas (2007), and Cuesta-Albertos and Febrero-Bande (2010),among others. In this book, this data set will be used to motivate and illustratea heteroscedastic two-way ANOVA model for functional data in Chapter 9.It will also be used to motivate and illustrate multi-sample equal-covariancefunction testing problems in Chapter 10. The orthosis data were kindly pro-vided by Dr. Brani Vidakovic by email communication.

    1.2.8 Ergonomics Data

    To study the motion of drivers of automobiles, the researchers at the Centerfor Ergonomics at the University of Michigan collected data on the motionof an automobile driver to twenty locations within a test car. Among othermeasures, the researchers measured three times the angle formed at the rightelbow between the upper and lower arms of the driver. The data recorded foreach motion were observed on an equally spaced grid of points over a period oftime, which were rescaled to [0, 1] for convenience, but the number of such timepoints varies from observation to observation. See Faraway (1997) and Shenand Faraway (2004) for detailed descriptions of the data. Figure 1.13 displaysthe right elbow angle curves of the ergonomics data downloaded from thewebsite of the second author of Shen and Faraway (2004). These right elbowangle curves have been smoothed so that no further smoothing is needed butsome interpolation or smoothing may be needed if one wants to evaluate thesecurves at a desired level of resolution.

  • 14 INTRODUCTION

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    0 0.5 150

    050

    100

    Figure 1.12 The orthosis data. The row panels are associated with the seven subjectsand the column panels are associated with the four treatment conditions. There areten orthosis curves displayed in each panel. An orthosis curve has 256 measurementsof the resultant moment of force at the knee, recorded over a period of time (tenseconds), scaled to [0, 1].

  • MOTIVATING FUNCTIONAL DATA 15

    0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1110

    120

    130

    140

    150

    160

    Time

    Angl

    e

    Figure 1.13 The ergonomics data collected on the motion of an automobile driverto twenty locations within a test car, measured three times. The measurements of acurve are the angles formed at the right elbow between the upper and lower arms ofthe driver. The measurements for each motion were recorded on an equally spacedgrid of points over a period of time, rescaled to [0, 1] for convenience.

    There are totally sixty right elbow angle curves. They can be classiedinto a number of groups according to location and area, where locationstores the locations of the targets, taking twenty values while area stores theareas of the targets, taking four values. The categorical variables locationand area are highly correlated as they are dierent only in the ways forgrouping the locations of the targets.

    One can also nd a functional regression model to predict the right elbowangle curve y(t), t [0, 1] using the coordinates (a, b, c) of a target, where arepresents the coordinate in the left-to-right direction, b represents the coordi-nate in the close-to-far direction, and c represents the coordinate in the down-to-up direction. Shen and Faraway (2004) found that the following quadraticmodel is adequate to t the data:

    yi(t) = 0(t) + ai1(t) + bi2(t) + ci3(t) + a2i4(t)+b2i5(t) + c

    2i6(t) + aibi7(t) + aici8(t)

    +bici9(t) + vi(t), i = 1, , 60,(1.1)

    where yi(t) and vi(t) denote the ith response and location-eect curves overtime, respectively, (ai, bi, ci) denotes the coordinates of the target associatedwith the ith angle curve, and r(t), r = 0, 1, , 9 are unknown coecientfunctions.

    Some questions then arise naturally. Is each of the coecient functions

  • 16 INTRODUCTION

    signicant? Can the quadratic model (1.1) be further reduced? These twoquestions and other similar questions can be answered easily after we studyChapter 6 where this ergonomics data set will be used to motivate and illus-trate linear models for functional data with functional responses.

    1.3 Why Is Functional Data Analysis Needed?

    In many situations curve or surface data can be treated as multivariate data sothat classical multivariate data analysis (MDA) tools (for example, Anderson2003) can be applied directly. This treatment, however, ignores the fact thatthe underlying object of the measurements of a subject is a curve or a surfaceor any continuum as indicated by the real functional data sets presented inSection 1.2. In addition, direct MDA treatment may encounter diculties inmany other situations, including

    The sampling time points of the observed functional data are not thesame across various subjects. For example, the nonconceptive and con-ceptive progesterone curves have dierent numbers of measurementsfor dierent curves.

    The sampling time points are not equally spaced. For example, thesampling time points of the Berkeley growth curve data are notequally spaced.

    The number of sampling time points is larger than the number ofsubjects in a sample of functional data. For example, the number ofsampling time points for a Canadian temperature curve is 365 whilethe total number of the Canadian temperature curves is only fteen.

    In the rst situation, direct MDA treatment may not be possible or rea-sonable; in the second situation, MDA inferences may be applied directly tothe data but wether the observed data really represent the underlying curvesor surfaces may be questionable; and in the third situation, standard MDAtreatment fails as the associated sample covariance matrix is degenerated sothat most of the inference tools in MDA, for example, the Hotelling T 2-test orthe Lawley-Hotelling trace test (Anderson 2003), will not be well-dened. Aremedy is to reduce the dimension of the functional data using some dimen-sion reduction techniques. These dimension reduction techniques often workwell. However, in many situations, dimension reduction techniques may alsofail to reduce the dimension of the data suciently without loss of too muchinformation.

    Therefore, in these situations, functional data analysis (FDA) is more nat-ural. In fact, Ramsay and Silverman (2002, 2005) provide many nice FDAtools to solve the aforementioned problems. In Chapters 2 and 3 of this book,we also provide some tools to overcome diculties encountered in the rst twosituations while other chapters of the book provide methodologies to overcomediculties encountered in the third situation.

  • OVERVIEW OF THE BOOK 17

    1.4 Overview of the Book

    In this book, we aim to conduct a thorough survey on the topics of hypothesistesting in the context of analysis of variance for functional data and give asystematic treatment of the methodologies. For this purpose, the remainingchapters are arranged as follows.

    With science and technology development, functional data can be observeddensely. However, they are still discrete observations. Fortunately, continuousversions of functional data can be reconstructed from discrete functional databy some smoothing techniques. For this purpose, we review four major non-parametric smoothing techniques for a single curve in Chapter 2 and presentthe methods for reconstructing a whole functional data set in Chapter 3.

    In classical MDA, inferences are often conducted based on normal distri-bution and Mahalanobis distance. In FDA, the Mahalanobis distance oftencannot be well-dened as the sample covariance matrices of discretized func-tional data are often degenerated. Instead we have to use the L2-norm distance(and its modications). In fact, the Gaussian process and the L2-norm dis-tance in FDA play the roles of normal distribution and Mahalanobis distancein classical MDA. Thus, we shall discuss the properties of the L2-norm of aGaussian process in Chapter 4. We also discuss the properties of Wishart pro-cesses (a natural extension of Wishart matrices), chi-squared mixtures, andF-type mixtures there. These properties are very important for this book andwill be used in successive chapters.

    ANOVA models for functional data are handled in Chapter 5, includingtwo-sample problems, one-way ANOVA, and two-way ANOVA for functionaldata. Chapters 6 and 7 study functional linear models with functional re-sponses when the design matrices are full rank and ill-conditioned, respec-tively. Chapter 8 studies how to detect unusual functions. In all these chap-ters, dierent groups are assumed to have the same covariance function. Whenthis assumption is not satised, we deal with the heteroscedastic ANOVA forfunctional data in Chapter 9. The last chapter (Chapter 10) is devoted to test-ing the equality of the covariance functions. Examples are provided in eachchapter. Technical proofs and exercises are given in almost every chapter.

    1.5 Implementation of Methodologies

    Most methodologies introduced in this book can be implemented usingexisting software such as S-PLUS, SAS, and MATLABR, among oth-ers. We shall publish our MATLAB codes for most of the methodologiesproposed in this book and the data analysis examples on our website:http://www.stat.nus.edu.sg/zhangjt/books/Chapman/FANOVA.htm. We willkeep updating the codes when necessary. We shall also make the data sets usedin this book available through our website. The reader may try to apply themethodologies to the related data sets. We thank all the people who kindlyprovided us with these functional data sets.

  • 18 INTRODUCTION

    1.6 Options for Reading This Book

    Readers who are particularly interested in one or two of nonparametricsmoothing techniques for functional data analysis may read Chapters 2 and 3.For a lower-level graduate course, Chapters 48 are recommended. If studentsalready have some background in nonparametric smoothing techniques, Chap-ters 2 and 3 may be briey reviewed or even skipped. Chapters 9 and 10 maybe included in a higher-level graduate course or can be used as individualresearch materials for those who want to do research in a related eld.

    1.7 Bibliographical Notes

    There are two major monographs about FDA methodologies currently avail-able. One is by Ramsay and Silverman (2005). This book mainly focuses ondescription statistics in FDA, with topics such as curve registration, princi-pal components analysis, canonical correlation analysis, pointwise t-test andF-test, tting functional linear models, among others. Another book is byFerraty and Vieu (2006). This book mainly focuses on nonparametric kernelestimation, functional prediction, and classication of functional observations.There are another three books, accompanying the above two books, by Ram-say and Silverman (2002), Ramsay et al. (2009), and Ferraty and Romain(2011), respectively.

    In recent years, there has been a prosperous period in the developmentof functional hypothesis testing procedures. In terms of test statistics con-structed, these testing procedures include the L2-norm-based tests (Faraway1997, Zhang and Chen 2007, Zhang, Peng, and Zhang 2010, Zhang, Liang,and Xiao 2010, etc.), F -type tests (Shen and Faraway 2004, Zhang 2011a,Zhang and Liang 2013, etc.), basis-based tests (Zhang 1999), thresholdingtests (Fan and Lin 1998, Yang and Nie 2008), bootstrap tests (Faraway 1997,Cuevas, Febrero, and Fraiman 2004, Zhang, Peng, and Zhang 2010, Zhangand Sun 2010, etc.), penalized tests (Mas 2007), among others. In terms ofthe regression models considered, these testing procedures study the mod-els including one-sample problems (Mas 2007), two-sample problems (Zhang,Peng, and Zhang 2010), one-way ANOVA (Cuevas, Febrero, and Fraiman2004), functional linear models with functional responses (Faraway 1997, Shenand Faraway 2004, Zhang and Chen 2007, Zhang 2011a), two-sample Behrens-Fisher problems for functional data (Zhang, Peng, and Zhang 2010, Zhang,Liang, and Xiao 2010), k-sample Behrens-Fisher problems (Cuevas, Febrero,and Fraiman 2004), analysis of surface data (Zhang 1999), among others.However, all these important results and recent developments in this area arespread out in various statistical journals. This book aims to conduct a sys-tematic survey of these results, to develop a common framework for the newlydeveloped models and methods, and to provide a comprehensive guideline forapplied statisticians to use the methods. However, the book is not intended toand is actually impossible to cover all the statistical inference methodologiesavailable in the literature.

  • Chapter 2

    Nonparametric Smoothers for a SingleCurve

    2.1 Introduction

    In the main body of this book, we aim to survey various hypothesis test-ing methodologies for functional data analysis. In the development of thesemethodologies, we essentially assume that continuous functional data areavailable or can be evaluated at any desired resolution. In practice, however,the observed functional data are discrete, probably with large measurementerrors as indicated by the curve data sets presented in the previous chapter.To overcome this diculty, in this chapter, we briey review four well-knownnonparametric smoothing techniques for a single curve. These smoothing tech-niques may allow us to achieve the following goals:

    To reconstruct the individual functions in a real functional data setso that any reconstructed individual function can be evaluated at anydesired resolution.

    To remove measurement errors as much as possible so that the vari-ations of the reconstructed functional data mainly come from thebetween-subject variations.

    To improve the power of a proposed hypothesis testing procedure bythe removal of measurement errors.

    In Chapter 3, we focus on how to apply these smoothing techniques toreconstruct the functions in a functional data set so that the reconstructedfunctional data can be used directly by the methodologies surveyed in thisbook and study the eects of the substitution of the underlying individualfunctions with the reconstructed individual functions in a functional data set.

    In this chapter, we focus on smoothing an individual function in a func-tional data set. For convenience, we generally denote the observed data of anindividual function in a functional data set as

    (ti, yi), i = 1, 2, , n, (2.1)where ti, i = 1, 2, , n denote the design time points, and yi, i = 1, 2, , nare the responses at the design time points. The design time points may be

    19

  • 20 NONPARAMETRIC SMOOTHERS FOR A SINGLE CURVE

    equally spaced in an interval of interest, or be regarded as a random samplefrom a continuous design density, namely, (t). For simplicity, let us denotethe interval of interest or the support of (t) as T , which can be a niteinterval [a, b] or the whole real line (,). The responses yi, i = 1, 2, , nare often observed with measurement errors. For the observed data (2.1), astandard nonparametric regression model is usually written as

    yi = f(ti) + i, i = 1, , n, (2.2)

    where f(t) models the underlying regression function and i, i = 1, 2, , ndenote the measurement errors that cannot be explained by the regressionfunction f(t). Mathematically, f(t) is the conditional expectation of yi, giventi = t. That is,

    f(t) = E(yi|ti = t), i = 1, 2, , n.For an individual function in a functional data set, the regression functionf(t) is the associated underlying individual function.

    There are a number of existing smoothing techniques that can be usedto smooth the regression function f(t) in (2.2). Dierent smoothing tech-niques have dierent strengths in one aspect or another. For example, smooth-ing splines may be good for handling sparse data, while local polynomialsmoothers may be computationally advantageous for handling dense designs.In this chapter, as mentioned previously, we review four well-known smooth-ing techniques, including local polynomial kernel smoothing (Wand and Jones1995, Fan and Gijbels 1996), regression splines (Eubank 1999), smoothingsplines (Wahba 1990, Green and Silverman 1994), and P-splines (Ruppert,Wand and Carroll 2003), respectively, in Sections 2.2, 2.3, 2.4, and 2.5. Weconclude this chapter with some bibliographical notes in Section 2.6.

    2.2 Local Polynomial Kernel Smoothing

    2.2.1 Construction of an LPK Smoother

    The main idea of local polynomial kernel (LPK) smoothing is to locally ap-proximate the underlying function f(t) in (2.2) by a polynomial of some de-gree. Its foundation is Taylor expansion, which states that any smooth functioncan be locally approximated by a polynomial of some degree.

    Specically, let t0 be an arbitrary xed time point where the function f(t)in (2.2) will be estimated. Assume f(t) has a (p + 1)st continuous deriva-tive for some integer p 0 at t0. By Taylor expansion, f(t) can be locallyapproximated by a polynomial of degree p. That is,

    f(t) f(t0)+(tt0)f (1)(t0)/1!+(tt0)2f (2)(t0)/2!+ +(tt0)pf (p)(t0)/p!,

    in a neighborhood of t0 that allows the above expansion where f (r)(t0) denotesthe rth derivative of f(t) at t0.

  • LOCAL POLYNOMIAL KERNEL SMOOTHING 21

    Set r = f (r)(t0)/r!, r = 0, , p. Let r, r = 0, 1, 2, , p be the minimiz-ers of the following weighted least squares (WLS) criterion:

    ni=1

    {yi [0 + (ti t0)1 + + (ti t0)pp]}2 Kh(ti t0), (2.3)

    where Kh() = K(/h)/h, obtained by rescaling a kernel function K() with aconstant h > 0, called the bandwidth or smoothing parameter. The bandwidthh is mainly used to specify the size of the local neighborhood, namely,

    Ih(t0) = [t0 h, t0 + h], (2.4)where the local t is conducted. The kernel function, K(), determines howobservations within [t0 h, t0 + h] contribute to the t at t0.

    Remark 2.1 The kernel function K() is usually a probability density func-tion. For example, the uniform density K(t) = 1/2, t [1, 1] and the stan-dard normal density K(t) = exp(t2/2)/2, t (,) are two well-known kernels, namely, the uniform kernel and the Gaussian kernel. Otheruseful kernels can be found in Gasser, Muller, and Mammitzsch (1985), Mar-ron and Nolan (1988), and Zhang and Fan (2000), among others.

    Denote the estimate of the rth derivative f (r)(t0) as f(r)

    h (t0). Then

    f(r)

    h (t0) = r!r, r = 0, 1, , p.In particular, the resulting pth degree LPK estimator of f(t0) is fh(t0) = 0.

    An explicit expression for f(r)

    h (t0) is useful and can be made by matrixnotation. Let

    X =

    1 (t1 t0) (t1 t0)p

    ......

    . . ....

    1 (tn t0) (tn t0)p

    ,and

    W = diag(Kh(t1 t0), ,Kh(tn t0)),be the design matrix and the weight matrix for the LPK t around t0. Thenthe WLS criterion (2.3) can be re-expressed as

    (y X)TW(y X), (2.5)where y = (y1, , yn)T and = (0, 1, , p)T . It follows that

    f(r)

    h (t0) = r!eTr+1,p+1S

    1n Tny,

    where er+1,p+1 denotes a (p+1)-dimensional unit vector whose (r+1)st entryis 1 and the other entries are 0, and

    Sn = XTWX, Tn = XTW.

  • 22 NONPARAMETRIC SMOOTHERS FOR A SINGLE CURVE

    When t0 runs over the whole support T of the design time points, a wholerange estimation of f (r)(t) is obtained. The derivative estimator f

    (r)

    h (t), t T is usually called the LPK smoother of the underlying derivative functionf (r)(t). The derivative smoother f

    (r)

    h (t0) is usually calculated on a grid of tsin T .

    In this section, we only focus on the LPK curve smoother

    fh(t0) = eT1,p+1S

    1n Tny =

    ni=1

    Knh (ti t0)yi, (2.6)

    where Knh (ti t0) = eT1,p+1S1n Tnei,n with Kn(t) known as the empiricalequivalent kernel for the p-order LPK; see Fan and Gijbels (1996). From (2.6),it is seen that for any t T ,

    fh(t) =n

    i=1

    Knh (ti t)yi = a(t)Ty, (2.7)

    where a(t) = [Knh (t1 t),Knh (t2 t), ,Knh (tn t)]T , which can be obtainedfrom TTnS

    1n e1,p+1 after replacing t0 with t. This general formula allows us to

    evaluate fh(t) at any resolution. Set yi = fh(ti) as the tted value of f(ti).Let yh = [y1, , yn]T denote the tted values at all the design time points.Then yh can be expressed as

    yh = Ahy, (2.8)

    whereAh = (a(t1), ,a(tn))T (2.9)

    is known as the smoother matrix of the LPK smoother.

    Remark 2.2 As Ah does not depend on the response vector y, the LPKsmoother fh(t) is known as a linear smoother, which is a linear combina-tion of the responses. The regression spline, smoothing spline, and P-splinesmoothers introduced in the next three sections are also linear smoothers.

    2.2.2 Two Special LPK Smoothers

    Local constant and linear smoothers are the two simplest and most useful LPKsmoothers. The local constant smoother is known as the Nadaraya-Watsonestimator (Nadaraya 1964, Watson 1964). This smoother results from theLPK smoother fh(t0) (2.6) by simply taking p = 0:

    fh(t0) =n

    i=1 Kh(ti t0)yini=1 Kh(ti t0)

    . (2.10)

  • LOCAL POLYNOMIAL KERNEL SMOOTHING 23

    Within a local neighborhood Ih(t0), it ts the data with a constant. That is,it is the minimizer 0 of the following WLS criterion:

    ni=1

    (yi 0)2Kh(ti t0).

    The Nadaraya-Watson estimator is simple to understand and easy to compute.Let IA(t) denote the indicator function of some set A.

    Remark 2.3 When the kernel function K is the uniform kernel K(t) =1/2, t [1, 1], the Nadaraya-Watson estimator (2.10) is exactly the localaverage of yis that are within the local neighborhood Ih(t0) (2.4):

    fh(t0) =n

    i=1 IIh(t0)(ti)yini=1 IIh(t0)(ti)

    =

    tiIh(t0)

    yi

    /mh(t0),where mh(t0) denotes the number of the observations falling into the localneighborhood Ih(t0).

    Remark 2.4 When t0 is a boundary point of T , fewer design points are withinthe neighborhood Ih(t0) so that fh(t0) has a slower convergence rate than thecase when t0 is an interior point of T . For a detailed explanation of thisboundary eect, the reader is referred to Muller (1991, 1993), Fan and Gijbels(1996), Cheng, Fan, and Marron (1997), and Muller and Stadtmuller (1999),among others.

    The local linear smoother (Stone 1984, Fan 1992, 1993) is obtained bytting a data set locally with a linear function. Let (0, 1) minimize thefollowing WLS criterion:

    ni=1

    [yi 0 (ti t0)1]2Kh(ti t0).

    Then the local linear smoother is fh(t0) = 0. It can be easily obtained fromthe LPK smoother fh(t0) (2.6) by simply taking p = 1.

    Remark 2.5 The local linear smoother is known as a smoother with a freeboundary eect (Cheng, Fan, and Marron 1997). That is, it has the sameconvergence rate at any point in T . It also exhibits many good properties thatthe other linear smoothers may lack. Good discussions on these properties canbe found in Fan (1992, 1993), Hastie and Loader (1993), and Fan and Gijbels(1996, Chapter 2), among others.

    A local linear smoother can be simply expressed as

    fh(t0) =n

    i=1 [s2(t0) s1(t0)(ti t0)]Kh(ti t0)yis2(t0)s0(t0) s21(t0)

    , (2.11)

  • 24 NONPARAMETRIC SMOOTHERS FOR A SINGLE CURVE

    where

    sr(t0) =n

    i=1

    Kh(ti t0)(ti t0)r , r = 0, 1, 2.

    Remark 2.6 The choice of the degree of the local polynomial used in LPKsmoothing, p, is usually not as important as the choice of the bandwidth, h.A local constant (p = 0) or a local linear (p = 1) smoother is often goodenough for most applications if the kernel function K and the bandwidth h areproperly determined.

    Remark 2.7 Fan an