<p>The function $\tau$ is the 'line of best fit', the growth trend. The 'residual' $y-\tau$ is the output gap. So, $\tau$ detrends $y$ over time, to give the detrended business cycle $y-\tau$. $\quad y-\tau$ fluctuates around 0&mdash;it is positive when the output gap is positive and the economy is in a boom, and negative when the economy is in recession.</p>

<p>The first term makes the line of best fit follow the points in a more curvy way than just a straight line; the second term makes the line of best fit straighter (the higher $\lambda$ is).</p>

CC BY-SA 4.0
2018-06-29T15:16:01.990Z
ahorn explained it beautifully and link below goes into more detail.   https://www.uni-goettingen.de/de/document/download/...en.pdf/Filtering.pdf
mark leeds
CC BY-SA 4.0
2018-06-29T15:18:59.087Z
Joseph: be aware that there is quite a bit of controversy amongst econometricians regarding this filter. there's one group that says that its a particularly flawed ( induces spurious cycles ) filter and shouldn't be used. then there's another group that says its no more problematic than any other filter and the criticisms are flawed. I have not read deeply enough to even have an opinion but you should be aware of this if you use it.  google for "hamilton hodrick prescott" or "pollock hodrick prescott" for more info.
mark leeds
CC BY-SA 4.0
2018-06-29T15:21:53.820Z
one link is here but be aware that there are a whole bunch of top econometricians who disagree. http://econweb.ucsd.edu/~jhamilto/hp.pdf. note that this paper is pretty recent so he may be responding to the critics of the critics. I don't know.
mark leeds
CC BY-SA 4.0
2018-06-29T15:27:28.940Z
not sure why but link to introduction doesn't work. but one can google for "introduction to hodrick prescott filter" and it's the second one in the result.
mark leeds
CC BY-SA 4.0
2018-06-29T12:40:08.980Z
2018-06-29T12:40:08.980Z
ahorn
<p>The HP Filter has two objectives, with the importance of each objective denoted by the user given value of lambda:</p>

<p><a href="https://i.sstatic.net/Gz0c8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Gz0c8.png" alt="enter image description here"></a></p>

<p>Objective 1: minimize the $\tau_t$ in the term in the square brackets such that we minimize the changes in the estimated growth rate over time.</p>

<p>Objective 2: We want to bring the $\tau_t$ to be as close as possible to $y_t$ to minimize the first sum in the equation.</p>

<p>What I am failing to understand is why these acts of minimization will help us discover what the cyclical component of GDP is? Is there a fundamental gap in my knowledge? </p>

CC BY-SA 3.0
2018-04-05T11:47:37.023Z
I don't think the purpose of the filter is to discover a cyclical component.
Michael Greinecker
CC BY-SA 3.0
2018-04-13T06:49:30.023Z
It's to separate the trend and cyclical components, no?
Joseph
<macroeconomics><business-cycles>
Understanding the HP Filter
Joseph
# Understanding the HP Filter

(Asked by: username_0 on 2018-04-05)

The HP Filter has two objectives, with the importance of each objective denoted by the user given value of lambda:

[![enter image description here](https://i.sstatic.net/Gz0c8.png)](https://i.sstatic.net/Gz0c8.png)

Objective 1: minimize the $\tau\_t$ in the term in the square brackets such that we minimize the changes in the estimated growth rate over time.

Objective 2: We want to bring the $\tau\_t$ to be as close as possible to $y\_t$ to minimize the first sum in the equation.

What I am failing to understand is why these acts of minimization will help us discover what the cyclical component of GDP is? Is there a fundamental gap in my knowledge?

**Tags:** macroeconomics, business-cycles

> **Comments:**
> **username_1**: I don't think the purpose of the filter is to discover a cyclical component.  
> **username_0**: It's to separate the trend and cyclical components, no?  

---

## 1 answers

### Answer by username_2 on 2018-06-29. Score: 1 | Accepted answer

The function $\tau$ is the 'line of best fit', the growth trend. The 'residual' $y-\tau$ is the output gap. So, $\tau$ detrends $y$ over time, to give the detrended business cycle $y-\tau$. $\quad y-\tau$ fluctuates around 0—it is positive when the output gap is positive and the economy is in a boom, and negative when the economy is in recession.

The first term makes the line of best fit follow the points in a more curvy way than just a straight line; the second term makes the line of best fit straighter (the higher $\lambda$ is).

> **Comments:**
> **username_3**: username_2 explained it beautifully and link below goes into more detail.   https://www.uni-goettingen.de/de/document/download/...en.pdf/Filtering.pdf  
> **username_3**: username_0: be aware that there is quite a bit of controversy amongst econometricians regarding this filter. there's one group that says that its a particularly flawed ( induces spurious cycles ) filter and shouldn't be used. then there's another group that says its no more problematic than any other filter and the criticisms are flawed. I have not read deeply enough to even have an opinion but you should be aware of this if you use it.  google for "hamilton hodrick prescott" or "pollock hodrick prescott" for more info.  
> **username_3**: one link is here but be aware that there are a whole bunch of top econometricians who disagree. http://econweb.ucsd.edu/~jhamilto/hp.pdf. note that this paper is pretty recent so he may be responding to the critics of the critics. I don't know.  
> **username_3**: not sure why but link to introduction doesn't work. but one can google for "introduction to hodrick prescott filter" and it's the second one in the result.  

---

