Removing the Mean of a Discrete Signal

Subtracting the sample mean removes the constant component under that finite observation's averaging convention.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace three readings
  2. Choose the same reference where needed
  3. Verify the centered samples sum to zero
  4. Check the scope of the fitted mean

Trace three readings

Values 2, 4, and 6 have mean four and yield minus two, zero, and two after centering. Their sum is zero. See running averages.

Choose the same reference where needed

Centering each window independently can erase changes in baseline between windows. If baseline differences matter, use a defined reference. Feature centering illustrates reusing a fitted center.[1][2]

Verify the centered samples sum to zero

For samples four, five and nine, their mean is six. Subtracting six gives minus two, minus one and three, totaling zero. Centering preserves differences between pairs of samples. See running averages.

Input: 4,5,9
Mean: 6
Centered: -2,-1,3
Pairwise difference 9−4 equals 3−(−2)

Check the scope of the fitted mean

Centering each short window removes a different local baseline. A global mean uses the full chosen interval. For online comparisons, define whether future samples can affect the baseline.

References

  1. MIT OpenCourseWare, 6.003 Signals and Systems ↩
  2. David J. C. MacKay, Information Theory, Inference, and Learning Algorithms ↩