FUNCTIONAL DATA ANALYSIS: TECHNIQUES FOR EXPLORING

Download Report

Transcript FUNCTIONAL DATA ANALYSIS: TECHNIQUES FOR EXPLORING

Functional Data Analysis:
Techniques for Exploring Temporal
Processes in Music
Bradley W. Vines
McGill University
Collaborators





Daniel Levitin (McGill University)
Carol Krumhansl (Cornell University)
Jim Ramsay (McGill University)
Regina Nuzzo (McGill University)
Stephen McAdams (IRCAM)
7/20/2015
ICMPC8
2
Talk Outline

What is Functional Data Analysis?

Steps of a typical FDA

Demonstrate some of the major FDA tools



7/20/2015
Smoothing
Registration
General Linear Modeling (significance testing)
ICMPC8
3
An Example of Functional
Data

Solo clarinet performances

3 Treatment Groups
 Auditory
only
 Visual only
 Auditory + Visual

Continuous Tension Judgments
7/20/2015
ICMPC8
4
An example of functional data
QuickTime™ and a
Video decompressor
are needed to see this picture.
7/20/2015
ICMPC8
5
What is Functional Data Analysis?
(Ramsay & Silverman, 1997)

For data drawn from continuous processes



Growth curves, market value, movement, ERP’s
Model data as functions of time
Temporal dynamics in music
(Vines, Nuzzo, & Levitin, under review)





continuous measurements of emotion
expressive timing profiles
physiological measurements
movement tracking
Software tools available in Matlab and in S-Plus
7/20/2015
ICMPC8
6
Modeling data as functions of time

Basis functions

Element functions that can be added together
to approximate the data.
W1*F1(t) + W2*F2(t) + W3*F3(t)…

A least squares algorithm is used to
determine the weighting coefficients.
7/20/2015
ICMPC8
7
Two basis types

Fourier

B-spline
 Polynomial
functions
 Knots
7/20/2015
ICMPC8
8
Visualizing B-spline Bases
7/20/2015
ICMPC8
9
Visualizing B-spline Bases
7/20/2015
ICMPC8
10
Steps in a typical FDA

Representing the data in Matlab: Matrices



Each row: a sample point in time
Each column: an observation (participant/performer)
Third dimension for multivariate observations

As in Schubert’s multi-dimensional continuous
interface
Valence
 Arousal
(Schubert, 1999)

7/20/2015
ICMPC8
11
Steps in a typical FDA

Modeling the data with functions

Two major considerations:
Order of the B-spline bases
 The number of basis functions

7/20/2015
ICMPC8
12
Steps in a typical FDA

Modeling the data with functions

Two major considerations:
Order of the B-spline bases
 The number of basis functions


The order of B-spline bases

7/20/2015
Determines how many derivatives will be smooth.
ICMPC8
13
Steps in a typical FDA

The number of basis functions



Affects the quality of fit to the data
The more B-splines, the smaller the error
Tradeoff:


7/20/2015
Modeling data accurately
Excluding unimportant noise in the data
ICMPC8
14
Original Data
7/20/2015
ICMPC8
15
Modeled Data
7/20/2015
ICMPC8
16
Modeled Data
7/20/2015
ICMPC8
17
Major FDA Tools
Controlling Unwanted Variability

Curvature (high frequency noise)


Amplitude


Smoothing
Scaling
Phase

7/20/2015
Registration
ICMPC8
19
Nine Tension Judgments
7/20/2015
ICMPC8
20
7/20/2015
ICMPC8
21
7/20/2015
ICMPC8
22
Nine Tension Judgments
7/20/2015
ICMPC8
23
Nine Tension Judgments
7/20/2015
ICMPC8
24
7/20/2015
ICMPC8
25
Time Warping
7/20/2015
ICMPC8
26
General Linear Modeling


Functional regression
Functional significance test (F-test)
7/20/2015
ICMPC8
27
The effect of adding video
7/20/2015
ICMPC8
28
Functional Linear Model
Y(t) = U(t) + B1(t) [if video is added]
7/20/2015
ICMPC8
29
Results
7/20/2015
ICMPC8
30
Significance Testing

Analogous components to traditional F-testing:

MSE(t) = SSE(t) / df(error)
-with df(error) = N participants - P parameters

MSR(t) = [SSY(t) – SSE(t)]/df(model)
-with df(model) = P parameters - 1

7/20/2015
FRATIO(t) = MSR(t)/MSE(t)
ICMPC8
31
Significance Testing
7/20/2015
ICMPC8
32
Other FDA techniques that
are available




Analysis of covariance
Functional correlation analysis
Canonical correlation analysis
Principal Components Analysis
7/20/2015
ICMPC8
33
FUNCTIONAL DATA ANALYSIS:
TECHNIQUES FOR EXPLORING TEMPORAL PROCESSES
IN MUSIC

Prof. James Ramsay’s ftp site:
http://www.psych.mcgill.ca/faculty/ramsay/fda.html
[email protected]
7/20/2015
ICMPC8
34
Smoothing


The smoothing parameter, lambda,
controls the curvature of a function.
Trade off between perfect fit to the original
data and a best linear approximation for
the data. Penalizes variance
7/20/2015
ICMPC8
35
Smoothing

Examples of curves before and after
smoothing (try to find a good singly
participant who is nice and dynamic for all
of this, or a mean curve, I suppose)
7/20/2015
ICMPC8
36
Principal Components Analysis

Traditional statistics:




Identifying major modes of variation
Reducing the number of dimensions in the data
Determine which variables are related
Functional analogue:


7/20/2015
Reveals major modes of variation
Can reveal trends in phase and in magnitude
ICMPC8
37
Principal Components Analysis

Monthly temperature data
(available on the ftp website)
 Weather stations across Canada
 Exploring trends in the data and
grouping weather stations
7/20/2015
ICMPC8
38
Monthly Weather Data
7/20/2015
ICMPC8
39
Eigenvalues, VARIMAX PCA
7/20/2015
ICMPC8
40
VARIMAX Principal Components
7/20/2015
ICMPC8
41
VARIMAX Principal Components
7/20/2015
ICMPC8
42
VARIMAX Principal Components
7/20/2015
ICMPC8
43
VARIMAX Principal Components
7/20/2015
ICMPC8
44
Component Scores
7/20/2015
ICMPC8
45