????????????????????????????????????????????????????????????????????????
???????????????????????????????????? (Unemployment Rate) ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????? 2 ????????? Urban Surveyed Unemployment Rate ??????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????? National Bureau of Statistics (NBS) ?????????????????????????????????????????? ????????? Urban Registered Unemployment Rate ???????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????? 5-6% ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ???????????????????????? Youth Unemployment (???????????? 16-24 ??????) ???????????????????????????????????????????????? 21.3% ?????????????????????????????? 2023 ????????????????????? NBS ???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? 2 ?????????????????? ??????????????????????????????????????????????????????????????? GDP growth, consumer spending, social stability ????????? global supply chain ????????????????????????????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????
???????????????????????????????????????????????????????????????
# === China Unemployment Data ===
cat > china_unemployment.yaml << 'EOF'
china_unemployment_data:
urban_surveyed_rate:
2019: 5.2
2020: 5.6 # COVID-19 impact
2021: 5.1
2022: 5.6 # Zero-COVID lockdowns
2023: 5.2
2024_h1: 5.0
youth_unemployment_16_24:
2022_jan: 15.3
2022_jul: 19.9
2023_jan: 17.3
2023_apr: 20.4
2023_jun: 21.3 # Record high before methodology change
# NBS stopped publishing Jul-Dec 2023
2024_jan: 14.6 # New methodology (excludes students)
2024_jun: 13.2
key_metrics:
total_labor_force: "780 million"
urban_employed: "470 million"
rural_migrant_workers: "297 million"
college_graduates_2024: "11.79 million"
gdp_growth_2023: "5.2%"
sectors_most_affected:
- "Real estate (property crisis)"
- "Technology (regulatory crackdown)"
- "Education/tutoring (Double Reduction policy)"
- "Finance (restructuring)"
- "Manufacturing (overcapacity)"
government_response:
- "Subsidies for hiring fresh graduates"
- "Vocational training programs"
- "Support for SMEs and startups"
- "Infrastructure spending (fiscal stimulus)"
- "Relaxing hukou restrictions in smaller cities"
EOF
python3 -c "
import yaml
with open('china_unemployment.yaml') as f:
data = yaml.safe_load(f)
rates = data['china_unemployment_data']['urban_surveyed_rate']
print('Urban Surveyed Unemployment Rate:')
for year, rate in rates.items():
print(f' {year}: {rate}%')
youth = data['china_unemployment_data']['youth_unemployment_16_24']
print('\nYouth Unemployment (16-24):')
for period, rate in list(youth.items())[-4:]:
print(f' {period}: {rate}%')
"
echo "Data loaded"
????????????????????????????????????????????????????????? Python
?????????????????????????????????????????????????????????????????????????????????????????????
#!/usr/bin/env python3
# china_unemployment_analysis.py ??? Unemployment Analysis
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("analysis")
class UnemploymentAnalyzer:
def __init__(self):
self.data = {}
def load_data(self):
"""Load historical unemployment data"""
self.data = {
"urban_rate": {
2015: 5.0, 2016: 5.0, 2017: 4.9, 2018: 4.9,
2019: 5.2, 2020: 5.6, 2021: 5.1, 2022: 5.6, 2023: 5.2,
},
"youth_rate": {
2018: 10.8, 2019: 12.0, 2020: 14.2, 2021: 14.3,
2022: 17.6, 2023: 19.0,
},
"gdp_growth": {
2015: 7.0, 2016: 6.8, 2017: 6.9, 2018: 6.7,
2019: 6.0, 2020: 2.2, 2021: 8.4, 2022: 3.0, 2023: 5.2,
},
}
def trend_analysis(self, series_name):
"""Analyze trend of unemployment data"""
series = self.data.get(series_name, {})
if len(series) < 2:
return {"error": "Insufficient data"}
years = sorted(series.keys())
values = [series[y] for y in years]
# Calculate changes
changes = [values[i] - values[i-1] for i in range(1, len(values))]
avg_change = sum(changes) / len(changes)
# Determine trend
if avg_change > 0.2:
trend = "INCREASING"
elif avg_change < -0.2:
trend = "DECREASING"
else:
trend = "STABLE"
return {
"series": series_name,
"period": f"{years[0]}-{years[-1]}",
"latest": values[-1],
"highest": max(values),
"lowest": min(values),
"avg_annual_change": round(avg_change, 2),
"trend": trend,
}
def correlation_gdp_unemployment(self):
"""Okun's Law: GDP growth vs unemployment"""
common_years = set(self.data["urban_rate"].keys()) & set(self.data["gdp_growth"].keys())
years = sorted(common_years)
pairs = [(self.data["gdp_growth"][y], self.data["urban_rate"][y]) for y in years]
# Simple correlation
n = len(pairs)
sum_xy = sum(x * y for x, y in pairs)
sum_x = sum(x for x, _ in pairs)
sum_y = sum(y for _, y in pairs)
sum_x2 = sum(x ** 2 for x, _ in pairs)
sum_y2 = sum(y ** 2 for _, y in pairs)
numerator = n * sum_xy - sum_x * sum_y
denominator = ((n * sum_x2 - sum_x ** 2) * (n * sum_y2 - sum_y ** 2)) ** 0.5
correlation = round(numerator / denominator, 3) if denominator != 0 else 0
return {
"correlation": correlation,
"interpretation": "Negative = higher GDP ??? lower unemployment (Okun's Law)",
"china_note": "Correlation weaker than expected due to data limitations",
"data_points": n,
}
analyzer = UnemploymentAnalyzer()
analyzer.load_data()
urban = analyzer.trend_analysis("urban_rate")
print(f"Urban Rate: {urban['latest']}%, Trend: {urban['trend']}")
print(f" Range: {urban['lowest']}-{urban['highest']}%, Avg change: {urban['avg_annual_change']}")
youth = analyzer.trend_analysis("youth_rate")
print(f"\nYouth Rate: {youth['latest']}%, Trend: {youth['trend']}")
print(f" Range: {youth['lowest']}-{youth['highest']}%")
corr = analyzer.correlation_gdp_unemployment()
print(f"\nGDP-Unemployment Correlation: {corr['correlation']}")
?????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????
#!/usr/bin/env python3
# unemployment_factors.py ??? Factors Analysis
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("factors")
class UnemploymentFactors:
def __init__(self):
pass
def structural_factors(self):
return {
"property_crisis": {
"impact": "HIGH",
"description": "???????????????????????????????????????????????????????????? (Evergrande, Country Garden default)",
"jobs_affected": "Real estate ????????????????????? 25-30% ????????? GDP ????????? supply chain",
"sectors": ["Construction", "Building materials", "Real estate agencies", "Furniture"],
"estimated_job_loss": "5-10 million jobs",
},
"tech_crackdown": {
"impact": "HIGH",
"description": "Regulatory crackdown ?????? tech companies (Alibaba, Tencent, Didi)",
"sectors": ["E-commerce", "Fintech", "Gaming", "EdTech"],
"effect": "Hiring freeze, layoffs, reduced investment in tech sector",
},
"education_policy": {
"impact": "MEDIUM",
"description": "Double Reduction Policy (2021) ???????????? tutoring for-profit",
"jobs_lost": "Estimated 10 million tutoring jobs eliminated",
"effect": "Fresh graduates in education sector have fewer opportunities",
},
"structural_mismatch": {
"impact": "HIGH",
"description": "Skills mismatch ???????????????????????????????????????????????????????????????????????????????????????????????????",
"detail": "11.79 million graduates in 2024 vs ????????????????????? white-collar jobs",
"issue": "Graduates want office jobs but market needs blue-collar/vocational",
},
"demographic_shift": {
"impact": "MEDIUM-LONG TERM",
"description": "?????????????????????????????????????????????????????????????????? population ????????????",
"data": "Population declined for first time in 2022 (-850,000)",
"paradox": "Shrinking workforce but still high youth unemployment",
},
"global_slowdown": {
"impact": "MEDIUM",
"description": "?????????????????????????????????????????????????????? ??????????????????????????????????????? exports",
"sectors": ["Manufacturing", "Export-oriented industries"],
},
}
factors = UnemploymentFactors()
structural = factors.structural_factors()
print("Structural Factors:")
for name, info in structural.items():
print(f"\n {name} [{info['impact']}]:")
print(f" {info['description']}")
????????????????????????????????????????????????????????????????????????
??????????????????????????????????????????????????????????????????????????????????????????
# === International Comparison ===
cat > comparison.json << 'EOF'
{
"unemployment_comparison_2024": {
"china": {
"overall": 5.0,
"youth": 14.6,
"methodology": "Urban surveyed (excludes rural)",
"reliability": "Questioned by many economists"
},
"usa": {
"overall": 4.1,
"youth": 9.0,
"methodology": "Current Population Survey (CPS)",
"reliability": "High (BLS standard)"
},
"japan": {
"overall": 2.6,
"youth": 4.2,
"methodology": "Labour Force Survey",
"reliability": "High"
},
"south_korea": {
"overall": 2.8,
"youth": 6.5,
"methodology": "Economically Active Population Survey",
"reliability": "High"
},
"thailand": {
"overall": 1.1,
"youth": 5.2,
"methodology": "Labour Force Survey (NSO)",
"note": "Low rate due to informal sector counting"
},
"india": {
"overall": 8.0,
"youth": 23.0,
"methodology": "CMIE/PLFS",
"reliability": "Varies by source"
},
"eu": {
"overall": 6.0,
"youth": 14.5,
"methodology": "Eurostat harmonized",
"reliability": "High"
},
"spain": {
"overall": 11.3,
"youth": 27.0,
"methodology": "EPA/Eurostat",
"note": "Highest youth unemployment in EU"
}
},
"key_insights": [
"????????? youth unemployment ???????????????????????????????????? EU average",
"??????????????????????????????????????????????????????????????? ???????????????????????? informal sector",
"?????????????????????????????????????????????????????? ??????????????? aging population ????????? labor shortage",
"????????????????????? youth unemployment ???????????????????????????????????????????????????",
"????????????????????????????????????????????????????????????????????? ????????????????????????????????? rural ????????? migrant workers ????????? underemployed"
]
}
EOF
python3 -c "
import json
with open('comparison.json') as f:
data = json.load(f)
print('Unemployment Rates (2024):')
print(f'{\"Country\":<15} {\"Overall\":>10} {\"Youth\":>10}')
print('-' * 35)
for country, info in data['unemployment_comparison_2024'].items():
print(f'{country:<15} {info[\"overall\"]:>9.1f}% {info[\"youth\"]:>9.1f}%')
print('\nKey Insights:')
for insight in data['key_insights'][:3]:
print(f' - {insight}')
"
echo "Comparison complete"
?????????????????????????????????????????????????????????????????????????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????
#!/usr/bin/env python3
# global_impact.py ??? Global Impact Analysis
import json
import logging
from typing import Dict, List
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger("impact")
class GlobalImpactAnalysis:
def __init__(self):
pass
def impact_on_thailand(self):
return {
"trade": {
"china_share_of_thai_exports": "12% (largest trading partner)",
"impact": "Consumer spending ???????????? ????????? ??? ??????????????????????????????????????????????????????????????????",
"affected_sectors": ["????????????????????? (????????????????????? ??????????????????)", "?????????????????????", "??????????????????????????????????????????", "???????????????????????????"],
},
"tourism": {
"chinese_tourists_pre_covid": "11 million/year (2019)",
"current_recovery": "~60% of pre-COVID levels",
"impact": "?????????????????????????????? ??? ???????????????????????????????????????????????????????????????",
"revenue_at_risk": "200-300 billion THB/year",
},
"investment": {
"chinese_fdi_in_thailand": "Increasing (relocation from China)",
"impact": "??????????????????????????????????????????????????????????????????????????? (China+1 strategy)",
"sectors": ["EV manufacturing", "Solar panels", "Electronics assembly"],
"opportunity": "???????????????????????????????????????????????????????????? supply chain relocation",
},
"competition": {
"issue": "????????????????????????????????????????????????????????????????????????????????????",
"reason": "Overcapacity ??????????????? + ?????????????????????????????????????????????????????? ??? ?????????????????????",
"affected": ["??????????????????", "???????????????", "???????????????????????????????????????????????????????????????", "?????????????????? e-commerce"],
},
}
def global_implications(self):
return {
"deflation_export": "??????????????????????????? deflation ??????????????????????????????????????????????????? ??????????????? manufacturer ?????????????????????",
"supply_chain": "?????????????????????????????????????????????????????? supply chain disruption ???????????????????????????",
"social_stability": "???????????????????????????????????????????????????????????? social unrest ??????????????? geopolitics",
"monetary_policy": "PBOC ?????????????????????????????????????????????????????? ??????????????? capital flows ??????????????????????????????",
"commodity_demand": "Consumer spending ?????? ??? ????????????????????????????????? commodities ?????? ??????????????????????????????????????????",
}
analysis = GlobalImpactAnalysis()
thai = analysis.impact_on_thailand()
print("Impact on Thailand:")
for area, info in thai.items():
if isinstance(info, dict):
print(f"\n {area}:")
for key, val in list(info.items())[:2]:
print(f" {key}: {val}")
global_imp = analysis.global_implications()
print("\nGlobal Implications:")
for key, desc in list(global_imp.items())[:3]:
print(f" {key}: {desc}")
การนำความรู้ไปประยุกต์ใช้งานจริง
แหล่งเรียนรู้ที่แนะนำ ได้แก่ Official Documentation ที่อัพเดทล่าสุดเสมอ Online Course จาก Coursera Udemy edX ช่อง YouTube คุณภาพทั้งไทยและอังกฤษ และ Community อย่าง Discord Reddit Stack Overflow ที่ช่วยแลกเปลี่ยนประสบการณ์กับนักพัฒนาทั่วโลก
FAQ ??????????????????????????????????????????
Q: ???????????????????????????????????????????????????????????????????????????????????????????
A: ???????????????????????????????????????????????????????????????????????????????????????????????? ?????????????????? Urban surveyed rate ????????????????????????????????????????????????????????????????????? (migrant workers) 297 ?????????????????? ??????????????????????????????????????????????????? underemployed, ?????? 2023 NBS ?????????????????????????????? youth unemployment ???????????????????????? ???????????????????????????????????????????????????????????? (??????????????????????????????????????????) ?????????????????????????????????????????????, Caixin/Markit PMI Employment sub-index ????????????????????????????????????????????????????????????????????????????????????????????????, ?????????????????????????????????????????????????????????????????? youth unemployment ??????????????????????????????????????? 40-46% (Peking University study) ??????????????? ??????????????????????????????????????????????????????????????? PMI, consumer confidence, retail sales, social media sentiment ??????????????????????????????????????????????????????
Q: ???????????? youth unemployment ????????????????????????????
A: ??????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????? (11.79 ?????????????????????????????? 2024) ????????? white-collar jobs ????????????, Skills mismatch ????????????????????????????????????????????????????????????????????? office ?????????????????????????????????????????? blue-collar/vocational, Tech crackdown ??????????????? tech sector ??????????????????????????????????????????????????????????????? ?????? hiring, Real estate crisis ??????????????? supply chain ????????? ?????? jobs ????????????????????????????????????????????????, Double Reduction Policy ??????????????? tutoring sector ???????????????, "Lie flat" (??????) culture ?????????????????????????????????????????????????????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????? structural unemployment ?????????????????????????????????????????????????????????
Q: ?????????????????????????????????????????????????????????????????????????????????????????????????????????????
A: ???????????????????????????????????? ????????????????????? (A-shares, H-shares, ADRs) ??????????????????????????? consumer-related stocks ????????????????????????, ????????????????????????????????????????????????????????????????????? (??????????????????????????????, ??????????????????, ??????????????????) ????????????????????????????????????????????????, ?????????????????????????????????????????????????????? ????????????????????????????????????????????????????????????????????????????????????, ??????????????????????????????????????????????????????????????? ??????????????? manufacturer ?????????, ??????????????? Chinese FDI ???????????????????????????????????? (EV, electronics) ???????????????????????? ????????????????????? Diversify ???????????????????????????????????????????????????????????????, ????????????????????? sectors ??????????????????????????????????????????????????? China+1, ?????????????????? PBOC policy ????????? fiscal stimulus
Q: ????????????????????????????????????????????????????????????????????????????
A: ????????????????????????????????????????????????????????????????????? Fiscal stimulus ????????????????????????????????????????????????????????????????????????????????????????????? (????????? ????????????) ????????????????????????, Monetary easing PBOC ?????????????????????????????? ?????? RRR ?????????????????????????????????????????????, Subsidies ????????????????????? SMEs ????????????????????????????????????????????????, Vocational training ?????????????????????????????????????????????????????????????????? ?????? skills mismatch, Hukou reform ????????????????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????, Technology ???????????????????????? AI, EV, green energy ????????????????????????????????????????????????????????? ???????????????????????? structural ?????????????????????????????? ?????????????????????????????????????????????????????????????????? youth unemployment ????????????????????????????????? 2-3 ??????
