Memuat
Memuat
PCA (pca) for Econometrics
0 views
Reduce the dimensionality of correlated synthetic macroeconomic indicators with PCA and assess the variance explained by each principal component. pca reduces dimensionality by transforming correlated variables into uncorrelated principal components ordered by variance. It is used to summarise many variables, reduce multicollinearity, and visualise multivariate data.

Reduce the dimensionality of correlated synthetic macroeconomic indicators with PCA and assess the variance explained by each principal component.
| Role | Variable | Unit |
|---|---|---|
| Main | Composite economic condition index | - |
| Supporting 1 | GDP growth | % |
| Supporting 2 | Inflation | % |
Two principal components explain 93.9% of the variance (PC1 64.6%, PC2 29.3%) across five variables including Composite economic condition index, GDP growth and Inflation; 2 components are needed to reach 90%.
Computed from illustrative synthetic data, not from a real study.
pca reduces dimensionality by transforming correlated variables into uncorrelated principal components ordered by variance. It is used to summarise many variables, reduce multicollinearity, and visualise multivariate data.
Report the variance explained by each component, the number retained, and the main loadings. Name components by their dominant variables, taking care not to over-interpret.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
rng(9);
n = 300;
f1 = randn(n, 1); f2 = randn(n, 1);
gdp_growth = f1 + 0.3*randn(n, 1);
inflation = f1 + 0.3*randn(n, 1);
x3 = f2 + 0.3*randn(n, 1);
x4 = f2 + 0.3*randn(n, 1);
x5 = randn(n, 1);
composite_economic_condition = [gdp_growth inflation x3 x4 x5];
Z = zscore(composite_economic_condition);
[coeff, score, latent, ~, explained] = pca(Z);
cum = cumsum(explained);
fprintf('Explained (%%): %s\n', mat2str(explained', 3));
fprintf('Cumulative (%%): %s\n', mat2str(cum', 3));
k = find(cum >= 90, 1);
fprintf('Components for 90%%: %d\n', k);
disp(array2table(coeff(:, 1:2), 'VariableNames', {'PC1', 'PC2'}, ...
'RowNames', {'x1', 'x2', 'x3', 'x4', 'x5'}));
figure;
subplot(1,2,1); plot(explained, '-o'); xlabel('Component'); ylabel('Variance explained (%)');
subplot(1,2,2); biplot(coeff(:, 1:2), 'Scores', score(:, 1:2), 'VarLabels', {'x1', 'x2', 'x3', 'x4', 'x5'});Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$22
excl. 11% VAT
Duration: 3 working days
Output: MATLAB files + result figures
Deliverables
Package 2 · most chosen
US$59
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$131
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. PCA (pca) is commonly used at this level in Econometrics. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output MATLAB gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$22, Package 2 (your data analysis and interpretation) US$59 and Package 3 (full guidance) US$131, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. MATLAB is a trademark of The MathWorks, Inc.
Back to MATLAB portfolio