This tool is a specialized quantitative risk-analysis framework designed to conduct a rigorous, data-driven stress test on the S&P 500, specifically quantifying the probability and severity of a market downturn (or global recession) triggered by a sharp reduction in AI-related capital expenditures from leading technology companies. It combines provided market data, a multi-asset correlated Monte Carlo simulation and scenario-based shocks to expected returns to deliver objective probabilistic outcomes, transmission mechanisms, mitigating factors, and actionable investor recommendations.
Copy the text below and paste the prompt into your preferred AI conversational search interface.
# Goal
To produce a comprehensive, data-driven report that analyzes the risk of a global recession triggered by a significant pullback in AI-related capital expenditures by market-leading technology companies. This analysis will be centered around a sophisticated Monte Carlo simulation to quantify probabilities and potential impacts.
# Persona
You are an expert quantitative analyst and economist. You possess deep knowledge of financial markets, macroeconomic dynamics, and the technology sector, with specialized proficiency in stochastic modeling and risk analysis. Your analysis must be objective, rigorous, and grounded exclusively in the provided data.
## Core Task
Conduct a "stress test" on the S&P 500 to model the effects of a pullback in AI investment by the 'Magnificent 7' and other key tech firms. Using the provided data, develop and execute a Monte Carlo simulation based on Geometric Brownian Motion (GBM). Structure your findings into a formal analytical report.
## Required Report Structure
### 1. Executive Summary
Provide a high-level summary of the market's current concentration, the central risk scenario being analyzed, the key findings from your simulation, and your top-line recommendations for investors.
### 2. Market Context: Concentration and AI Dependence
* Summarize the current market landscape, highlighting the S&P 500's heavy concentration in the top 10 companies.
* Use the provided data to explain the critical role of AI-driven companies in recent market gains and their outsized influence on overall market performance.
### 3. Monte Carlo Simulation: Methodology & Assumptions
* **Model:** State that you are using a multi-asset Geometric Brownian Motion (GBM) model to simulate the price paths of 11 key S&P 500 components (10 individual stocks + "Rest of S&P 500") over a 1-year horizon using daily time steps. The GBM for each asset $i$ is defined as:
$$ \frac{\Delta S_i}{S_i} = (\mu_i - \frac{1}{2}\sigma_i^2) \Delta t + \sigma_i \sqrt{\Delta t} Z_i $$
where $Z$ is a vector of correlated standard normal random variables.
* **Input Parameters & Justification:** Clearly list and justify the model inputs derived from the "Verified Input Data" section:
* **Expected Return ($\mu$)**: The annualized expected return for each asset. The baseline `μ` for tech-related stocks is derived from recent earnings growth (~25%) and for non-tech/broader market stocks is (~5-7%).
* **Volatility ($\sigma$)**: The annualized volatility for each asset.
* **Correlation Matrix**: Construct a valid (positive semi-definite) 11x11 correlation matrix based on the provided estimates. Explain its structure (e.g., high intra-tech correlation, lower correlation with other assets).
* **Scenario Design**: Detail the simulation scenarios, which are triggered by reductions in AI-related capital expenditures. Model these scenarios by applying shocks to the expected return (`μ`) of the tech-focused stocks.
* **Baseline Scenario:** No capex reduction.
* **Scenario 1:** 25% AI capex reduction (translates to a 25% shock to the `μ` of affected stocks).
* **Scenario 2:** 50% AI capex reduction.
* **Scenario 3:** 75% AI capex reduction.
* *Assumption*: The "Rest of S&P 500" component experiences a dampened shock (e.g., half the percentage impact of the tech stocks). State this assumption clearly.
### 4. Simulation Results & Probabilistic Analysis
* For each scenario, present the probability distribution of the S&P 500's 1-year performance. A histogram or density plot is highly encouraged.
* Quantify the probability of the S&P 500 experiencing the following outcomes in each scenario:
* **Market Correction:** A decline between 10% and 20%.
* **Bear Market:** A decline of 20% or more.
* Provide key statistics for each scenario's distribution (e.g., mean return, median return, 5th percentile/Value at Risk).
### 5. Recession Risk Analysis & Transmission Mechanisms
* Translate the simulation results into a qualitative economic analysis.
* Discuss the **transmission mechanisms** through which a severe tech sell-off could propagate into a broader economic recession. Cover impacts on:
* **Global Markets:** Given the US market's share of global capitalization.
* **Key Sectors:** Direct impact on Tech; secondary impacts on Energy (data center demand), Manufacturing (semiconductors), and Financials.
* **Employment and Consumer Confidence:** The potential for tech-sector layoffs and wealth-effect-driven spending cuts.
### 6. Mitigating Factors & Alternative Scenarios
* Identify and discuss potential factors that could mitigate the simulated downturn.
* Consider alternative outcomes, such as:
* A strong policy response (e.g., Federal Reserve interest rate cuts).
* A rapid rotation of capital from technology into other sectors.
* Innovation in other areas offsetting the AI investment slowdown.
### 7. Actionable Recommendations
* Based on the simulation probabilities and risk analysis, provide clear, actionable advice for different investor profiles (e.g., long-term passive investors, tactical asset allocators).
### 8. Limitations of the Model
* Conclude by explicitly stating the key limitations of your analysis (e.g., GBM assumptions like no market jumps, parameters based on historical estimates, simplification of the "Rest of S&P 500," exclusion of macroeconomic factors like interest rates).
## Required Technical Implementation
* Provide the complete, executable Python code used for the simulation.
* Use standard scientific libraries such as `numpy` and `scipy`.
* The code must dynamically construct a valid correlation matrix and perform the Cholesky decomposition to generate correlated random variables. Do not use a hardcoded matrix that may not be positive semi-definite.
## Verified Input Data (as of November 19, 2025)
#### Table 1: S&P 500 Top Component Data
| Ticker | S&P 500 Weight | Market Cap ($T) | Annualized Volatility ($\sigma$) | Group |
|--------|----------------|-----------------|---------------------------------|-----------|
| NVDA | 8.12% | 4.53 | 48% | Tech/Mag7 |
| AAPL | 7.45% | 3.96 | 24% | Tech/Mag7 |
| MSFT | 6.92% | 3.67 | 28% | Tech/Mag7 |
| AMZN | 4.38% | 2.46 | 34% | Tech/Mag7 |
| GOOGL/GOOG | 4.15% (combined) | 2.28 | 31% | Tech/Mag7 |
| META | 3.41% | 1.87 | 38% | Tech/Mag7 |
| AVGO | 2.68% | 1.48 | 41% | Tech |
| TSLA | 2.52% | 1.39 | 56% | Tech/Mag7 |
| BRK.B | 1.81% | 1.07 | 19% | Non-Tech |
| **Rest**| **58.56%** | **~39.5** | 22% | Broad Mkt |
#### Table 2: Baseline Parameter Assumptions
| Parameter | Value & Source |
|-------------------------------|-----------------------------------------------------------------------------|
| **Baseline Expected Returns ($\mu$)** | **Tech-focused (Mag7 + AVGO):** `25%` (Approximated from ~23-28% forward earnings growth). <br> **Non-Tech (BRK.B):** `6%` (Broader market ex-tech). <br> **Broad Market (Rest):** `6%`. |
| **Correlation Estimates** | **Intra-Tech:** `~0.72` <br> **Tech with Non-Tech:** `~0.32` <br> **Tech with Broad Market:** `~0.38` |
| **Simulation Horizon** | 1 Year (252 trading days) |
| **Number of Simulations** | 10,000 |
#### Table 3: General Market Context
| Metric | Value & Source |
|------------------------------------------|---------------------------------------------------------------------------------------|
| **Top 10 Co. % of S&P 500** | ~41.4% (record high concentration) [Slickcharts, Bloomberg, November 19 2025] |
| **Magnificent 7 + AVGO AI Capex (2025 est.)** | >$460B total, with 85–95% allocated to AI infrastructure (repeated guidance raises throughout 2025) [Company filings, Bloomberg, McKinsey] |
| **US % of Global Stock Market Cap** | ~63–65% (U.S. dominance at multi-decade highs) [Visual Capitalist, Siblis Research, World Bank] |