Statistical Methods
Audit Signal Loss Before Keeping Fewer Cosine Coefficients
Define the task
A cosine transform can represent a finite sequence with real coefficients. Keeping fewer coefficients creates an approximation, so decide what loss is acceptable before inspecting which setting looks attractive. Preserve the original sequence, its ordering, units and sampling interval. This audit uses an orthonormal type-II discrete cosine transform, no padding and the first k coefficients, including the constant or DC coefficient. It does not choose the largest coefficients or optimize a clinical endpoint.
Carry out the check
Enter a small synthetic sequence and start by keeping every coefficient. Reconstructed samples should agree with the originals within floating-point rounding. Then reduce k and compare the reconstructed values, squared error and RMSE in the original measurement units. A small average error can still hide loss of a brief important event. Inspect event timing and local departures separately. Record transform type, normalization, retained indices and error criterion with the exported notes. Never overwrite the original acquisition with the reconstruction.
Worked hypothetical example
Hypothetical example: samples 1,1,3,3 have mean 2. Retaining only the DC coefficient reconstructs 2,2,2,2. The four squared errors sum to 4 and RMSE is 1. Keeping all four coefficients reconstructs the original values to numerical precision. This is a compression audit, not evidence that discarded variation was noise. Compare with the existing Fourier-bin guide when the task is frequency interpretation rather than reconstruction.
Method checked 24 November 2026 against primary documentation: fft.dct.