Optimal HP filtering for South Africa
Stellenbosch Working Paper Series No. WP07/2008Publication date: 2008
Author(s):
Among the various methods used to identify the business cycle from aggregate data, the Hodrick-Prescott filter has become an industry standard – it ‘identifies’ the business cycle by removing low-frequency information, thereby smoothing the data. Since the filter’s inception in 1980, the value of the smoothing constant for quarterly data has been set at a ‘default’ of 1600, following the suggestion of Hodrick and Prescott (1980). This paper argues that this ‘default value’ is inappropriate due to its ad hoc nature and problematic underlying assumptions. Instead this paper uses the method of optimal filtering, developed by Pedersen (1998, 2001, and 2002), to determine the optimal value of the smoothing constant for South Africa. The optimal smoothing constant is that value which least distorts the frequency information of the time series. The result depends on both the censoring rule for the duration of the business cycles and the structure of the economy. The paper raises a number of important issues concerning the practical use of the HP filter, and provides an easily replicable method in the form of MATLAB code.
JEL Classification:C22, E32
Keywords:Hodrick-Prescott filter, Spectral analysis, Ideal filtering, Optimal filtering, Distortionary filtering, Business cycles, MATLAB
Download: PDF (431 KB)Login
(for staff & registered students)
Upcoming Seminars
Monday 28 July 202512:00-13:00
Dr Neil Rankin: Ceo Of Predictive Insights & Stellenbosch University
Topic: "TBC"
12:00-13:00
Prof Willem Boshoff
Topic: "Two competing approaches in South African competition policy: merger control and anti-cartel enforcement over the past 30 years"
12:00-13:00
Prof Derek Yu: University Of The Western Cape
Topic: "Examining the teaching, assessment and research activities of the South African Economics Departments"
BER Weekly
6 Jun 2025 SA GDP barely expands in Q1, while BCI and PMI suggest that Q2 remained weakIt was a busy week for local data releases, much of which painted a bleak picture of SA’s economy. Not only was first-quarter GDP growth dismal, but 2024 growth was also revised lower to just 0.5%. , The RMB/BER Business Confidence Index (BCI) showed sentiment remained shaky in the second quarter...
Read the full issue
Upcoming Seminars
Monday 28 July 202512:00-13:00
Dr Neil Rankin: Ceo Of Predictive Insights & Stellenbosch University
Topic: "TBC"
12:00-13:00
Prof Willem Boshoff
Topic: "Two competing approaches in South African competition policy: merger control and anti-cartel enforcement over the past 30 years"
12:00-13:00
Prof Derek Yu: University Of The Western Cape
Topic: "Examining the teaching, assessment and research activities of the South African Economics Departments"
BER Weekly
6 Jun 2025 SA GDP barely expands in Q1, while BCI and PMI suggest that Q2 remained weakIt was a busy week for local data releases, much of which painted a bleak picture of SA’s economy. Not only was first-quarter GDP growth dismal, but 2024 growth was also revised lower to just 0.5%. , The RMB/BER Business Confidence Index (BCI) showed sentiment remained shaky in the second quarter...
Read the full issue