There is a low pass filter with difference equation already provided.
$$ y_n = (x_n - 2x_{n-6} + x_{n-12}) - (-2y_{n-1} + y_{n-2}) $$
$$ a_0 = 1, a_1 = -2, a_2 = 1 $$ $$ b_0 = 1, b_6 = -2, b_{12} = 1 $$
However the filter was designed with some gain as the filtered output is significantly exceeds original signal dynamic range x1 = scipy.signal.lfilter(b, a, x
)
Is it possible to normalize filter coefficients to have the same as input signal dynamic range or approximately redesign it from filter frequency response?