Lesson 1
Data Cleaning and Visualisation for Economic Data
Economic data must be cleaned before analysis: errors, missing values, outliers, inconsistent units and seasonality can distort results. Good visualisation then reveals trends, cycles and relationships clearly and honestly.
Common Data Problems
- Missing values, duplicates, typos and inconsistent formats (dates, units, currencies).
- Outliers: check whether they are errors or genuine events (e.g. a recession).
- Structural breaks and series revisions or definition changes.
Cleaning Steps
- Inspect data: summary statistics, plots, counts of missing values.
- Handle missing data: delete, interpolate or impute, and document the choice.
- Standardise units and convert nominal to real values using a price index: real = nominal / price index x 100.
- Seasonally adjust monthly/quarterly series; use logs or growth rates for trending data.
- Index series to a base year (base = 100) to compare series of different scales.
Visualisation Choices
- Line chart: time series and trends.
- Bar chart: comparisons across categories or countries.
- Scatter plot: relationship between two variables.
- Histogram: distribution of a single variable.
Good Practice
- Label axes, units and sources; shade recessions where useful.
- Avoid misleading truncated axes or dual axes; use log scales for exponential growth.
- Keep charts simple and focused on one message.
Key terms
- Imputation
- Filling missing values with estimates such as means or interpolations.
- Outlier
- An observation far from the rest of the data.
- Seasonal adjustment
- Removing regular calendar-related patterns from a series.
- Real value
- A nominal value adjusted for inflation.
- Index number
- A series rescaled so a base period equals 100.
Lesson 2
Economic Forecasting Methods
Economic forecasting predicts future values of variables like GDP, inflation and unemployment using judgement, time-series models, econometric models and leading indicators. Forecasts are uncertain, so they are evaluated on accuracy and presented with ranges.
Qualitative Methods
- Expert judgement, surveys and the Delphi method.
- Useful when data are scarce or structural change occurs.
Quantitative Methods
- Naive forecast: next value equals the latest value.
- Moving averages and exponential smoothing smooth out noise.
- Trend extrapolation: fit a linear or exponential trend and extend it.
- Time-series models (AR, ARIMA) use a variable's own past values; VAR models several variables together.
- Econometric/structural models link variables via economic theory (e.g. consumption depends on income).
- Leading indicators (yield curve, PMI, building permits, stock prices) signal turning points.
Evaluating Forecasts
- Forecast error = actual - forecast.
- Mean absolute error (MAE) = average of |errors|; RMSE penalises large errors more.
- Compare against a naive benchmark; test out-of-sample.
Limitations
- Shocks and structural breaks are hard to predict.
- Uncertainty grows with the forecast horizon; use fan charts or scenarios.
- Data revisions and the Lucas critique: behaviour changes when policy changes.
Key terms
- Leading indicator
- A variable that tends to change before the overall economy.
- Moving average
- Average of the most recent n observations used to smooth or forecast.
- ARIMA
- Time-series model using past values, differencing and past errors.
- RMSE
- Square root of mean squared forecast errors.
- Fan chart
- Chart showing a forecast with widening uncertainty bands.
