Potential GDP ?????????????????????
Potential GDP (GDP ?????????????????????) ????????? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????? (??????????????????, ?????????, ???????????????????????????) ???????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????? Potential GDP ?????????????????? GDP ?????????????????????????????????????????????????????? ?????????????????? GDP ??????????????????????????????????????????????????????????????????
Actual GDP ????????? GDP ????????????????????????????????????????????? ??????????????????????????????????????? Actual GDP ????????? Potential GDP ???????????????????????? Output Gap ????????? Actual GDP ????????????????????? Potential GDP (Positive Output Gap) ?????????????????????????????????????????????????????? ??????????????????????????????????????? ????????? Actual GDP ????????????????????? Potential GDP (Negative Output Gap) ??????????????????????????????????????? ????????????????????????????????????????????????????????? ?????????????????????????????????????????????
?????????????????????????????????????????????????????????????????? Potential GDP ???????????????????????????????????????????????? ????????????????????????????????????????????????????????? (BOT) ????????? Output Gap ???????????? input ????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????? Potential GDP
????????????????????????????????????????????????????????? Potential GDP
# === Potential GDP Estimation Methods ===
cat > pgdp_methods.yaml << 'EOF'
potential_gdp_methods:
production_function:
name: "Production Function Approach"
description: "????????? Cobb-Douglas production function"
formula: "Y* = A * K^?? * L^(1-??)"
variables:
Y_star: "Potential GDP"
A: "Total Factor Productivity (TFP)"
K: "Capital stock"
L: "Potential labor input"
alpha: "Capital share (typically 0.3-0.4)"
steps:
- "Estimate potential labor (NAIRU-based)"
- "Estimate capital stock (perpetual inventory)"
- "Estimate TFP trend (HP filter or Kalman filter)"
- "Combine using Cobb-Douglas function"
used_by: ["IMF", "OECD", "ECB", "BOT"]
statistical_filters:
hp_filter:
name: "Hodrick-Prescott Filter"
description: "????????? trend ????????? cyclical component"
lambda_quarterly: 1600
lambda_annual: 100
pros: "Simple, widely used"
cons: "End-point bias, arbitrary lambda"
band_pass_filter:
name: "Baxter-King / Christiano-Fitzgerald Filter"
description: "Filter business cycle frequencies (6-32 quarters)"
pros: "Theoretically grounded frequency selection"
cons: "Loses observations at endpoints"
structural_models:
dsge:
name: "Dynamic Stochastic General Equilibrium"
description: "Full structural macroeconomic model"
pros: "Theoretically consistent, forward-looking"
cons: "Complex, sensitive to assumptions"
svar:
name: "Structural VAR"
description: "Vector autoregression with structural restrictions"
pros: "Data-driven, fewer assumptions than DSGE"
cons: "Identification challenges"
multivariate_filters:
name: "Multivariate HP / Kalman Filter"
description: "HP filter augmented with Phillips curve, Okun's law"
pros: "Incorporates economic relationships"
used_by: ["IMF (since 2015)", "BOT"]
EOF
echo "Methods documented"
??????????????????????????? Potential GDP ???????????? Python
??????????????? Potential GDP ????????? Output Gap
#!/usr/bin/env python3
# potential_gdp.py ??? Potential GDP Analysis
import json
import logging
import math
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("pgdp")
class PotentialGDPAnalyzer:
"""Potential GDP and Output Gap Analysis"""
def __init__(self):
self.data = {}
def hp_filter(self, series, lamb=100):
"""Hodrick-Prescott Filter (simplified)"""
n = len(series)
trend = list(series) # Start with actual values
# Iterative smoothing (simplified HP filter)
for iteration in range(100):
new_trend = list(trend)
for t in range(2, n - 2):
new_trend[t] = (series[t] + lamb * (trend[t-1] + trend[t+1])) / (1 + 2 * lamb)
trend = new_trend
cycle = [series[i] - trend[i] for i in range(n)]
return trend, cycle
def cobb_douglas(self, tfp, capital, labor, alpha=0.35):
"""Cobb-Douglas Production Function: Y = A * K^?? * L^(1-??)"""
return tfp * (capital ** alpha) * (labor ** (1 - alpha))
def output_gap(self, actual_gdp, potential_gdp):
"""Calculate Output Gap as % of Potential GDP"""
return round((actual_gdp - potential_gdp) / potential_gdp * 100, 2)
def thailand_analysis(self):
"""Thailand Potential GDP Analysis"""
# Thailand GDP data (trillion THB, real, base year 2002)
years = list(range(2015, 2025))
actual_gdp = [
13.74, 14.20, 14.77, 15.37, 15.73,
14.51, 14.73, 15.12, 15.42, 15.85
]
# Estimate potential GDP (simplified trend)
potential_gdp = []
base = 13.5
growth_rates = [0.035, 0.035, 0.035, 0.035, 0.035, 0.030, 0.030, 0.030, 0.028, 0.028]
for g in growth_rates:
base = base * (1 + g)
potential_gdp.append(round(base, 2))
# Output gaps
output_gaps = [
self.output_gap(actual_gdp[i], potential_gdp[i])
for i in range(len(years))
]
return {
"years": years,
"actual_gdp": actual_gdp,
"potential_gdp": potential_gdp,
"output_gap_pct": output_gaps,
}
def growth_accounting(self):
"""Growth Accounting for Thailand"""
return {
"period_2015_2019": {
"gdp_growth": 3.5,
"contributions": {
"labor": 0.3,
"capital": 1.5,
"tfp": 1.7,
},
"note": "TFP ???????????????????????????????????????????????????????????????",
},
"period_2020_2024": {
"gdp_growth": 1.8,
"contributions": {
"labor": -0.2,
"capital": 1.0,
"tfp": 1.0,
},
"note": "COVID impact, aging population ?????? labor contribution",
},
"structural_challenges": [
"Aging population: ???????????????????????????????????? 0.3%/??????",
"Low investment: private investment ??????????????????????????????????????????",
"Education quality: ??????????????????????????????????????????????????????????????????",
"Technology adoption: SMEs ????????????????????????????????????????????????",
],
}
analyzer = PotentialGDPAnalyzer()
thai = analyzer.thailand_analysis()
print("Thailand Potential GDP Analysis:")
print(f"{'Year':>6} {'Actual':>8} {'Potential':>10} {'Gap%':>8}")
for i, year in enumerate(thai["years"]):
gap = thai["output_gap_pct"][i]
indicator = "+" if gap > 0 else ""
print(f"{year:>6} {thai['actual_gdp'][i]:>8.2f} {thai['potential_gdp'][i]:>10.2f} {indicator}{gap:>7.2f}%")
ga = analyzer.growth_accounting()
print(f"\nGrowth Accounting (2015-2019): GDP Growth = {ga['period_2015_2019']['gdp_growth']}%")
for factor, value in ga["period_2015_2019"]["contributions"].items():
print(f" {factor}: {value}%")
Output Gap ???????????????????????????????????????????????????
?????????????????? Output Gap ????????????????????????????????????????????????
#!/usr/bin/env python3
# output_gap_policy.py ??? Output Gap and Policy Implications
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("policy")
class OutputGapPolicy:
def __init__(self):
pass
def taylor_rule(self, inflation, target_inflation, output_gap, neutral_rate=2.5):
"""Taylor Rule: i = r* + ?? + 0.5(?? - ??*) + 0.5(y - y*)"""
policy_rate = (
neutral_rate +
inflation +
0.5 * (inflation - target_inflation) +
0.5 * output_gap
)
return round(policy_rate, 2)
def policy_recommendations(self, output_gap, inflation):
"""Policy recommendations based on output gap"""
if output_gap < -2:
return {
"fiscal": "Expansionary ??? ???????????????????????????????????????????????????????????????, ??????????????????, ?????????????????????????????????????????????",
"monetary": "Accommodative ??? ??????????????????????????????, ??????????????? money supply, QE",
"structural": "Invest in infrastructure, upskilling programs",
"urgency": "HIGH ??? ????????????????????????????????????????????????",
}
elif output_gap < 0:
return {
"fiscal": "Mildly expansionary ??? ???????????????????????????????????????????????????????????? targeted measures",
"monetary": "Neutral to accommodative ??? ?????????????????????????????? ???????????? ??????????????????????????????",
"structural": "Focus on productivity improvement",
"urgency": "MODERATE ??? ????????????????????????????????????????????????????????????????????????",
}
elif output_gap < 2:
return {
"fiscal": "Neutral ??? ???????????????????????????????????????",
"monetary": "Neutral ??? ??????????????????????????????????????? neutral rate",
"structural": "Maintain reforms, build fiscal buffers",
"urgency": "LOW ??? ?????????????????????????????????????????????????????????",
}
else:
return {
"fiscal": "Contractionary ??? ????????????????????????????????????, ???????????????????????????, ??????????????? surplus",
"monetary": "Tightening ??? ????????????????????????????????????, ?????? liquidity",
"structural": "Cool overheating sectors",
"urgency": "HIGH ??? ?????????????????????????????????????????????????????? ??????????????????????????????????????????",
}
def thailand_scenarios(self):
return {
"current_2024": {
"actual_gdp_growth": 2.8,
"potential_gdp_growth": 3.0,
"output_gap": -1.5,
"inflation": 1.2,
"policy_rate": 2.50,
"taylor_rule_rate": self.taylor_rule(1.2, 2.0, -1.5, 1.5),
"assessment": "?????????????????????????????????????????????????????????????????? ??????????????? room ?????????????????? monetary easing",
},
"scenario_recovery": {
"output_gap": 0.5,
"inflation": 2.5,
"policy_rate_suggested": self.taylor_rule(2.5, 2.0, 0.5, 1.5),
"assessment": "?????????????????????????????????????????????????????????????????? ???????????????????????? normalize ??????????????????",
},
"scenario_overheating": {
"output_gap": 2.0,
"inflation": 4.0,
"policy_rate_suggested": self.taylor_rule(4.0, 2.0, 2.0, 1.5),
"assessment": "???????????????????????????????????????????????? ????????????????????????????????????????????????????????????",
},
}
policy = OutputGapPolicy()
scenarios = policy.thailand_scenarios()
print("Thailand Policy Scenarios:")
for name, s in scenarios.items():
print(f"\n {name}:")
print(f" Output Gap: {s.get('output_gap', 'N/A')}%")
if 'taylor_rule_rate' in s:
print(f" Taylor Rule Rate: {s['taylor_rule_rate']}%")
elif 'policy_rate_suggested' in s:
print(f" Suggested Rate: {s['policy_rate_suggested']}%")
print(f" Assessment: {s['assessment']}")
Potential GDP ??????????????????
?????????????????????????????????????????????????????????????????????????????????
# === Thailand Potential GDP Deep Dive ===
cat > thailand_pgdp.json << 'EOF'
{
"thailand_potential_gdp": {
"historical_potential_growth": {
"1990_1996": {"rate": 8.5, "note": "?????????????????????????????????????????????????????? ??????????????????"},
"1997_2000": {"rate": -1.0, "note": "??????????????????????????????????????????????????????"},
"2001_2007": {"rate": 5.0, "note": "????????????????????????????????????????????????"},
"2008_2013": {"rate": 3.5, "note": "Global Financial Crisis impact"},
"2014_2019": {"rate": 3.5, "note": "?????????????????????????????? structural issues"},
"2020_2024": {"rate": 2.8, "note": "COVID + aging + geopolitics"}
},
"current_estimates_2024": {
"bot_estimate": "3.0%",
"imf_estimate": "2.8%",
"world_bank_estimate": "3.0%",
"nesdc_estimate": "3.2%"
},
"structural_factors": {
"labor": {
"working_age_growth": "-0.3% per year (declining since 2015)",
"labor_participation": "67.5% (room for improvement)",
"aging": "20% population over 60 by 2025",
"immigration": "3+ million migrant workers (Myanmar, Cambodia, Laos)",
"policy": "Raise retirement age, increase female participation, upskill"
},
"capital": {
"investment_to_gdp": "23% (below 30% pre-crisis level)",
"private_investment": "Weak, excess capacity in some sectors",
"public_investment": "EEC (Eastern Economic Corridor) is key driver",
"fdi": "Increasing due to supply chain diversification from China",
"policy": "Improve ease of doing business, infrastructure investment"
},
"productivity_tfp": {
"tfp_growth": "1.0-1.5% (below potential)",
"challenges": [
"SME digitalization gap",
"Education-industry mismatch",
"Low R&D spending (1% of GDP vs 2.5% Korea)",
"Middle income trap risk"
],
"opportunities": [
"Digital transformation (Thailand 4.0)",
"EV manufacturing hub",
"Tourism technology upgrade",
"Agriculture modernization"
]
}
},
"comparison_asean": {
"vietnam": {"potential_growth": "6.5%", "driver": "FDI, young labor"},
"indonesia": {"potential_growth": "5.0%", "driver": "Domestic demand, demographics"},
"philippines": {"potential_growth": "6.0%", "driver": "Young population, services"},
"thailand": {"potential_growth": "3.0%", "driver": "Manufacturing, tourism"},
"malaysia": {"potential_growth": "4.5%", "driver": "High-tech manufacturing"}
}
}
}
EOF
python3 -c "
import json
with open('thailand_pgdp.json') as f:
data = json.load(f)
tp = data['thailand_potential_gdp']
print('Thailand Potential GDP Growth (Historical):')
for period, info in tp['historical_potential_growth'].items():
bar = '#' * int(max(0, info['rate']) * 2)
print(f' {period}: {info[\"rate\"]:>5.1f}% {bar} ??? {info[\"note\"]}')
print(f'\nASEAN Comparison:')
for country, info in tp['comparison_asean'].items():
print(f' {country}: {info[\"potential_growth\"]} ({info[\"driver\"]})')
"
echo "Thailand PGDP analysis complete"
?????????????????????????????????????????? Potential GDP
??????????????????????????????????????????????????????????????????????????????????????????????????????????????????
#!/usr/bin/env python3
# growth_drivers.py ??? Potential GDP Growth Drivers
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("drivers")
class GrowthDriverAnalysis:
def __init__(self):
pass
def boost_potential_gdp(self):
return {
"labor_reforms": {
"impact": "+0.3-0.5% potential GDP growth",
"policies": {
"raise_retirement_age": "????????? 60 ???????????? 63-65 ?????? ????????????????????????????????? 1-2 ??????????????????",
"female_participation": "???????????????????????? 60% ???????????? 65% (childcare support, flexible work)",
"immigration_policy": "Streamline work permits, attract skilled workers",
"education_reform": "STEM education, vocational training, digital skills",
},
},
"capital_investment": {
"impact": "+0.5-1.0% potential GDP growth",
"policies": {
"eec_development": "Eastern Economic Corridor ??? ????????? FDI $50B ?????? 5 ??????",
"infrastructure": "High-speed rail, digital infrastructure, logistics",
"ease_of_business": "?????????????????????????????????????????????, digitalize government services",
"capital_market": "Develop bond market, startup funding ecosystem",
},
},
"productivity_tfp": {
"impact": "+0.5-1.5% potential GDP growth",
"policies": {
"digitalization": "SME digital adoption, e-commerce, Industry 4.0",
"rd_spending": "???????????????????????? 1% ???????????? 2% of GDP (tax incentives for R&D)",
"technology_transfer": "FDI ??????????????? technology spillover ?????????",
"regulatory_reform": "?????? red tape, competition policy, IP protection",
},
},
"total_potential": {
"current": "2.8-3.0%",
"with_reforms": "4.0-5.0%",
"gap": "1.0-2.0% that can be unlocked with structural reforms",
},
}
analysis = GrowthDriverAnalysis()
drivers = analysis.boost_potential_gdp()
print("How to Boost Thailand's Potential GDP:")
for category, info in drivers.items():
if category == "total_potential":
continue
print(f"\n {category} ({info['impact']}):")
for name, desc in info["policies"].items():
print(f" {name}: {desc}")
total = drivers["total_potential"]
print(f"\nPotential GDP Growth:")
print(f" Current: {total['current']}")
print(f" With Reforms: {total['with_reforms']}")
print(f" Unlockable: {total['gap']}")
FAQ ??????????????????????????????????????????
Q: Potential GDP ????????? GDP ???????????? ???????????????????????????????????????????
A: GDP ???????????? (Actual GDP) ????????? ???????????????????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????? Potential GDP ????????? ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????? (estimate) ??????????????????????????????????????? ?????????????????? (Output Gap) ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? Negative gap (Actual ????????????????????? Potential) ????????????????????? ???????????????????????????????????????????????????????????????????????????????????????????????? ?????? unemployment ?????????, Positive gap (Actual ????????????????????? Potential) ????????????????????? ???????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????
Q: ???????????? Potential GDP ???????????????????????????????
A: Potential GDP growth ????????????????????????????????? 5%+ (2001-2007) ??????????????? 2.8-3.0% (2024) ?????????????????????????????? Aging population ???????????????????????????????????? 0.3%/?????? ????????????????????? 2015 ?????????????????????????????????????????????????????????????????? ???????????????????????? labor supply, Low investment ?????????????????????????????????????????????????????????????????????????????????????????? (23% of GDP vs 30% ??????????????????????????? 1997), Slow productivity growth TFP growth ?????????????????? low R&D, SME ????????? adopt technology, education mismatch, Middle income trap ??????????????????????????????????????????????????????????????????????????????????????????????????????/????????????????????? ????????? productivity ????????????????????????????????????????????????????????????/?????????????????????, Political instability ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
Q: Output Gap ??????????????????????????????????????????????????????????????????????
A: ??????????????????????????????????????? Output Gap ???????????? input ?????? monetary policy framework ???????????? Taylor Rule i = r* + ?? + 0.5(??-??*) + 0.5(y-y*) ????????? Output Gap ?????? (??????????????????????????????????????????????????????????????????) Taylor Rule ???????????????????????????????????????????????????????????? neutral rate ???????????????????????????????????? ????????? Output Gap ????????? (?????????????????????????????????????????????????????????) Taylor Rule ???????????????????????????????????????????????????????????? neutral rate ??????????????????????????? ???????????????????????? ??????????????? 2024 Output Gap ?????????????????? -1.5% inflation 1.2% (????????????????????????????????? 2%) Taylor Rule ????????????????????????????????????????????????????????? 2.0% (????????????????????? policy rate 2.5% ????????? BOT ?????????????????????) ????????? BOT ??????????????????????????????????????????????????????????????? ???????????? financial stability ??????????????????????????????????????? ?????????????????????
Q: ?????????????????????????????? Potential GDP ???????????????????????????????
A: ?????????????????????????????? 3 ???????????????????????? ?????????????????? ?????????????????????????????????????????? ??????????????? female labor participation ????????????????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????????? (+0.3-0.5%), ???????????????????????? ???????????? EEC ????????? infrastructure ???????????????????????? ease of doing business ????????? FDI ??????????????? technology transfer ???????????????????????? startup ecosystem (+0.5-1.0%), ????????????????????? ??????????????? R&D spending ???????????? 2% of GDP ???????????????????????? SME digitalization Industry 4.0 ?????? bureaucracy (+0.5-1.5%) ???????????????????????????????????? 3 ???????????? Potential GDP growth ????????????????????????????????? 3% ???????????? 4-5% ?????? 10 ??????
