a jmp script to enhance spectral density analysis in jmp… · a jmp script to enhance spectral...

16
A JMP Script to Enhance Spectral Density Analysis in JMP’s Time Series Analysis Platform Jerry Fish President, Experistats LLC 8/15/2014 1 Footer Text

Upload: letuyen

Post on 09-Apr-2018

249 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

A JMP Script to Enhance

Spectral Density Analysis in JMP’s

Time Series Analysis Platform

Jerry Fish

President, Experistats LLC

8/15/2014 1 Footer Text

Page 2: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

A Quick Intro on Fourier Transforms • Fourier Transform fits a number of sine waves to a

time-based signal. o Each sine wave has an associated Frequency, Amplitude, and Phase

• Amplitudes plotted against Frequency are called a

Frequency Spectrum

8/15/2014 Footer Text 2

Page 3: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

A Quick Intro on Fourier Transforms

8/15/2014 Footer Text 3

𝑓 𝑡 = 𝐴 + 𝐵𝑛sin(𝑛𝑡 − 𝜑𝑛)

𝑛=1

Page 4: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Discrete Sampling Effects • A Discrete Fourier Series operates on a Discrete Time

Series

• Discrete Time Series Parameters o Sampling Interval (or Sampling Frequency)

o Total Number of Sampled Points

8/15/2014 Footer Text 4

Sample 17

∆t=0.04 sec

Sample 1

Sample 2

Page 5: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Effect of Sampling Frequency

8/15/2014 Footer Text 5

18 samples per cycle

Page 6: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Effect of Sampling Frequency

8/15/2014 Footer Text 6

18 samples per cycle 3 samples per cycle

Page 7: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Effect of Sampling Frequency

8/15/2014 Footer Text 7

18 samples per cycle 3 samples per cycle 2 samples per cycle

Page 8: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Effect of Sampling Frequency

8/15/2014 Footer Text 8

18 samples per cycle 3 samples per cycle 2 samples per cycle 1.33 samples per cycle

Page 9: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Discrete Sampling Effects – Nyquist Freq

• The maximum frequency that can be accurately fit

to the sampled data is the Nyquist Frequency

8/15/2014 Footer Text 9

𝑓𝑚𝑎𝑥= 𝑓𝑁𝑦𝑞𝑢𝑖𝑠𝑡

=1

2∆𝑡

Page 10: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Discrete Sampling Effects – Nlines

• A discrete frequency spectrum has a finite number

of frequency “lines”, depending on the sample size.

8/15/2014 Footer Text 10

𝑁𝑙𝑖𝑛𝑒𝑠 =𝑁

2

Page 11: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Discrete Sampling Effects – Frequency Resolution

• Frequency Resolution is the distance between

spectral lines

8/15/2014 Footer Text 11

𝑓𝑟𝑒𝑠=𝑓𝑚𝑎𝑥

𝑁𝑙𝑖𝑛𝑒𝑠=1/(2∆𝑡)

𝑁/2=1

𝑁∆𝑡

Page 12: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Discrete Sampling Effects – Summary

8/15/2014 Footer Text 12

Page 13: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

What’s an FFT

• Fast Fourier Transform o Very fast software algorithm for computing sine wave amplitudes and

frequencies.

o Limited to sample sizes that are powers of 2 (32, 64, 128, …)

• This limits spectral lines to 16, 32, 64, …

• JMP does not use FFT. o No limits on sample size

• Frequency Analysis Script uses JMP methods

8/15/2014 Footer Text 13

Page 14: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

The Frequency Analysis Script

• A live demo of the script.

• See submitted paper for more information.

8/15/2014 Footer Text 14

Page 15: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

Future Script Features

• Amplitude Axis Options

• A-Weighting Function

• Coherence Function

• Power Between Cursors

• Periodogram

• Additional Windowing Options

• Save data to table

• Collect data from external instruments

• Add an “About” Button

• Use Column Names on Plots

8/15/2014 Footer Text 15

Page 16: A JMP Script to Enhance Spectral Density Analysis in JMP… · A JMP Script to Enhance Spectral Density Analysis ... • A live demo of the ... A JMP Script to Enhance Spectral Density

About the Author

• Jerry Fish is owner and President of Experistats LLC.

He is a trained Lean Six Sigma Black Belt, and has

many years of experience in statistics and DOE

while working for Caterpillar Tractor, Cummins

Engine, GE Aircraft Engines, and Lexmark

International. He and his wife live in Lexington, KY.

• Contact Info:

Jerry Fish

Experistats LLC

[email protected]

859-433-6231

8/15/2014 Footer Text 16