<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>python | Carlos Mendez</title><link>https://carlos-mendez.org/ja/tag/python/</link><atom:link href="https://carlos-mendez.org/ja/tag/python/index.xml" rel="self" type="application/rss+xml"/><description>python</description><generator>Wowchemy (https://wowchemy.com)</generator><language>ja-jp</language><copyright>© 2018–2026 Carlos Mendez. All rights reserved.</copyright><lastBuildDate>Tue, 28 Jul 2026 00:00:00 +0000</lastBuildDate><image><url>https://carlos-mendez.org/media/icon_huedfae549300b4ca5d201a9bd09a3ecd5_79625_512x512_fill_lanczos_center_3.png</url><title>python</title><link>https://carlos-mendez.org/ja/tag/python/</link></image><item><title>scspill</title><link>https://carlos-mendez.org/ja/projects/scspill/</link><pubDate>Tue, 28 Jul 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/scspill/</guid><description>&lt;p>&lt;strong>処理が漏れ出すときの合成コントロール — 処理群への効果と、各ドナーが受け取るスピルオーバーを。&lt;/strong>&lt;/p>
&lt;p>&lt;code>scspill&lt;/code> は、ドナープールに対するSUTVAを外した合成コントロールモデルのPythonパッケージです。処理がコントロール群に及ぶことを許し、いずれのモデルも2つの推定対象を報告します。すなわち、汚染を取り除いた処理群への効果と、各ドナーが受け取るスピルオーバー効果です。後者は従来の合成コントロールでは表現すること自体ができません。現在利用できるモデル &lt;code>sar&lt;/code> は、ユーザーが指定した空間重みを通じてスピルオーバーを伝え、その大きさを単一の強度パラメータ ρ で調整します。この ρ は&lt;strong>仮定するのではなく推定されます&lt;/strong>。合成ウェイトは制約を課さないホースシュー（horseshoe）縮小推定で求めるため、ドナーは除外されることも、負の値をとることも、外挿することもできます。そして2つの推定対象いずれについても完全なベイズ的不確実性を返します。ρ = 0 のとき、モデルはベイズ的ホースシュー合成コントロールに厳密に一致します。推定器のアーキテクチャは &lt;a href="https://github.com/jgreathouse9/mlsynth" target="_blank" rel="noopener">mlsynth&lt;/a>（pydanticの設定を入力とし、標準化された結果オブジェクトを出力する）に従い、&lt;code>method&lt;/code> の名称は同ライブラリの &lt;code>SPILLSYNTH&lt;/code> ディスパッチャと一致するため、両者は自然に組み合わせられます。&lt;/p>
&lt;h3 id="-はじめにhttpsquarcs-labgithubioscspillget-startedhtml">🚀 &lt;a href="https://quarcs-lab.github.io/scspill/get-started.html" target="_blank" rel="noopener">はじめに&lt;/a>&lt;/h3>
&lt;p>カリフォルニア州の提案99（Proposition 99）を対象に、およそ10行でモデルを推定します。&lt;strong>95%信用区間付きのATT&lt;/strong>、スピルオーバー強度 ρ、各ドナーが年ごとに受け取るスピルオーバー、MCMC診断、反事実プロットが得られます。&lt;/p>
&lt;p>&lt;a href="https://colab.research.google.com/github/quarcs-lab/scspill/blob/main/notebooks/california.ipynb" target="_blank" rel="noopener">▶ Colab で開く&lt;/a>&lt;/p>
&lt;h3 id="-モデルhttpsquarcs-labgithubioscspillmodels">🧬 &lt;a href="https://quarcs-lab.github.io/scspill/models/" target="_blank" rel="noopener">モデル&lt;/a>&lt;/h3>
&lt;p>現在提供されているモデルは1つ、&lt;a href="https://quarcs-lab.github.io/scspill/models/sar.html" target="_blank" rel="noopener">&lt;code>sar&lt;/code>&lt;/a> です。&lt;a href="https://doi.org/10.1093/ectj/utag006" target="_blank" rel="noopener">Sakaguchi・Tagawa (2026)&lt;/a> による、空間自己回帰型スピルオーバーを備えたベイズ合成コントロールです。さらに3つのスピルオーバー対応モデルが&lt;a href="https://quarcs-lab.github.io/scspill/models/#planned" target="_blank" rel="noopener">ロードマップ&lt;/a>にあります。Cao・Dowd のモデル、Di Stefano・Mellace の包括的合成コントロール、Grossi ほかによる部分干渉SCGです。これらは&lt;strong>未実装&lt;/strong>であり、&lt;code>SCSPILLConfig&lt;/code> はこれらの名称を黙って別のモデルで代替せず、明示的に拒否します。&lt;/p>
&lt;h3 id="-検証httpsquarcs-labgithubioscspillarticlesvalidationhtml">🧪 &lt;a href="https://quarcs-lab.github.io/scspill/articles/validation.html" target="_blank" rel="noopener">検証&lt;/a>&lt;/h3>
&lt;p>&lt;code>sar&lt;/code> のサンプラーが正しいことを示す証拠です。&lt;strong>Geweke (2004) の同時分布検定&lt;/strong>、事前分布の感度グリッド、事前予測チェック、そして著者らのR実装による固定済み信用区間との交差検証。&lt;/p>
&lt;h2 id="機能の概要">機能の概要&lt;/h2>
&lt;p>&lt;strong>&lt;code>scspill&lt;/code>&lt;/strong> — モデル層。&lt;code>SCSPILL(config).fit()&lt;/code> は、ATTとその信用区間、反事実の経路、ρ の事後分布、時点×ドナーのスピルオーバーパネル、MCMC診断を返します。&lt;/p>
&lt;p>&lt;strong>&lt;code>scspill.validation&lt;/code>&lt;/strong> — &lt;code>sar&lt;/code> のサンプラー検証。Gewekeの同時分布検定、事前分布の感度グリッド、事前予測チェック。&lt;/p>
&lt;p>&lt;strong>&lt;code>scspill.simulate&lt;/code>&lt;/strong> — &lt;code>sar&lt;/code> の&lt;a href="https://quarcs-lab.github.io/scspill/articles/simulation-study.html" target="_blank" rel="noopener">モンテカルロエンジン&lt;/a>。ルーク型格子によるSARデータ生成過程と、論文の表1・表2の基礎となる SCM / BSCM / SCSPILL の比較です。&lt;/p>
&lt;p>&lt;strong>&lt;code>scspill.data&lt;/code>&lt;/strong> — 以下のスピルオーバーパネル。モデルに依存しない形式のため、今後追加されるモデルでもそのまま利用できます。&lt;/p>
&lt;p>&lt;strong>&lt;code>sar&lt;/code> は実装されているだけでなく検証されています&lt;/strong> — 著者らのRレプリケーションパッケージと交差検証されています。カリフォルニアとスーダンの事後分布は固定済みのR信用区間と、モンテカルロのグリッドは論文の固定済みの表と、事前予測統計量は小数第3位まで照合されています。既定の設定は&lt;em>論文に忠実&lt;/em>で、参照実装に残る複数の既知の不具合が修正されており、それぞれに従来挙動へ戻す手段か差分を定量化したベンチマークが用意されています。詳しくは &lt;a href="https://quarcs-lab.github.io/scspill/models/sar.html" target="_blank" rel="noopener">&lt;code>sar&lt;/code> モデルのページ&lt;/a>をご覧ください。&lt;/p>
&lt;h2 id="付属のケーススタディ">付属のケーススタディ&lt;/h2>
&lt;p>&lt;code>scspill.data&lt;/code> には、すぐに推定できる2つの&lt;a href="https://quarcs-lab.github.io/scspill/articles/datasets.html" target="_blank" rel="noopener">データセット&lt;/a>が含まれています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>カリフォルニア&lt;/strong> — 提案99、39州（1970–2000年）。一人当たり紙巻たばこ販売量とルーク型隣接重み。&lt;code>scspill.data.load_california()&lt;/code> で読み込みます。&lt;/li>
&lt;li>&lt;strong>スーダン&lt;/strong> — 2011年の分離独立、アフリカ34か国（2000–2015年）。一人当たりGDPと貿易ネットワーク重み。&lt;code>scspill.data.load_sudan()&lt;/code> で読み込みます。&lt;a href="https://quarcs-lab.github.io/scspill/sudan.html" target="_blank" rel="noopener">スーダンのケーススタディ&lt;/a>で詳しく扱っています。&lt;/li>
&lt;/ul>
&lt;h2 id="インストール">インストール&lt;/h2>
&lt;p>最新リリースはPyPIから入手できます（基本のインストールはNumPy/SciPyのみ。&lt;code>numba&lt;/code> エクストラでJITコンパイル済みサンプラーが追加されます）。&lt;/p>
&lt;pre>&lt;code class="language-bash">pip install scspill # NumPy/SciPy sampler backend
pip install &amp;quot;scspill[numba]&amp;quot; # + JIT-compiled samplers (~10x faster)
pip install &amp;quot;scspill @ git+https://github.com/quarcs-lab/scspill.git&amp;quot; # latest
&lt;/code>&lt;/pre>
&lt;p>Python 3.10 以上が必要です。&lt;/p>
&lt;h2 id="ひと目で">ひと目で&lt;/h2>
&lt;p>付属のケーススタディを読み込み、サンプラーを実行して、2つの推定対象を確認します。&lt;/p>
&lt;pre>&lt;code class="language-python">from scspill import SCSPILL
from scspill.data import load_california
panel = load_california() # Prop 99 panel + rook-contiguity weights
result = SCSPILL(
{**panel.config_kwargs(), &amp;quot;m_iter&amp;quot;: 20_000, &amp;quot;burn&amp;quot;: 10_000, &amp;quot;seed&amp;quot;: 42}
).fit()
result.att, result.att_ci # treatment effect on California + 95% CrI
result.rho_hat, result.rho_ci # spillover intensity posterior
result.spillover_panel[&amp;quot;Nevada&amp;quot;] # the effect received by Nevada, per year
result.diagnostics() # ESS / R-hat / MCSE per chain
result.plot(kind=&amp;quot;panel&amp;quot;) # counterfactual | effect | top spillovers
&lt;/code>&lt;/pre>
&lt;p>推定器の動きは、&lt;a href="https://quarcs-lab.github.io/scspill/get-started.html" target="_blank" rel="noopener">はじめに&lt;/a>、&lt;a href="https://quarcs-lab.github.io/scspill/models/" target="_blank" rel="noopener">モデル&lt;/a>、&lt;a href="https://quarcs-lab.github.io/scspill/articles/validation.html" target="_blank" rel="noopener">検証&lt;/a>でご覧いただけます。&lt;/p>
&lt;h2 id="基盤">基盤&lt;/h2>
&lt;p>&lt;code>scspill&lt;/code> は依存関係を意図的に軽く保っています。現代的なPythonの科学計算スタックのみで構成されています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;a href="https://numpy.org" target="_blank" rel="noopener">NumPy&lt;/a>&lt;/strong> と &lt;strong>&lt;a href="https://scipy.org" target="_blank" rel="noopener">SciPy&lt;/a>&lt;/strong> — サンプラーの計算基盤&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://pandas.pydata.org" target="_blank" rel="noopener">pandas&lt;/a>&lt;/strong> — パネルとスピルオーバーの表&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://docs.pydantic.dev" target="_blank" rel="noopener">pydantic&lt;/a>&lt;/strong> — 検証付きの推定器設定&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://matplotlib.org" target="_blank" rel="noopener">matplotlib&lt;/a>&lt;/strong> — 診断図と反事実の図&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://numba.pydata.org" target="_blank" rel="noopener">numba&lt;/a>&lt;/strong> — オプションのJITコンパイル済みサンプラー&lt;/li>
&lt;/ul>
&lt;h2 id="謝辞">謝辞&lt;/h2>
&lt;p>&lt;code>scspill&lt;/code> の著者は Carlos Mendez、Shosei Sakaguchi、Hayato Tagawa の3名です。本Pythonパッケージは Carlos Mendez が執筆し、保守しています。&lt;code>sar&lt;/code> モデルとそのオリジナルのR/C++実装は Shosei Sakaguchi 氏と Hayato Tagawa 氏によるものです。両氏の&lt;a href="https://doi.org/10.5281/zenodo.19066186" target="_blank" rel="noopener">レプリケーションパッケージ&lt;/a>はMITライセンスで公開されており、その著作権表示は本ライブラリの &lt;code>LICENSE&lt;/code> に保持されています。また &lt;code>scspill&lt;/code> の各リリースは、その固定済みの結果と交差検証されています。推定器のアーキテクチャは Jared Greathouse 氏の &lt;a href="https://github.com/jgreathouse9/mlsynth" target="_blank" rel="noopener">mlsynth&lt;/a> に、ドキュメント基盤は QuaRCS Lab の &lt;a href="https://github.com/quarcs-lab/geometrics" target="_blank" rel="noopener">geometrics&lt;/a> パッケージに倣っています。&lt;/p>
&lt;p>&lt;code>scspill&lt;/code> をご利用の際は、本ソフトウェアを引用してください（機械可読なメタデータは &lt;a href="https://github.com/quarcs-lab/scspill/blob/main/CITATION.cff" target="_blank" rel="noopener">&lt;code>CITATION.cff&lt;/code>&lt;/a> にあります）。&lt;/p>
&lt;blockquote>
&lt;p>Mendez, C., Sakaguchi, S., &amp;amp; Tagawa, H. (2026). &lt;em>Synthetic Control Models with Spillovers in Python&lt;/em> (version 0.2.1). &lt;a href="https://github.com/quarcs-lab/scspill" target="_blank" rel="noopener">https://github.com/quarcs-lab/scspill&lt;/a>&lt;/p>
&lt;/blockquote>
&lt;p>MITライセンスで公開されています。&lt;/p></description></item><item><title>geometrics</title><link>https://carlos-mendez.org/ja/projects/geometrics/</link><pubDate>Thu, 02 Jul 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/geometrics/</guid><description>&lt;p>&lt;strong>地域の成長・収束・格差 — 空間的に、Pythonで。&lt;/strong>&lt;/p>
&lt;p>&lt;code>geometrics&lt;/code> は &lt;a href="https://pysal.org/" target="_blank" rel="noopener">PySAL&lt;/a> ファミリーを基盤とし、地域収束の文献における標準的な分析を、インタラクティブな &lt;a href="https://plotly.com/python/" target="_blank" rel="noopener">Plotly&lt;/a> の図、出版品質の &lt;a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great Tables&lt;/a>、整然とした（tidy）DataFrame を返す適用しやすい関数にまとめています。&lt;strong>探索／分析／学習&lt;/strong>のワークフローに、すべての結果を解釈・説明する組み込みの&lt;strong>学習レイヤー&lt;/strong>と&lt;strong>3つのノーコードアプリ&lt;/strong>を組み合わせています。学生、教員、応用研究者のいずれにも役立つように作られています。&lt;/p>
&lt;h3 id="-探索httpsquarcs-labgithubiogeometricsexplorehtml">🗺️ &lt;a href="https://quarcs-lab.github.io/geometrics/explore.html" target="_blank" rel="noopener">探索&lt;/a>&lt;/h3>
&lt;p>地域を地図化し記述します。分類・アニメーション化されたコロプレス図、空間重みの接続性、&lt;strong>モランの散布図と LISA クラスターマップ&lt;/strong>、時空間ビュー。&lt;/p>
&lt;p>&lt;a href="https://geometrics-explore.streamlit.app/" target="_blank" rel="noopener">🚀 アプリを開く&lt;/a> · &lt;a href="https://colab.research.google.com/github/quarcs-lab/geometrics/blob/main/notebooks/explore.ipynb" target="_blank" rel="noopener">▶ Colabで開く&lt;/a>&lt;/p>
&lt;h3 id="-分析httpsquarcs-labgithubiogeometricsanalyzehtml">🧮 &lt;a href="https://quarcs-lab.github.io/geometrics/analyze.html" target="_blank" rel="noopener">分析&lt;/a>&lt;/h3>
&lt;p>モデルを推定します。&lt;strong>β・σ・クラブ収束&lt;/strong>、インパクトを伴う空間計量経済モデル、マルコフおよび空間マルコフのダイナミクス、空間分解を伴う&lt;strong>ジニ／タイルの格差&lt;/strong>、GWR／マルチスケール GWR。&lt;/p>
&lt;p>&lt;a href="https://geometrics-analyze.streamlit.app/" target="_blank" rel="noopener">🚀 アプリを開く&lt;/a> · &lt;a href="https://colab.research.google.com/github/quarcs-lab/geometrics/blob/main/notebooks/analyze.ipynb" target="_blank" rel="noopener">▶ Colabで開く&lt;/a>&lt;/p>
&lt;h3 id="-学習httpsquarcs-labgithubiogeometricslearnhtml">📚 &lt;a href="https://quarcs-lab.github.io/geometrics/learn.html" target="_blank" rel="noopener">学習&lt;/a>&lt;/h3>
&lt;p>手法の背後にある考え方を確かめます。既知の真実を自分で調整できる&lt;strong>11個の実行可能な概念サンドボックス&lt;/strong>、&lt;strong>30トピック&lt;/strong>の解説インデックス、そしてすべての結果に対する平易な言葉での解説。&lt;/p>
&lt;p>&lt;a href="https://geometrics-learn.streamlit.app/" target="_blank" rel="noopener">🚀 アプリを開く&lt;/a> · &lt;a href="https://colab.research.google.com/github/quarcs-lab/geometrics/blob/main/notebooks/learn.ipynb" target="_blank" rel="noopener">▶ Colabで開く&lt;/a>&lt;/p>
&lt;h2 id="ブラウザでアプリを試す">ブラウザでアプリを試す&lt;/h2>
&lt;p>インストールもコードも不要 — 3つの &lt;code>geometrics&lt;/code> アプリが、ワークフロー全体をブラウザ上で実行します。ポイント＆クリックの地図とモデル、ソート可能な表、再現可能なエクスポート。それぞれがドキュメントのケーススタディに対応するノーコード版です。&lt;/p>
&lt;p>&lt;a href="https://geometrics-explore.streamlit.app/" target="_blank" rel="noopener">🗺️ 探索アプリ&lt;/a> · &lt;a href="https://geometrics-analyze.streamlit.app/" target="_blank" rel="noopener">🧮 分析アプリ&lt;/a> · &lt;a href="https://geometrics-learn.streamlit.app/" target="_blank" rel="noopener">📚 学習アプリ&lt;/a>&lt;/p>
&lt;h2 id="機能の概要">機能の概要&lt;/h2>
&lt;p>&lt;strong>地図と ESDA&lt;/strong> — 分類／アニメーション化されたコロプレス図、空間重みの接続性、モランの散布図、LISA クラスターマップ、時系列でのモランの I。&lt;/p>
&lt;p>&lt;strong>時空間ダイナミクス&lt;/strong> — 横断面分布の推移とエンティティ×時間のヒートマップ。&lt;/p>
&lt;p>&lt;strong>収束&lt;/strong> — OLS または空間推定量による β 収束、σ 収束、そしてクラブマップ付きの Phillips–Sul 収束クラブ。&lt;/p>
&lt;p>&lt;strong>空間計量経済学&lt;/strong> — &lt;code>spreg&lt;/code> スイート、モデル推奨付きの LM 診断、代替的な重みによる頑健性。&lt;/p>
&lt;p>&lt;strong>分布ダイナミクス&lt;/strong> — マルコフおよび空間マルコフの遷移分析。&lt;/p>
&lt;p>&lt;strong>格差&lt;/strong> — 空間分解を伴うジニ／タイルのトレンド、タイルの級間／級内分解。&lt;/p>
&lt;p>&lt;strong>局所モデル&lt;/strong> — 局所係数を地図化した GWR とマルチスケール GWR。&lt;/p>
&lt;p>&lt;strong>概念サンドボックス&lt;/strong> — 既知のデータ生成過程からデータをシミュレートする11個の教育用関数。&lt;/p>
&lt;h2 id="付属のケーススタディ">付属のケーススタディ&lt;/h2>
&lt;p>&lt;code>geometrics.data&lt;/code> には、すぐに分析できる2つのケーススタディが付属しています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>インド&lt;/strong> — 520の地区、衛星による夜間光（1996〜2010年）：&lt;code>gm.data.load_india()&lt;/code>、&lt;code>load_india_states()&lt;/code>。&lt;/li>
&lt;li>&lt;strong>ボリビア&lt;/strong> — PWT に基づく地域 GDP（2021年購買力平価の米ドル、2012〜2022年）を3つの地理的スケールで：&lt;code>gm.data.load_bolivia()&lt;/code>（112の郡）、&lt;code>load_bolivia_departments()&lt;/code>（9の県）、&lt;code>load_bolivia_grid()&lt;/code>（1,603のグリッドセル）。&lt;/li>
&lt;/ul>
&lt;h2 id="インストール">インストール&lt;/h2>
&lt;p>最新リリースを PyPI からインストールします（基本インストールでほとんどのワークフローに対応します。エクストラでマルコフのダイナミクス、ノーコードアプリ、PNG エクスポートを追加できます）。&lt;/p>
&lt;pre>&lt;code class="language-bash">pip install geometrics # core
pip install &amp;quot;geometrics[dynamics]&amp;quot; # + Markov / spatial Markov (giddy)
pip install &amp;quot;geometrics[streamlit]&amp;quot; # + the three no-code apps
pip install &amp;quot;geometrics[all]&amp;quot; # everything, incl. PNG export
&lt;/code>&lt;/pre>
&lt;p>Python 3.11 以上が必要です。&lt;/p>
&lt;h2 id="ひと目で">ひと目で&lt;/h2>
&lt;p>付属のケーススタディを読み込み、変数ラベルを付与して地図化します — すべての図はインタラクティブな Plotly オブジェクトです。&lt;/p>
&lt;pre>&lt;code class="language-python">import geometrics as gm
# India — 520 districts, satellite nighttime lights (1996–2010)
gdf, df, df_dict = gm.data.load_india()
df = gm.set_labels(df, df_dict, set_panel=True)
# A classified choropleth of nighttime lights in 2010
gm.explore_choropleth_map(df, &amp;quot;ntl_total&amp;quot;, gdf=gdf, period=2010).fig
&lt;/code>&lt;/pre>
&lt;p>&lt;strong>収束を推定し、それ自身に説明させる&lt;/strong> — β 収束と σ 収束、それぞれに平易な言葉での解説を添えて。&lt;/p>
&lt;pre>&lt;code class="language-python">beta = gm.analyze_beta_convergence(df, &amp;quot;ntl_total&amp;quot;, model=&amp;quot;ols&amp;quot;)
print(beta.interpret()) # plain-language, associational reading
sigma = gm.analyze_sigma_convergence(df, &amp;quot;ntl_total&amp;quot;)
&lt;/code>&lt;/pre>
&lt;p>&lt;strong>学びながら進む&lt;/strong> — 概念サンドボックスと解説。&lt;/p>
&lt;pre>&lt;code class="language-python">gm.learn_beta_convergence(convergence_rate=0.02) # a runnable concept sandbox
print(gm.explain(&amp;quot;spatial_autocorrelation&amp;quot;)) # a concept explainer; gm.list_topics() lists all 30
&lt;/code>&lt;/pre>
&lt;p>&lt;a href="https://quarcs-lab.github.io/geometrics/explore.html" target="_blank" rel="noopener">探索&lt;/a>、&lt;a href="https://quarcs-lab.github.io/geometrics/analyze.html" target="_blank" rel="noopener">分析&lt;/a>、&lt;a href="https://quarcs-lab.github.io/geometrics/learn.html" target="_blank" rel="noopener">学習&lt;/a> で各関数の動作をご覧ください。&lt;/p>
&lt;h2 id="基盤">基盤&lt;/h2>
&lt;p>&lt;code>geometrics&lt;/code> は、空間分析エコシステム &lt;a href="https://pysal.org/" target="_blank" rel="noopener">PySAL&lt;/a> とモダンな Python のデータスタックの上に成り立っています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;a href="https://pysal.org/" target="_blank" rel="noopener">PySAL&lt;/a>&lt;/strong> — &lt;code>libpysal&lt;/code>（重み）、&lt;code>esda&lt;/code>（モランの I／LISA）、&lt;code>giddy&lt;/code>（分布ダイナミクス）、&lt;code>inequality&lt;/code>（ジニ／タイル）、&lt;code>mapclassify&lt;/code>（コロプレス図の分類）、&lt;code>spreg&lt;/code>（空間回帰）、&lt;code>mgwr&lt;/code>（マルチスケール GWR）&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://geopandas.org/" target="_blank" rel="noopener">geopandas&lt;/a>&lt;/strong> — 地理空間データフレーム&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://plotly.com/python/" target="_blank" rel="noopener">Plotly&lt;/a>&lt;/strong> — インタラクティブな図&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great Tables&lt;/a>&lt;/strong> — 出版品質の表&lt;/li>
&lt;/ul>
&lt;h2 id="謝辞">謝辞&lt;/h2>
&lt;p>&lt;code>geometrics&lt;/code> は &lt;a href="https://quarcs-lab.org" target="_blank" rel="noopener">QuaRCS Lab&lt;/a>（定量地域・計算科学）で開発されており、&lt;a href="https://pysal.org/" target="_blank" rel="noopener">PySAL&lt;/a> プロジェクト、geopandas、Plotly、Great Tables の上に成り立っています。研究で &lt;code>geometrics&lt;/code> を使用する際は、リポジトリ（&lt;a href="https://github.com/quarcs-lab/geometrics/blob/main/CITATION.cff" target="_blank" rel="noopener">&lt;code>CITATION.cff&lt;/code>&lt;/a> を参照）および基盤となる PySAL パッケージを引用してください。&lt;/p></description></item><item><title>expdpy</title><link>https://carlos-mendez.org/ja/projects/expdpy/</link><pubDate>Thu, 18 Jun 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/expdpy/</guid><description>&lt;p>&lt;strong>パネルデータをインタラクティブに探索・分析・学習 — Pythonで。&lt;/strong>&lt;/p>
&lt;p>&lt;code>expdpy&lt;/code> は、インタラクティブな &lt;a href="https://plotly.com/python/" target="_blank" rel="noopener">Plotly&lt;/a> の図と出版品質の &lt;a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great Tables&lt;/a> を返す組み合わせ可能な関数に、&lt;strong>fixest スタイルの計量経済学&lt;/strong>、すべての結果を解釈・説明する組み込みの&lt;strong>学習レイヤー&lt;/strong>、そして&lt;strong>3つのノーコードアプリ&lt;/strong>を組み合わせています。学生、教員、応用研究者のいずれにも役立つように作られています。&lt;/p>
&lt;h3 id="-探索httpscmg777githubioexpdpyexplorehtml">🔍 &lt;a href="https://cmg777.github.io/expdpy/explore.html" target="_blank" rel="noopener">探索&lt;/a>&lt;/h3>
&lt;p>パネルを記述・可視化します。表、分布、欠損値マップ、時系列トレンド、グループ比較、散布図、&lt;strong>級内／級間（within／between）変動&lt;/strong>、&lt;strong>パネルダイナミクス&lt;/strong>。&lt;/p>
&lt;p>&lt;a href="https://expdpy-explore.streamlit.app/" target="_blank" rel="noopener">🚀 アプリを開く&lt;/a> · &lt;a href="https://colab.research.google.com/github/cmg777/expdpy/blob/main/notebooks/explore.ipynb" target="_blank" rel="noopener">▶ Colabで開く&lt;/a>&lt;/p>
&lt;h3 id="-分析httpscmg777githubioexpdpyanalyzehtml">🧮 &lt;a href="https://cmg777.github.io/expdpy/analyze.html" target="_blank" rel="noopener">分析&lt;/a>&lt;/h3>
&lt;p>モデルを推定します。固定効果／変量効果／&lt;strong>相関変量効果&lt;/strong>、FWL、ハウスマン検定、頑健な推測、&lt;strong>イベントスタディ／DiD&lt;/strong>、&lt;strong>β／σ／クラブ収束&lt;/strong>、&lt;strong>クズネッツ波形&lt;/strong>曲線。&lt;/p>
&lt;p>&lt;a href="https://expdpy-analyze.streamlit.app/" target="_blank" rel="noopener">🚀 アプリを開く&lt;/a> · &lt;a href="https://colab.research.google.com/github/cmg777/expdpy/blob/main/notebooks/analyze.ipynb" target="_blank" rel="noopener">▶ Colabで開く&lt;/a>&lt;/p>
&lt;h3 id="-学習httpscmg777githubioexpdpylearnhtml">📚 &lt;a href="https://cmg777.github.io/expdpy/learn.html" target="_blank" rel="noopener">学習&lt;/a>&lt;/h3>
&lt;p>手法の背後にある考え方を確かめます。既知の真実を自分で調整できる&lt;strong>9つの実行可能な概念サンドボックス&lt;/strong>、&lt;strong>27トピック&lt;/strong>の解説インデックス、そしてすべての結果に対する平易な言葉での解説。&lt;/p>
&lt;p>&lt;a href="https://expdpy-learn.streamlit.app/" target="_blank" rel="noopener">🚀 アプリを開く&lt;/a> · &lt;a href="https://colab.research.google.com/github/cmg777/expdpy/blob/main/notebooks/learn.ipynb" target="_blank" rel="noopener">▶ Colabで開く&lt;/a>&lt;/p>
&lt;h2 id="ブラウザでアプリを試す">ブラウザでアプリを試す&lt;/h2>
&lt;p>インストールもコードも不要 — 3つの &lt;code>ExPdPy&lt;/code> アプリが、ワークフロー全体をブラウザ上で実行します。サンプルパイプライン、ポイント＆クリックの分析、ソート可能な表、再現可能なノートブックのエクスポート。それぞれがドキュメントのケーススタディに対応するノーコード版です。&lt;/p>
&lt;p>&lt;a href="https://expdpy-explore.streamlit.app/" target="_blank" rel="noopener">🔍 探索アプリ&lt;/a> · &lt;a href="https://expdpy-analyze.streamlit.app/" target="_blank" rel="noopener">🧮 分析アプリ&lt;/a> · &lt;a href="https://expdpy-learn.streamlit.app/" target="_blank" rel="noopener">📚 学習アプリ&lt;/a>&lt;/p>
&lt;h2 id="機能の概要">機能の概要&lt;/h2>
&lt;p>&lt;strong>探索&lt;/strong> — 記述・相関・極値の表、ヒストグラムと棒グラフ、時系列・分位点トレンド、グループ別の棒／バイオリン／トレンドビュー、欠損値ヒートマップ、LOESS 平滑化（任意）付きの散布図、級内／級間（&lt;code>xtsum&lt;/code>）分解、ユニット別の軌跡、パネル構造の診断、分布・遷移ダイナミクス、&lt;code>treat_outliers&lt;/code>。&lt;/p>
&lt;p>&lt;strong>分析&lt;/strong> — &lt;a href="https://github.com/py-econometrics/pyfixest" target="_blank" rel="noopener">pyfixest&lt;/a> による&lt;strong>多元固定効果&lt;/strong>と&lt;strong>クラスター頑健標準誤差&lt;/strong>付きの OLS、より充実した &lt;code>analyze_estimation&lt;/code>（ステップワイズ／複数アウトカム、Newey–West・Driscoll–Kraay 標準誤差）、&lt;strong>プールド（pooled）／級間（between）／固定効果／変量効果&lt;/strong>と&lt;strong>相関変量効果（Mundlak）&lt;strong>推定量、&lt;strong>ハウスマン検定&lt;/strong>、推定後ツール（固定効果プロット、予測、Wald 同時検定）、&lt;strong>頑健な推測&lt;/strong>（ランダム化推測、ワイルドクラスターブートストラップ）、&lt;strong>Frisch–Waugh–Lovell&lt;/strong> プロットと&lt;/strong>係数&lt;/strong>プロット、最新の&lt;strong>イベントスタディ／時差のある差分の差分法&lt;/strong>（&lt;code>did2s&lt;/code>、Sun–Abraham、LP-DiD、動的 TWFE）、&lt;strong>β・σ・クラブ収束&lt;/strong>、そしてプールド／級間／級内推定量による&lt;strong>クズネッツ波形&lt;/strong>曲線。&lt;/p>
&lt;p>&lt;strong>学習&lt;/strong> — すべての結果が平易な言葉で語ります。&lt;code>.interpret()&lt;/code> は&lt;strong>連関的（associational）&lt;strong>な解説を返し（デザインが裏付けない限り因果的な主張はしません）、&lt;code>.explain()&lt;/code> ／ &lt;code>explain(topic)&lt;/code> ／ &lt;code>list_topics()&lt;/code> で&lt;/strong>27&lt;/strong>の概念解説を閲覧できます。&lt;strong>9つの概念サンドボックス&lt;/strong>がデータをシミュレートし、既知の真実を&lt;em>見て&lt;/em>調整できます — 一階差分 ≈ 平均除去 ≈ ダミー変数の恒等関係、固定効果、クラスタリング、欠落変数バイアス、β／σ／クラブ収束、クズネッツ波。&lt;/p>
&lt;p>&lt;strong>付属データセット&lt;/strong> — &lt;code>expdpy.data&lt;/code> には、すぐに探索できるパネルが付属しています。&lt;strong>&lt;code>kuznets&lt;/code>&lt;/strong>（N字型クズネッツ曲線の代表的なデモ）、&lt;code>gapminder&lt;/code>、&lt;strong>&lt;code>staggered_did&lt;/code>&lt;/strong>（イベントスタディ／DiD）、&lt;strong>&lt;code>productivity&lt;/code>&lt;/strong>、&lt;strong>&lt;code>bolivia112_gdppc&lt;/code>&lt;/strong>（収束）。データ辞書については &lt;a href="https://cmg777.github.io/expdpy/explanation/kuznets-dataset.html" target="_blank" rel="noopener">kuznets データセット&lt;/a> のページをご覧ください。&lt;/p>
&lt;h2 id="インストール">インストール&lt;/h2>
&lt;p>最新リリースを PyPI からインストールします（変量効果、CRE、ハウスマン検定はそのまま利用できます。アプリには &lt;code>streamlit&lt;/code> エクストラが必要です）。&lt;/p>
&lt;pre>&lt;code class="language-bash">pip install expdpy
pip install &amp;quot;expdpy[streamlit]&amp;quot; # the no-code ExPdPy apps (Streamlit)
&lt;/code>&lt;/pre>
&lt;p>&lt;a href="https://docs.astral.sh/uv/" target="_blank" rel="noopener">uv&lt;/a> を使う場合：&lt;/p>
&lt;pre>&lt;code class="language-bash">uv pip install expdpy
uv pip install &amp;quot;expdpy[streamlit]&amp;quot;
&lt;/code>&lt;/pre>
&lt;p>最新の未公開バージョンは、&lt;code>main&lt;/code> ブランチから直接インストールできます。&lt;/p>
&lt;pre>&lt;code class="language-bash">pip install &amp;quot;git+https://github.com/cmg777/expdpy.git&amp;quot;
&lt;/code>&lt;/pre>
&lt;p>Python 3.10 以上が必要です。&lt;/p>
&lt;h2 id="ひと目で">ひと目で&lt;/h2>
&lt;p>このドキュメント全体を通じた主要な例は、付属の &lt;code>kuznets&lt;/code> パネル（80か国 × 2015〜2025年）です。地域間の格差が所得に対して &lt;strong>N字型のクズネッツ曲線&lt;/strong>を描く合成データセットで、上昇し、下降し、非常に高い所得で再び上昇します。&lt;/p>
&lt;pre>&lt;code class="language-python">import expdpy as ex
from expdpy.data import load_kuznets
df = load_kuznets()
# The N-shaped regional Kuznets curve: regional inequality vs (log) GDP per capita
ex.explore_scatter_plot(
df, x=&amp;quot;log_gdp_pc&amp;quot;, y=&amp;quot;gini_regional&amp;quot;, color=&amp;quot;continent&amp;quot;, size=&amp;quot;population&amp;quot;, loess=1
).fig
&lt;/code>&lt;/pre>
&lt;p>&lt;strong>回帰を実行し、それ自身に説明させる&lt;/strong> — 二元固定効果、クラスター頑健標準誤差、平易な言葉での解説、係数プロット。&lt;/p>
&lt;pre>&lt;code class="language-python">res = ex.analyze_regression_table(
df,
dvs=&amp;quot;gini_regional&amp;quot;,
idvs=[&amp;quot;log_gdp_pc&amp;quot;, &amp;quot;log_gdp_pc_sq&amp;quot;, &amp;quot;log_gdp_pc_cu&amp;quot;],
feffects=[&amp;quot;country&amp;quot;, &amp;quot;year&amp;quot;],
clusters=[&amp;quot;country&amp;quot;],
)
print(res.interpret()) # plain-language, associational reading
ex.analyze_coefficient_plot(res) # themed coefficient plot with confidence intervals
&lt;/code>&lt;/pre>
&lt;p>&lt;strong>学びながら進む&lt;/strong> — 概念サンドボックスと解説。&lt;/p>
&lt;pre>&lt;code class="language-python">ex.learn_first_differences() # first differences ≈ demeaning ≈ dummy variables
print(ex.explain(&amp;quot;fixed_effects&amp;quot;)) # a concept explainer; ex.list_topics() lists all 27
&lt;/code>&lt;/pre>
&lt;p>&lt;a href="https://cmg777.github.io/expdpy/explore.html" target="_blank" rel="noopener">探索&lt;/a>、&lt;a href="https://cmg777.github.io/expdpy/analyze.html" target="_blank" rel="noopener">分析&lt;/a>、&lt;a href="https://cmg777.github.io/expdpy/learn.html" target="_blank" rel="noopener">学習&lt;/a> で各関数の動作を確認するか、&lt;a href="https://cmg777.github.io/expdpy/explanation/kuznets-dataset.html" target="_blank" rel="noopener">kuznets データセット&lt;/a> のページでデータ辞書をご覧ください。&lt;/p>
&lt;h2 id="基盤">基盤&lt;/h2>
&lt;p>&lt;code>expdpy&lt;/code> は、モダンな Python のデータ・計量経済学スタックの上に成り立っています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;a href="https://plotly.com/python/" target="_blank" rel="noopener">Plotly&lt;/a>&lt;/strong> — インタラクティブな図&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://github.com/py-econometrics/pyfixest" target="_blank" rel="noopener">pyfixest&lt;/a>&lt;/strong> — 固定効果および差分の差分法の推定量&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://posit-dev.github.io/great-tables/" target="_blank" rel="noopener">Great Tables&lt;/a>&lt;/strong> — 出版品質の表&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://bashtage.github.io/linearmodels/" target="_blank" rel="noopener">linearmodels&lt;/a>&lt;/strong> — 変量効果／級間／相関変量効果とハウスマン検定&lt;/li>
&lt;li>&lt;strong>&lt;a href="https://streamlit.io/" target="_blank" rel="noopener">Streamlit&lt;/a>&lt;/strong> — ノーコードの &lt;code>ExPdPy&lt;/code> アプリ&lt;/li>
&lt;/ul>
&lt;h2 id="謝辞">謝辞&lt;/h2>
&lt;p>expdpy は、&lt;strong>Joachim Gassen&lt;/strong> 氏と &lt;strong>TRR 266 Accounting for Transparency&lt;/strong> プロジェクトによる優れた R パッケージ &lt;a href="https://github.com/trr266/ExPanDaR" target="_blank" rel="noopener">ExPanDaR&lt;/a> の Python 移植版として始まり、その基盤は今もその成果に深く着想を得ています。時を経て、expdpy は元のパッケージをはるかに超えて成長しました — fixest スタイルの推定量、イベントスタディ／差分の差分法のツール、変量効果・相関変量効果のパネルモデル、収束分析、結果を解釈・説明する組み込みの学習レイヤー — そして今後も進化を続けます。&lt;/p>
&lt;p>ExPanDaR の作者の皆様に感謝します。研究で &lt;code>expdpy&lt;/code> を使用する際は、原典を引用してください（&lt;a href="https://github.com/cmg777/expdpy/blob/main/CITATION.cff" target="_blank" rel="noopener">&lt;code>CITATION.cff&lt;/code>&lt;/a> を参照）。&lt;/p></description></item><item><title>Indonesia514</title><link>https://carlos-mendez.org/ja/projects/indonesia514/</link><pubDate>Wed, 10 Jun 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/indonesia514/</guid><description>&lt;h1 id="indonesia514インドネシアの514地区における地域開発を研究するためのデータサイエンスリポジトリ">Indonesia514：インドネシアの514地区における地域開発を研究するためのデータサイエンス・リポジトリ&lt;/h1>
&lt;p>&lt;a href="https://github.com/quarcs-lab/indonesia514" target="_blank" rel="noopener">&lt;strong>Indonesia514&lt;/strong> へようこそ！&lt;/a> 本プロジェクトは、インドネシアの&lt;strong>514の地区&lt;/strong>を対象に、GDP、投資、政府支出などの地域経済指標と地理空間データを集約したものです。すべてのデータセットは共通の識別子 &lt;code>districtID&lt;/code> を共有しているため、1つの分析用テーブルに統合できます。&lt;/p>
&lt;p>本リポジトリは、以下に関心を持つ研究者やデータサイエンス従事者向けに構成されています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>地域経済：&lt;/strong> 地区レベルの成長、資本形成、財政政策を測定する。&lt;/li>
&lt;li>&lt;strong>空間分析：&lt;/strong> 経済指標を地区のジオメトリと結び付け、地図作成や空間計量経済学に活用する。&lt;/li>
&lt;li>&lt;strong>再現可能なワークフロー：&lt;/strong> 単一の結合キーを用いて、オープンデータセットを直接Pythonに読み込む。&lt;/li>
&lt;/ul>
&lt;blockquote>
&lt;p>&lt;strong>⚙️ 開発中。&lt;/strong> 本リポジトリは初期段階のドラフトです。地区の境界はGeoJSON形式で完成しており、バイリンガル（英語／インドネシア語）のウェブサイトも公開されていますが、経済データセットは現在&lt;strong>16地区分のサンプルデータ&lt;/strong>のみを収録しています。514地区すべての完全な系列は準備中です。インタラクティブなダッシュボードや分析ノートブックは計画段階であり、まだ公開されていません。&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="-データセット">💾 データセット&lt;/h2>
&lt;p>モジュールごとに整理され、すべてが一意の識別子（&lt;code>districtID&lt;/code>）で結び付けられた、整備済みのデータセットです。&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">データセット&lt;/th>
&lt;th style="text-align:left">ファイルパス&lt;/th>
&lt;th style="text-align:left">説明&lt;/th>
&lt;th style="text-align:left">結合キー&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GDP&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/gdp/gdp.csv&lt;/code>&lt;/td>
&lt;td style="text-align:left">地区レベルの国内総生産（2010–2022年）。&lt;/td>
&lt;td style="text-align:left">&lt;code>districtID&lt;/code>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>GFCF&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/gfcf/gfcf.csv&lt;/code>&lt;/td>
&lt;td style="text-align:left">総固定資本形成（投資の指標）（2010–2022年）。&lt;/td>
&lt;td style="text-align:left">&lt;code>districtID&lt;/code>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>政府支出&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/gs/gs.csv&lt;/code>&lt;/td>
&lt;td style="text-align:left">政府支出および財政政策の分布（2010–2022年）。&lt;/td>
&lt;td style="text-align:left">&lt;code>districtID&lt;/code>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>空間ベクター&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/maps/mapIdonesia514tp.geojson&lt;/code>&lt;/td>
&lt;td style="text-align:left">514地区すべての幾何境界（ポリゴン）。&lt;/td>
&lt;td style="text-align:left">&lt;code>districtID&lt;/code>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;blockquote>
&lt;p>&lt;strong>⚠️ 識別子に関する重要な注意：&lt;/strong> 本リポジトリのすべてのデータセットを結合するための主キーは &lt;strong>&lt;code>districtID&lt;/code>&lt;/strong> です。GDP、GFCF、政府支出のファイルは現在16地区分のサンプルを収録しており、514地区すべての完全なデータを追加中です。結合する前に、両方のデータフレームで &lt;code>districtID&lt;/code> を &lt;code>int&lt;/code> または &lt;code>string&lt;/code> として一貫して扱うよう常に確認してください。&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;h2 id="-クイックスタート">🐍 クイックスタート&lt;/h2>
&lt;p>データセットをGitHubから直接読み込み、&lt;code>pandas&lt;/code> で &lt;code>districtID&lt;/code> をキーに結合します。以下のコードは、空の &lt;a href="https://colab.research.google.com/notebooks/empty.ipynb" target="_blank" rel="noopener">Google Colab スクラッチパッド&lt;/a> で実行できます。設定やインストールは不要です。&lt;/p>
&lt;pre>&lt;code class="language-python">import pandas as pd
# -----------------------------------------------------------------------------
# 1. SETUP: Define the raw GitHub URL to stream data directly into Pandas.
# -----------------------------------------------------------------------------
REPO_URL = &amp;quot;https://raw.githubusercontent.com/quarcs-lab/indonesia514/main&amp;quot;
# -----------------------------------------------------------------------------
# 2. LOAD: Read the economic CSVs.
# -----------------------------------------------------------------------------
df_gdp = pd.read_csv(f&amp;quot;{REPO_URL}/gdp/gdp.csv&amp;quot;)
df_gfcf = pd.read_csv(f&amp;quot;{REPO_URL}/gfcf/gfcf.csv&amp;quot;)
df_gs = pd.read_csv(f&amp;quot;{REPO_URL}/gs/gs.csv&amp;quot;)
# -----------------------------------------------------------------------------
# 3. MERGE: Combine the indicators on the common district identifier.
# -----------------------------------------------------------------------------
df = pd.merge(df_gdp, df_gfcf[['districtID', 'gfcf_2022']], on='districtID')
df = pd.merge(df, df_gs[['districtID', 'gs_2022']], on='districtID')
&lt;/code>&lt;/pre>
&lt;hr>
&lt;h2 id="-引用方法">📜 引用方法&lt;/h2>
&lt;p>研究で本リポジトリを利用する場合は、以下のメタデータで引用してください。&lt;/p>
&lt;h3 id="apa形式">APA形式&lt;/h3>
&lt;p>Mendez, C., Abdulah, R., Arvianto, B., &amp;amp; Leiva, F. (2026). Indonesia514: A data science repository to study regional development in Indonesia. GitHub. &lt;a href="https://github.com/quarcs-lab/indonesia514" target="_blank" rel="noopener">https://github.com/quarcs-lab/indonesia514&lt;/a>&lt;/p>
&lt;h3 id="bibtex形式">BibTeX形式&lt;/h3>
&lt;pre>&lt;code class="language-bibtex">@misc{indonesia5142026,
author = {Mendez, Carlos and Abdulah, Rusli and Arvianto, Bimo and Leiva, Favio},
title = {{Indonesia514}: A Data Science Repository to Study Regional Development in Indonesia},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/quarcs-lab/indonesia514}}
}
&lt;/code>&lt;/pre>
&lt;hr>
&lt;h2 id="ライセンス">ライセンス&lt;/h2>
&lt;p>本リポジトリは &lt;strong>MITライセンス&lt;/strong> の下で公開されており、適切な帰属表示のもとで幅広い再利用が認められています。&lt;/p>
&lt;hr>
&lt;h2 id="-貢献方法">🤝 貢献方法&lt;/h2>
&lt;p>貢献を歓迎します！全地区データの追加、座標参照系（CRS）の問題の修正、新しいノートブックの作成、新規指標の統合のいずれであっても、&lt;a href="https://github.com/quarcs-lab/indonesia514/pulls" target="_blank" rel="noopener">プルリクエストを送信してください&lt;/a>。&lt;/p></description></item><item><title>因果メトリクスをマスターする（Mastering Causal Metrics）</title><link>https://carlos-mendez.org/ja/projects/intro2causal/</link><pubDate>Wed, 22 Apr 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/intro2causal/</guid><description>&lt;h2 id="因果メトリクスをマスターするへようこそ">因果メトリクスをマスターするへようこそ！&lt;/h2>
&lt;p>&lt;strong>因果メトリクスをマスターする&lt;/strong>のための、AIを活用した学習ガイドです。Angrist &amp;amp; Pischke の基礎的な教科書 &lt;a href="https://www.masteringmetrics.com/" target="_blank" rel="noopener">&lt;em>Mastering &amp;lsquo;Metrics: The Path from Cause to Effect&lt;/em>&lt;/a> をもとに、インタラクティブなPythonノートブックとAIツールを使って因果推論の基礎を学びます。&lt;/p>
&lt;p>本プラットフォームには以下が含まれます。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>基礎的な手法&lt;/strong> — Angrist &amp;amp; Pischke の &lt;em>Mastering &amp;lsquo;Metrics&lt;/em> に基づきます。ランダム化試験から差分の差分法まで、因果推論を学びます。&lt;/li>
&lt;li>&lt;strong>Pythonノートブック&lt;/strong> — インストール不要のGoogle Colabノートブック。実データ、動作するコード、各手法の完全な実装を備えています。&lt;/li>
&lt;li>&lt;strong>AIを活用した学習&lt;/strong> — 異なる教育スタイルを持つ複数のAIチューター。&lt;/li>
&lt;/ul>
&lt;h2 id="インタラクティブなgoogle-colabノートブック">インタラクティブなGoogle Colabノートブック&lt;/h2>
&lt;p>下記のいずれかのバッジをクリックすると、ブラウザ上で即座に開いて実行できます。&lt;/p>
&lt;h3 id="第i部概念的枠組み">第I部：概念的枠組み&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>トピック&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1&lt;/strong>&lt;/td>
&lt;td>ランダム化試験&lt;/td>
&lt;td>選択バイアス、潜在的結果、RAND HIE&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/cmg777/intro2causal/blob/main/notebooks_colab/01-randomized-trials.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="第ii部5つのツール">第II部：5つのツール&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>トピック&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>2&lt;/strong>&lt;/td>
&lt;td>回帰&lt;/td>
&lt;td>OLS、欠落変数バイアス、不適切な統制変数&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/cmg777/intro2causal/blob/main/notebooks_colab/02-regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3&lt;/strong>&lt;/td>
&lt;td>操作変数&lt;/td>
&lt;td>LATE、コンプライアー、ミネアポリスの家庭内暴力実験&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/cmg777/intro2causal/blob/main/notebooks_colab/03-instrumental-variables.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4&lt;/strong>&lt;/td>
&lt;td>回帰不連続デザイン&lt;/td>
&lt;td>シャープRD、バンド幅、飲酒の法定年齢と死亡率&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/cmg777/intro2causal/blob/main/notebooks_colab/04-regression-discontinuity.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>5&lt;/strong>&lt;/td>
&lt;td>差分の差分法&lt;/td>
&lt;td>平行トレンド、双方向固定効果、大恐慌期の銀行&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/cmg777/intro2causal/blob/main/notebooks_colab/05-differences-in-differences.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="第iii部総合">第III部：総合&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>トピック&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>6&lt;/strong>&lt;/td>
&lt;td>教育の収益&lt;/td>
&lt;td>双子、出生四半期、学位の効果&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/cmg777/intro2causal/blob/main/notebooks_colab/06-wages-of-schooling.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="ノートブックの使い方">ノートブックの使い方&lt;/h3>
&lt;ol>
&lt;li>上記のいずれかの &lt;strong>「Open in Colab」バッジをクリックします&lt;/strong>&lt;/li>
&lt;li>Googleアカウント（無料）で &lt;strong>ログインします&lt;/strong>&lt;/li>
&lt;li>ランタイムメニューの &lt;strong>「すべて実行」をクリックします&lt;/strong>（または各セルを個別に実行します）&lt;/li>
&lt;li>&lt;strong>探索して変更します&lt;/strong> — パラメータを変えたり、別のモデルを試したり、データで実験したりできます&lt;/li>
&lt;li>&lt;strong>作業を保存します&lt;/strong> — ファイル ＞ ドライブにコピーを保存 で、変更内容を保持できます&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>インストール不要、ダウンロード不要、設定不要！&lt;/strong>&lt;/p>
&lt;h2 id="著者とクレジット">著者とクレジット&lt;/h2>
&lt;p>&lt;strong>Carlos Mendez&lt;/strong> — Pythonでの実装および教育用ノートブックの開発&lt;/p>
&lt;p>&lt;strong>Joshua D. Angrist &amp;amp; Jörn-Steffen Pischke&lt;/strong> — 原著教科書 &lt;a href="https://www.masteringmetrics.com/" target="_blank" rel="noopener">&lt;em>Mastering &amp;lsquo;Metrics&lt;/em>&lt;/a>&lt;/p></description></item><item><title>AI主導の計量経済学</title><link>https://carlos-mendez.org/ja/publication/20260126-metricsai/</link><pubDate>Mon, 26 Jan 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/publication/20260126-metricsai/</guid><description>&lt;h1 id="-ai主導の計量経済学">🤖 AI主導の計量経済学&lt;/h1>
&lt;p>&lt;strong>クラウド上のPythonノートブックによる入門&lt;/strong>
&lt;img src="https://raw.githubusercontent.com/quarcs-lab/metricsai/main/images/ch00_visual_summary.jpg"
alt="Chapter 0 visual summary"
style="max-width: 100%; height: auto;">&lt;/p>
&lt;hr>
&lt;h2 id="-ビジョン">🚀 ビジョン&lt;/h2>
&lt;ul>
&lt;li>🤖 AI時代の計量経済学&lt;/li>
&lt;li>☁️ クラウドでのインタラクティブな学習&lt;/li>
&lt;li>📊 実データ、本物の経済学的問い&lt;/li>
&lt;/ul>
&lt;p>計量経済学の学習は、理論的厳密さを保ちながら、能動的・計算的でAIに支援されたプロセスとして捉え直されます。&lt;/p>
&lt;hr>
&lt;h2 id="-なぜ計量経済学の教育を見直すのか">🧠 なぜ計量経済学の教育を見直すのか&lt;/h2>
&lt;ul>
&lt;li>📖 受動的な教科書&lt;/li>
&lt;li>💻 高い技術的障壁&lt;/li>
&lt;li>🔗 理論とその実装の間の隔たり&lt;/li>
&lt;/ul>
&lt;p>伝統的なアプローチは、意味のあるデータ分析をしばしば遅らせ、概念的な理解を妨げます。&lt;/p>
&lt;hr>
&lt;h2 id="-本書のアプローチ">🔄 本書のアプローチ&lt;/h2>
&lt;ul>
&lt;li>🧱 基礎概念&lt;/li>
&lt;li>🧪 計算的ノートブック&lt;/li>
&lt;li>🤖 AIで強化された学習&lt;/li>
&lt;/ul>
&lt;p>3つの柱からなる体系が、理論、プログラミング、AIを統合し、能動的な学習エコシステムを生み出します。&lt;/p>
&lt;hr>
&lt;h2 id="-柱1基礎概念">📘 柱1：基礎概念&lt;/h2>
&lt;ul>
&lt;li>📚 Cameron（2022）に基づく&lt;/li>
&lt;li>📐 厳密な計量経済学の理論&lt;/li>
&lt;li>🌍 応用的で実践的なアプローチ&lt;/li>
&lt;/ul>
&lt;p>構成と内容は、標準的な計量経済学および研究の実践に沿っています。&lt;/p>
&lt;hr>
&lt;h2 id="-構成">🗂️ 構成&lt;/h2>
&lt;ul>
&lt;li>🧮 統計学の基礎&lt;/li>
&lt;li>📉 二変量回帰&lt;/li>
&lt;li>📊 重回帰&lt;/li>
&lt;li>🔬 発展的なテーマ&lt;/li>
&lt;/ul>
&lt;p>17章が、基礎から現代的な実証的手法へと体系的に進みます。&lt;/p>
&lt;hr>
&lt;h2 id="-柱2計算的ノートブック">☁️ 柱2：計算的ノートブック&lt;/h2>
&lt;ul>
&lt;li>🚫 インストール不要&lt;/li>
&lt;li>🧑‍💻 Google Colab&lt;/li>
&lt;li>🌐 あらゆるデバイスからアクセス&lt;/li>
&lt;/ul>
&lt;p>各章には、インタラクティブなPythonノートブックが付属します。&lt;/p>
&lt;hr>
&lt;h2 id="-現代的なpythonスタック">🧰 現代的なPythonスタック&lt;/h2>
&lt;ul>
&lt;li>🐼 データ操作&lt;/li>
&lt;li>📐 計量経済学的モデリング&lt;/li>
&lt;li>📊 可視化&lt;/li>
&lt;/ul>
&lt;p>学習者は、実証研究のために広く用いられ、応用の効くツールを学びます。&lt;/p>
&lt;hr>
&lt;h2 id="-プログラミングで学ぶ">🔁 プログラミングで学ぶ&lt;/h2>
&lt;ul>
&lt;li>✏️ コードを修正し再実行する&lt;/li>
&lt;li>⚡ 即時のフィードバック&lt;/li>
&lt;li>🔍 能動的な実験&lt;/li>
&lt;/ul>
&lt;p>理解は、データとモデルとの直接的なやり取りを通じて深まります。&lt;/p>
&lt;hr>
&lt;h2 id="-柱3aiで強化された学習">🤖 柱3：AIで強化された学習&lt;/h2>
&lt;ul>
&lt;li>🖼️ 視覚的な要約&lt;/li>
&lt;li>📑 AIが生成したスライド&lt;/li>
&lt;li>🎙️ ポッドキャストとクイズ&lt;/li>
&lt;/ul>
&lt;p>複数の形式が学習を補強し、さまざまな好みに適応します。&lt;/p>
&lt;hr>
&lt;h2 id="-aiの責任ある利用">⚖️ AIの責任ある利用&lt;/h2>
&lt;ul>
&lt;li>🧠 AIは思考を支援するものであり、置き換えるものではありません&lt;/li>
&lt;li>🔍 検証は不可欠です&lt;/li>
&lt;li>📘 理論は依然として中心にあります&lt;/li>
&lt;/ul>
&lt;p>AIは理解を高めますが、計量経済学的な推論に取って代わるものではありません。&lt;/p>
&lt;hr>
&lt;h2 id="-3つの要素からなる学習システム">🔗 3つの要素からなる学習システム&lt;/h2>
&lt;ul>
&lt;li>📕 本書&lt;/li>
&lt;li>🌐 metricsAIウェブサイト&lt;/li>
&lt;li>📘 Cameronの教科書&lt;/li>
&lt;/ul>
&lt;p>これらは全体として、完結的で一貫した学習環境を形作ります。&lt;/p>
&lt;hr>
&lt;h2 id="-結論">🎓 結論&lt;/h2>
&lt;ul>
&lt;li>📊 計算を通じた計量経済学&lt;/li>
&lt;li>🤖 AIで強化された&lt;/li>
&lt;li>🌍 身近で厳密な&lt;/li>
&lt;/ul></description></item><item><title>metricsAI</title><link>https://carlos-mendez.org/ja/projects/metricsai/</link><pubDate>Wed, 21 Jan 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/metricsai/</guid><description>&lt;h2 id="metricsaiへようこそ">metricsAIへようこそ！&lt;/h2>
&lt;p>このデータサイエンス・プラットフォームは、&lt;a href="https://colab.research.google.com/notebooks/empty.ipynb" target="_blank" rel="noopener">クラウド上のPythonノートブック&lt;/a>と&lt;a href="https://notebooklm.google.com/notebook/25c819f8-8afc-49aa-8707-2bd87c18d760" target="_blank" rel="noopener">NotebookLMのAI学習ツール&lt;/a>を組み合わせ、現代的な計量経済学入門を提供します。&lt;/p>
&lt;p>Colin Cameron の教科書 &lt;a href="https://cameron.econ.ucdavis.edu/aed/index.html" target="_blank" rel="noopener">&lt;em>Analysis of Economics Data: An Introduction to Econometrics&lt;/em>&lt;/a> のインタラクティブな補完教材として設計された metricsAI は、静的な各章を動的な学習体験へと変えます。学習者は、AIが生成した要約、Pythonコード、実践的な例に、Google Colabを通じてブラウザ上で直接アクセスできます。&lt;strong>設定やインストールは一切不要&lt;/strong>で、ノートブックにはコードの生成・説明・変換のためのAIツールが組み込まれています。&lt;/p>
&lt;h2 id="-インタラクティブなgoogle-colabノートブック">📓 インタラクティブなGoogle Colabノートブック&lt;/h2>
&lt;p>下記のいずれかのバッジをクリックすると、ブラウザ上で即座に開いて実行できます。&lt;/p>
&lt;h3 id="第i部統計の基礎">第I部：統計の基礎&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>1&lt;/strong>&lt;/td>
&lt;td>経済データの分析&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch01_Analysis_of_Economics_Data.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>2&lt;/strong>&lt;/td>
&lt;td>一変量データの要約&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch02_Univariate_Data_Summary.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>3&lt;/strong>&lt;/td>
&lt;td>標本平均&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch03_The_Sample_Mean.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>4&lt;/strong>&lt;/td>
&lt;td>平均に関する統計的推測&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch04_Statistical_Inference_for_the_Mean.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="第ii部二変量回帰">第II部：二変量回帰&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>5&lt;/strong>&lt;/td>
&lt;td>二変量データの要約&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch05_Bivariate_Data_Summary.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>6&lt;/strong>&lt;/td>
&lt;td>最小二乗推定量&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch06_The_Least_Squares_Estimator.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>7&lt;/strong>&lt;/td>
&lt;td>二変量回帰の統計的推測&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch07_Statistical_Inference_for_Bivariate_Regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>8&lt;/strong>&lt;/td>
&lt;td>二変量回帰のケーススタディ&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch08_Case_Studies_for_Bivariate_Regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>9&lt;/strong>&lt;/td>
&lt;td>自然対数を用いたモデル&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch09_Models_with_Natural_Logarithms.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="第iii部重回帰">第III部：重回帰&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>10&lt;/strong>&lt;/td>
&lt;td>重回帰のためのデータ要約&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch10_Data_Summary_for_Multiple_Regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>11&lt;/strong>&lt;/td>
&lt;td>重回帰の統計的推測&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch11_Statistical_Inference_for_Multiple_Regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>12&lt;/strong>&lt;/td>
&lt;td>重回帰に関する発展的トピック&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch12_Further_Topics_in_Multiple_Regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>13&lt;/strong>&lt;/td>
&lt;td>重回帰のケーススタディ&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch13_Case_Studies_for_Multiple_Regression.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="第iv部発展的トピック">第IV部：発展的トピック&lt;/h3>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th>章&lt;/th>
&lt;th>タイトル&lt;/th>
&lt;th>Colabノートブック&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td>&lt;strong>14&lt;/strong>&lt;/td>
&lt;td>指示変数を用いた回帰&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch14_Regression_with_Indicator_Variables.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>15&lt;/strong>&lt;/td>
&lt;td>変換変数を用いた回帰&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch15_Regression_with_Transformed_Variables.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>16&lt;/strong>&lt;/td>
&lt;td>モデルとデータの検証&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch16_Checking_the_Model_and_Data.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td>&lt;strong>17&lt;/strong>&lt;/td>
&lt;td>パネルデータ、時系列、因果性&lt;/td>
&lt;td>&lt;a href="https://colab.research.google.com/github/quarcs-lab/metricsai/blob/main/notebooks_colab/ch17_Panel_Data_Time_Series_Data_Causation.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;h3 id="ノートブックの使い方">ノートブックの使い方&lt;/h3>
&lt;ol>
&lt;li>上記のいずれかの &lt;strong>「Open in Colab」バッジをクリックします&lt;/strong>&lt;/li>
&lt;li>Googleアカウント（無料）で &lt;strong>ログインします&lt;/strong>&lt;/li>
&lt;li>ランタイムメニューの &lt;strong>「すべて実行」をクリックします&lt;/strong>（または各セルを個別に実行します）&lt;/li>
&lt;li>&lt;strong>探索して変更します&lt;/strong> - パラメータを変えたり、別のモデルを試したり、データで実験したりできます&lt;/li>
&lt;li>&lt;strong>作業を保存します&lt;/strong> - ファイル → ドライブにコピーを保存 で、変更内容を保持できます&lt;/li>
&lt;/ol>
&lt;p>&lt;strong>インストール不要、ダウンロード不要、設定不要！&lt;/strong>&lt;/p>
&lt;h2 id="-著者とクレジット">👥 著者とクレジット&lt;/h2>
&lt;p>&lt;strong>Carlos Mendez&lt;/strong> - Pythonでの実装および教育用ノートブックの開発&lt;/p>
&lt;p>&lt;strong>A. Colin Cameron&lt;/strong> - 教科書、データ、Stata/Rのコード、および原版スライド。&lt;/p></description></item><item><title>DS4Bolivia</title><link>https://carlos-mendez.org/ja/projects/ds4bolivia/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/ds4bolivia/</guid><description>&lt;h1 id="ds4boliviaボリビアの地理空間的な開発を研究するためのデータサイエンスリポジトリ">DS4Bolivia：ボリビアの地理空間的な開発を研究するためのデータサイエンス・リポジトリ&lt;/h1>
&lt;p>&lt;a href="https://github.com/quarcs-lab/ds4bolivia" target="_blank" rel="noopener">&lt;strong>DS4Bolivia&lt;/strong> へようこそ！&lt;/a> 本プロジェクトは、ボリビアの&lt;strong>339の自治体&lt;/strong>に焦点を当て、空間データおよび社会経済データセット、インタラクティブなダッシュボード、計算ワークフローを集約したものです。空間分析と持続可能な開発目標（SDGs）との橋渡しをすることを目的に設計されています。&lt;/p>
&lt;p>本リポジトリは、以下に関心を持つ研究者やデータサイエンス従事者向けに構成されています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>空間計量経済学：&lt;/strong> 地域間の格差、成長、クラスタリングを理解する。&lt;/li>
&lt;li>&lt;strong>空間機械学習：&lt;/strong> 衛星画像（地球観測）を予測モデリングに活用する。&lt;/li>
&lt;li>&lt;strong>持続可能な開発：&lt;/strong> 細かな地域レベルでSDGs指標をモニタリングする。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="-インタラクティブな地理空間ダッシュボード">🖥️ インタラクティブな地理空間ダッシュボード&lt;/h2>
&lt;p>コードを書かずにデータを探索できます。これらのアプリは、主要な開発指標の時空間ダイナミクスを可視化します。&lt;/p>
&lt;ul>
&lt;li>&lt;a href="https://carlos-mendez.projects.earthengine.app/view/geoexplorer1v100bolivia" target="_blank" rel="noopener">人口、夜間光、土地被覆、GDPの時空間ダイナミクス（2013–2019年）&lt;/a>：2013年と2019年のボリビアの自治体における人口密度、夜間光、土地被覆の変化、GDP推計の推移を可視化します。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="-クラウド上の計算ノートブック">🐍 クラウド上の計算ノートブック&lt;/h2>
&lt;p>私たちの分析を再現するのに役立つ、ステップ・バイ・ステップのチュートリアルです。これらのノートブックは &lt;code>GeoPandas&lt;/code> や &lt;code>PySAL&lt;/code> といったPythonライブラリを使用します。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;a href="https://colab.research.google.com/github/quarcs-lab/ds4bolivia/blob/master/notebooks/esda.ipynb" target="_blank" rel="noopener">空間探索的データ分析（ESDA）入門&lt;/a>&lt;/strong>&lt;/li>
&lt;li>&lt;em>焦点：&lt;/em> 大域および局所のモランのIを用いて、空間的なクラスターや外れ値を検出する方法を学びます。&lt;/li>
&lt;li>&lt;em>主要概念：&lt;/em> 空間的自己相関、LISA統計量、コロプレスマップ。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="-空間的に明示的なデータセット">💾 空間的に明示的なデータセット&lt;/h2>
&lt;p>分析に使えるよう整備済みのデータセットです。これらのファイルは、ボリビアの自治体境界に合わせて前処理されています。&lt;/p>
&lt;ul>
&lt;li>&lt;strong>&lt;a href="https://github.com/quarcs-lab/ds4bolivia/blob/master/datasets/sdgs_satelliteEmbeddings2017.csv" target="_blank" rel="noopener">SDGsと衛星埋め込み（2017年）&lt;/a>&lt;/strong>&lt;/li>
&lt;li>&lt;em>説明：&lt;/em> 社会経済指標（SDGs）と、衛星画像から抽出した高次元の特徴ベクトルを結合したデータセットです。&lt;/li>
&lt;li>&lt;em>活用例：&lt;/em> 宇宙から捉えた視覚的パターンをもとに、貧困指標や開発指標を予測する機械学習モデルを訓練する。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h2 id="-引用方法">📜 引用方法&lt;/h2>
&lt;p>研究で本リポジトリを利用する場合は、以下のメタデータで引用してください。&lt;/p>
&lt;h3 id="apa形式">APA形式&lt;/h3>
&lt;p>Mendez, C., Gonzales, E., Leoni, P., Andersen, L., Hendrix, P. (2024). DS4Bolivia: A Data Science Repository to Study GeoSpatial Development in Bolivia [Data set]. GitHub. &lt;a href="https://github.com/quarcs-lab/ds4bolivia" target="_blank" rel="noopener">https://github.com/quarcs-lab/ds4bolivia&lt;/a>&lt;/p>
&lt;h3 id="bibtex形式">BibTeX形式&lt;/h3>
&lt;pre>&lt;code class="language-bibtex">@misc{ds4bolivia2026,
author = {Mendez, Carlos and Gonzales, Erick and Leoni, Pedro and Andersen, Lykke and Hendrix, Peralta},
title = {{DS4Bolivia}: A Data Science Repository to Study GeoSpatial Development in Bolivia},
year = {2026},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/quarcs-lab/ds4bolivia}}
}
&lt;/code>&lt;/pre>
&lt;hr>
&lt;h2 id="-独自のデータセットを構築する">🚀 独自のデータセットを構築する&lt;/h2>
&lt;p>データセットはモジュールごとに整理されており、すべてが一意の識別子（&lt;code>asdf_id&lt;/code>）で結び付けられています。&lt;/p>
&lt;table>
&lt;thead>
&lt;tr>
&lt;th style="text-align:left">データセットの種類&lt;/th>
&lt;th style="text-align:left">ファイルパス&lt;/th>
&lt;th style="text-align:left">説明&lt;/th>
&lt;th style="text-align:left">結合キー&lt;/th>
&lt;/tr>
&lt;/thead>
&lt;tbody>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>地域名&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/regionNames/regionNames.csv&lt;/code>&lt;/td>
&lt;td style="text-align:left">行政上のメタデータ（自治体名および県名）。&lt;/td>
&lt;td style="text-align:left">&lt;code>asdf_id&lt;/code>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>社会経済&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/sdg/sdg.csv&lt;/code>&lt;/td>
&lt;td style="text-align:left">持続可能な開発目標（SDGs）の指標および貧困指標。&lt;/td>
&lt;td style="text-align:left">&lt;code>asdf_id&lt;/code>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>衛星特徴量&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/satelliteEmbeddings/satelliteEmbeddings2017.csv&lt;/code>&lt;/td>
&lt;td style="text-align:left">日中の衛星画像から抽出した特徴ベクトル（埋め込み）。&lt;/td>
&lt;td style="text-align:left">&lt;code>asdf_id&lt;/code>&lt;/td>
&lt;/tr>
&lt;tr>
&lt;td style="text-align:left">&lt;strong>空間ベクター&lt;/strong>&lt;/td>
&lt;td style="text-align:left">&lt;code>/maps/bolivia339geoqueryOpt.geojson&lt;/code>&lt;/td>
&lt;td style="text-align:left">すべての自治体の幾何境界（ポリゴン）。&lt;/td>
&lt;td style="text-align:left">&lt;code>asdf_id&lt;/code>&lt;/td>
&lt;/tr>
&lt;/tbody>
&lt;/table>
&lt;blockquote>
&lt;p>&lt;strong>⚠️ 識別子に関する重要な注意：&lt;/strong> 本リポジトリのすべてのデータセットを結合するための主キーは &lt;strong>&lt;code>asdf_id&lt;/code>&lt;/strong> です。&lt;br>
&lt;code>mun_id&lt;/code>（標準的な政府コード）も行政データに含まれていますが、&lt;code>asdf_id&lt;/code> は、ここで提供する衛星埋め込みと最適化済みマップファイルとの整合性を保証します。結合する前に、両方のデータフレームでこの列を &lt;code>int&lt;/code> または &lt;code>string&lt;/code> として一貫して扱うよう常に確認してください。&lt;/p>
&lt;/blockquote>
&lt;hr>
&lt;p>下記の例は、&lt;a href="https://colab.research.google.com/notebooks/empty.ipynb" target="_blank" rel="noopener">Google Colab&lt;/a> ですぐに実行できます。&lt;/p>
&lt;p>&lt;a href="https://colab.research.google.com/notebooks/empty.ipynb" target="_blank" rel="noopener">&lt;img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab">&lt;/a>&lt;/p>
&lt;h3 id="例1属性データの統合">例1：属性データの統合&lt;/h3>
&lt;p>このスクリプトは、行政上の名称、社会経済指標、衛星機械学習の特徴量を1つの分析用データフレームに結合する方法を示します。&lt;/p>
&lt;pre>&lt;code class="language-python">import pandas as pd
# -----------------------------------------------------------------------------
# 1. SETUP: Define Source URLs
# We use the raw GitHub URL to stream data directly into Colab/Pandas.
# -----------------------------------------------------------------------------
REPO_URL = &amp;quot;https://raw.githubusercontent.com/quarcs-lab/ds4bolivia/master&amp;quot;
url_names = f&amp;quot;{REPO_URL}/regionNames/regionNames.csv&amp;quot;
url_sdg = f&amp;quot;{REPO_URL}/sdg/sdg.csv&amp;quot;
url_emb = f&amp;quot;{REPO_URL}/satelliteEmbeddings/satelliteEmbeddings2017.csv&amp;quot;
# -----------------------------------------------------------------------------
# 2. LOAD: Read CSVs
# -----------------------------------------------------------------------------
print(&amp;quot;Loading datasets...&amp;quot;)
df_names = pd.read_csv(url_names)
df_sdg = pd.read_csv(url_sdg)
df_embeddings = pd.read_csv(url_emb)
# -----------------------------------------------------------------------------
# 3. MERGE: Combine Dataframes
# -----------------------------------------------------------------------------
# Step A: Attach SDG data to Names
df_merged_step1 = pd.merge(df_names, df_sdg, on='asdf_id', how='inner')
# Step B: Attach Satellite Embeddings to the result
df_final = pd.merge(df_merged_step1, df_embeddings, on='asdf_id', how='inner')
# -----------------------------------------------------------------------------
# 4. VERIFY
# -----------------------------------------------------------------------------
print(f&amp;quot;Merge Complete.&amp;quot;)
print(f&amp;quot;Original Municipalities: {len(df_names)}&amp;quot;)
print(f&amp;quot;Final Merged Rows: {len(df_final)}&amp;quot;)
print(f&amp;quot;Total Columns: {len(df_final.columns)}&amp;quot;)
# Display the first few rows (names + first few embedding columns)
display(df_final[['mun', 'dep', 'index_sdg1', 'A00', 'A01', 'A02']].head())
&lt;/code>&lt;/pre>
&lt;h3 id="例2空間データと属性データの統合">例2：空間データと属性データの統合&lt;/h3>
&lt;p>このスクリプトは、例1で結合したデータを取り込み、空間分析や空間表現のために自治体のジオメトリ（GeoJSON）と結合します。&lt;/p>
&lt;pre>&lt;code class="language-python">
import geopandas as gpd
import matplotlib.pyplot as plt
# -----------------------------------------------------------------------------
# 1. LOAD SPATIAL DATA
# We load the optimized GeoJSON file containing municipality boundaries.
# -----------------------------------------------------------------------------
geojson_url = f&amp;quot;{REPO_URL}/maps/bolivia339geoqueryOpt.geojson&amp;quot;
print(&amp;quot;Loading GeoJSON map...&amp;quot;)
gdf_boundaries = gpd.read_file(geojson_url)
# -----------------------------------------------------------------------------
# 2. SPATIAL DATA PREPARATION
# GeoJSON often loads IDs as objects/strings, while CSVs load as integers.
# -----------------------------------------------------------------------------
# Force 'asdf_id' to integer to match the pandas dataframe
gdf_boundaries['asdf_id'] = gdf_boundaries['asdf_id'].astype(int)
# -----------------------------------------------------------------------------
# 3. ATTRIBUTE JOIN
# Merge the spatial dataframe (gdf) with the attribute dataframe (df_final).
# This creates a 'GeoDataFrame' capable of spatial operations.
# -----------------------------------------------------------------------------
gdf_bolivia = gdf_boundaries.merge(df_final, on='asdf_id', how='inner')
# -----------------------------------------------------------------------------
# 4. VISUALIZATION (Choropleth Map)
# Plot the &amp;quot;No Poverty&amp;quot; SDG Index (SDG 1)
# -----------------------------------------------------------------------------
fig, ax = plt.subplots(1, 1, figsize=(12, 10))
gdf_bolivia.plot(
column='index_sdg1', # Variable to map
cmap='viridis', # Color palette (perceptually uniform)
linewidth=0.1, # Border width
edgecolor='white', # Border color
legend=True,
legend_kwds={'label': &amp;quot;SDG 1 Index (No Poverty)&amp;quot;, 'orientation': &amp;quot;horizontal&amp;quot;},
ax=ax
)
ax.set_title(&amp;quot;Bolivia: SDG 1 Index by Municipality&amp;quot;, fontsize=15)
ax.set_axis_off() # Turn off lat/lon axis numbers for cleaner look
plt.show()
&lt;/code>&lt;/pre>
&lt;hr>
&lt;h2 id="データソース">データソース&lt;/h2>
&lt;ul>
&lt;li>SDGs指標は、もともと &lt;a href="https://atlas.sdsnbolivia.org" target="_blank" rel="noopener">Andersen, L. E., Canelas, S., Gonzales, A., Peñaranda, L. (2020) Atlas municipal de los Objetivos de Desarrollo Sostenible en Bolivia 2020. La Paz: Universidad Privada Boliviana, SDSN Bolivia&lt;/a> によって構築されたものです。&lt;/li>
&lt;/ul>
&lt;h2 id="-貢献方法">🤝 貢献方法&lt;/h2>
&lt;p>貢献を歓迎します！座標参照系（CRS）の問題の修正、新しい空間モデルの追加、新規データのアップロードのいずれであっても、&lt;a href="https://github.com/quarcs-lab/ds4bolivia/pulls" target="_blank" rel="noopener">プルリクエストを送信してください&lt;/a>。&lt;/p></description></item><item><title>カンボジアのジオ開発観測所（GeoDevelopment Observatory）</title><link>https://carlos-mendez.org/ja/projects/gdo-cambodia/</link><pubDate>Mon, 15 Sep 2025 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/gdo-cambodia/</guid><description>&lt;p>このプロジェクトの引用方法：&lt;/p>
&lt;blockquote>
&lt;p>Mendez C., Khoun T., Poortinga A. (2025) GeoDevelopment Observatory of Cambodia.&lt;a href="https://bit.ly/gdo-cambodia" target="_blank" rel="noopener">https://bit.ly/gdo-cambodia&lt;/a>&lt;/p>
&lt;/blockquote>
&lt;p>カンボジアのジオ開発観測所（GeoDevelopment Observatory、GDO）は、持続可能な地域開発の分析・モニタリング・評価のための一般公開プラットフォームを提供します。本観測所は、衛星画像、現地調査、行政記録から収集した環境・社会・経済の各指標——ジオ開発指標（GeoDevelopment Indicators）と呼びます——を統合しています。これらの多次元データセットは、ジオ開発ツール（GeoDevelopment Tools）の枠組みのもとで、AIで強化された計算ノートブックと専用のウェブアプリケーションを用いて分析されます。技術的な分析結果は、その後ジオ開発インサイト（GeoDevelopment Insights）へと変換され、さまざまなユーザー層に向けてアクセスしやすい形式でデータを提示します。研究者は実証分析の実施に、意思決定者は政策の立案と実施に、市民は自分の地域の開発パターンを理解するために本プラットフォームを利用します。この体系的なアプローチは、複雑な持続可能性データを、進捗のモニタリング、介入の評価、持続可能な地域開発政策への示唆に役立つ実用的な情報へと変換することを促進します。&lt;/p>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;">
&lt;iframe
src="https://www.youtube.com/embed/9CcppQpArWI?si=hod4334TVc72NoHl"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
&lt;/iframe>
&lt;/div>
&lt;div style="position: relative; width: 100%; height: 0; padding-top: 56.2500%;
padding-bottom: 0; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;
border-radius: 8px; will-change: transform;">
&lt;iframe loading="lazy" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;"
src="https://www.canva.com/design/DAGye-QAKJY/W0nsfoueC3jXXgojBCFhOQ/view?embed" allowfullscreen="allowfullscreen" allow="fullscreen">
&lt;/iframe>
&lt;/div>
&lt;a href="https:&amp;#x2F;&amp;#x2F;www.canva.com&amp;#x2F;design&amp;#x2F;DAGye-QAKJY&amp;#x2F;W0nsfoueC3jXXgojBCFhOQ&amp;#x2F;view?utm_content=DAGye-QAKJY&amp;amp;utm_campaign=designshare&amp;amp;utm_medium=embeds&amp;amp;utm_source=link" target="_blank" rel="noopener">スライド&lt;/a>：カルロス・メンデス
&lt;p>出典： &lt;a href="https://bit.ly/gdo-cambodia" target="_blank" rel="noopener">https://bit.ly/gdo-cambodia&lt;/a>&lt;/p>
&lt;p>ご意見・ご協力は &lt;a href="https://github.com/gdo-cambodia" target="_blank" rel="noopener">https://github.com/gdo-cambodia&lt;/a> までお願いします。&lt;/p></description></item><item><title>開発研究のための計算的データサイエンスのノートブックとアプリ</title><link>https://carlos-mendez.org/ja/projects/ds4ds/</link><pubDate>Tue, 08 Apr 2025 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/projects/ds4ds/</guid><description>&lt;p>このプロジェクトの引用方法：&lt;/p>
&lt;blockquote>
&lt;p>Mendez C. (2025) Computational Data Science Notebooks and Apps for Development Studies. Zenodo &lt;a href="https://doi.org/10.5281/zenodo.15250204" target="_blank" rel="noopener">https://doi.org/10.5281/zenodo.15250204&lt;/a>&lt;/p>
&lt;/blockquote>
&lt;p>ご意見・ご協力は &lt;a href="https://github.com/cmg777/ds4ds" target="_blank" rel="noopener">https://github.com/cmg777/ds4ds&lt;/a> までお願いします。&lt;/p>
&lt;h2 id="基礎統計学と計量経済学">基礎統計学と計量経済学&lt;/h2>
&lt;ul>
&lt;li>Mendez C. (2024) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/gapminder_example.ipynb" target="_blank" rel="noopener">Gapminder を用いた Python によるデータサイエンス入門&lt;/a>&lt;/li>
&lt;li>Mendez C. (2025) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/real_differences_and_relationships.ipynb" target="_blank" rel="noopener">Python による統計的な差と関係の入門&lt;/a>&lt;/li>
&lt;li>Mendez C. (2025) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/statistics_differences_relationships_predictions.ipynb" target="_blank" rel="noopener">統計学とは差・関係・予測に関するものである&lt;/a>&lt;/li>
&lt;li>Mendez C. (2024) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/descriptive_statistics_and_multi_boundary_mapping.ipynb" target="_blank" rel="noopener">Python による記述統計と複数境界マッピング&lt;/a>&lt;/li>
&lt;li>Mendez C. (2025) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/regressions_to_explore_relationships.ipynb" target="_blank" rel="noopener">Python で回帰を用いて関係を探る&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="経済成長と開発">経済成長と開発&lt;/h2>
&lt;ul>
&lt;li>Mendez C. (2025) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/introduction_to_growth_equations.ipynb" target="_blank" rel="noopener">Python による成長方程式入門&lt;/a>&lt;/li>
&lt;li>Mendez C. &amp;amp; Leiva F. (2023) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/solow_growth_model_python.ipynb" target="_blank" rel="noopener">Python によるソロー成長モデルとその収束予測&lt;/a>&lt;/li>
&lt;li>Mendez C. (2023) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/solow_growth_model_R.ipynb" target="_blank" rel="noopener">R によるソロー成長モデルとその収束予測&lt;/a>&lt;/li>
&lt;li>Mendez C. (2021) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/convergence_clubs_labor_productivity.ipynb" target="_blank" rel="noopener">R による労働生産性の収束クラブとその近接要因&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="探索的データ分析">探索的データ分析&lt;/h2>
&lt;ul>
&lt;li>Mendez C. (2024) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/esda_municipal_development_bolivia.ipynb" target="_blank" rel="noopener">Python によるボリビアの自治体開発の探索的空間データ分析&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="因果推論">因果推論&lt;/h2>
&lt;ul>
&lt;li>Mendez C. (2025) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/introduction_to_DAGs_R.ipynb" target="_blank" rel="noopener">R による有向非巡回グラフ（DAG）入門&lt;/a>&lt;/li>
&lt;li>Mendez C. (2024) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/heterogeneous_treatment_effects_DID_R.ipynb" target="_blank" rel="noopener">R による二段階 DID を用いた異質処理効果&lt;/a>&lt;/li>
&lt;li>Mendez C. (2025) &lt;a href="https://cmg777.github.io/open-results/files/synthetic_control_explorer2.html" target="_blank" rel="noopener">合成コントロール・エクスプローラー：コントロール単位の加重結合で反実仮想を推定&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="機械学習">機械学習&lt;/h2>
&lt;ul>
&lt;li>Mendez C. (2025) &lt;a href="https://colab.research.google.com/github/cmg777/ds4ds/blob/main/introductory_ml_mincer_equation.ipynb" target="_blank" rel="noopener">計量経済学のための入門的機械学習：Python でミンサー方程式を探る&lt;/a>&lt;/li>
&lt;li>Mendez C. (2025) &lt;a href="https://ai.studio/apps/drive/1AOCpYZvP9S58zBq3Z7mESzeUCk04Z8Bg?fullscreenApplet=true" target="_blank" rel="noopener">XGBoost の予測で SHAP プロットを学ぶインタラクティブアプリ&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="空間計量経済学">空間計量経済学&lt;/h2>
&lt;ul>
&lt;li>未定&lt;/li>
&lt;li>未定&lt;/li>
&lt;/ul>
&lt;h2 id="ベイズ計量経済学">ベイズ計量経済学&lt;/h2>
&lt;ul>
&lt;li>未定&lt;/li>
&lt;li>未定&lt;/li>
&lt;/ul>
&lt;h2 id="特徴量エンジニアリングと地理計算">特徴量エンジニアリングと地理計算&lt;/h2>
&lt;ul>
&lt;li>Mendez C. (2025) &lt;a href="https://code.earthengine.google.com/b8a4fa3a96056d220bcb31b6a561cb1e" target="_blank" rel="noopener">Google Earth Engine による輝度ベース GDP の地域動態&lt;/a>&lt;/li>
&lt;li>未定&lt;/li>
&lt;/ul></description></item><item><title>暴力の政治的・社会経済的地理について：ブラジルにおける空間的異質性とスケール効果</title><link>https://carlos-mendez.org/ja/publication/20250401-sea/</link><pubDate>Sat, 22 Mar 2025 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/publication/20250401-sea/</guid><description>&lt;p>&lt;strong>🤖 AIポッドキャストの要約&lt;/strong>&lt;/p>
&lt;iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/2060947180&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true">&lt;/iframe>&lt;div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;">&lt;a href="https://soundcloud.com/user-562952877" title="QuaRCS-lab" target="_blank" style="color: #cccccc; text-decoration: none;">QuaRCS-lab&lt;/a> · &lt;a href="https://soundcloud.com/user-562952877/on-the-political-and-socioeconomic-geography-of-violence-spatial-heterogeneity-and-scale-effects-in-brazil" title="On the political and socioeconomic geography of violence: Spatial heterogeneity and scale effects in Brazil" target="_blank" style="color: #cccccc; text-decoration: none;">On the political and socioeconomic geography of violence: Spatial heterogeneity and scale effects in Brazil&lt;/a>&lt;/div>
&lt;hr>
&lt;h3 id="-再現用ノートブック">💻 再現用ノートブック&lt;/h3>
&lt;p>すべての分析は、Google Colabを通じて &lt;strong>クラウドベースのJupyterノートブックで完全に再現可能&lt;/strong> です。&lt;/p>
&lt;p>📊 &lt;a href="https://colab.research.google.com/drive/1JmRZNIqa8CPtPlOpcN66GkM-X45f2Lkb?usp=sharing" target="_blank" rel="noopener">1. 記述統計&lt;/a>&lt;/p>
&lt;p>📈 &lt;a href="https://colab.research.google.com/drive/1B7LHLfO5EWVsW_HAH6xebSmiJWi0_Xtv?usp=sharing" target="_blank" rel="noopener">2. 最小二乗法（OLS）&lt;/a>&lt;/p>
&lt;p>🗺️ &lt;a href="https://colab.research.google.com/drive/19COBTQysC1UtsKh4cMxWsDFQm_eU4BBV?usp=sharing" target="_blank" rel="noopener">3. 地理的加重回帰（GWR）&lt;/a>&lt;/p>
&lt;p>📐 &lt;a href="https://colab.research.google.com/drive/1MO5FluSwc3JnJ3a-oegYkH3NQsEhJH0E?usp=sharing" target="_blank" rel="noopener">4. マルチスケールGWR（MGWR）&lt;/a>&lt;/p>
&lt;p>🔄 &lt;a href="https://colab.research.google.com/drive/14ZriYHYgyj8OxZUtn3rjoFZnsOrNcc2Q?usp=sharing" target="_blank" rel="noopener">5. GWRとMGWRの係数の比較&lt;/a>&lt;/p>
&lt;hr>
&lt;h3 id="-はじめに">🌍 はじめに&lt;/h3>
&lt;ul>
&lt;li>ブラジルにおける地域的な暴力は、強い空間的パターンを示します。&lt;/li>
&lt;li>Ingram &amp;amp; Marchesini da Costa（2019年）の研究をMGWRを用いて発展させます。&lt;/li>
&lt;li>目的：致死的な暴力に対する空間的異質性とスケール効果を探究すること。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-方法論上の革新">🧪 方法論上の革新&lt;/h3>
&lt;ul>
&lt;li>完全な再現とオープンサイエンスのために &lt;strong>クラウドベースの計算ノートブック&lt;/strong> を用いました。&lt;/li>
&lt;li>&lt;strong>マルチスケール地理的加重回帰（MGWR）&lt;/strong> を採用しました。&lt;/li>
&lt;li>持続的な &lt;strong>地理的な暴力クラスター&lt;/strong> を特定しました。&lt;/li>
&lt;li>頑健性を確保するために &lt;strong>多重検定の補正&lt;/strong> を適用しました。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-データの概要">📊 データの概要&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>分析単位&lt;/strong>：5,562の自治体（2007〜2012年）&lt;/li>
&lt;li>&lt;strong>従属変数&lt;/strong>：殺人率の変化（2011〜2012年 対 2007〜2008年のΔ）&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>政治変数&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>勝利のマージン（%）&lt;/li>
&lt;li>州知事との政党の連携&lt;/li>
&lt;li>投票棄権（%）&lt;/li>
&lt;li>市長の政党所属：
&lt;ul>
&lt;li>&lt;strong>ブラジル民主運動党（PMDB）&lt;/strong>&lt;/li>
&lt;li>&lt;strong>ブラジル社会民主党（PSDB）&lt;/strong>&lt;/li>
&lt;li>&lt;strong>労働者党（PT）&lt;/strong>&lt;/li>
&lt;/ul>
&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>社会経済変数&lt;/strong>&lt;/p>
&lt;ul>
&lt;li>人口密度&lt;/li>
&lt;li>若年男性人口（%）&lt;/li>
&lt;li>ジニ係数（所得格差）&lt;/li>
&lt;li>人間開発指数（HDI）&lt;/li>
&lt;li>母子家庭の世帯（%）&lt;/li>
&lt;li>成人就業率（%）&lt;/li>
&lt;li>ボルサ・ファミリア受給資格（%）&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-モデリングの枠組み">🧭 モデリングの枠組み&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>OLS&lt;/strong>：グローバルな効果の推定。&lt;/li>
&lt;li>&lt;strong>GWR&lt;/strong>：単一の空間スケールによる局所的な効果の推定。&lt;/li>
&lt;li>&lt;strong>MGWR&lt;/strong>：複数の空間スケールによる局所的な効果の推定。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-olsの結果">🔍 OLSの結果&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>PMDB&lt;/strong> の市長 → 暴力の増加。&lt;/li>
&lt;li>&lt;strong>PT&lt;/strong> と &lt;strong>PSDB&lt;/strong> → 一貫した効果なし。&lt;/li>
&lt;li>投票棄権 → 高い殺人率と強く結びつく。&lt;/li>
&lt;li>予想外：ジニ係数は負の相関を示しました。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-gwrの結果政治変数">🗺️ GWRの結果：政治変数&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>PMDB&lt;/strong>：北東部で正の相関。&lt;/li>
&lt;li>&lt;strong>PT&lt;/strong>：多くの地域で暴力を低減。&lt;/li>
&lt;li>&lt;strong>PSDB&lt;/strong>：効果は混在——北部（↑）、南部（↓）。&lt;/li>
&lt;li>棄権：いくつかの地域で暴力を増加。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-gwrの結果社会経済変数">🧮 GWRの結果：社会経済変数&lt;/h3>
&lt;ul>
&lt;li>人口密度とボルサ・ファミリア → 異質な効果。&lt;/li>
&lt;li>若年男性%と母子家庭 → 概して暴力を増加。&lt;/li>
&lt;li>効果の方向と有意性は空間的に変動します。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-mgwrの結果政治変数">🗺️ MGWRの結果：政治変数&lt;/h3>
&lt;ul>
&lt;li>&lt;strong>PMDB&lt;/strong> は依然として北東部で暴力を↑。&lt;/li>
&lt;li>&lt;strong>PSDB&lt;/strong> は現在、ブラジル南部でのみ暴力を↓。&lt;/li>
&lt;li>&lt;strong>PT&lt;/strong> の効果は統計的補正の後にほぼ消失します。&lt;/li>
&lt;li>棄権：一部の地域でGWRと整合的。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-mgwrの結果社会経済変数">🌆 MGWRの結果：社会経済変数&lt;/h3>
&lt;ul>
&lt;li>ボルサ・ファミリア：有意な影響なし。&lt;/li>
&lt;li>若年男性%：大きな空間スケールゆえに、より多くの地域で有意。&lt;/li>
&lt;li>人口密度と母子家庭：小スケールで異質な影響。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-残差クラスターのマッピング">📌 残差クラスターのマッピング&lt;/h3>
&lt;ul>
&lt;li>切片のマッピング（MGWR）：&lt;strong>説明されないクラスター&lt;/strong> を明らかにします。&lt;/li>
&lt;li>中央ブラジル：正の残差 → 観測されない構造的要因か？&lt;/li>
&lt;li>南部・中東部：負の残差。&lt;/li>
&lt;/ul>
&lt;hr>
&lt;h3 id="-結論">🧩 結論&lt;/h3>
&lt;ul>
&lt;li>MGWRは微妙な空間的洞察を提供します。&lt;/li>
&lt;li>暴力の決定要因における異質性を確認します。&lt;/li>
&lt;li>地域に応じた、対象を絞った政策介入の必要性を示唆します。&lt;/li>
&lt;li>残差の暴力クラスターについては、さらなる調査が必要です。&lt;/li>
&lt;/ul></description></item><item><title>宇宙から経済活動を探る：衛星夜間光を処理・分析するためのPythonノートブック</title><link>https://carlos-mendez.org/ja/publication/20240417-region/</link><pubDate>Wed, 17 Apr 2024 00:00:00 +0000</pubDate><guid>https://carlos-mendez.org/ja/publication/20240417-region/</guid><description>&lt;center>
&lt;div class="alert alert-note">
&lt;div>
計算ノートブックには&lt;a href="https://bit.ly/project2022p" target="_blank" rel="noopener">こちら&lt;/a>からアクセスできます。
&lt;/div>
&lt;/div>
&lt;/center>
&lt;div class="alert alert-note">
&lt;div>
AI動画
（Invideo AIで作成）
&lt;/div>
&lt;/div>
&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; height: auto;">
&lt;iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"
src="https://www.youtube-nocookie.com/embed/srNtOUf_e_w?si=gIkHVwyI1wNayJb8&amp;amp;controls=0"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin"
allowfullscreen>
&lt;/iframe>
&lt;/div>
&lt;div class="alert alert-note">
&lt;div>
スライド
（Canva PROで作成）
&lt;/div>
&lt;/div>
&lt;div style="position: relative; width: 100%; height: 0; padding-top: 56.2500%;
padding-bottom: 0; box-shadow: 0 2px 8px 0 rgba(63,69,81,0.16); margin-top: 1.6em; margin-bottom: 0.9em; overflow: hidden;
border-radius: 8px; will-change: transform;">
&lt;iframe loading="lazy" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; border: none; padding: 0;margin: 0;"
src="https:&amp;#x2F;&amp;#x2F;www.canva.com&amp;#x2F;design&amp;#x2F;DAGCpV2wckk&amp;#x2F;ob078h3EKvMp3owtOp68ow&amp;#x2F;view?embed" allowfullscreen="allowfullscreen" allow="fullscreen">
&lt;/iframe>
&lt;/div>
&lt;a href="https:&amp;#x2F;&amp;#x2F;www.canva.com&amp;#x2F;design&amp;#x2F;DAGCpV2wckk&amp;#x2F;ob078h3EKvMp3owtOp68ow&amp;#x2F;view?utm_content=DAGCpV2wckk&amp;amp;utm_campaign=designshare&amp;amp;utm_medium=embeds&amp;amp;utm_source=link" target="_blank" rel="noopener">スライド&lt;/a>：カルロス・メンデス
&lt;div class="alert alert-note">
&lt;div>
AIポッドキャスト
（NotebookLMで作成）
&lt;/div>
&lt;/div>
&lt;iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/1939257887%3Fsecret_token%3Ds-oxNNkyMZQig&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true&amp;visual=true">&lt;/iframe>&lt;div style="font-size: 10px; color: #cccccc;line-break: anywhere;word-break: normal;overflow: hidden;white-space: nowrap;text-overflow: ellipsis; font-family: Interstate,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Garuda,Verdana,Tahoma,sans-serif;font-weight: 100;">&lt;a href="https://soundcloud.com/user-562952877" title="cmg777" target="_blank" style="color: #cccccc; text-decoration: none;">cmg777&lt;/a> · &lt;a href="https://soundcloud.com/user-562952877/mendez-2024-exploring-economic/s-oxNNkyMZQig" title="Mendez 2024 Exploring economic activity from outer space" target="_blank" style="color: #cccccc; text-decoration: none;">Mendez 2024 Exploring economic activity from outer space&lt;/a>&lt;/div></description></item></channel></rss>