2025-11-22T21:34:16.379820

USA Tariffs Effect: Machine Learning Insights into the Stock Market

Patel
The imposition of tariffs by President Trump during his second term had far-reaching consequences for global markets, including Australia. This study investigates how both the announcement and subsequent implementation of these tariffs, specifically on 02-Apr-2025, affected the Australian stock market, focusing on the S\&P/ASX 200 index over the period from 21-Jan-2025 to 25-Jul-2025. To accurately capture the significance and behavior of market fluctuations, the exploratory data analysis (EDA) techniques are applied. Furthermore, the impact of tariffs on stock performance is evaluated using machine learning-based regression models. A comparative assessment of these models is conducted to determine their predictive accuracy and robustness in capturing tariff-related market responses.
academic

USA Tariffs Effect: Machine Learning Insights into the Stock Market

Basic Information

  • Paper ID: 2510.10877
  • Title: USA Tariffs Effect: Machine Learning Insights into the Stock Market
  • Author: Mridul Patel (RMIT University)
  • Classification: math.NA cs.NA
  • Publication Date: October 13, 2025
  • Paper Link: https://arxiv.org/abs/2510.10877

Abstract

The tariffs imposed during President Trump's second term have had profound impacts on global markets, including Australia. This study investigates how the announcement and subsequent implementation of these tariffs (particularly on April 2, 2025) affected the Australian stock market, with a focus on the S&P/ASX 200 index during the period from January 21 to July 25, 2025. Exploratory Data Analysis (EDA) techniques were employed to accurately capture the significance and behavioral characteristics of market volatility. Furthermore, machine learning-based regression models were utilized to assess the impact of tariffs on stock performance, with comparative evaluation of these models to determine their predictive accuracy and robustness in capturing tariff-related market responses.

Research Background and Motivation

Problem Definition

The core research question is: How can we quantify and predict the impact of U.S. tariff policies on the Australian stock market, particularly in the context of policy uncertainty and heightened market volatility?

Importance Analysis

  1. Global Nature of Policy Impact: As the world's largest economy, changes in U.S. trade policy affect global financial markets through multiple channels
  2. Demand for Market Volatility Prediction: Accurate prediction of market behavior under policy shocks is crucial for investors, financial institutions, and regulatory authorities
  3. Cross-National Market Linkages: As an important U.S. trading partner, Australia's stock market sensitivity to U.S. policy changes has significant research value

Limitations of Existing Methods

  1. Inadequacy of Traditional Econometric Models: Conventional models such as ARCH and GARCH have limitations in handling nonlinear relationships and high-dimensional data
  2. Poor Adaptability: Traditional methods struggle to adapt to rapidly changing market conditions and large-scale data
  3. Limited Complexity Capture: Inability to effectively handle complex interactions in multidimensional dynamic financial data

Research Motivation

Leveraging the flexibility and nonlinear modeling capabilities of machine learning methods to construct more accurate stock market volatility prediction models, providing better predictive tools for market behavior under policy shocks.

Core Contributions

  1. Established an empirical analysis framework for tariff effects: Systematically analyzed the specific impact of tariff implementation on April 2, 2025, on the Australian stock market
  2. Comparative evaluation of multiple machine learning regression models: Including linear regression, Support Vector Regression (SVR), k-Nearest Neighbors (kNN) regression, and Random Forest regression
  3. Provided quantitative evidence of cross-national market linkages: Revealed the synchronization characteristics of U.S.-Australia stock markets through correlation analysis
  4. Established a stock market prediction benchmark under policy shocks: Provided methodological reference for subsequent related research

Methodology Details

Task Definition

Input: Historical stock price data (open, high, low, close prices), lagged variables, rolling statistical features Output: Future stock price predictions Constraints: Based on the time window from January 21 to July 25, 2025, capturing market reactions before and after tariff policy implementation

Model Architecture

1. Linear Regression

Establishes linear relationships between dependent and independent variables: y=Xβ+ϵy = X\beta + \epsilon where yy represents stock price, XX is the feature matrix, β\beta are regression coefficients, and ϵ\epsilon is the error term.

2. Support Vector Regression (SVR)

  • Linear Kernel SVR: Suitable for modeling linear relationships in high-dimensional financial data
  • Polynomial Kernel SVR: Captures nonlinear patterns through kernel function projection into higher-dimensional space

3. Random Forest Regression

