The Periodogram. Use identity sin(θ) = (e iθ e iθ )/(2i) and formulas for geometric sums to compute mean.

Similar documents
Harmonic Analysis. Purpose of Time Series Analysis. What Does Each Harmonic Mean? Part 3: Time Series I

2.1 BASIC CONCEPTS Basic Operations on Signals Time Shifting. Figure 2.2 Time shifting of a signal. Time Reversal.

Discrete Fourier Transform (DFT)

Frequency Division Multiplexing Spring 2011 Lecture #14. Sinusoids and LTI Systems. Periodic Sequences. x[n] = x[n + N]

Exercise Problems: Information Theory and Coding

Communication Engineering Prof. Surendra Prasad Department of Electrical Engineering Indian Institute of Technology, Delhi

Digital Signal Processing

Biomedical Signals. Signals and Images in Medicine Dr Nabeel Anwar

Fourier Methods of Spectral Estimation

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

6.02 Practice Problems: Modulation & Demodulation

The period is the time required for one complete oscillation of the function.

Objectives. Presentation Outline. Digital Modulation Lecture 03

Basic Signals and Systems

Digital Video and Audio Processing. Winter term 2002/ 2003 Computer-based exercises

Digital Processing of Continuous-Time Signals

Digital Processing of

SAMPLING THEORY. Representing continuous signals with discrete numbers

Reading: Johnson Ch , Ch.5.5 (today); Liljencrants & Lindblom; Stevens (Tues) reminder: no class on Thursday.

Solutions to Information Theory Exercise Problems 5 8

Level I Signal Modeling and Adaptive Spectral Analysis

(i) Understanding the basic concepts of signal modeling, correlation, maximum likelihood estimation, least squares and iterative numerical methods

Michael F. Toner, et. al.. "Distortion Measurement." Copyright 2000 CRC Press LLC. <

Measurement of RMS values of non-coherently sampled signals. Martin Novotny 1, Milos Sedlacek 2

Spur Detection, Analysis and Removal Stable32 W.J. Riley Hamilton Technical Services

Acoustics, signals & systems for audiology. Week 4. Signals through Systems

Real and Complex Modulation

LOCAL MULTISCALE FREQUENCY AND BANDWIDTH ESTIMATION. Hans Knutsson Carl-Fredrik Westin Gösta Granlund

Digital Signal Processing Lecture 1 - Introduction

Spectrum Analysis: The FFT Display

Fourier Analysis. Chapter Introduction Distortion Harmonic Distortion

SECTION 7: FREQUENCY DOMAIN ANALYSIS. MAE 3401 Modeling and Simulation

Speech Coding in the Frequency Domain

