Tools › Electrical and Controls › Signal Processing › Signal Analysis (FFT and PSD) › Example

Two tones buried in noise: amplitude spectrum and Welch PSD of a 2,048-sample record

ToolSignal Analysis (FFT and PSD)
SourceOriginal case (an illustrative synthetic record: sines of amplitude 1.0 at 50 Hz and 0.5 at 120 Hz, an offset of 0.2 and Gaussian noise of standard deviation 0.4, from a fixed seed), checked against numpy.fft and scipy.signal.periodogram and welch in test_signal_analysis.php.
LevelUndergraduate

Problem

An accelerometer record of 2,048 samples taken 1,000 times a second looks like noise. Find the tones in it and their amplitudes with a Hann window, and estimate its power spectral density by Welch's method.

Inputs to Enter

  • The tool's opening record: 2,048 values in g, values only, sample rate 1,000 Hz
  • Window Hann; show both the amplitude spectrum and the PSD; Simple mode (mean removed, Welch segment chosen automatically, 50 % overlap)
Open the Signal Analysis (FFT and PSD) tool (loaded with this example)

Answers

  • Duration T = N / f_s = 2,048 / 1,000 = 2.048 s; resolution Δf = f_s / N = 0.48828 Hz; Nyquist frequency f_s / 2 = 500 Hz
  • rms = 0.8888 g after the mean of 0.2132 g is removed; crest factor 2.746; kurtosis 2.30
  • Hann window: coherent gain 1,024 / 2,048 = 0.5, equivalent noise bandwidth 2,048 × 768 / 1,024² = 1.5 lines
  • Largest line: number 102 at 49.805 Hz, A = 2 |X| / S_w = 2 × 462.1 / 1,024 = 0.9025 g; read between lines the tone is at 49.99 Hz with amplitude 0.993 g (true values 50 Hz and 1.0)
  • Second peak: line 246 at 120.12 Hz, 0.467 g; between lines 120.0 Hz and 0.484 g (true 0.5)
  • Welch: 15 segments of 256 samples sharing 128, resolution 3.906 Hz, 28.5 degrees of freedom, random error 26 %; 90 % interval 0.68 to 1.65 times each value; PSD peak 0.0829 g²/Hz at the 50.8 Hz line
  • Parseval: rms from the windowed spectrum 0.8731 g (ratio 0.982); from the area under the Welch PSD 0.8897 g

Notes

Open this case in the tool: /analysis-tools/electrical/signals/signal-analysis/?try=two-tones. The 50 Hz tone falls 0.4 of a line from line 102, so the line itself reads 10 % low with the Hann window; the flat top window reads it on the line. The record is synthetic and illustrative.

More Examples for This Tool