A spectrum can have the correct shape and still give an incorrect total squared signal magnitude. The missing detail is often normalization, or the weight assigned to the omitted negative-frequency bins of a real record. Parseval's identity makes those choices explicit.

For a finite robot telemetry record, the identity compares two representations of exactly the same samples. It does not estimate an unobserved signal, recover discarded phase, or turn an arbitrary amplitude unit into joules. The example below uses invented dimensionless samples and direct algebra, without running an FFT library or acquiring hardware data.

Define the transform before summing squares

Use N samples x[n], with indices zero through N minus one. Define the forward transform as X[k] = sum over n of x[n] exp(−j2πkn/N). This forward transform has no scale factor. Its inverse has the factor 1/N.

Under that convention, sum |x[n]|² = (1/N) sum |X[k]|². Both sums include every index in their respective full records. The vertical bars mean complex magnitude, so |a+jb|² = a²+b². Squaring a complex number itself would calculate a different quantity.

NumPy documents the transform conventions and the symmetry of transforms of real inputs. SciPy's tutorial gives the corresponding matrix and inner-product relationships. Those definitions establish the framework; the following short record and competing totals are independently constructed.

Work through four samples

Take x = [1, 2, −1, 0], with N = 4. Its time-domain squared sum is 1 + 4 + 1 + 0 = 6.

The unscaled DFT is X = [2, 2−2j, −2, 2+2j]. For example, the first nonzero-frequency bin is 1 + 2(−j) + (−1)(−1) = 2−2j. The opposite-frequency bin is its complex conjugate because the input is real.

The four squared magnitudes are [4, 8, 4, 8]. Their sum is 24, and division by four gives 6. Comparing the raw spectral total 24 directly with the sample total 6 would falsely report a fourfold discrepancy.

A twofold amplitude gain would make the time-domain squared sum 24 and the full spectral squared sum 96. Both scale by four, while the transform-length factor remains four. Signal gain and transform normalization are separate operations.

Why the cross terms disappear

Expanding |X[k]|² produces terms involving x[n] times the complex conjugate of x[m], multiplied by exp(−j2πk(n−m)/N). Sum this expression over all k.

When n = m, every exponential is one, and their sum is N. When n and m are different sample indices, the exponentials form a complete nontrivial geometric cycle whose sum is zero. Only the diagonal terms remain, giving N times the sample squared sum.

This cancellation depends on the complete DFT basis, including all N bins. Selecting only a frequency band changes the question. The selected total describes the portion represented by those bins under the declared convention, rather than the entire original record.

Change the convention, change the factor

An orthonormal transform divides every forward coefficient by square root N. Here that divisor is two. The resulting coefficients are [1, 1−j, −1, 1+j], whose squared magnitudes sum directly to 6.

A forward-normalized transform instead divides by N, giving a spectral squared sum of 24/16 = 1.5. Multiplying that total by N recovers 6. None of these three conventions changes the underlying samples when paired with its matching inverse.

Consequently, a report containing only a spectral squared total is incomplete. It needs the forward scaling and record length before another process can compare that value with a sample-domain total.

Account for the omitted conjugate bins

A compact real-input spectrum for this even-length example retains bins zero, one, and two. Their squared magnitudes are [4, 8, 4]. The omitted bin three duplicates the magnitude of bin one.

The correctly weighted total is therefore 4 + 2×8 + 4 = 24. The zero-frequency bin and the Nyquist bin each count once; the interior positive-frequency bin counts twice. After dividing by N, the result is again 6.

Simply summing the retained squared magnitudes gives 16/4 = 4, which loses the omitted partner's contribution. Doubling every retained squared magnitude gives 32/4 = 8, which double counts the two endpoint bins.

There is another trap: doubling the interior amplitude before squaring multiplies its squared magnitude by four. That calculation gives (4 + 4×8 + 4)/4 = 10. Doubling an amplitude for a particular plotting convention is not the energy-weighting operation used here.

Odd lengths have a different endpoint

For N = 3, take x = [1, 0, −1]. The sample squared sum is 2. The full DFT has squared magnitudes [0, 3, 3], totaling 6. A compact real spectrum retains [0, 3], and doubling its positive-frequency contribution recovers 6.

There is no separate Nyquist bin at an odd transform length. A rule that always leaves the last retained bin unweighted would produce the wrong result for this record. Endpoint handling follows parity and conjugate pairing, rather than the visual position of a plotted point.

Preserve the record being checked

Multiplying the original four samples by a window [1, 0.5, 0.5, 1] produces [1, 1, −0.5, 0], whose squared sum is 2.25. Parseval still holds for that new record; it does not restore the original total 6 automatically.

Likewise, a circular shift changes spectral phase while leaving all spectral magnitudes unchanged. Equal energy therefore does not establish equal sample order or equal waveforms. The identity is a strong consistency check for a declared transform, not a complete comparison of two signals.

Keep the samples, window, transform length, forward scaling, and real-spectrum weights together. The resulting squared sum has amplitude-squared units summed over samples. A physical energy interpretation requires an additional measurement model, calibration, and time weighting.

Sources checked October 24, 2026:

https://numpy.org/doc/stable/reference/routines.fft.html — NumPy v2.5 Manual as accessed; transform definition, normalization, and real-input Hermitian symmetry were read. No installed NumPy execution is claimed.

https://docs.scipy.org/doc/scipy/tutorial/fft.html — SciPy v1.18.0 Manual as accessed; DFT matrix orthogonality and inner-product scaling were read. The finite data and checks here are original.

Illustration note: A generic robot and laptop scene is a concept illustration. It does not depict the invented numerical example, a measured robot response, or an executed software test.