- Introduced by
- M. Hashem Pesaran & Allan Timmermann
- Year
- 1992
- Type
- Nonparametric one-sided test
- Family
- Forecast evaluation
What does it do?
Introduced by Pesaran and Timmermann (1992), the PT test is a nonparametric procedure that checks whether a forecasting model predicts the direction (sign) of a target variable more often than independence between forecasts and realizations would imply.
It is used in financial and macroeconomic forecasting where the sign of a forecast can drive a decision, and it complements criteria based on error magnitude.
The intuition behind the method
Even a forecast with small mean squared error can be economically worthless if it consistently points in the wrong direction. The PT test captures this by comparing the fraction of times the forecast and the realization share the same sign against the fraction one would expect if the two series were completely independent. If a forecaster calls market ups and downs correctly far more often than chance, the PT statistic will be large and positive, providing evidence of genuine directional skill.
History
Pesaran and Timmermann introduced the test in the Journal of Business & Economic Statistics in 1992 as a simple nonparametric test of predictive performance based on hit rates. It has since become a standard tool for evaluating directional accuracy in financial and macroeconomic forecasting.
When to use it
Choose the PT test when the question is whether a forecast gets the direction of a variable right more often than chance, for example the sign of stock returns, exchange-rate moves, or turning-point indicators, and when the decision depends mainly on that sign. The null is independence of forecasts and realizations, and the variance formula and normal limit are derived under i.i.d.-type conditions. The test is therefore less suitable for serially dependent hit sequences, such as overlapping multi-step forecasts, without further adjustment. The sign of a zero is ambiguous, so choose and report a convention for zero outcomes and zero forecasts before applying the test, and apply it consistently in both the hit-rate and the proportion calculations. Avoid the test when zeros are frequent. If the question concerns the size of forecast errors, the Diebold-Mariano test is the better choice; for turning points, a dedicated turning-point test fits better.
Limitations and considerations
- Ignores the magnitude of forecast errors: a forecast that gets signs right but misses the size of moves badly still scores well.
- The statistic relies on the asymptotic N(0,1) limit; in short samples the normal approximation may be poor, and simulated critical values are a sensible check.
- The variance formula assumes independence across periods. Serial correlation in the hit sequence is not modelled. With overlapping or rolling-window multi-step forecasts, N(0,1) p-values should not be taken at face value without a dependence-robust variance or simulated critical values.
- Zero outcomes and zero forecasts need an explicit classification convention. The sign function in the hit-rate calculation and the indicator for values greater than zero in the proportion calculation treat zeros differently unless the convention is made consistent.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Uses only the signs of forecasts and realizations, so the statistic does not depend on the size of forecast errors or on a model of their distribution.
- Targets directional skill directly, which can matter more than squared-error loss when only the sign of a decision (buy or sell, expansion or contraction) is acted on.
- The statistic is a closed-form expression in three estimated proportions and the sample size T, and its null reference is the standard normal, so no simulation is needed to compute it.
Applications
- Evaluating whether equity return forecasting models correctly predict the sign of excess returns more often than chance.
- Assessing whether forecasters can anticipate the direction of changes in GDP growth or inflation.
- Testing currency trading strategies by checking whether a model predicts appreciation versus depreciation better than independence would imply.
- Checking whether a leading indicator signals the direction of business cycle movements in macroeconomic monitoring.
How it works
How it works
Count the proportion of periods in which the sign of the realized value matches the sign of the forecast. This observed hit rate, denoted P-hat, is the raw directional accuracy of the model over the evaluation sample of T observations.
Formula
\hat{P} = \frac{1}{T} \sum_{t=1}^{T} \mathbf{1}\!\left[\operatorname{sign}(y_t) = \operatorname{sign}(\hat{y}_t)\right]Under the null of independence, compute the expected hit rate P-hat-star from the marginal proportions of positive realizations and positive forecasts. This benchmark adjusts for the base rates of positive outcomes in both series, so the comparison is not inflated by a predominance of one sign.
Formula
\hat{P}^* = \hat{p}_y \hat{p}_{\hat{y}} + (1-\hat{p}_y)(1-\hat{p}_{\hat{y}}), \quad \hat{p}_y = \frac{1}{T}\sum_{t=1}^{T}\mathbf{1}[y_t>0],\quad \hat{p}_{\hat{y}} = \frac{1}{T}\sum_{t=1}^{T}\mathbf{1}[\hat{y}_t>0]The statistic needs an estimate of the variance of the difference between the observed and expected hit rates (P-hat minus P-hat-star). Both quantities are estimated from the same sample. The variance of the difference is therefore the estimated variance of P-hat minus the estimated variance of P-hat-star, and the latter must include the sampling variability from estimating the two marginal proportions. Use the exact expression given in Pesaran and Timmermann (1992) when implementing this step. A formula that simply adds the benchmark's variance terms to the hit-rate variance does not give the same quantity.
Formula
\widehat{\operatorname{Var}}(\hat{P} - \hat{P}^*) = \frac{\hat{P}^*(1-\hat{P}^*)}{T} + \frac{(2\hat{p}_y-1)^2\,\hat{p}_{\hat{y}}(1-\hat{p}_{\hat{y}})}{T} + \frac{(2\hat{p}_{\hat{y}}-1)^2\,\hat{p}_y(1-\hat{p}_y)}{T}Standardize the difference between the observed and expected hit rates by its estimated standard deviation to obtain the PT statistic. Under the null of no directional predictability, this statistic converges in distribution to a standard normal, so right-tail critical values from the N(0,1) table are used.
Formula
PT = \frac{\hat{P} - \hat{P}^*}{\sqrt{\widehat{\operatorname{Var}}(\hat{P} - \hat{P}^*)}} \xrightarrow{d} \mathcal{N}(0,1)Common pitfalls
- The procedure uses right-tail N(0,1) critical values, which test for positive directional skill. Choosing the tail after seeing the results changes the meaning of the test, so the tail should be fixed before the data are examined.
- Rejecting the null shows directional accuracy above chance; it does not show that the forecast is profitable once transaction costs and position sizing are included.
- Running the test on in-sample fitted values rather than genuine out-of-sample forecasts inflates the hit rate, so the result does not measure real forecasting ability.
Frequently asked questions
How does the PT test differ from the Diebold-Mariano test?
The Diebold-Mariano test compares the mean forecast loss (for example MSE or MAE) of two competing models, so it focuses on error magnitude. The PT test evaluates whether the sign of the forecast matches the sign of the realization more often than independence implies, so it is complementary to loss-based tests and is most relevant when directional accuracy carries direct economic value.
Can the PT test be used with overlapping or rolling-window forecasts?
The variance and normal limit assume that observations are independent under the null. Overlapping multi-step forecasts can make the hit sequence serially dependent, in which case the analytic variance and the standard normal p-values are not reliable. Use a dependence-robust variance or simulated critical values, and examine the dependence structure before interpreting the result.
What should be done when the realization or forecast is exactly zero?
A zero outcome has no unambiguous sign. Choose and report one convention, such as excluding zeros, treating them as misses, or using a separate zero class, and apply it identically when computing the hit rate and the proportions of positive values. The choice can change the hit rate and the test conclusion, especially in low-frequency data or data with many zeros.
Related methods
Sources
Pesaran, M. H., & Timmermann, A. (1992). A simple nonparametric test of predictive performance. Journal of Business & Economic Statistics, 10(4), 461–465.
Open DOI reference