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

201707srws第六回その2メタアナリシス・異質性・出版バイアス
201707srws第六回その2メタアナリシス・異質性・出版バイアス201707srws第六回その2メタアナリシス・異質性・出版バイアス
201707srws第六回その2メタアナリシス・異質性・出版バイアスSR WS
 
『経済学で出る数学』1章(後半)
『経済学で出る数学』1章(後半)『経済学で出る数学』1章(後半)
『経済学で出る数学』1章(後半)Yosuke YASUDA
 
Generalized Nonlinear Models in R
Generalized Nonlinear Models in RGeneralized Nonlinear Models in R
Generalized Nonlinear Models in Rhtstatistics
 
ANOVA in R by Aman Chauhan
ANOVA in R by Aman ChauhanANOVA in R by Aman Chauhan
ANOVA in R by Aman ChauhanAman Chauhan
 
Plant phenotyping platforms
Plant phenotyping platformsPlant phenotyping platforms
Plant phenotyping platformsMichal Slota
 
臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜
臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜
臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜Yasuyuki Okumura
 
ロジスティック回帰分析の入門 -予測モデル構築-
ロジスティック回帰分析の入門 -予測モデル構築-ロジスティック回帰分析の入門 -予測モデル構築-
ロジスティック回帰分析の入門 -予測モデル構築-Koichiro Gibo
 
Introgression breeding for rice submergence tolerance_geetanjali
Introgression breeding for rice submergence tolerance_geetanjaliIntrogression breeding for rice submergence tolerance_geetanjali
Introgression breeding for rice submergence tolerance_geetanjaliDr. Geetanjali Baruah
 
StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】
StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】
StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】Hiroyuki Muto
 
Rの導入とRStudio事始め(改訂版)
Rの導入とRStudio事始め(改訂版)Rの導入とRStudio事始め(改訂版)
Rの導入とRStudio事始め(改訂版)Takashi Yamane
 
【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】
【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】
【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】Naoki Hayashi
 
Rによる散布図行列の描き方
Rによる散布図行列の描き方Rによる散布図行列の描き方
Rによる散布図行列の描き方wada, kazumi
 
Granger因果による 時系列データの因果推定(因果フェス2015)
Granger因果による時系列データの因果推定(因果フェス2015)Granger因果による時系列データの因果推定(因果フェス2015)
Granger因果による 時系列データの因果推定(因果フェス2015)Takashi J OZAKI
 
probability ,and its terminologies full description
probability ,and its terminologies full descriptionprobability ,and its terminologies full description
probability ,and its terminologies full descriptionAMRITGUPTA2345
 
『経済学で出る数学』1章(前半)
『経済学で出る数学』1章(前半)『経済学で出る数学』1章(前半)
『経済学で出る数学』1章(前半)Yosuke YASUDA
 
バリデーション研究の計画・報告・活用
バリデーション研究の計画・報告・活用バリデーション研究の計画・報告・活用
バリデーション研究の計画・報告・活用Yasuyuki Okumura
 
Discrete probability distribution (complete)
Discrete probability distribution (complete)Discrete probability distribution (complete)
Discrete probability distribution (complete)ISYousafzai
 
201705 srws第二回文献の選択基準
201705 srws第二回文献の選択基準201705 srws第二回文献の選択基準
201705 srws第二回文献の選択基準SR WS
 
傾向スコアの概念とその実践
傾向スコアの概念とその実践傾向スコアの概念とその実践
傾向スコアの概念とその実践Yasuyuki Okumura
 

What's hot (20)

201707srws第六回その2メタアナリシス・異質性・出版バイアス
201707srws第六回その2メタアナリシス・異質性・出版バイアス201707srws第六回その2メタアナリシス・異質性・出版バイアス
201707srws第六回その2メタアナリシス・異質性・出版バイアス
 
『経済学で出る数学』1章(後半)
『経済学で出る数学』1章(後半)『経済学で出る数学』1章(後半)
『経済学で出る数学』1章(後半)
 
Generalized Nonlinear Models in R
Generalized Nonlinear Models in RGeneralized Nonlinear Models in R
Generalized Nonlinear Models in R
 
ANOVA in R by Aman Chauhan
ANOVA in R by Aman ChauhanANOVA in R by Aman Chauhan
ANOVA in R by Aman Chauhan
 
Plant phenotyping platforms
Plant phenotyping platformsPlant phenotyping platforms
Plant phenotyping platforms
 
臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜
臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜
臨床疫学研究における傾向スコア分析の使い⽅ 〜観察研究における治療効果研究〜
 
ロジスティック回帰分析の入門 -予測モデル構築-
ロジスティック回帰分析の入門 -予測モデル構築-ロジスティック回帰分析の入門 -予測モデル構築-
ロジスティック回帰分析の入門 -予測モデル構築-
 
Introgression breeding for rice submergence tolerance_geetanjali
Introgression breeding for rice submergence tolerance_geetanjaliIntrogression breeding for rice submergence tolerance_geetanjali
Introgression breeding for rice submergence tolerance_geetanjali
 
StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】
StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】
StanとRで折れ線回帰──空間的視点取得課題の反応時間データを説明する階層ベイズモデルを例に──【※Docswellにも同じものを上げています】
 
Rの導入とRStudio事始め(改訂版)
Rの導入とRStudio事始め(改訂版)Rの導入とRStudio事始め(改訂版)
Rの導入とRStudio事始め(改訂版)
 
【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】
【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】
【招待講演】パラメータ制約付き行列分解のベイズ汎化誤差解析【StatsML若手シンポ2020】
 
Rによる散布図行列の描き方
Rによる散布図行列の描き方Rによる散布図行列の描き方
Rによる散布図行列の描き方
 
Granger因果による 時系列データの因果推定(因果フェス2015)
Granger因果による時系列データの因果推定(因果フェス2015)Granger因果による時系列データの因果推定(因果フェス2015)
Granger因果による 時系列データの因果推定(因果フェス2015)
 
FUTURE TRENDS IN PLANT DISEASES
FUTURE TRENDS IN PLANT DISEASESFUTURE TRENDS IN PLANT DISEASES
FUTURE TRENDS IN PLANT DISEASES
 
probability ,and its terminologies full description
probability ,and its terminologies full descriptionprobability ,and its terminologies full description
probability ,and its terminologies full description
 
『経済学で出る数学』1章(前半)
『経済学で出る数学』1章(前半)『経済学で出る数学』1章(前半)
『経済学で出る数学』1章(前半)
 
バリデーション研究の計画・報告・活用
バリデーション研究の計画・報告・活用バリデーション研究の計画・報告・活用
バリデーション研究の計画・報告・活用
 
Discrete probability distribution (complete)
Discrete probability distribution (complete)Discrete probability distribution (complete)
Discrete probability distribution (complete)
 
201705 srws第二回文献の選択基準
201705 srws第二回文献の選択基準201705 srws第二回文献の選択基準
201705 srws第二回文献の選択基準
 
傾向スコアの概念とその実践
傾向スコアの概念とその実践傾向スコアの概念とその実践
傾向スコアの概念とその実践
 

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 (19)

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

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.arsicmarija21
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 

Recently uploaded (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.AmericanHighSchoolsprezentacijaoskolama.
AmericanHighSchoolsprezentacijaoskolama.
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 

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