LoginSignup
3
2

More than 3 years have passed since last update.

ベトナムを分析する(テーマ設定の大切さ)

Posted at

はじめに

世の中のデータを使ってなにかしたい!
いままでそんなことを思っては雲散霧消してました。
今思えば原因は芯というか魂というか「テーマが定まらなかったこと」にあったのだなぁと思う。

考えてみれば仕事だってそうだ。データなんてもんは腐るほどあるのに切り口が定まらないと、てんで良質なレポートなんて作れない。全部ウソっぽくなるというか。。。つまんなくなっちゃうんだよな。

・できればpython(django) + SQL + Webデザイン(html + javascript + css)を覚えたい
・できればいままでの経歴を活かしたいし
・できれば新しい収益源につながるような...

昔から勉強のための勉強が苦手で、djangoの勉強も足掛け4年ぐらいかかったし、Webデザインもいまいちなにをどうデザインしたらいいかわからん。そんなテーマの定まらなさにヤキモキしていたのだけど、取り扱ったことのあるデータは金融がほぼ全部で、業務データなんか手に入らんし、家で何かをやろうとするには規模が大きすぎてpythonの勉強にもならん。。。と思っていた。その後いろいろあって株を買うことになって、それがきっかけで新興国を調べようと思ったときにテーマがバチッと決まった。情熱を注ぐことができればデータに向き合うきっかけはなんでもよいのだ。僕の場合はそれが、カネを使ってカネの動きを追うことによって血が通った、というだけの話。

なんでベトナムだったの?

そんなに深い理由はないんだけど、根本をたどると居酒屋バイト時代に、中国からベトナムへの人種シフトを肌で感じたため。その時期がたしか2013年とかあたりだったんだけど資料を見るとたしかにこの時期で右肩上がりだ。

ベトナム経済の現状と今後の展望 ~タイを抜いてインドシナ半島最大の輸出国に成長したベトナム~
image.png

株を始めるとき

用法用量を守れば、株はマジで主体的に経済を勉強するようになるので、モチベーションに実体を伴わせるべく学生時代にこそおすすめできるかなぁと思うんだけど、稼げるの?という理由ではおすすめしません。そこに責任は持てない。
幹事(参加者の把握、店の分析)が苦にならないひとは向いてるかもしれない。

株を始めて起こる変化

世の中の流れが気になるようになる。分析できるようになる。
情報収集の終わりがないし、自分がわかりやすいようにjavascriptグラフとかも書き放題。
行ったこともなければ住んだこともないその国が信用に足るかを調査するとき、どんなデータが必要なのか、思いを馳せることになる。これはつまるところ極めてクライアントワークに近い経験値になる

国のデータをどのようにして調べるか

アプローチ1: IMF

サイト:https://www.imf.org/external/index.htm
マニュアル:https://www.imf.org/external/oap/pdf/weodata.pdf
image.png

国別データ検索
image.png

アジアの新興国
image.png

Subject Descriptor google翻訳 Units Scale
Gross domestic product, constant prices 国内総生産、実質価格 National currency Billions
Gross domestic product, constant prices 国内総生産、実質価格 Percent change  
Gross domestic product, current prices 国内総生産、現在の価格 National currency Billions
Gross domestic product, current prices 国内総生産、現在の価格 U.S. dollars Billions
Gross domestic product, current prices 国内総生産、現在の価格 Purchasing power parity; international dollars Billions
Gross domestic product, deflator 国内総生産、デフレーター Index  
Gross domestic product per capita, constant prices 一人当たりの国内総生産、実質価格 National currency Units
Gross domestic product per capita, constant prices 一人当たりの国内総生産、実質価格 Purchasing power parity; 2011 international dollar Units
Gross domestic product per capita, current prices 一人当たりの国内総生産、現在の価格 National currency Units
Gross domestic product per capita, current prices 一人当たりの国内総生産、現在の価格 U.S. dollars Units
Gross domestic product per capita, current prices 一人当たりの国内総生産、現在の価格 Purchasing power parity; international dollars Units
Gross domestic product based on purchasing-power-parity (PPP) share of world total 世界の購買力平価(PPP)比率に基づく国内総生産 Percent  
Implied PPP conversion rate 暗黙のPPP変換率 National currency per current international dollar  
Total investment 総投資額 Percent of GDP  
Gross national savings 国民総貯蓄 Percent of GDP  
Inflation, average consumer prices インフレ、平均消費者物価 Index  
Inflation, average consumer prices インフレ、平均消費者物価 Percent change  
Inflation, end of period consumer prices インフレ、期末消費者物価 Index  
Inflation, end of period consumer prices インフレ、期末消費者物価 Percent change  
Volume of imports of goods and services 商品やサービスの輸入量 Percent change  
Volume of Imports of goods 商品の輸入量 Percent change  
Volume of exports of goods and services 商品やサービスの輸出量 Percent change  
Volume of exports of goods 商品の輸出量 Percent change  
Unemployment rate 失業率 Percent of total labor force  
Population 人口 Persons Millions
General government revenue 一般政府歳入 National currency Billions
General government revenue 一般政府歳入 Percent of GDP  
General government total expenditure 一般政府総支出 National currency Billions
General government total expenditure 一般政府総支出 Percent of GDP  
General government net lending/borrowing 一般政府の純貸付/借入 National currency Billions
General government net lending/borrowing 一般政府の純貸付/借入 Percent of GDP  
General government structural balance 一般政府の構造バランス National currency Billions
General government primary net lending/borrowing 一般政府の一次純貸付/借入 National currency Billions
General government primary net lending/borrowing 一般政府の一次純貸付/借入 Percent of GDP  
General government gross debt 一般政府総債務 National currency Billions
General government gross debt 一般政府総債務 Percent of GDP  
Gross domestic product corresponding to fiscal year, current prices 年度対応国内総生産、現在価格 National currency Billions
Current account balance 経常収支 U.S. dollars Billions
Current account balance 経常収支 Percent of GDP  

アプローチ2: The World Bank

【5分でマスター】ビジネスマン必見!世界銀行データの使い方
https://data.worldbank.org/country/vietnam?view=chart

アプローチ3: ベト株

最初はここから始めた。
このサイトには業種の情報がある。このテーブルデータを
・スクレイピングを用いて取得し、dbに落とし込む
・dbからSQLで集計をかける(業種別会社数と業種別時価総額)
・javascript d3 を使ってレーダーチャートに起こす
あぁ^~、めちゃくちゃ勉強の実感が湧くじゃぁ^~
image.png

sql
SELECT
      c.industry_class || '|' || i.industry1 AS ind_name
    , ROUND(SUM(count_per),2) AS cnt_per
    , ROUND(SUM(marketcap_per),2) AS cap_per
FROM vietnam_research_industry i INNER JOIN vietnam_research_industryclassification c
ON i.industry1 = c.industry1
GROUP BY i.industry1, c.industry_class
ORDER BY ind_name;

image.png

ソース

また気が向いたら更新する

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2