+ a(t) exp( 2πif t)dt (1.1) In order to go back to the independent variable t, we define the inverse transform as: + A(f) exp(2πif t)df (1.

Channel. Muhammad Ali Jinnah University, Islamabad Campus, Pakistan. Multi-Path Fading. Dr. Noor M Khan EE, MAJU

Design of FIR Filter for Efficient Utilization of Speech Signal Akanksha. Raj 1 Arshiyanaz. Khateeb 2 Fakrunnisa.Balaganur 3

Multirate Signal Processing Lecture 7, Sampling Gerald Schuller, TU Ilmenau

Fourier and Wavelets

Digital Signal Processing PW1 Signals, Correlation functions and Spectra

Lecture 3, Multirate Signal Processing

Midterm 1. Total. Name of Student on Your Left: Name of Student on Your Right: EE 20N: Structure and Interpretation of Signals and Systems

Radiant. One radian is the measure of a central angle that intercepts an arc s equal in length to the radius r of the circle.

ME scope Application Note 01 The FFT, Leakage, and Windowing

EE 791 EEG-5 Measures of EEG Dynamic Properties

Frequency Domain Representation of Signals

Department of Mechanical and Aerospace Engineering. MAE334 - Introduction to Instrumentation and Computers. Final Examination.

Transforms and Frequency Filtering

1.Explain the principle and characteristics of a matched filter. Hence derive the expression for its frequency response function.

Digital Communications over Fading Channel s

Multi-Path Fading Channel

CHAPTER 6 INTRODUCTION TO SYSTEM IDENTIFICATION

TRANSFORMS / WAVELETS

Local Oscillator Phase Noise and its effect on Receiver Performance C. John Grebenkemper

= 36 M symbols/second

Wavelet Transform. From C. Valens article, A Really Friendly Guide to Wavelets, 1999

Lecture 3 Complex Exponential Signals

Physics 115 Lecture 13. Fourier Analysis February 22, 2018

Lab S-3: Beamforming with Phasors. N r k. is the time shift applied to r k

Use Matlab Function pwelch to Find Power Spectral Density or Do It Yourself

Problem Set 1 (Solutions are due Mon )

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering. EIE2106 Signal and System Analysis Lab 2 Fourier series

Chapter 2: Signal Representation

Circuit Analysis-II. Circuit Analysis-II Lecture # 2 Wednesday 28 th Mar, 18

Lecture notes on Waves/Spectra Noise, Correlations and.

System analysis and signal processing

ECEGR Lab #8: Introduction to Simulink

CS 591 S1 Midterm Exam Solution

Adaptive STFT-like Time-Frequency analysis from arbitrary distributed signal samples

Differential Signal and Common Mode Signal in Time Domain

Definition of Sound. Sound. Vibration. Period - Frequency. Waveform. Parameters. SPA Lundeen

Prewhitening. 1. Make the ACF of the time series appear more like a delta function. 2. Make the spectrum appear flat.

System Identification & Parameter Estimation

Frequency-Domain Sharing and Fourier Series

Data Acquisition Systems. Signal DAQ System The Answer?

Performance measurement of different M-Ary phase signalling schemes in AWGN channel

Lab #2: Electrical Measurements II AC Circuits and Capacitors, Inductors, Oscillators and Filters

Electrochemical Impedance Spectroscopy and Harmonic Distortion Analysis

ECE313 Summer Problem Set 4. Reading: RVs, mean, variance, and coniditional probability

EFFECTS OF PHASE AND AMPLITUDE ERRORS ON QAM SYSTEMS WITH ERROR- CONTROL CODING AND SOFT DECISION DECODING

Discrete Fourier Transform

Speech Signal Analysis

FFT 1 /n octave analysis wavelet

Laboratory Assignment 4. Fourier Sound Synthesis

Lecture 2: SIGNALS. 1 st semester By: Elham Sunbu

Weaver SSB Modulation/Demodulation - A Tutorial

Digital Image Processing COSC 6380/4393

Fourier Signal Analysis

DFT: Discrete Fourier Transform & Linear Signal Processing

Section 7.6 Graphs of the Sine and Cosine Functions

Noise Measurements Using a Teledyne LeCroy Oscilloscope

Distortion Analysis T S. 2 N for all k not defined above. THEOREM?: If N P is an integer and x(t) is band limited to f MAX, then

When and How to Use FFT

6 Sampling. Sampling. The principles of sampling, especially the benefits of coherent sampling

P. Robert, K. Kodera, S. Perraut, R. Gendrin, and C. de Villedary

Proceedings of the 5th WSEAS Int. Conf. on SIGNAL, SPEECH and IMAGE PROCESSING, Corfu, Greece, August 17-19, 2005 (pp17-21)

Time Series/Data Processing and Analysis (MATH 587/GEOP 505)

Optimum Beamforming. ECE 754 Supplemental Notes Kathleen E. Wage. March 31, Background Beampatterns for optimal processors Array gain

EE 435/535: Error Correcting Codes Project 1, Fall 2009: Extended Hamming Code. 1 Introduction. 2 Extended Hamming Code: Encoding. 1.

11/8/2007 Antenna Pattern notes 1/1

Theory of Telecommunications Networks

Transcription:

The Periodogram Sample covariance between X and sin(2πωt + φ) is 1 T T 1 X t sin(2πωt + φ) X 1 T T 1 sin(2πωt + φ) Use identity sin(θ) = (e iθ e iθ )/(2i) and formulas for geometric sums to compute mean. When ω = k/t for an integer k, not 0, we find that T 1 sin(2πωt + φ) = 0. So sample covariance is simply 1 T T 1 X t sin(2πωt + φ). For these special ω we can also compute T 1 sin 2 (2πωt + φ) = T/2. 249

So correlation between X and sin(2πωt + φ) is 1 T T 1 X tsin(2πωt + φ) s x 1/2 where s 2 x is sample variance (X t X) 2 /T. Adjust φ to maximize this correlation. The sine can be rewritten as cos(φ) sin(2πωt) + sin(φ) cos(2πωt) so choose coefficients a and b to maximize correlation between X and a sin(2πωt) + b cos(2πωt) subject to the condition a 2 + b 2 = 1. Correlations are scale invariant so drop condition on a and b and maximize the correlation between X and the linear combination of sine and cosine. Problem solved by linear regression. Coefficients given by (M T M) 1 M T X: 250

M is T by 2 design matrix full of sines and cosines. Get M T M = T 2 I T T; regression coefficients are and a = 2 T b = 2 T T 1 T 1 X t sin(2πωt) X t cos(2πωt). Covariance between X and best linear combination is 1 T T 1 a But in fact X t sin(2πωt) + b a 2 + b 2 = 1 T T 1 T 1 X t cos(2πωt) X t exp(2πωti) = (a 2 + b 2 )/2. is modulus of DFT ˆX(ω) divided by T. 2 251

Defn: Periodogram is function ˆX(ω) 2 Some periodogram plots: ˆX vs frequency for sunspots minus mean Raw Periodogram 0 10000 20000 30000 Frequency (Cycles per Year) Notice peak at frequency slightly below 0.1 cycles per year as well as peak at frequency close to 0.03. 252

Plot only for frequencies from 1/12 to 1/8 which should include the largest peak. Raw Periodogram for Sunspots 0 10000 20000 30000 0.090 0.095 0.100 0.105 0.110 0.115 Frequency (Cycles per Year) Notice: picture clearly piecewise linear. Actually using DFT: computes sample spectrum only at frequencies of form k/t (in cycles per point) for integer values of K. There are only about 10 points on this plot. 253

Same plot against period (= 1/ω) shows peaks just below 10 years and just below 11. Raw Periodogram for Sunspots 0 10000 20000 30000 8.5 9.0 9.5 10.0 10.5 11.0 11.5 Period (Years) 254

DFT can be computed very quickly at special frequencies but to see structure clearly near a peak need to compute ˆX(ω) for a denser grid of ω. Use S-Plus function transform<- function(x, a, b, n = 100) { f <- seq(a, b, length = n) nn <- 1:length(x) args <- outer(f, nn, "*") * 2 * pi cosines <- t(cos(t(args)) * x) sines <- t(sin(t(args)) * x) one <- rep(1, length(x)) ((cosines %*% one)^2 + (sines %*% one)^2)/length(x) } to compute lots of values for periods between 8 and 12 years. 255

Plot of Spectrum vs Period for Sunspots 0 100000 200000 300000 400000 500000 9 10 11 12 Period (Years) 256

Periodogram for CO2 above Mauna Loa: Linear trend removed by linear regression. Note peaks at periods of 1 year and 6 months. Peaks show clear annual cycle. Annual cycle not simple sine wave contains overtones: components whose frequency is integer multiple of basic frequency of 1 cycle per year. 257

Spectrum against Period CO2 Conc above Mauna Loa detrended 0 10 20 30 40 50 0.5 1.0 1.5 Period (Years) 258

Now a detail of this image: Detail of Mauna Loa Spectrum Detrended 0 200 400 600 0.2 0.4 0.6 0.8 1.0 1.2 Period (Years) 259

Periodogram of various generated series which have exact sinusoidal components. First a pure sine wave with no noise. Middle panel: periodogram. Lower panel: log 10 ( ˆX(ω) ) 10. Apparent waves: round off error log( 0). Pure Sine Wave at 0.04 cycles per point -1.0-0.5 0.0 0.5 1.0 0 200 400 600 800 1000 0 50 100 150 200 FRequency Series: s1 Raw Periodogram spectrum -100-50 0 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 260

Same series plus N(0,1) white noise. Note: much harder to see perfect sine wave in data but periodogram shows presence of sine wave quite clearly. Pure Sine Wave at 0.04 cycles per point plus noise -2 0 2 0 200 400 600 800 1000 0 50 100 150 FRequency Series: s1 + noi Raw Periodogram spectrum -30-20 -10 0 10 20 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 261

The sum of three sine waves. Pure Sine Waves at 0.04, 0.05 and 0.24 cycles per point -2-1 0 1 2 0 200 400 600 800 1000 0 50 100 150 200 FRequency Series: s1 + s2 + s3 Raw Periodogram spectrum -100-50 0 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 262

Now add N(0,1) white noise. Periodogram still picks out each of component. The sum of three sine waves. Pure Sine Wave at 0.04, 0.05 and 0.24 cycles per point plus noise -4-2 0 2 4 0 200 400 600 800 1000 0 50 100 150 200 FRequency Series: s1 + s2 + s3 + noi Raw Periodogram spectrum -20-10 0 10 20 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 263

Multiply sine wave by damping exponential. Signal gone quarter of way through series. Periodogram peak still at 0.04 cycles per point. Exponentially Damped Sine Wave at 0.04 cycles per point -1.0-0.5 0.0 0.5 0 200 400 600 800 1000 0.0 0.2 0.4 0.6 0.8 FRequency Series: sig * s1 Raw Periodogram spectrum -150-100 -50 0 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 264

With noise added can still see effect. But compare the scales on the middle plots between all these series. Exponentially Damped Sine Wave at 0.04 cycles per point plus noise/4-0.5 0.0 0.5 1.0 0 200 400 600 800 1000 0.0 0.2 0.4 0.6 0.8 1.0 FRequency Series: sig * s1 + noi/4 Raw Periodogram spectrum -30-20 -10 0 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 265

Exponentially damped sine wave plus two sine waves with N(0,1/16) noise. Only two peaks visible in raw periodogram. On logarithmic scale: hump on left of peak at 0.05 which is peak at 0.04. Raw scale can make small secondary peaks invisible. Exponentially Damped Sine Wave at 0.04 plus sine waves at 0.05 and 0.24 cycles per point plus noise/4-2 -1 0 1 2 0 200 400 600 800 1000 0 50 100 150 FRequency Series: sig * s1 + s2 + s3 + noi/4 Raw Periodogram spectrum -40-30 -20-10 0 10 20 frequency bandwidth= 0.000281909, 95% C.I. is ( -5.87588, 17.5667 )db 266

Behaviour of DFT when sinusoid present. X t = Acos(2πθt + φ) + Y t where Y is mean 0 stationary series with spectrum f Y. ˆX(ω) = Ŷ (ω)+a cos(2πθt+φ)exp(2πωti)/ T Use complex exponentials to do sum. cos(2πθt + φ)exp(2πωti) = exp(2πi((ω + θ)t + φ)) + exp(2πi((ω θ)t φ)) 267

For α not an integer: 1 exp(2παti) exp(2παti) = 1 exp(2παi) while for α an integer the sum is T. So: at ω = θ periodogram gets bigger as T grows: ˆX(ω) 2 T 2 /T = T For other ω not too close to θ periodogram does not grow with T. 268

Properties of the Periodogram The discrete Fourier transform ˆX(ω) = 1 T 1 T X t exp(2πωti) is periodic with period 1 because all the exponentials have period 1. Moreover, ˆX(1 ω) = T 1 1 T so periodogram satisfies X t exp( 2πωti)exp(2πti) = ˆX(ω) ˆX(1 ω) 2 = ˆX(ω) 2. So periodogram symmetric around ω = 1/2. Called Nyquist or folding frequency. 269

(Value is always 1/2 in cycles per point; usually converted to cycles per time unit like year or day.) Similarly power spectral density f X given by f X (ω) = C X (h)exp(2πhωi) is periodic with period 1 and satisfies f X ( ω) = f X (ω) which is equivalent to f X (1 ω) = f X (ω). 270