Discrete-time Fourier Series (DTFS)

Similar documents
CH5350: Applied Time-Series Analysis

Chapter 8 The Discrete Fourier Transform

ENT 315 Medical Signal Processing CHAPTER 2 DISCRETE FOURIER TRANSFORM. Dr. Lim Chee Chin

Lecture 19: Discrete Fourier Series

6.003: Signal Processing

Factors affecting the Type II error and Power of a test

INTRODUCTION TO THE DFS AND THE DFT

8 The Discrete Fourier Transform (DFT)

Module 3. Convolution. Aim

Discrete Fourier Transform

MAHALAKSHMI ENGINEERING COLLEGE-TRICHY

HST.582J / 6.555J / J Biomedical Signal and Image Processing Spring 2007

Discrete Fourier Transform

! Circular Convolution. " Linear convolution with circular convolution. ! Discrete Fourier Transform. " Linear convolution through circular

Introduction to Statistical Hypothesis Testing

Radar Systems Engineering Lecture 3 Review of Signals, Systems and Digital Signal Processing

Aspects of Continuous- and Discrete-Time Signals and Systems

In this Lecture. Frequency domain analysis

Question Paper Code : AEC11T02

The Discrete-time Fourier Transform

Signals and Systems Laboratory with MATLAB

Theory and Problems of Signals and Systems

DISCRETE FOURIER TRANSFORM

Elec4621 Advanced Digital Signal Processing Chapter 11: Time-Frequency Analysis

Advanced Digital Signal Processing -Introduction

Digital Signal Processing Lecture 10 - Discrete Fourier Transform

Discrete Fourier transform (DFT)