Constructs an ensemble model of multiple decision trees:

  • Handles both linear and nonlinear relationships
  • Provides feature importance ranking
  • Strong resistance to overfitting

4. k-Nearest Neighbors (kNN) Regression

Makes predictions based on similar historical patterns: y^=1ki=1kyi\hat{y} = \frac{1}{k}\sum_{i=1}^{k}y_i where kk is the number of nearest neighbors and yiy_i are target values of similar samples.

Technical Innovations

  1. Feature Engineering: Construction of lagged variables (1-3 periods) and rolling statistics (3-period rolling mean and standard deviation)
  2. Cross-Market Analysis: Simultaneous analysis of U.S. and Australian stock market data to capture inter-market linkage effects
  3. Time Series Processing: Utilization of Algorithm 1's time series regression framework to systematically handle the special properties of financial time series

Experimental Setup

Dataset

  • Australian Market: S&P/ASX 200 index with 130 trading day observations
  • U.S. Market: S&P 500 index for the corresponding time period
  • Data Sources: Australian Securities Exchange (ASX) and S&P Dow Jones Indices official databases
  • Key Time Point: April 2, 2025, tariff implementation date as an important event node

Evaluation Metrics

  1. Coefficient of Determination (R²): R2=1i=1N(zizi^)2i=1N(zizˉ)2R^2 = 1-\frac{\sum_{i=1}^{N}(z_i - \hat{z_i})^2}{\sum_{i=1}^{N}(z_i - \bar{z})^2}
  2. Mean Squared Error (MSE): MSE=1Ni=1N(zizi^)2MSE = \frac{1}{N}\sum_{i=1}^{N}(z_i - \hat{z_i})^2
  3. Mean Absolute Error (MAE): MAE=1Ni=1Nzizi^MAE = \frac{1}{N}\sum_{i=1}^{N}|z_i - \hat{z_i}|
  4. Mean Absolute Percentage Error (MAPE): MAPE=100ni=1nzizi^ziMAPE = \frac{100}{n}\sum_{i=1}^{n}\left|\frac{z_i - \hat{z_i}}{z_i}\right|

Comparison Methods

  • Linear Regression (baseline method)
  • Linear Kernel SVR
  • Polynomial Kernel SVR
  • k-Nearest Neighbors Regression (k=5)
  • Random Forest Regression (n_estimators=100)

Implementation Details

  • Data Split: 80% training set, 20% test set
  • Feature Normalization: StandardScaler for feature scaling
  • Cross-Validation: Ensures model generalization capability
  • Hyperparameter Settings: k=5 for kNN, 100 trees for Random Forest

Experimental Results

Main Results

According to the experimental results in Table 4:

ModelMSEMAEMean Relative ErrorRelative Error Std Dev
Random Forest7047.3967.640.8770.0082440.006296
kNN9539.3573.700.8340.0089950.008135
Linear SVR11149.5881.430.8060.0099500.008696
Polynomial SVR41753.72160.670.2720.0196950.016378

Model Performance Analysis

  1. Random Forest Performs Optimally:
    • Lowest MSE and MAE
    • Highest R² value (0.877)
    • Minimal relative error volatility
  2. kNN Shows Secondary Performance:
    • R² reaches 0.834 with stable performance
    • Effectively utilizes local data structure
  3. Linear SVR Shows Moderate Performance:
    • R² of 0.806 with good interpretability
    • High computational efficiency
  4. Polynomial SVR Shows Poorest Performance:
    • R² of only 0.272
    • Likely overfitting or suboptimal parameter tuning

Market Linkage Analysis

Correlation analysis reveals:

  • Strong positive correlation between U.S. and Australian stock market closing prices
  • Australian market mean (8274.53) higher than U.S. market (5870.23)
  • Similar volatility rates between markets (standard deviations of 313.92 and 304.84 respectively)
  • Both markets exhibit negative skewness, indicating extreme downside risk

Time-Point Analysis of Tariff Effects

Observable from the data:

  • Significant volatility in S&P/ASX 200 index before and after April 2 tariff implementation
  • Index declined from 7834.8 to 7667.8 on April 4, a decline of approximately 2.1%
  • U.S. S&P 500 index declined from 5292.1 to 5074.1 during the same period, a decline of approximately 4.1%

