SlideShare a Scribd company logo
1 of 20
Download to read offline
An Introduction to Functional Data Analysis (FDA)
Rene Essomba, Sugnet Lubbe
Department of Statistical Sciences, University of Cape Town
franckess48@gmail.com
November 2013
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 1 / 20
Break-Down
To represent the data in ways that aid further analysis.
To display the data so as to highlight various characteristics.
To study important sources of pattern and variation among the data.
To explain variation in dependent variable by using independent
variable information.
To compare two or more sets of data with respect to certain types of
variation.
For illustration, the R-packages fda and fda.usc will be used.
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 2 / 20
Overview
1 Introduction
2 Basis Representation
Fourier Basis
B-Splines
3 Summary Statistics for functional data
Functional means and variances
Covariance and Correlation functions
4 Functional Principal Component Analysis (fPCA)
5 Functional Linear Regression Model (fLRM)
6 Some References
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 3 / 20
Introduction
The Main Equation
Zk(ti ) = X(ti ) + (ti ) for i = 1, . . . , n & k = 1, . . . , N
Zk(ti ) is the noisy observation from the k-th cluster.
X(ti ) is the value of a continuous underlying process.
(ti ) is the error term.
N.B.: N denotes the number of observed curves on a discrete grid
(ti , i = 1, . . . , n)
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 4 / 20
Introduction
Example: The Canadian Weather (temperatures and precipitations)
daily observations (i.e. Zk(ti ));
35 different weather stations (i.e. k = 1, . . . , 35);
observed at time ti = 0.5, . . . , 364.5.
Therefore, our observed pairs will be (ti , Zk(ti )).
Plot of the raw data for the station located in Saint Johns & Halifax.
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 5 / 20
Basis Representation
Example: The Canadian Weather (continued)
X(ti ) continuous process observed at 365 discrete observations.
Finding a linear combination of K basis functions (0 < K < 365)
X(t) ≈
K
k=1
θkφk(t) with φk(t) as basis functions and θk as the
coefficients.
Types of basis functions:
Fourier Basis
B-Splines
Remark: The optimal number of basis functions is determined by using a
generalized cross validation criterion (GCV).
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 6 / 20
Fourier Basis
Definition
Useful for periodic data, Fourier basis expansion is composed by the
following orthonormal functions:
φo(t) = 1/
√
T, φ2r−1(t) =
sin(rωt)
T/2
and φ2r (t) =
cos(rωt)
T/2
,
with r = 1, ..., L/2 where L is an even integer. The period T is by default
the range of discretization points t and ω = 2π/T.
In R: create.fourier.basis(rangeval, nbasis,...) (fda package).
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 7 / 20
Fourier Basis
Figure : Fourier Basis plot with 7 basis functions
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 8 / 20
B-Splines
Definition
Appropriate for non-periodic data.
Selecting a series of knots along the t-axis τ1 < τ2 < ... < τL+2M
where M is the order of the spline;
φk,m(t) = t−τk
τk+m−1−τk
φk,m−1(t) + τk+m−t
τk+m−τk+1
φk+1,m−1(t) for
k = 1, ..., L + 2M − m and φk,1(t) = I[τk ;τk+1](t).
In R: create.bspline.basis(rangeval,nbasis,norder,...) (fda package)
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 9 / 20
B-Splines
Figure : B-Splines of order 4
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 10 / 20
Basis Representation
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 11 / 20
Summary Statistics
The usual tools used for summarizing data in an univariate context remain
the same for functional data
Definition
functional mean: ¯X(t) = N−1
N
i=1
Xi (t).
functional variance: Var(X(t)) = (N − 1)−1
N
i=1
(Xi (t) − ¯X(t))2.
functional covariance:
Cov(X(t), X(s)) = (N − 1)−1
N
i=1
(Xi (s) − ¯X(s))(Xi (t) − ¯X(t)) .
In R, mean.fd & var.fd (fda package).
Remark: The values returned will also be objects of class fd & fdata.
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 12 / 20
Mean Function and Standard Deviation
Figure : Mean temperature and standard deviation
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 13 / 20
Correlation Function
Figure : Temperature Correlation Function
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 14 / 20
Functional Principal Component Analysis (f PCA)
Primarily used as a tool for dimension reduction, it is designed to explain
the source of variation within the functional data created.
Algorithm
1 Find the function ξ1(t) of norm 1 (i.e. ξ2
1(t)dt = 1) such that
N−1
i f 2
i1 is maximized with fi1 = ξ1(t)Xc
i (t)dt.
2 On the mth step (m > 1), compute ξm(t) with the orthogonality
constraint(s): ξm(t)ξk(t)dt = 0, for k < m.
The functional data will therefore be: ˆXi (t) = M
k=1 fik
ˆξk(t) where
fik = ξk(t)Xc
i (t)dt with Xc
i = Xi (t) − ¯X(t).
f PCA in R: fdata2pc(fdataobj, ncomp,...) (fda.usc package)
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 15 / 20
Functional Principal Component Analysis (f PCA)
Example (Canadian Weather)
R> temp.svd <- fdata2pc(tempdat.fdata, ncomp=3)
R> norm.fdata(temp.svd$rotation[1:2])
[,1]
[1,] 0.9976567
[2,] 0.9980333
# With 3 components that explained 98.56% of the
variability of explicative variables.
# Variability for each component (%): PC1 88.03 PC2 8.47
PC3 2.06
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 16 / 20
Functional Principal Component Analysis (f PCA)
Figure : Loadings for PC1 & PC2
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 17 / 20
Functional Linear Regression Model (f LRM)
Consider the following functional linear regression models:
Functional response with multivariate covariates:
yi (t) = β1(t)xi1 + · · · + βp(t)xip + i (t); i = 1, . . . , N
Scalar response with functional covariates:
yi = α +
T
0
p
j=1
βj (s)xij (s)ds + i ; i = 1, . . . , N; s ∈ [0, T].
Functional response with functional covariates:
yi (t) = α(t) +
T
0
p
j=1
βj (t, s)xij (s)ds + i (t); i = 1, . . . , N; s ∈ [0, T].
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 18 / 20
Useful References
M. Febrero-Bande, M. O. De La Fuente (2012)
Statistical Computing in Functional Data Analysis: The R Package fda.usc.
J. O. Ramsay, G. Hooker and S. Graves (2009)
Functional Data Analysis in R and Matlab.
T. Hastie, R. Tibshirani, J. Friedman (2009)
The Elements of Statistical Learning.
J. O. Ramsay and B. W. Silverman (2005)
Functional Data Analysis
Carl de Boor (1978),
A practical guide to splines, Springer-Verlag, New York Heidelberg Berlin.
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 19 / 20
(Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 20 / 20

More Related Content

What's hot

Anju basera(apple)
Anju basera(apple)Anju basera(apple)
Anju basera(apple)csapramod
 
Crop modeling for stress situation
Crop modeling for stress situationCrop modeling for stress situation
Crop modeling for stress situationDebashish Hota
 
Survival analysis 1
Survival analysis 1Survival analysis 1
Survival analysis 1KyusonLim
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Tesfamichael Getu
 
Time Series Analysis: Theory and Practice
Time Series Analysis: Theory and PracticeTime Series Analysis: Theory and Practice
Time Series Analysis: Theory and PracticeTetiana Ivanova
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression AnalysisASAD ALI
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysisnadiazaheer
 
How principal components analysis is different from factor
How principal components analysis is different from factorHow principal components analysis is different from factor
How principal components analysis is different from factorArup Guha
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAYelulu123
 
Regression
Regression Regression
Regression Ali Raza
 
Principles of experimental design
Principles of experimental designPrinciples of experimental design
Principles of experimental designFarhan Alfin
 
Canopy managemnt in aonla
Canopy managemnt in aonlaCanopy managemnt in aonla
Canopy managemnt in aonlaSushritaNayak1
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVADr Ali Yusob Md Zain
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.sonia gupta
 
Canopy management through plant growth inhibitors
Canopy management through plant growth inhibitorsCanopy management through plant growth inhibitors
Canopy management through plant growth inhibitorsReetika Sharma
 
ANOVA 2-WAY Classification
ANOVA 2-WAY ClassificationANOVA 2-WAY Classification
ANOVA 2-WAY ClassificationSharlaine Ruth
 

What's hot (20)

Anju basera(apple)
Anju basera(apple)Anju basera(apple)
Anju basera(apple)
 
Crop modeling for stress situation
Crop modeling for stress situationCrop modeling for stress situation
Crop modeling for stress situation
 
Survival analysis 1
Survival analysis 1Survival analysis 1
Survival analysis 1
 
Chi square Test
Chi square TestChi square Test
Chi square Test
 
F test
F testF test
F test
 
Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
 
confounding 2*2
confounding 2*2confounding 2*2
confounding 2*2
 
Time Series Analysis: Theory and Practice
Time Series Analysis: Theory and PracticeTime Series Analysis: Theory and Practice
Time Series Analysis: Theory and Practice
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Survival analysis
Survival  analysisSurvival  analysis
Survival analysis
 
How principal components analysis is different from factor
How principal components analysis is different from factorHow principal components analysis is different from factor
How principal components analysis is different from factor
 
Anova ONE WAY
Anova ONE WAYAnova ONE WAY
Anova ONE WAY
 
Regression
Regression Regression
Regression
 
Principles of experimental design
Principles of experimental designPrinciples of experimental design
Principles of experimental design
 
Canopy managemnt in aonla
Canopy managemnt in aonlaCanopy managemnt in aonla
Canopy managemnt in aonla
 
Data Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVAData Analysis with SPSS : One-way ANOVA
Data Analysis with SPSS : One-way ANOVA
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Canopy management through plant growth inhibitors
Canopy management through plant growth inhibitorsCanopy management through plant growth inhibitors
Canopy management through plant growth inhibitors
 
ANOVA 2-WAY Classification
ANOVA 2-WAY ClassificationANOVA 2-WAY Classification
ANOVA 2-WAY Classification
 

Viewers also liked

Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...
Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...
Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...Lushanthan Sivaneasharajah
 
Kernel fisher discriminant
Kernel fisher discriminantKernel fisher discriminant
Kernel fisher discriminantĐỗ Hợp
 
Face recognition using laplacian faces
Face recognition using laplacian facesFace recognition using laplacian faces
Face recognition using laplacian facesPulkiŧ Sharma
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysisBhasker Rajan
 
face recognition system
face recognition systemface recognition system
face recognition systemAnil Kumar
 
Linear Discriminant Analysis and Its Generalization
Linear Discriminant Analysis and Its GeneralizationLinear Discriminant Analysis and Its Generalization
Linear Discriminant Analysis and Its Generalization일상 온
 
T18 discriminant analysis
T18 discriminant analysisT18 discriminant analysis
T18 discriminant analysiskompellark
 
LDA presentation
LDA presentationLDA presentation
LDA presentationMohit Gupta
 
discriminant analysis
discriminant analysisdiscriminant analysis
discriminant analysiskrishnadk
 
Hướng dẫn sử dụng slide share
Hướng dẫn sử dụng  slide shareHướng dẫn sử dụng  slide share
Hướng dẫn sử dụng slide shareNgọc Khánh
 
LDA Beginner's Tutorial
LDA Beginner's TutorialLDA Beginner's Tutorial
LDA Beginner's TutorialWayne Lee
 
Iris data analysis example in R
Iris data analysis example in RIris data analysis example in R
Iris data analysis example in RDuyen Do
 

Viewers also liked (20)

Functional Data Analysis
Functional Data AnalysisFunctional Data Analysis
Functional Data Analysis
 
Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...
Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...
Application of Fisher Linear Discriminant Analysis to Speech/Music Classifica...
 
Kernel fisher discriminant
Kernel fisher discriminantKernel fisher discriminant
Kernel fisher discriminant
 
Face recognition using laplacian faces
Face recognition using laplacian facesFace recognition using laplacian faces
Face recognition using laplacian faces
 
Face recognition using LDA
Face recognition using LDAFace recognition using LDA
Face recognition using LDA
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 
face recognition system
face recognition systemface recognition system
face recognition system
 
LDA
LDALDA
LDA
 
Linear Discriminant Analysis and Its Generalization
Linear Discriminant Analysis and Its GeneralizationLinear Discriminant Analysis and Its Generalization
Linear Discriminant Analysis and Its Generalization
 
T18 discriminant analysis
T18 discriminant analysisT18 discriminant analysis
T18 discriminant analysis
 
PCA vs LDA
PCA vs LDAPCA vs LDA
PCA vs LDA
 
Understandig PCA and LDA
Understandig PCA and LDAUnderstandig PCA and LDA
Understandig PCA and LDA
 
Lda
LdaLda
Lda
 
LDA presentation
LDA presentationLDA presentation
LDA presentation
 
discriminant analysis
discriminant analysisdiscriminant analysis
discriminant analysis
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 
Discriminant analysis
Discriminant analysisDiscriminant analysis
Discriminant analysis
 
Hướng dẫn sử dụng slide share
Hướng dẫn sử dụng  slide shareHướng dẫn sử dụng  slide share
Hướng dẫn sử dụng slide share
 
LDA Beginner's Tutorial
LDA Beginner's TutorialLDA Beginner's Tutorial
LDA Beginner's Tutorial
 
Iris data analysis example in R
Iris data analysis example in RIris data analysis example in R
Iris data analysis example in R
 

Similar to Introduction to Functional Data Analysis

A New Enhanced Method of Non Parametric power spectrum Estimation.
A New Enhanced Method of Non Parametric power spectrum Estimation.A New Enhanced Method of Non Parametric power spectrum Estimation.
A New Enhanced Method of Non Parametric power spectrum Estimation.CSCJournals
 
Reading Seminar (140515) Spectral Learning of L-PCFGs
Reading Seminar (140515) Spectral Learning of L-PCFGsReading Seminar (140515) Spectral Learning of L-PCFGs
Reading Seminar (140515) Spectral Learning of L-PCFGsKeisuke OTAKI
 
A walk through the intersection between machine learning and mechanistic mode...
A walk through the intersection between machine learning and mechanistic mode...A walk through the intersection between machine learning and mechanistic mode...
A walk through the intersection between machine learning and mechanistic mode...JuanPabloCarbajal3
 
Modeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQL
Modeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQLModeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQL
Modeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQLKostis Kyzirakos
 
Application of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of ReservoirsApplication of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of ReservoirsIOSR Journals
 
The inverse scattering series for tasks associated with primaries: direct non...
The inverse scattering series for tasks associated with primaries: direct non...The inverse scattering series for tasks associated with primaries: direct non...
The inverse scattering series for tasks associated with primaries: direct non...Arthur Weglein
 
from_data_to_differential_equations.ppt
from_data_to_differential_equations.pptfrom_data_to_differential_equations.ppt
from_data_to_differential_equations.pptashutoshvb1
 
SIAM SEAS Talk Slides
SIAM SEAS Talk SlidesSIAM SEAS Talk Slides
SIAM SEAS Talk SlidesRyan White
 
Visualizing, Modeling and Forecasting of Functional Time Series
Visualizing, Modeling and Forecasting of Functional Time SeriesVisualizing, Modeling and Forecasting of Functional Time Series
Visualizing, Modeling and Forecasting of Functional Time Serieshanshang
 
ders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptxders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptxErgin Akalpler
 
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIRMATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIREditor IJMTER
 
2014-mo444-practical-assignment-02-paulo_faria
2014-mo444-practical-assignment-02-paulo_faria2014-mo444-practical-assignment-02-paulo_faria
2014-mo444-practical-assignment-02-paulo_fariaPaulo Faria
 
presentation
presentationpresentation
presentationjie ren
 

Similar to Introduction to Functional Data Analysis (20)

A New Enhanced Method of Non Parametric power spectrum Estimation.
A New Enhanced Method of Non Parametric power spectrum Estimation.A New Enhanced Method of Non Parametric power spectrum Estimation.
A New Enhanced Method of Non Parametric power spectrum Estimation.
 
R Language Introduction
R Language IntroductionR Language Introduction
R Language Introduction
 
ppt0320defenseday
ppt0320defensedayppt0320defenseday
ppt0320defenseday
 
Reading Seminar (140515) Spectral Learning of L-PCFGs
Reading Seminar (140515) Spectral Learning of L-PCFGsReading Seminar (140515) Spectral Learning of L-PCFGs
Reading Seminar (140515) Spectral Learning of L-PCFGs
 
AlgorithmAnalysis2.ppt
AlgorithmAnalysis2.pptAlgorithmAnalysis2.ppt
AlgorithmAnalysis2.ppt
 
A walk through the intersection between machine learning and mechanistic mode...
A walk through the intersection between machine learning and mechanistic mode...A walk through the intersection between machine learning and mechanistic mode...
A walk through the intersection between machine learning and mechanistic mode...
 
Modeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQL
Modeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQLModeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQL
Modeling and Querying Metadata in the Semantic Sensor Web: stRDF and stSPARQL
 
Application of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of ReservoirsApplication of Artificial Neural Network (Ann) In Operation of Reservoirs
Application of Artificial Neural Network (Ann) In Operation of Reservoirs
 
The inverse scattering series for tasks associated with primaries: direct non...
The inverse scattering series for tasks associated with primaries: direct non...The inverse scattering series for tasks associated with primaries: direct non...
The inverse scattering series for tasks associated with primaries: direct non...
 
from_data_to_differential_equations.ppt
from_data_to_differential_equations.pptfrom_data_to_differential_equations.ppt
from_data_to_differential_equations.ppt
 
SIAM SEAS Talk Slides
SIAM SEAS Talk SlidesSIAM SEAS Talk Slides
SIAM SEAS Talk Slides
 
Colored inversion
Colored inversionColored inversion
Colored inversion
 
Visualizing, Modeling and Forecasting of Functional Time Series
Visualizing, Modeling and Forecasting of Functional Time SeriesVisualizing, Modeling and Forecasting of Functional Time Series
Visualizing, Modeling and Forecasting of Functional Time Series
 
Have you met Julia?
Have you met Julia?Have you met Julia?
Have you met Julia?
 
MSSISS riBART 20160321
MSSISS riBART 20160321MSSISS riBART 20160321
MSSISS riBART 20160321
 
ders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptxders 3.3 Unit root testing section 3 .pptx
ders 3.3 Unit root testing section 3 .pptx
 
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIRMATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
MATHEMATICAL MODELING OF COMPLEX REDUNDANT SYSTEM UNDER HEAD-OF-LINE REPAIR
 
2014-mo444-practical-assignment-02-paulo_faria
2014-mo444-practical-assignment-02-paulo_faria2014-mo444-practical-assignment-02-paulo_faria
2014-mo444-practical-assignment-02-paulo_faria
 
I stata
I stataI stata
I stata
 
presentation
presentationpresentation
presentation
 

Recently uploaded

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxPooja Bhuva
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 

Recently uploaded (20)

Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Introduction to Functional Data Analysis

  • 1. An Introduction to Functional Data Analysis (FDA) Rene Essomba, Sugnet Lubbe Department of Statistical Sciences, University of Cape Town franckess48@gmail.com November 2013 (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 1 / 20
  • 2. Break-Down To represent the data in ways that aid further analysis. To display the data so as to highlight various characteristics. To study important sources of pattern and variation among the data. To explain variation in dependent variable by using independent variable information. To compare two or more sets of data with respect to certain types of variation. For illustration, the R-packages fda and fda.usc will be used. (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 2 / 20
  • 3. Overview 1 Introduction 2 Basis Representation Fourier Basis B-Splines 3 Summary Statistics for functional data Functional means and variances Covariance and Correlation functions 4 Functional Principal Component Analysis (fPCA) 5 Functional Linear Regression Model (fLRM) 6 Some References (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 3 / 20
  • 4. Introduction The Main Equation Zk(ti ) = X(ti ) + (ti ) for i = 1, . . . , n & k = 1, . . . , N Zk(ti ) is the noisy observation from the k-th cluster. X(ti ) is the value of a continuous underlying process. (ti ) is the error term. N.B.: N denotes the number of observed curves on a discrete grid (ti , i = 1, . . . , n) (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 4 / 20
  • 5. Introduction Example: The Canadian Weather (temperatures and precipitations) daily observations (i.e. Zk(ti )); 35 different weather stations (i.e. k = 1, . . . , 35); observed at time ti = 0.5, . . . , 364.5. Therefore, our observed pairs will be (ti , Zk(ti )). Plot of the raw data for the station located in Saint Johns & Halifax. (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 5 / 20
  • 6. Basis Representation Example: The Canadian Weather (continued) X(ti ) continuous process observed at 365 discrete observations. Finding a linear combination of K basis functions (0 < K < 365) X(t) ≈ K k=1 θkφk(t) with φk(t) as basis functions and θk as the coefficients. Types of basis functions: Fourier Basis B-Splines Remark: The optimal number of basis functions is determined by using a generalized cross validation criterion (GCV). (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 6 / 20
  • 7. Fourier Basis Definition Useful for periodic data, Fourier basis expansion is composed by the following orthonormal functions: φo(t) = 1/ √ T, φ2r−1(t) = sin(rωt) T/2 and φ2r (t) = cos(rωt) T/2 , with r = 1, ..., L/2 where L is an even integer. The period T is by default the range of discretization points t and ω = 2π/T. In R: create.fourier.basis(rangeval, nbasis,...) (fda package). (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 7 / 20
  • 8. Fourier Basis Figure : Fourier Basis plot with 7 basis functions (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 8 / 20
  • 9. B-Splines Definition Appropriate for non-periodic data. Selecting a series of knots along the t-axis τ1 < τ2 < ... < τL+2M where M is the order of the spline; φk,m(t) = t−τk τk+m−1−τk φk,m−1(t) + τk+m−t τk+m−τk+1 φk+1,m−1(t) for k = 1, ..., L + 2M − m and φk,1(t) = I[τk ;τk+1](t). In R: create.bspline.basis(rangeval,nbasis,norder,...) (fda package) (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 9 / 20
  • 10. B-Splines Figure : B-Splines of order 4 (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 10 / 20
  • 11. Basis Representation (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 11 / 20
  • 12. Summary Statistics The usual tools used for summarizing data in an univariate context remain the same for functional data Definition functional mean: ¯X(t) = N−1 N i=1 Xi (t). functional variance: Var(X(t)) = (N − 1)−1 N i=1 (Xi (t) − ¯X(t))2. functional covariance: Cov(X(t), X(s)) = (N − 1)−1 N i=1 (Xi (s) − ¯X(s))(Xi (t) − ¯X(t)) . In R, mean.fd & var.fd (fda package). Remark: The values returned will also be objects of class fd & fdata. (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 12 / 20
  • 13. Mean Function and Standard Deviation Figure : Mean temperature and standard deviation (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 13 / 20
  • 14. Correlation Function Figure : Temperature Correlation Function (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 14 / 20
  • 15. Functional Principal Component Analysis (f PCA) Primarily used as a tool for dimension reduction, it is designed to explain the source of variation within the functional data created. Algorithm 1 Find the function ξ1(t) of norm 1 (i.e. ξ2 1(t)dt = 1) such that N−1 i f 2 i1 is maximized with fi1 = ξ1(t)Xc i (t)dt. 2 On the mth step (m > 1), compute ξm(t) with the orthogonality constraint(s): ξm(t)ξk(t)dt = 0, for k < m. The functional data will therefore be: ˆXi (t) = M k=1 fik ˆξk(t) where fik = ξk(t)Xc i (t)dt with Xc i = Xi (t) − ¯X(t). f PCA in R: fdata2pc(fdataobj, ncomp,...) (fda.usc package) (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 15 / 20
  • 16. Functional Principal Component Analysis (f PCA) Example (Canadian Weather) R> temp.svd <- fdata2pc(tempdat.fdata, ncomp=3) R> norm.fdata(temp.svd$rotation[1:2]) [,1] [1,] 0.9976567 [2,] 0.9980333 # With 3 components that explained 98.56% of the variability of explicative variables. # Variability for each component (%): PC1 88.03 PC2 8.47 PC3 2.06 (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 16 / 20
  • 17. Functional Principal Component Analysis (f PCA) Figure : Loadings for PC1 & PC2 (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 17 / 20
  • 18. Functional Linear Regression Model (f LRM) Consider the following functional linear regression models: Functional response with multivariate covariates: yi (t) = β1(t)xi1 + · · · + βp(t)xip + i (t); i = 1, . . . , N Scalar response with functional covariates: yi = α + T 0 p j=1 βj (s)xij (s)ds + i ; i = 1, . . . , N; s ∈ [0, T]. Functional response with functional covariates: yi (t) = α(t) + T 0 p j=1 βj (t, s)xij (s)ds + i (t); i = 1, . . . , N; s ∈ [0, T]. (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 18 / 20
  • 19. Useful References M. Febrero-Bande, M. O. De La Fuente (2012) Statistical Computing in Functional Data Analysis: The R Package fda.usc. J. O. Ramsay, G. Hooker and S. Graves (2009) Functional Data Analysis in R and Matlab. T. Hastie, R. Tibshirani, J. Friedman (2009) The Elements of Statistical Learning. J. O. Ramsay and B. W. Silverman (2005) Functional Data Analysis Carl de Boor (1978), A practical guide to splines, Springer-Verlag, New York Heidelberg Berlin. (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 19 / 20
  • 20. (Rene Essomba & Sugnet Lubbe) Functional Data Analysis November 2013 20 / 20