[ ], [ ] [ ] [ ] = [ ] [ ] [ ]{ [ 1] [ 2]

Lecture 10. Digital Signal Processing. Chapter 7. Discrete Fourier transform DFT. Mikael Swartling Nedelko Grbic Bengt Mandersson. rev.

Fourier analysis of discrete-time signals. (Lathi Chapt. 10 and these slides)

VU Signal and Image Processing. Torsten Möller + Hrvoje Bogunović + Raphael Sahann

EEO 401 Digital Signal Processing Prof. Mark Fowler

The Continuous-time Fourier

Digital Signal Processing Module 6 Discrete Fourier Transform (DFT)

DISCRETE-TIME SIGNAL PROCESSING

Sound & Vibration Magazine March, Fundamentals of the Discrete Fourier Transform

OLA and FBS Duality Review

Chapter 6: Applications of Fourier Representation Houshou Chen

Review of Discrete-Time System

ENSC327 Communications Systems 2: Fourier Representations. Jie Liang School of Engineering Science Simon Fraser University

LAB 2: DTFT, DFT, and DFT Spectral Analysis Summer 2011

(i) Understanding the characteristics and properties of DTFT

Experimental Fourier Transforms

University of Connecticut Lecture Notes for ME5507 Fall 2014 Engineering Analysis I Part III: Fourier Analysis

Continuous-Time Fourier Transform

ECE-700 Review. Phil Schniter. January 5, x c (t)e jωt dt, x[n]z n, Denoting a transform pair by x[n] X(z), some useful properties are

Review of Analog Signal Analysis

Discrete-Time Fourier Transform

Signals and Systems

Moving Average (MA) representations

Adaptive Filtering. Squares. Alexander D. Poularikas. Fundamentals of. Least Mean. with MATLABR. University of Alabama, Huntsville, AL.

Contents. Digital Signal Processing, Part II: Power Spectrum Estimation

Lecture 7 January 26, 2016

Digital Signal Processing

Chapter 4 Discrete Fourier Transform (DFT) And Signal Spectrum

Topic 3: Fourier Series (FS)

E : Lecture 1 Introduction

Fast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding

Ch.11 The Discrete-Time Fourier Transform (DTFT)

Discrete-time Fourier transform (DTFT) representation of DT aperiodic signals Section The (DT) Fourier transform (or spectrum) of x[n] is

Interchange of Filtering and Downsampling/Upsampling

Discrete-time Signals and Systems in

SIGNALS AND SYSTEMS. Unit IV. Analysis of DT signals

Fast Fourier Transform Discrete-time windowing Discrete Fourier Transform Relationship to DTFT Relationship to DTFS Zero padding

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EC2314- DIGITAL SIGNAL PROCESSING UNIT I INTRODUCTION PART A

Correlator I. Basics. Chapter Introduction. 8.2 Digitization Sampling. D. Anish Roshi

APPENDIX A. The Fourier integral theorem

3.2 Complex Sinusoids and Frequency Response of LTI Systems

Multimedia Signals and Systems - Audio and Video. Signal, Image, Video Processing Review-Introduction, MP3 and MPEG2

Chap 2. Discrete-Time Signals and Systems

Frequency-domain representation of discrete-time signals

Digital Signal Processing. Midterm 2 Solutions

/ (2π) X(e jω ) dω. 4. An 8 point sequence is given by x(n) = {2,2,2,2,1,1,1,1}. Compute 8 point DFT of x(n) by

EE123 Digital Signal Processing

Confidence intervals and Hypothesis testing

QUESTION BANK SIGNALS AND SYSTEMS (4 th SEM ECE)

Fundamentals of the DFT (fft) Algorithms

VII. Discrete Fourier Transform (DFT) Chapter-8. A. Modulo Arithmetic. (n) N is n modulo N, n is an integer variable.

EEO 401 Digital Signal Processing Prof. Mark Fowler

PS403 - Digital Signal processing

Flash File. Module 3 : Sampling and Reconstruction Lecture 28 : Discrete time Fourier transform and its Properties. Objectives: Scope of this Lecture:

7.16 Discrete Fourier Transform

Continuous Time Signal Analysis: the Fourier Transform. Lathi Chapter 4

Summary of lecture 1. E x = E x =T. X T (e i!t ) which motivates us to define the energy spectrum Φ xx (!) = jx (i!)j 2 Z 1 Z =T. 2 d!

SPECTRUM. Deterministic Signals with Finite Energy (l 2 ) Deterministic Signals with Infinite Energy N 1. n=0. N N X N(f) 2

PART 1. Review of DSP. f (t)e iωt dt. F(ω) = f (t) = 1 2π. F(ω)e iωt dω. f (t) F (ω) The Fourier Transform. Fourier Transform.

L29: Fourier analysis

GATE EE Topic wise Questions SIGNALS & SYSTEMS

Estimating trends using filters

13. Power Spectrum. For a deterministic signal x(t), the spectrum is well defined: If represents its Fourier transform, i.e., if.

Voiced Speech. Unvoiced Speech

Lecture 5. The Digital Fourier Transform. (Based, in part, on The Scientist and Engineer's Guide to Digital Signal Processing by Steven Smith)

A.1 THE SAMPLED TIME DOMAIN AND THE Z TRANSFORM. 0 δ(t)dt = 1, (A.1) δ(t)dt =


ESE 531: Digital Signal Processing

Continuous Fourier transform of a Gaussian Function

EE123 Digital Signal Processing

EE123 Digital Signal Processing

! Introduction. ! Discrete Time Signals & Systems. ! Z-Transform. ! Inverse Z-Transform. ! Sampling of Continuous Time Signals

Contents. Signals as functions (1D, 2D)

Transcription:

Discrete-time Fourier Series (DTFS) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 59

Opening remarks The Fourier series representation for discrete-time signals has some similarities with that of continuous-time signals. Nevertheless, certain di erences exist: I Discrete-time signals are unique over the frequency range f 2 [ ]! 2 [, ) (or any interval of this length). I The period of?a discrete-time signal is expressed in samples. 0.5, 0.5) or Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 60

Discrete-time signals I Adiscrete-timesignaloffundamentalperiodN can consist of frequency components f = N, 2 (N ),, besides f =0,theDCcomponent N N I Therefore, the Fourier series representation of the discrete-time periodic signal contains only N complex exponential basis functions. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 6

Fourier series for d.t. periodic signals Given a periodic sequence x[k] with period N, the Fourier series representation for x[k] uses N harmonically related exponential functions e j2 kn/n, k =0,,,N The Fourier series is expressed as x[k] = NX n=0 c n e j2 kn/n (22) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 62

Fourier coe cients and Parseval s relation The Fourier coe cients {c n } are given by: c n = N NX k=0 x[k]e j2 kn/n (23) Parseval s result for discrete-time signals provides the decomposition of power in the frequency domain, P xx = N NX k=0 x[k] 2 = NX n=0 c n 2 (24) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 63

Power (Line) Spectrum Thus, we have the line spectrum in frequency domain, as in the continuous-time case. P xx [n], P xx (f n )= c n 2, n =0,,,N (25) I The term c n 2 denotes therefore the power associated with the n th frequency component I The di erence between the results in the c.t. and d.t. case is only in the restriction on the number of basis functions in the expansion. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 64

Remarks I The Fourier coe cients {c n } enjoy the conjugate symmetry property c n = c? N n n 6= 0,N/2 (assuming N is even) (26) I The Fourier coe cients {c n } are periodic with the same period as x[k] I The power spectrum of a discrete-time periodic signal is also, therefore, periodic, P xx [N + n] =P xx [n] (27) I The range 0 apple n apple N 0 apple f n = n N apple N corresponds to the fundamental frequency range Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 65

Example: Periodic pulse The discrete-time Fourier representation of a periodic signal x[k] ={,, 0, 0} with period N =4is given by, c n = 4 This gives the coe 3X x[k]e j2 kn/4 = 4 ( + e j2 n/4 ) n =0,, 2, 3 k=0 cients c 0 = 2 ; c = 4 ( j); c 2 =0; c 3 = ( + j) 4 Observe that c = c? 3. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 66

Power spectrum and auto-covariance function The power spectrum of a discrete-time periodic signal and its auto-covariance function form a Fourier pair. P xx [n] = N NX l=0 xx[l]e j2 ln/n NX xx[l] = P xx [n]e j2 ln/n l=0 (28a) (28b) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 67

Discrete-time Fourier Series Variant Synthesis / analysis Parseval s relation (power decomposition) and signal requirements Discrete- Time Fourier Series x[k] = c n, N NX c n e j2 kn/n n=0 NX x[k]e j2 kn/n k=0 P xx = N NX k=0 x[k] 2 = NX n=0 c n 2 x[k] is periodic with fundamental period N Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 68

Discrete-time Fourier Transform (DTFT) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 69

Opening remarks I The discrete-time aperiodic signal is treated in the same way as the continuous-time case, i.e., as an extension of the DTFS to the case of periodic signal as N!. I Consequently, the frequency axis is a continuum. I The synthesis equation is now an integral, but still restricted to f 2 [! 2 [, ). /2, /2) or Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 70

Discrete-time Fourier transform (DTFT) The synthesis and analysis equations are given by: x[k] = X(f) = Z /2 /2 X k= X(f)e j2 fk df = Z X(!)e j!k d! 2 x[k]e j2 fk (Synthesis) (DTFT) (29) (30) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 7

DTFT Remarks I The DTFT is unique only in the interval [0, ) cycles/ sample or [0, 2 ) rad/sample. I The DTFT is periodic, i.e., X(f +)=X(f) or X(! +2 ) =X(!) (Sampling in time introduces periodicity in frequency) I Further, the DTFT is also the z-transform of x[k], X(z) = P k= x[k]z k, evaluated on the unit circle z = e j! Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 72

Existence conditions I The signal should be absolutely convergent, i.e., it should have a finite -norm X x[k] < (3) k= I Aweakerrequirementisthatthesignalshouldhaveafinite2-norm,inwhichcase the signal is guaranteed to only converge in a sum-squared error sense. I Essentially signals that exist forever in time, e.g., step, ramp and exponentially growing signals, do not have a Fourier transform. I On the other hand, all finite-length, bounded-amplitude signals always have a Fourier transform. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 73

Energy conservation Energy is preserved under this transformation once again due to Parseval s relation: E xx = X k= x[k] 2 = Z /2 /2 X(f) 2 df = Z X(!) 2 d! (32) 2 Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 74

Energy spectral density Consequently, the quantity S xx (f) = X(f) 2 ; S xx (!) = X(!) 2 2 (33) qualifies to be a density function, specifically as the energy spectral density of x[k]. Given that X(f) is periodic (for real-valued signals), the spectral density of a discrete-time (real-valued) signal is also periodic with the same period. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 75

Example: Discrete-time impulse The Fourier transform of a discrete-time impulse x[k] = [n] (Kronecker delta) is X(f) =F{ [n]} = X k= [k]e j2 fk = 8f (34) giving rise to a uniform energy spectral density S xx (f) = X(f) 2 = 8f (35) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 76

Example: Discrete-time impulse 0.9 0.8 2.8.6 Amplitude 0.7 0.6 0.5 0.4 0.3 0.2 0. Energy spectral density.4.2 0.8 0.6 0.4 0.2 0 0 5 0 5 0 Time 0 0.4 0.2 0 0.2 0.4 0.6 Frequency (cycles/sample) (g) Finite-duration pulse (h) Energy spectral density Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 77

Example: Discrete-time finite-duration pulse Compute the Fourier transform and the energy density spectrum of a finite-duration rectangular pulse ( A, 0 apple k apple L x[k] = 0 otherwise Solution: The DTFT of the given signal is X XL X(f) = x[k]e j2 fk = Ae j2 fk = A e j2 f k= S xx (f) =A 2 cos(2 fl) cos 2 f k=0 e j2 fl Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 78

Example: Discrete-time impulse contd. Amplitude 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0. 0 0 5 0 5 0 5 20 Time (i) Finite-duration pulse Energy spectral density 00 90 80 70 60 50 40 30 20 0 0 0.6 0.4 0.2 0 0.2 0.4 0.6 Frequency (cycles/sample) (j) Energy spectral density Finite-length pulse and its energy spectral density for A =,L=0. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 79

Energy spectral density and auto-covariance function The energy spectral density of a discrete-time aperiodic signal and its auto-covariance function form a Fourier pair. X S xx (f) = xx[l]e j2 lf xx[l] = l= Z /2 /2 S xx (f)e j2 fl df (36a) (36b) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 80

Cross-energy spectral density In multivariable signal analysis, it is useful to define a quantity known as cross-energy spectral density, S x2 x (f) =X 2 (f)x? (f) (37) The cross-spectral density measures the linear relationship between two signals in the frequency domain, whereastheauto-energyspectral density measures linear dependencies within the observations of a signal. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 8

Cross energy spectral density... contd. When x 2 [k] and x [k] are the output and input of a linear time-invariant system respectively, i.e., x 2 [k] =G(q )x [k] = two important results emerge n= X n= g[n]x [k n] =g [k]?x [k] (38) S x2 x (f) =G (e j2 f )S x x (f); S x2 x 2 (f) = G (e j2 f ) 2 S x x (f) (39) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 82

Discrete-time Fourier Transform Variant Synthesis / analysis Parseval s relation (energy decomposition) Discrete- Time Fourier Transform x[k] = X(f), Z /2 /2 X k= and signal requirements X X(f)e j2 fk df E xx = x[k] 2 = k= x[k]e j2 fk x[k] is aperiodic; X k= Z /2 /2 X k= X(f) 2 df x[k] < or x[k] 2 < (finite energy, weaker requirement) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 83

Summary It is useful to summarize our observations on the spectral characteristics of di erent classes of signals. i. Continuous-time signals have aperiodic spectra ii. Discrete-time signals have periodic spectra iii. Periodic signals have discrete (line) power spectra iv. Aperiodic (finite energy) signals have continuous energy spectra Continuous spectra are qualified by a spectral density function. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 84

Spectral Distribution Function In all cases, one can define an energy / power spectral distribution function, (f). For periodic signals, we have step-like power spectral distribution function, For aperiodic signals, we have a smooth energy spectral distribution function, where one could write the spectral density as, S xx (f) =d (f)/df or xx(f) =. Z f /2 S xx (f) df (40) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 85

Properties of DTFT Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 86

Linearity property. Linearity: If x [k] F! X (!) and x 2 [k] F! X 2 (!) then a x [k]+a 2 x 2 [k] F! a X (f)+a 2 X 2 (f) The Fourier transform of a sum of discrete-time (aperiodic) signals is the respective sum of transforms. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 87

Shift property 2. Time shifting: If x [k] F! X (!) then x [k D] F! e j2 fd X (f) I Time-shifts result in frequency-domain modulations. I Note that the energy spectrum of the shifted signal remains unchanged while the phase spectrum shifts by!k at each frequency. Dual: AshiftinfrequencyX(f f 0 ) corresponds to modulation in time, e j2 f 0k x[k]. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 88

Time reversal 3. Time reversal: If x[k] F! X(!), thenx[ k] F! X( f) =X? (f) If a signal is folded in time, then its power spectrum remains unchanged; however, the phase spectrum undergoes a sign reversal. Dual: The dual is contained in the statement above. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 89

Scaling property 4. Scaling: If x[k] apple F! X(!) (or x(t) F! X(F )), k then x F t! X(sf) (or x F! X(sF )) s s If X(F ) has a center frequency F c,thenscalingthesignalx(t) by a factor s results in shifting the center frequency (of the scaled signal) to F c s Note: For real-valued functions, it is more appropriate to refer to X(F ), Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 90

Example: Scaling a Morlet wave Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 9

Convolution 5. Convolution Theorem: Convolution in time-domain transforms into a product in the frequency domain. Theorem If x [k] F! X (!) and x 2 [k] F! X 2 (!) and X x[k] =(x?x 2 )[k] = x [n]x 2 [k n] n= then X(f), F{x[k]} = X (f)x 2 (f) This is a highly useful result in the analysis of signals and LTI systems or linear filters. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 92

Product 6. Dual of convolution: Multiplication in time corresponds to convolution in frequency domain. x[k] =x [k]x 2 [k] Z /2 F! /2 X ( )X 2 (f ) d I This result is useful in studying Fourier transform of windowed or finite-length signals such as STFT and discrete Fourier transform (DFT). Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 93

Fourier Transforms for Deterministic Processes Correlation theorem 7. Correlation Theorem (Wiener-Khinchin theorem for deterministic signals) Deterministic Energy Signal x[k] The Fourier transform of the cross-covariance function x x2 [l] is the cross-energy spectral density F{ x x2 [l]} = X x x2 [l]e j2 f l = Sx x2 (f ) = 2 Sx x2 (!) ag ni tu de x[k] x[ k] M xx [l] Fourier Transform F -s qu ar ed DF X(f ) T XN (fn ) 2 N lim F Wiener-Khinchin Theorem ACVF l= X(f )X (f ) Theorem Sxx (f ) Spectral Density I This result provides alternative way of computing spectral densities (esp. useful for random signals) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 94

Discrete Fourier Transform (DFT) and Periodogram Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 95

Opening remarks I Signals encountered in reality are not necessarily periodic. I Computation of DTFT, i.e., the Fourier transform of discrete-time aperiodic signals, presents two di culties in practice:. Only finite-length N measurements are available. 2. DTFT can only be computed at a discrete set of frequencies. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 96

Computing the DTFT: Practical issues I Can we compute the finite-length DTFT, i.e., restrict the summation to the extent observed? I Or do we artificially extend the signal outside the observed interval? Either way what are the consequences? I Some form of discretization of the frequency axis, i.e., sampling in frequency is therefore inevitable. When the DTFT is restricted to the duration of observation and evaluated on a frequency grid, we have the Discrete Fourier Transform (DFT) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 97

Sampled finite-length DTFT: DFT DFT The discrete Fourier transform of a finite length sequence x[k], k=0,,,n defined as: is X(f n )= NX k=0 x[k]e j2 f nk, (4) The transform derives its name from the fact that it is now discrete in both time and frequency. Q: What should be the grid spacing (sampling interval) in frequency? Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 98

Main result For signal x[k] of length N l,itsdtftx(f) is perfectly recoverable from its sampled version X(f n ) if and only if the frequency axis is sampled uniformly at N l points in [ /2, /2), i.e.,i 4f = N l or 4! = 2 N l (42) See Proakis and Manolakis, (2005) for a proof. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 99

N-point DFT The resulting DFT is known as the N-point DFT with N = N l.theassociatedanalysis and synthesis equations are given by X[n], X(f n )= NX k=0 x[k] = N x[k]e j 2 N nk n =0,,,N NX X[n]e j 2 N kn k =0,,,N n=0 (43a) (43b) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 00

Unitary DFT It is also a common practice to use a factor / p N on both (43a) and (43b) to achieve symmetry of expressions. X[n] = p NX N k=0 x[k] = p NX N n=0 x[k]e j2 f nk X[n]e j2 f nk f n = n,n=0,,,n N k =0,,,N (44a) (44b) The resulting transforms are known as unitary transforms since they are norm-preserving, i.e., x[k] 2 2 = X[n] 2 2. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 0

Reconstructing X(f) from X[n] The reconstruction of X(f) from its N-point DFT is facilitated by the following expression (Proakis and Manolakis, 2005): X(f) = NX n=0 2 n X N P 2 f where P (f) = sin( fn) j f(n ) e N sin( f) 2 n N N N l (45) I Equation (45) has very close similarities to that for a continuous-time signal x(t) from its samples x[k] (Proakis and Manolakis, 2005). I Further, the condition N N l is similar to the requirement for avoiding aliasing. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 02

Consequences of sampling the frequency axis When the DTFT is evaluated at N equidistant points in [ X Now, define x p [k] = 2 N n = X l= = = X k= X l= NX, ], oneobtains x[k]e j2 nk/n n =0,,,N ln+n X k=ln X k=0 l= x[k]e j2 nk/n x[k ln]e j2 nk/n (46) x[k ln], with period N p = N. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 03

Equivalence between DFT and DTFS Then (46) appears structurally very similar to that of the coe cients of a DTFS: Nc n = NX k=0 x p [k]e j2 nk/n (47) The N-point DFT X[n] of a sequence x N = {x[0],x[],,x[n ]} is equivalent to the coe cient c n of the DTFS of the periodic extension of x N.Mathematically, X[n] =Nc n, c n = N NX k=0 x[k]e j 2 N kn (48) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 04

Putting together An N-point DFT implictly assumes the given finite-length signal to be periodic with a period equal to N regardless of the nature of the original signal. I The basis blocks are cos(2 k n) and sin(2 k n) characterized by the index n N N I The quantity n denotes the number of cycles completed by each basis block for the duration of N samples I DFT inherits all the properties of DTFT with the convolution property replaced by circular convolution. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 05

DFT: Summary Definition The N-point DFT and IDFT are given by X[n] = NX k=0 x[k]e j2 kn/n ; x[k] = N NX n=0 X[n]e j2 kn/n I Introducing W N = e j2 /N,theaboverelationshipsarealsosometimeswrittenas X[n] = NX k=0 x[k]w kn N ; x[k] = N NX n=0 X[n]W kn N Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 06

Points to remember I The frequency resolution in DFT is equal to /N or 2 /N. Increasing the length artificially by padding with zeros does not provide any new information but can only provide a better display of the spectrum I DFT is calculated assuming that the given signal x[k] is periodic and therefore it is a Fourier series expansion of x[k] in reality! I In an N-point DFT, only N/2+frequencies are unique. For example, in a 024-point DFT, only 53 frequencies are su signal. cient to reconstruct the original Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 07

DFT in practice: FFT I The linear transformation relationships are useful for short calculations. I In 960s, Cooley and Tukey developed an e cient algorithm for fast computation of DFT which revolutionized the world of spectral analysis I This algorithm and its subsequent variations came to be known as the Fast Fourier Transform (FFT), which is available with almost every computational package. I The FFT algorithm reduced the number of operations from N 2 in regular DFT to the order of N log(n) I FFT algorithms are fast when N is exactly a power of 2 I Modern algorithms are not bounded by this requirement! R: fft Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 08

Power or energy spectral density? I Practically we encounter either finite-energy aperiodic or stochastic (or mixed) signals, which are characterized by energy and power spectral density, respectively. I However, the practical situation is that we have a finite-length signal x N = {x[0],x[],,x[n ]}. I Computing the N-point DFT amounts to treating the underlying infinitely long signal x[k] as periodic with period N. Thus, strictly speaking we have neither densities. Instead DFT always implies a power spectrum (line spectrum) regardless of the nature of underlying signal! Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 09

Periodogram: Heuristic power spectral density The power spectrum P xx (f n ) for the finite-length signal x N is obtained as P xx (f n )= c n 2 = X[n] 2 N 2 (49) A heuristic power spectral density (power per unit cyclic frequency), known as the periodogram, introducedbyschuster,(897),forthefinite-lengthsequenceisused, P xx (f n ), PSD(f n )= P xx(f n ) 4f = N c n 2 = X[n] 2 N (50) Alternatively, P xx (! n )= 2 N X[n] 2 (5) Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 0

Routines in R Task Routine Remark Convolution convolve, conv Computes product of DFTs followed by inversion (conv from the signal package) Compute IR impz Part of the signal package Compute FRF freqz Part of the signal package DFT fft Implements the FFT algorithm Periodogram spec.pgram, periodogram Part of the stats and TSA packages, respectively Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis

Bibliography I Antoniou, A. (2006). Digital Signal Processing: Signals Systems and Filters. USA: McGraw-Hill. Bloomfield, P. (2000). Fourier Analysis of Time Series: An Introduction. 2 nd edition. New York, USA: John Wiley & Sons, Inc. Cohen, L. (994). Time Frequency Analysis: Theory and Applications. Upper Saddle River, New Jersey, USA: Prentice Hall. Hamilton, J. D. (994). Time Series Analysis. Princeton, NJ, USA: Princeton University Press. Lighthill, M. (958). Introduction to Fourier Analysis and Generalized Functions. Cambridge, UK: Cambridge University Press. Priestley, M. B. (98). Spectral Analysis and Time Series. London, UK: Academic Press. Proakis, J. and D. Manolakis (2005). Digital Signal Processing - Principles, Algorithms and Applications. New Jersey, USA: Prentice Hall. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 2

Bibliography II Schuster, A. (897). On lunar and solar periodicities of earthquakes. In: Proceedings of the Royal Society 6, pp. 455 465. Shumway, R. and D. Sto er (2006). Time Series Analysis and its Applications. New York, USA: Springer- Verlag. Smith, S. W. (997). Scientist and Engineer s Guide to Digital Signal Processing. San Diego, CA, USA: California Technical publishing. Tangirala, A. K. (204). Principles of System Identification: Theory and Practice. Boca Raton, FL, USA: CRC Press, Taylor & Francis Group. Arun K. Tangirala (IIT Madras) Applied Time-Series Analysis 3