Machine Learning Applications in Financial Forecasting

  1. Gu et al. (2020): Demonstrated machine learning superiority over traditional linear models in asset pricing
  2. Nti et al. (2020): Systematically reviewed fundamental and technical analysis methods in stock market prediction
  3. Sonkavde et al. (2023): Compared deep learning and machine learning performance in stock market prediction

Policy Shocks and Market Volatility

Traditional research predominantly employs event study methodology and GARCH-class models, but faces limitations in handling high-frequency data and complex nonlinear relationships.

Cross-National Market Linkages

This paper provides empirical verification of high correlation between U.S. and Australian stock markets, establishing theoretical foundation for cross-market prediction.

Conclusions and Discussion

Main Conclusions

  1. Clear Advantages of Machine Learning Models: Random Forest demonstrates optimal performance across all evaluation metrics, confirming the effectiveness of ensemble learning in financial forecasting
  2. Significant Tariff Policy Impact: The April 2, 2025, tariff implementation produced obvious negative impacts on both U.S. and Australian stock markets
  3. Strong Market Synchronization: U.S.-Australia stock markets exhibit high synchronization, supporting the use of cross-market features for prediction
  4. Necessity of Nonlinear Modeling: Nonlinear machine learning models better capture complex market dynamics compared to linear methods

Limitations

  1. Limited Data Time Span: Coverage of only a 6-month window may affect result generalizability
  2. Small Sample Size: 130 observations may be insufficient for adequate machine learning model training
  3. Absence of Macroeconomic Variables: Important macroeconomic indicators such as interest rates, exchange rates, and inflation are not incorporated
  4. Missing Industry-Level Analysis: Failure to differentiate differential responses of different industries to tariff policies

Future Directions

  1. Hybrid Model Development: Combine deep learning and traditional regression methods to construct more powerful prediction frameworks
  2. Multidimensional Feature Extension: Incorporate additional macroeconomic indicators and industry-specific variables
  3. Real-Time Prediction Systems: Develop online learning systems capable of processing high-frequency data
  4. Risk Management Applications: Integrate prediction models into portfolio optimization and risk management frameworks

In-Depth Evaluation

Strengths

  1. Realistic and Important Research Question: Tariff policy impact on stock markets is a current hotspot with significant policy implications
  2. Scientifically Rigorous Methodology: Systematic comparison of multiple machine learning methods with well-designed experiments
  3. Standardized Data Processing: Employs standard feature engineering and model evaluation procedures
  4. Clear Result Interpretation: Comprehensive model performance assessment through multiple evaluation metrics
  5. Valuable Cross-Market Analysis: U.S.-Australia stock market linkage analysis provides empirical evidence for international finance research

Weaknesses

  1. Weak Theoretical Foundation: Lacks theoretical analysis of tariff transmission mechanisms
  2. Ambiguous Causal Relationships: Fails to establish clear causal chains between tariff policy and stock market volatility
  3. Insufficient Statistical Testing: Lacks statistical significance testing of prediction results
  4. Limited Robustness Analysis: Insufficient sensitivity analysis and stability testing
  5. Unverified Practical Applicability: Actual trading application effectiveness of the model remains unverified

Impact

  1. Academic Contribution: Provides a machine learning perspective solution for stock market prediction under policy shocks
  2. Practical Value: Can provide decision support tools for investment institutions and policymakers
  3. Methodological Value: Provides reference framework for feature engineering in financial time series prediction

Applicable Scenarios

  1. Short-Term Market Forecasting: Suitable for short-term stock price prediction before and after policy events
  2. Risk Management: Can be used to construct quantitative assessment models for policy risk
  3. Investment Decision Support: Provides reference for institutional investors in market timing selection
  4. Policy Impact Assessment: Provides tools for government agencies to evaluate trade policy effects

References

This paper cites 32 relevant references, primarily covering:

  • Machine learning applications in financial forecasting
  • Traditional econometric methods (ARCH/GARCH)
  • Stock market volatility modeling
  • Market impact of policy shocks

Important references include:

  • Gu et al. (2020): Pioneering work on machine learning asset pricing
  • Bollerslev (1986): Classic GARCH model literature
  • Breiman (2001): Original Random Forest methodology paper

Overall Assessment: This is an application-oriented empirical research paper with relatively standardized methodology application and experimental design, but requires strengthening in theoretical depth and innovation. The research results have certain value for understanding market impacts of trade policy, but require larger-scale data and deeper theoretical analysis to support the generalizability of its conclusions.