Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save takahashi-r/86bf225db67f6478e629418d9dbf1f56 to your computer and use it in GitHub Desktop.
Save takahashi-r/86bf225db67f6478e629418d9dbf1f56 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"id": "36b73660",
"metadata": {},
"source": [
"本ノートブックはQiitaに投稿した「○○」の執筆に先立って制作したものです。定義等は「参考」に記載されている記事・書籍等から引用しております。\n",
"\n",
"\n",
"使用環境のバージョンは下記に記しています。"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "ab5b9331",
"metadata": {
"scrolled": true
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Julia Version 1.7.0\n",
"Commit 3bf9d17731 (2021-11-30 12:12 UTC)\n",
"Platform Info:\n",
" OS: Windows (x86_64-w64-mingw32)\n",
" CPU: Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz\n",
" WORD_SIZE: 64\n",
" LIBM: libopenlibm\n",
" LLVM: libLLVM-12.0.1 (ORCJIT, skylake)\n"
]
}
],
"source": [
"versioninfo()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "0d8dc4d2",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\ryuma takahashi\\.conda\\envs\\pymc_env\\lib\\inspect.py:469: FutureWarning: pandas.Float64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.\r\n",
" value = getattr(object, key)\r\n",
"C:\\Users\\ryuma takahashi\\.conda\\envs\\pymc_env\\lib\\inspect.py:469: FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.\r\n",
" value = getattr(object, key)\r\n",
"C:\\Users\\ryuma takahashi\\.conda\\envs\\pymc_env\\lib\\inspect.py:469: FutureWarning: pandas.UInt64Index is deprecated and will be removed from pandas in a future version. Use pandas.Index with the appropriate dtype instead.\r\n",
" value = getattr(object, key)\r\n"
]
}
],
"source": [
"using Plots\n",
"gr(fontfamily=\"IPAPGothic\") # 日本語\n",
"\n",
"using DataFrames\n",
"using GLM\n",
"using HypothesisTests\n",
"using Pandas: Pandas\n",
"using PyCall\n",
"@pyimport pandas as pd\n",
"using RCall\n",
"R\"\"\"Sys.setenv(LANG = \"en\")\"\"\" # おまじない\n",
"@rimport lmtest"
]
},
{
"cell_type": "markdown",
"id": "40388a3b",
"metadata": {},
"source": [
"# コブ・ダグラス生産関数"
]
},
{
"cell_type": "markdown",
"id": "b6616459",
"metadata": {},
"source": [
"Y: 生産額、K:資本額、L:労働投入量 \n",
"\n",
"$$ \n",
"\\begin{align}\n",
"Y = \\alpha K^\\beta L^\\gamma \\tag{1} \\\\\n",
"\\log{Y} = \\alpha' + \\beta \\log{K} + \\gamma \\log{L} \\tag{2} \n",
"\\end{align}\n",
"$$\n",
"\n",
"生産設備と労働投下量によって、生産額があらかた決まる"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "d8fcc9c4",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Y (generic function with 1 method)"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# 式(1)\n",
"Y( α, β, γ, K, L ) = α*K^β*L^γ"
]
},
{
"cell_type": "markdown",
"id": "4d8c9d63",
"metadata": {},
"source": [
"## 弾力性"
]
},
{
"cell_type": "markdown",
"id": "7d7b5e3c",
"metadata": {},
"source": [
"係数β、γは個々の生産要素が生産量Yに及ぼす「弾力性」という意味をもつ。 \n",
"これは例えば、係数βを考えたとすると、資本Kを1%増やしたときの生産量の増加%を表している。\n",
"\n",
"(1)より\n",
"$$ \n",
"\\begin{align}\n",
"\\frac{\\partial Y}{\\partial K} &= \\alpha \\beta K^{\\beta - 1} L^\\gamma \\\\\n",
"&= \\beta \\frac{\\alpha K^\\beta L^\\gamma}{K} \\\\\n",
"&= \\beta \\frac{Y}{K} \\\\\n",
"\\Rightarrow \\beta &= \\frac{\\partial Y}{\\partial K} \\frac{K}{Y} \\\\\n",
"&= \\frac{\\frac{\\partial Y}{Y}}{ \\frac{\\partial K}{K}}\n",
"\\end{align}\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "8e2edcf2",
"metadata": {},
"source": [
"## 収穫の不変性\n",
"\n",
"生産関数のインプットである資本と労働投入量を定数倍したときのアウトプットの増加倍数を問うのが「収穫の不変性」という\n",
"\n",
"コブ・ダグラス生産関数においてインプットをc倍してみる\n",
"\n",
"$$ \n",
"\\begin{align}\n",
"Y = \\alpha (cK)^\\beta (cL)^\\gamma = c^{\\beta + \\gamma} \\lbrace \\alpha K^\\beta L^\\gamma \\rbrace \\tag{3}\n",
"\\end{align}\n",
"$$\n",
"\n",
"$\\beta + \\gamma$ が1ならアウトプットも定数倍になる。このように資本と労働投入量をともにc倍したときに産出量が同じくc倍になることを「収穫不変」という。1以上なら「収穫逓増」、1以下なら「収穫逓減」となる。 \n",
"※製造業では収穫逓減が通常で、農業は収穫不変に近いとされる。通常収穫逓増は起こらないと考えられている。\n",
"\n",
"収穫不変が成立していれば式(2)は次のように書き直される\n",
"\n",
"$$ \n",
"\\begin{align}\n",
"\\log{Y} &= \\alpha' + \\beta \\log{K} + (1 - \\beta) \\log{L} \\tag{4} \\\\\n",
"\\log{Y/L} &= \\alpha' + \\beta \\log{K/L}\n",
"\\end{align}\n",
"$$"
]
},
{
"cell_type": "markdown",
"id": "2a962c96",
"metadata": {},
"source": [
"- 定数項は技術水準である"
]
},
{
"cell_type": "markdown",
"id": "18129893",
"metadata": {},
"source": [
"## 生産規模と収穫の関係\n",
"\n",
"さて、では無限に資本と労働をつぎ込めばうまくいくことはなさそうだ。→通常収穫逓増は起こらないと考えられている\n",
"\n",
"ここで、収穫不変の状態を考えて、資本と労働投入量の値を動かして、生産量がどんな変化をするのか見てみよう。簡単のために技術水準αは取り除いた。\n",
"\n",
"$$\n",
"\\begin{align}\n",
"MP_k &= \\beta K^{(\\beta-1)} L^{(1-\\beta)} \\tag{5} \\\\\n",
"MP_l &= (1 - \\beta) K^\\beta L^{-\\beta} \\tag{6} \\\\\n",
"\\end{align}\n",
"$$"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "e2bb2717",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"MPₗ (generic function with 1 method)"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# 生産関数を Y = K^β L^(1-β) とする. 資本:Kと労働投入量:Lでそれぞれ微分する\n",
"\n",
"# 資本の限界生産力 式(3)\n",
"MPₖ( β, K, L ) = Y( β, β-1, 1-β, K, L ) \n",
"# 労働投入量の限界生産力 式(4)\n",
"MPₗ( β, K, L ) = Y( 1-β, β, -β, K, L )"
]
},
{
"cell_type": "markdown",
"id": "d04ca381",
"metadata": {},
"source": [
"- 生産要素の投入量が増えるにつれて,限界生産力は逓減していくことがわかる→資本と労働投入量のバランスが大事だということ"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "fe0093a4",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip170\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip170)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip171\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip170)\" d=\"\n",
"M215.754 625.619 L2352.76 625.619 L2352.76 47.2441 L215.754 47.2441 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip172\">\n",
" <rect x=\"215\" y=\"47\" width=\"2138\" height=\"579\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 276.235,625.619 276.235,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 780.245,625.619 780.245,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1284.25,625.619 1284.25,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1788.26,625.619 1788.26,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2292.27,625.619 2292.27,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,625.619 2352.76,625.619 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 276.235,625.619 276.235,606.721 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 780.245,625.619 780.245,606.721 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1284.25,625.619 1284.25,606.721 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1788.26,625.619 1788.26,606.721 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2292.27,625.619 2292.27,606.721 \n",
" \"/>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 276.235, 687.468)\" x=\"276.235\" y=\"687.468\">0.00</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 780.245, 687.468)\" x=\"780.245\" y=\"687.468\">0.25</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1284.25, 687.468)\" x=\"1284.25\" y=\"687.468\">0.50</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1788.26, 687.468)\" x=\"1788.26\" y=\"687.468\">0.75</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2292.27, 687.468)\" x=\"2292.27\" y=\"687.468\">1.00</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1284.25, 771.48)\" x=\"1284.25\" y=\"771.48\">L: 労働投入量</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,609.25 2352.76,609.25 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,500.122 2352.76,500.122 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,390.995 2352.76,390.995 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,281.868 2352.76,281.868 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,172.74 2352.76,172.74 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,63.6132 2352.76,63.6132 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,625.619 215.754,47.2441 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,609.25 234.652,609.25 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,500.122 234.652,500.122 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,390.995 234.652,390.995 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,281.868 234.652,281.868 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,172.74 234.652,172.74 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,63.6132 234.652,63.6132 \n",
" \"/>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 626.75)\" x=\"146.301\" y=\"626.75\">0.0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 517.622)\" x=\"146.301\" y=\"517.622\">0.1</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 408.495)\" x=\"146.301\" y=\"408.495\">0.2</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 299.368)\" x=\"146.301\" y=\"299.368\">0.3</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 190.24)\" x=\"146.301\" y=\"190.24\">0.4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 81.1132)\" x=\"146.301\" y=\"81.1132\">0.5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 65.2861, 336.431)\" x=\"65.2861\" y=\"336.431\">Y: 生産額</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip172)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 276.235,609.25 296.599,554.411 316.963,531.696 337.327,514.266 357.691,499.572 378.055,486.627 398.419,474.923 418.784,464.16 439.148,454.143 459.512,444.734 \n",
" 479.876,435.835 500.24,427.371 520.604,419.283 540.968,411.526 561.332,404.063 581.696,396.861 602.06,389.895 622.424,383.145 642.788,376.589 663.152,370.214 \n",
" 683.516,364.004 703.88,357.948 724.244,352.034 744.608,346.253 764.972,340.597 785.336,335.057 805.7,329.627 826.064,324.3 846.428,319.071 866.792,313.935 \n",
" 887.156,308.887 907.52,303.922 927.884,299.036 948.248,294.226 968.612,289.489 988.976,284.82 1009.34,280.218 1029.7,275.68 1050.07,271.202 1070.43,266.783 \n",
" 1090.8,262.42 1111.16,258.112 1131.52,253.855 1151.89,249.649 1172.25,245.492 1192.62,241.382 1212.98,237.317 1233.34,233.296 1253.71,229.317 1274.07,225.38 \n",
" 1294.44,221.483 1314.8,217.624 1335.17,213.803 1355.53,210.019 1375.89,206.27 1396.26,202.556 1416.62,198.876 1436.99,195.228 1457.35,191.612 1477.71,188.027 \n",
" 1498.08,184.472 1518.44,180.947 1538.81,177.451 1559.17,173.982 1579.53,170.541 1599.9,167.127 1620.26,163.739 1640.63,160.377 1660.99,157.04 1681.35,153.727 \n",
" 1701.72,150.438 1722.08,147.172 1742.45,143.929 1762.81,140.709 1783.17,137.511 1803.54,134.334 1823.9,131.178 1844.27,128.044 1864.63,124.929 1884.99,121.834 \n",
" 1905.36,118.759 1925.72,115.703 1946.09,112.666 1966.45,109.647 1986.81,106.646 2007.18,103.663 2027.54,100.698 2047.91,97.7499 2068.27,94.8187 2088.63,91.904 \n",
" 2109,89.0057 2129.36,86.1234 2149.73,83.257 2170.09,80.406 2190.45,77.5704 2210.82,74.7498 2231.18,71.944 2251.55,69.1528 2271.91,66.3759 2292.27,63.6132 \n",
" \n",
" \"/>\n",
"<path clip-path=\"url(#clip170)\" d=\"\n",
"M1945.11 167.123 L2281.52 167.123 L2281.52 66.5232 L1945.11 66.5232 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1945.11,167.123 2281.52,167.123 2281.52,66.5232 1945.11,66.5232 1945.11,167.123 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1968.86,116.823 2111.33,116.823 \n",
" \"/>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2135.07, 134.323)\" x=\"2135.07\" y=\"134.323\">MPₖ</text>\n",
"</g>\n",
"<path clip-path=\"url(#clip170)\" d=\"\n",
"M215.754 1425.62 L2352.76 1425.62 L2352.76 847.244 L215.754 847.244 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip173\">\n",
" <rect x=\"215\" y=\"847\" width=\"2138\" height=\"579\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 276.235,1425.62 276.235,847.244 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 780.245,1425.62 780.245,847.244 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1284.25,1425.62 1284.25,847.244 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1788.26,1425.62 1788.26,847.244 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2292.27,1425.62 2292.27,847.244 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,1425.62 2352.76,1425.62 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 276.235,1425.62 276.235,1406.72 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 780.245,1425.62 780.245,1406.72 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1284.25,1425.62 1284.25,1406.72 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1788.26,1425.62 1788.26,1406.72 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2292.27,1425.62 2292.27,1406.72 \n",
" \"/>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 276.235, 1487.47)\" x=\"276.235\" y=\"1487.47\">0.00</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 780.245, 1487.47)\" x=\"780.245\" y=\"1487.47\">0.25</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1284.25, 1487.47)\" x=\"1284.25\" y=\"1487.47\">0.50</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1788.26, 1487.47)\" x=\"1788.26\" y=\"1487.47\">0.75</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2292.27, 1487.47)\" x=\"2292.27\" y=\"1487.47\">1.00</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(0, 1284.25, 1571.48)\" x=\"1284.25\" y=\"1571.48\">K: 資本</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,1409.25 2352.76,1409.25 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,1300.12 2352.76,1300.12 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,1190.99 2352.76,1190.99 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,1081.87 2352.76,1081.87 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,972.74 2352.76,972.74 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 215.754,863.613 2352.76,863.613 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,1425.62 215.754,847.244 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,1409.25 234.652,1409.25 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,1300.12 234.652,1300.12 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,1190.99 234.652,1190.99 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,1081.87 234.652,1081.87 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,972.74 234.652,972.74 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 215.754,863.613 234.652,863.613 \n",
" \"/>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 1426.75)\" x=\"146.301\" y=\"1426.75\">0.0</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 1317.62)\" x=\"146.301\" y=\"1317.62\">0.1</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 1208.49)\" x=\"146.301\" y=\"1208.49\">0.2</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 1099.37)\" x=\"146.301\" y=\"1099.37\">0.3</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 990.24)\" x=\"146.301\" y=\"990.24\">0.4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 146.301, 881.113)\" x=\"146.301\" y=\"881.113\">0.5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:66px; text-anchor:middle;\" transform=\"rotate(-90, 65.2861, 1136.43)\" x=\"65.2861\" y=\"1136.43\">Y: 生産額</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip173)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 276.235,1409.25 296.599,1354.41 316.963,1331.7 337.327,1314.27 357.691,1299.57 378.055,1286.63 398.419,1274.92 418.784,1264.16 439.148,1254.14 459.512,1244.73 \n",
" 479.876,1235.83 500.24,1227.37 520.604,1219.28 540.968,1211.53 561.332,1204.06 581.696,1196.86 602.06,1189.9 622.424,1183.14 642.788,1176.59 663.152,1170.21 \n",
" 683.516,1164 703.88,1157.95 724.244,1152.03 744.608,1146.25 764.972,1140.6 785.336,1135.06 805.7,1129.63 826.064,1124.3 846.428,1119.07 866.792,1113.94 \n",
" 887.156,1108.89 907.52,1103.92 927.884,1099.04 948.248,1094.23 968.612,1089.49 988.976,1084.82 1009.34,1080.22 1029.7,1075.68 1050.07,1071.2 1070.43,1066.78 \n",
" 1090.8,1062.42 1111.16,1058.11 1131.52,1053.86 1151.89,1049.65 1172.25,1045.49 1192.62,1041.38 1212.98,1037.32 1233.34,1033.3 1253.71,1029.32 1274.07,1025.38 \n",
" 1294.44,1021.48 1314.8,1017.62 1335.17,1013.8 1355.53,1010.02 1375.89,1006.27 1396.26,1002.56 1416.62,998.876 1436.99,995.228 1457.35,991.612 1477.71,988.027 \n",
" 1498.08,984.472 1518.44,980.947 1538.81,977.451 1559.17,973.982 1579.53,970.541 1599.9,967.127 1620.26,963.739 1640.63,960.377 1660.99,957.04 1681.35,953.727 \n",
" 1701.72,950.438 1722.08,947.172 1742.45,943.929 1762.81,940.709 1783.17,937.511 1803.54,934.334 1823.9,931.178 1844.27,928.044 1864.63,924.929 1884.99,921.834 \n",
" 1905.36,918.759 1925.72,915.703 1946.09,912.666 1966.45,909.647 1986.81,906.646 2007.18,903.663 2027.54,900.698 2047.91,897.75 2068.27,894.819 2088.63,891.904 \n",
" 2109,889.006 2129.36,886.123 2149.73,883.257 2170.09,880.406 2190.45,877.57 2210.82,874.75 2231.18,871.944 2251.55,869.153 2271.91,866.376 2292.27,863.613 \n",
" \n",
" \"/>\n",
"<path clip-path=\"url(#clip170)\" d=\"\n",
"M1945.11 967.123 L2281.52 967.123 L2281.52 866.523 L1945.11 866.523 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1945.11,967.123 2281.52,967.123 2281.52,866.523 1945.11,866.523 1945.11,967.123 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip170)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1968.86,916.823 2111.33,916.823 \n",
" \"/>\n",
"<g clip-path=\"url(#clip170)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 2135.07, 934.323)\" x=\"2135.07\" y=\"934.323\">MPₗ</text>\n",
"</g>\n",
"</svg>\n"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"xs = range(0, 1, 100)\n",
"\n",
"p1 = plot(xs, MPₖ.( 0.5, 1, xs ), xlabel=\"L: 労働投入量\", ylabel=\"Y: 生産額\", label=\"MPₖ\")\n",
"p2 = plot(xs, MPₗ.( 0.5, xs, 1 ), xlabel=\"K: 資本\", ylabel=\"Y: 生産額\", label=\"MPₗ\")\n",
"plot(p1, p2, layout=(2, 1))"
]
},
{
"cell_type": "markdown",
"id": "775a00c2",
"metadata": {},
"source": [
"## 製造業の生産関数を求める\n",
"\n",
"技術水準一定として生産関数を求める"
]
},
{
"cell_type": "markdown",
"id": "6d0820b4",
"metadata": {},
"source": [
"- [内閣府](https://www.cao.go.jp/)\n",
" - [製造業GDP.xlsx](https://www.esri.cao.go.jp/jp/sna/data/data_list/kakuhou/files/2020/tables/2020ffm1n_jp.xlsx)\n",
" - [就業者数.xlsx](https://www.esri.cao.go.jp/jp/sna/data/data_list/kakuhou/files/2020/tables/2020s3_jp.xlsx)\n",
" - [資本ストック.xlsx](https://www.esri.cao.go.jp/jp/sna/data/data_list/minkan/files/tables/h17/h26y_stock_all.xls) \n",
"\n",
"にある公開データを利用する。いずれのデータもすべて名目値を扱っている。"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "50f7b71c",
"metadata": {},
"outputs": [],
"source": [
"pydf = pd.read_csv(\"./製造業の生産関数.csv\");"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "f8f1b273",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"PyObject"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# julia上での型\n",
"typeof(pydf)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "d8701487",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"PyObject <class 'pandas.core.frame.DataFrame'>"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# python上での型\n",
"py\"type\"(pydf)"
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "6d3efda9",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div class=\"data-frame\"><p>21 rows × 5 columns</p><table class=\"data-frame\"><thead><tr><th></th><th>年次</th><th>製造業GDP(10億円)</th><th>就業者数(万人)</th><th>労働時間</th><th>資本ストック(10億円)</th></tr><tr><th></th><th title=\"Int64\">Int64</th><th title=\"Float64\">Float64</th><th title=\"Float64\">Float64</th><th title=\"Float64\">Float64</th><th title=\"Float64\">Float64</th></tr></thead><tbody><tr><th>1</th><td>1994</td><td>119908.0</td><td>1403.4</td><td>1961.3</td><td>3.06303e5</td></tr><tr><th>2</th><td>1995</td><td>1.22432e5</td><td>1363.8</td><td>1975.6</td><td>3.15492e5</td></tr><tr><th>3</th><td>1996</td><td>1.25114e5</td><td>1356.3</td><td>1975.2</td><td>3.22602e5</td></tr><tr><th>4</th><td>1997</td><td>1.2692e5</td><td>1334.3</td><td>1961.3</td><td>3.32636e5</td></tr><tr><th>5</th><td>1998</td><td>122518.0</td><td>1279.3</td><td>1939.3</td><td>3.41929e5</td></tr><tr><th>6</th><td>1999</td><td>1.18298e5</td><td>1248.0</td><td>1938.8</td><td>3.4479e5</td></tr><tr><th>7</th><td>2000</td><td>1.20213e5</td><td>1229.0</td><td>1944.6</td><td>3.49805e5</td></tr><tr><th>8</th><td>2001</td><td>1.12284e5</td><td>1185.2</td><td>1946.7</td><td>3.54669e5</td></tr><tr><th>9</th><td>2002</td><td>1.08644e5</td><td>1140.4</td><td>1961.3</td><td>3.52087e5</td></tr><tr><th>10</th><td>2003</td><td>1.09599e5</td><td>1123.6</td><td>1982.4</td><td>350463.0</td></tr><tr><th>11</th><td>2004</td><td>1.11813e5</td><td>1109.1</td><td>1992.0</td><td>3.53903e5</td></tr><tr><th>12</th><td>2005</td><td>1.14083e5</td><td>1096.5</td><td>1995.8</td><td>3.59879e5</td></tr><tr><th>13</th><td>2006</td><td>1.14523e5</td><td>1112.1</td><td>2003.3</td><td>369886.0</td></tr><tr><th>14</th><td>2007</td><td>1.17971e5</td><td>1117.1</td><td>1996.5</td><td>3.83308e5</td></tr><tr><th>15</th><td>2008</td><td>1.12289e5</td><td>1100.5</td><td>1926.5</td><td>3.94291e5</td></tr><tr><th>16</th><td>2009</td><td>94274.3</td><td>1029.9</td><td>1877.5</td><td>3.9625e5</td></tr><tr><th>17</th><td>2010</td><td>1.0498e5</td><td>1020.6</td><td>1944.0</td><td>4.00983e5</td></tr><tr><th>18</th><td>2011</td><td>97179.4</td><td>1024.8</td><td>1955.2</td><td>4.07542e5</td></tr><tr><th>19</th><td>2012</td><td>98426.9</td><td>1018.6</td><td>1946.2</td><td>4.12368e5</td></tr><tr><th>20</th><td>2013</td><td>98326.9</td><td>1032.1</td><td>1955.6</td><td>4.12936e5</td></tr><tr><th>21</th><td>2014</td><td>1.01654e5</td><td>1047.4</td><td>1955.6</td><td>416822.0</td></tr></tbody></table></div>"
],
"text/latex": [
"\\begin{tabular}{r|ccccc}\n",
"\t& 年次 & 製造業GDP(10億円) & 就業者数(万人) & 労働時間 & 資本ストック(10億円)\\\\\n",
"\t\\hline\n",
"\t& Int64 & Float64 & Float64 & Float64 & Float64\\\\\n",
"\t\\hline\n",
"\t1 & 1994 & 119908.0 & 1403.4 & 1961.3 & 3.06303e5 \\\\\n",
"\t2 & 1995 & 1.22432e5 & 1363.8 & 1975.6 & 3.15492e5 \\\\\n",
"\t3 & 1996 & 1.25114e5 & 1356.3 & 1975.2 & 3.22602e5 \\\\\n",
"\t4 & 1997 & 1.2692e5 & 1334.3 & 1961.3 & 3.32636e5 \\\\\n",
"\t5 & 1998 & 122518.0 & 1279.3 & 1939.3 & 3.41929e5 \\\\\n",
"\t6 & 1999 & 1.18298e5 & 1248.0 & 1938.8 & 3.4479e5 \\\\\n",
"\t7 & 2000 & 1.20213e5 & 1229.0 & 1944.6 & 3.49805e5 \\\\\n",
"\t8 & 2001 & 1.12284e5 & 1185.2 & 1946.7 & 3.54669e5 \\\\\n",
"\t9 & 2002 & 1.08644e5 & 1140.4 & 1961.3 & 3.52087e5 \\\\\n",
"\t10 & 2003 & 1.09599e5 & 1123.6 & 1982.4 & 350463.0 \\\\\n",
"\t11 & 2004 & 1.11813e5 & 1109.1 & 1992.0 & 3.53903e5 \\\\\n",
"\t12 & 2005 & 1.14083e5 & 1096.5 & 1995.8 & 3.59879e5 \\\\\n",
"\t13 & 2006 & 1.14523e5 & 1112.1 & 2003.3 & 369886.0 \\\\\n",
"\t14 & 2007 & 1.17971e5 & 1117.1 & 1996.5 & 3.83308e5 \\\\\n",
"\t15 & 2008 & 1.12289e5 & 1100.5 & 1926.5 & 3.94291e5 \\\\\n",
"\t16 & 2009 & 94274.3 & 1029.9 & 1877.5 & 3.9625e5 \\\\\n",
"\t17 & 2010 & 1.0498e5 & 1020.6 & 1944.0 & 4.00983e5 \\\\\n",
"\t18 & 2011 & 97179.4 & 1024.8 & 1955.2 & 4.07542e5 \\\\\n",
"\t19 & 2012 & 98426.9 & 1018.6 & 1946.2 & 4.12368e5 \\\\\n",
"\t20 & 2013 & 98326.9 & 1032.1 & 1955.6 & 4.12936e5 \\\\\n",
"\t21 & 2014 & 1.01654e5 & 1047.4 & 1955.6 & 416822.0 \\\\\n",
"\\end{tabular}\n"
],
"text/plain": [
"\u001b[1m21×5 DataFrame\u001b[0m\n",
"\u001b[1m Row \u001b[0m│\u001b[1m 年次 \u001b[0m\u001b[1m 製造業GDP(10億円) \u001b[0m\u001b[1m 就業者数(万人) \u001b[0m\u001b[1m 労働時間 \u001b[0m\u001b[1m 資本ストック(10億円\u001b[0m ⋯\n",
"\u001b[1m \u001b[0m│\u001b[90m Int64 \u001b[0m\u001b[90m Float64 \u001b[0m\u001b[90m Float64 \u001b[0m\u001b[90m Float64 \u001b[0m\u001b[90m Float64 \u001b[0m ⋯\n",
"─────┼──────────────────────────────────────────────────────────────────────────\n",
" 1 │ 1994 119908.0 1403.4 1961.3 3.06303e ⋯\n",
" 2 │ 1995 1.22432e5 1363.8 1975.6 3.15492e\n",
" 3 │ 1996 1.25114e5 1356.3 1975.2 3.22602e\n",
" 4 │ 1997 1.2692e5 1334.3 1961.3 3.32636e\n",
" 5 │ 1998 122518.0 1279.3 1939.3 3.41929e ⋯\n",
" 6 │ 1999 1.18298e5 1248.0 1938.8 3.4479e5\n",
" 7 │ 2000 1.20213e5 1229.0 1944.6 3.49805e\n",
" 8 │ 2001 1.12284e5 1185.2 1946.7 3.54669e\n",
" 9 │ 2002 1.08644e5 1140.4 1961.3 3.52087e ⋯\n",
" 10 │ 2003 1.09599e5 1123.6 1982.4 350463.0\n",
" 11 │ 2004 1.11813e5 1109.1 1992.0 3.53903e\n",
" 12 │ 2005 1.14083e5 1096.5 1995.8 3.59879e\n",
" 13 │ 2006 1.14523e5 1112.1 2003.3 369886.0 ⋯\n",
" 14 │ 2007 1.17971e5 1117.1 1996.5 3.83308e\n",
" 15 │ 2008 1.12289e5 1100.5 1926.5 3.94291e\n",
" 16 │ 2009 94274.3 1029.9 1877.5 3.9625e5\n",
" 17 │ 2010 1.0498e5 1020.6 1944.0 4.00983e ⋯\n",
" 18 │ 2011 97179.4 1024.8 1955.2 4.07542e\n",
" 19 │ 2012 98426.9 1018.6 1946.2 4.12368e\n",
" 20 │ 2013 98326.9 1032.1 1955.6 4.12936e\n",
" 21 │ 2014 1.01654e5 1047.4 1955.6 416822.0 ⋯\n",
"\u001b[36m 1 column omitted\u001b[0m"
]
},
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# py to jl\n",
"jldf = DataFrame(Pandas.DataFrame(pydf))"
]
},
{
"cell_type": "code",
"execution_count": 10,
"id": "fa9c467f",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"DataFrame"
]
},
"execution_count": 10,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"typeof(jldf)"
]
},
{
"cell_type": "code",
"execution_count": 11,
"id": "8f542a47",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip210\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip210)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip211\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip210)\" d=\"\n",
"M310.802 687.475 L1152.76 687.475 L1152.76 121.675 L310.802 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip212\">\n",
" <rect x=\"310\" y=\"121\" width=\"843\" height=\"567\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 374.346,687.475 374.346,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 572.92,687.475 572.92,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 771.494,687.475 771.494,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 970.068,687.475 970.068,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,687.475 1152.76,687.475 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 374.346,687.475 374.346,668.577 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 572.92,687.475 572.92,668.577 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 771.494,687.475 771.494,668.577 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 970.068,687.475 970.068,668.577 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 374.346, 749.325)\" x=\"374.346\" y=\"749.325\">1995</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 572.92, 749.325)\" x=\"572.92\" y=\"749.325\">2000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 771.494, 749.325)\" x=\"771.494\" y=\"749.325\">2005</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 970.068, 749.325)\" x=\"970.068\" y=\"749.325\">2010</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,659.596 1152.76,659.596 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,577.845 1152.76,577.845 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,496.094 1152.76,496.094 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,414.343 1152.76,414.343 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,332.591 1152.76,332.591 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,250.84 1152.76,250.84 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,169.089 1152.76,169.089 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,687.475 310.802,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,659.596 329.699,659.596 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,577.845 329.699,577.845 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,496.094 329.699,496.094 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,414.343 329.699,414.343 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,332.591 329.699,332.591 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,250.84 329.699,250.84 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,169.089 329.699,169.089 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 683.324)\" x=\"50.9921\" y=\"683.324\">9.500×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 655.913)\" x=\"253.057\" y=\"655.913\">4</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 601.573)\" x=\"50.9921\" y=\"601.573\">1.000×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 574.162)\" x=\"253.057\" y=\"574.162\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 519.821)\" x=\"50.9921\" y=\"519.821\">1.050×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 492.411)\" x=\"253.057\" y=\"492.411\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 438.07)\" x=\"50.9921\" y=\"438.07\">1.100×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 410.66)\" x=\"253.057\" y=\"410.66\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 356.319)\" x=\"50.9921\" y=\"356.319\">1.150×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 328.909)\" x=\"253.057\" y=\"328.909\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 274.568)\" x=\"50.9921\" y=\"274.568\">1.200×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 247.157)\" x=\"253.057\" y=\"247.157\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 50.9921, 192.817)\" x=\"50.9921\" y=\"192.817\">1.250×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 253.057, 165.406)\" x=\"253.057\" y=\"165.406\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 731.779, 73.2)\" x=\"731.779\" y=\"73.2\">製造業GDP(10億円)</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip212)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 334.631,252.344 374.346,211.078 414.06,167.233 453.775,137.688 493.49,209.67 533.205,278.676 572.92,247.356 612.634,377.002 652.349,436.51 692.064,420.896 \n",
" 731.779,384.706 771.494,347.588 811.208,340.397 850.923,284.021 890.638,376.91 930.353,671.462 970.068,496.429 1009.78,623.962 1049.5,603.566 1089.21,605.201 \n",
" 1128.93,550.805 \n",
" \"/>\n",
"<path clip-path=\"url(#clip210)\" d=\"\n",
"M1510.8 687.475 L2352.76 687.475 L2352.76 121.675 L1510.8 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip213\">\n",
" <rect x=\"1510\" y=\"121\" width=\"843\" height=\"567\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1574.35,687.475 1574.35,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1772.92,687.475 1772.92,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1971.49,687.475 1971.49,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2170.07,687.475 2170.07,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,687.475 2352.76,687.475 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1574.35,687.475 1574.35,668.577 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1772.92,687.475 1772.92,668.577 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1971.49,687.475 1971.49,668.577 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2170.07,687.475 2170.07,668.577 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1574.35, 749.325)\" x=\"1574.35\" y=\"749.325\">1995</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1772.92, 749.325)\" x=\"1772.92\" y=\"749.325\">2000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1971.49, 749.325)\" x=\"1971.49\" y=\"749.325\">2005</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2170.07, 749.325)\" x=\"2170.07\" y=\"749.325\">2010</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,558.548 2352.76,558.548 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,419.834 2352.76,419.834 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,281.119 2352.76,281.119 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,142.405 2352.76,142.405 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,687.475 1510.8,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,558.548 1529.7,558.548 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,419.834 1529.7,419.834 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,281.119 1529.7,281.119 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,142.405 1529.7,142.405 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1421.28, 576.048)\" x=\"1421.28\" y=\"576.048\">1100</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1421.28, 437.334)\" x=\"1421.28\" y=\"437.334\">1200</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1421.28, 298.619)\" x=\"1421.28\" y=\"298.619\">1300</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1421.28, 159.905)\" x=\"1421.28\" y=\"159.905\">1400</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1931.78, 73.2)\" x=\"1931.78\" y=\"73.2\">就業者数(万人)</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip213)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1534.63,137.688 1574.35,192.619 1614.06,203.023 1653.78,233.54 1693.49,309.833 1733.2,353.251 1772.92,379.606 1812.63,440.363 1852.35,502.507 1892.06,525.811 \n",
" 1931.78,545.925 1971.49,563.403 2011.21,541.764 2050.92,534.828 2090.64,557.854 2130.35,655.787 2170.07,668.687 2209.78,662.861 2249.5,671.462 2289.21,652.735 \n",
" 2328.93,631.512 \n",
" \"/>\n",
"<path clip-path=\"url(#clip210)\" d=\"\n",
"M310.802 1487.47 L1152.76 1487.47 L1152.76 921.675 L310.802 921.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip214\">\n",
" <rect x=\"310\" y=\"921\" width=\"843\" height=\"567\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 374.346,1487.47 374.346,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 572.92,1487.47 572.92,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 771.494,1487.47 771.494,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 970.068,1487.47 970.068,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,1487.47 1152.76,1487.47 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 374.346,1487.47 374.346,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 572.92,1487.47 572.92,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 771.494,1487.47 771.494,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 970.068,1487.47 970.068,1468.58 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 374.346, 1549.32)\" x=\"374.346\" y=\"1549.32\">1995</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 572.92, 1549.32)\" x=\"572.92\" y=\"1549.32\">2000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 771.494, 1549.32)\" x=\"771.494\" y=\"1549.32\">2005</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 970.068, 1549.32)\" x=\"970.068\" y=\"1549.32\">2010</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,1418.42 1152.76,1418.42 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,1291.13 1152.76,1291.13 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,1163.84 1152.76,1163.84 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 310.802,1036.55 1152.76,1036.55 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,1487.47 310.802,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,1418.42 329.699,1418.42 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,1291.13 329.699,1291.13 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,1163.84 329.699,1163.84 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 310.802,1036.55 329.699,1036.55 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 221.277, 1435.92)\" x=\"221.277\" y=\"1435.92\">1890</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 221.277, 1308.63)\" x=\"221.277\" y=\"1308.63\">1920</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 221.277, 1181.34)\" x=\"221.277\" y=\"1181.34\">1950</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 221.277, 1054.05)\" x=\"221.277\" y=\"1054.05\">1980</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 731.779, 873.2)\" x=\"731.779\" y=\"873.2\">労働時間</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip214)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 334.631,1115.9 374.346,1055.22 414.06,1056.92 453.775,1115.9 493.49,1209.24 533.205,1211.36 572.92,1186.75 612.634,1177.84 652.349,1115.9 692.064,1026.37 \n",
" 731.779,985.635 771.494,969.511 811.208,937.688 850.923,966.541 890.638,1263.55 930.353,1471.46 970.068,1189.3 1009.78,1141.78 1049.5,1179.97 1089.21,1140.08 \n",
" 1128.93,1140.08 \n",
" \"/>\n",
"<path clip-path=\"url(#clip210)\" d=\"\n",
"M1510.8 1487.47 L2352.76 1487.47 L2352.76 921.675 L1510.8 921.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip215\">\n",
" <rect x=\"1510\" y=\"921\" width=\"843\" height=\"567\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1574.35,1487.47 1574.35,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1772.92,1487.47 1772.92,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1971.49,1487.47 1971.49,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2170.07,1487.47 2170.07,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,1487.47 2352.76,1487.47 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1574.35,1487.47 1574.35,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1772.92,1487.47 1772.92,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1971.49,1487.47 1971.49,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2170.07,1487.47 2170.07,1468.58 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1574.35, 1549.32)\" x=\"1574.35\" y=\"1549.32\">1995</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1772.92, 1549.32)\" x=\"1772.92\" y=\"1549.32\">2000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1971.49, 1549.32)\" x=\"1971.49\" y=\"1549.32\">2005</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2170.07, 1549.32)\" x=\"2170.07\" y=\"1549.32\">2010</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,1381.16 2352.76,1381.16 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,1260.42 2352.76,1260.42 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,1139.68 2352.76,1139.68 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1510.8,1018.93 2352.76,1018.93 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,1487.47 1510.8,921.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,1381.16 1529.7,1381.16 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,1260.42 1529.7,1260.42 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,1139.68 1529.7,1139.68 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip210)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1510.8,1018.93 1529.7,1018.93 \n",
" \"/>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1250.99, 1404.89)\" x=\"1250.99\" y=\"1404.89\">3.250×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 1453.06, 1377.48)\" x=\"1453.06\" y=\"1377.48\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1250.99, 1284.14)\" x=\"1250.99\" y=\"1284.14\">3.500×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 1453.06, 1256.73)\" x=\"1453.06\" y=\"1256.73\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1250.99, 1163.4)\" x=\"1250.99\" y=\"1163.4\">3.750×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 1453.06, 1135.99)\" x=\"1453.06\" y=\"1135.99\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:start;\" transform=\"rotate(0, 1250.99, 1042.66)\" x=\"1250.99\" y=\"1042.66\">4.000×10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:38px; text-anchor:start;\" transform=\"rotate(0, 1453.06, 1015.25)\" x=\"1453.06\" y=\"1015.25\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip210)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1931.78, 873.2)\" x=\"1931.78\" y=\"873.2\">資本ストック(10億円)</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip215)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1534.63,1471.46 1574.35,1427.08 1614.06,1392.74 1653.78,1344.28 1693.49,1299.4 1733.2,1285.58 1772.92,1261.36 1812.63,1237.87 1852.35,1250.34 1892.06,1258.18 \n",
" 1931.78,1241.57 1971.49,1212.7 2011.21,1164.37 2050.92,1099.55 2090.64,1046.5 2130.35,1037.05 2170.07,1014.19 2209.78,982.508 2249.5,959.201 2289.21,956.455 \n",
" 2328.93,937.688 \n",
" \"/>\n",
"</svg>\n"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ps = []\n",
"for col in names(jldf)[2:end]\n",
" push!(ps, plot(jldf[!, \"年次\"], jldf[!, col], title=\"$col\", label=false))\n",
"end\n",
"plot(ps...)"
]
},
{
"cell_type": "code",
"execution_count": 12,
"id": "0b9b42b5",
"metadata": {},
"outputs": [],
"source": [
"# カラム名の変更 単位が邪魔くさい\n",
"rename!(jldf, Symbol(\"製造業GDP(10億円)\") => :製造業GDP);\n",
"rename!(jldf, Symbol(\"就業者数(万人)\") => :就業者数);\n",
"rename!(jldf, Symbol(\"資本ストック(10億円)\") => :資本ストック);"
]
},
{
"cell_type": "markdown",
"id": "b5bf8e79",
"metadata": {},
"source": [
"係数推定値を確認する。 \n",
"β: 0.857002, γ: 0.154591, β+γ: 1.011593 \n",
"β+γ > 1 ではあるので、収穫逓増である。ただ、+0.011593がどれほどの差になるかはよくわからない。ただ、今回使用したデータでは収穫逓減にはなっていないことがわかった。\n",
"\n",
"係数推定値を弾力性で見ると、1%労働投入量を増やせば生産量が85%増え、1%資本を増やせば生産量が15%増えるということになる。"
]
},
{
"cell_type": "code",
"execution_count": 13,
"id": "2a4ec72b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"StatsModels.TableRegressionModel{LinearModel{GLM.LmResp{Vector{Float64}}, GLM.DensePredChol{Float64, LinearAlgebra.CholeskyPivoted{Float64, Matrix{Float64}}}}, Matrix{Float64}}\n",
"\n",
":(log(製造業GDP)) ~ 1 + :(log(就業者数 * 労働時間)) + :(log(資本ストック))\n",
"\n",
"Coefficients:\n",
"───────────────────────────────────────────────────────────────────────────────\n",
" Coef. Std. Error t Pr(>|t|) Lower 95% Upper 95%\n",
"───────────────────────────────────────────────────────────────────────────────\n",
"(Intercept) -2.89628 7.44976 -0.39 0.7020 -18.5477 12.7551\n",
"log(就業者数 * 労働時間) 0.857002 0.254899 3.36 0.0035 0.32148 1.39252\n",
"log(資本ストック) 0.154591 0.298641 0.52 0.6110 -0.472831 0.782012\n",
"───────────────────────────────────────────────────────────────────────────────"
]
},
"execution_count": 13,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"ols = lm(\n",
" @formula(log(製造業GDP) ~ log(就業者数*労働時間) + log(資本ストック)),\n",
" jldf\n",
")"
]
},
{
"cell_type": "code",
"execution_count": 14,
"id": "e4a446b8",
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n",
"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" width=\"600\" height=\"400\" viewBox=\"0 0 2400 1600\">\n",
"<defs>\n",
" <clipPath id=\"clip250\">\n",
" <rect x=\"0\" y=\"0\" width=\"2400\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip250)\" d=\"\n",
"M0 1600 L2400 1600 L2400 0 L0 0 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip251\">\n",
" <rect x=\"480\" y=\"0\" width=\"1681\" height=\"1600\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<path clip-path=\"url(#clip250)\" d=\"\n",
"M234.185 1487.47 L2352.76 1487.47 L2352.76 121.675 L234.185 121.675 Z\n",
" \" fill=\"#ffffff\" fill-rule=\"evenodd\" fill-opacity=\"1\"/>\n",
"<defs>\n",
" <clipPath id=\"clip252\">\n",
" <rect x=\"234\" y=\"121\" width=\"2120\" height=\"1367\"/>\n",
" </clipPath>\n",
"</defs>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 693.875,1487.47 693.875,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1193.54,1487.47 1193.54,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 1693.2,1487.47 1693.2,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 2192.86,1487.47 2192.86,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,1487.47 2352.76,1487.47 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 693.875,1487.47 693.875,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1193.54,1487.47 1193.54,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 1693.2,1487.47 1693.2,1468.58 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 2192.86,1487.47 2192.86,1468.58 \n",
" \"/>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 693.875, 1549.32)\" x=\"693.875\" y=\"1549.32\">5</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1193.54, 1549.32)\" x=\"1193.54\" y=\"1549.32\">10</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 1693.2, 1549.32)\" x=\"1693.2\" y=\"1549.32\">15</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 2192.86, 1549.32)\" x=\"2192.86\" y=\"1549.32\">20</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 234.185,1252.35 2352.76,1252.35 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 234.185,1003.28 2352.76,1003.28 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 234.185,754.214 2352.76,754.214 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 234.185,505.148 2352.76,505.148 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:2; stroke-opacity:0.1; fill:none\" points=\"\n",
" 234.185,256.082 2352.76,256.082 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,1487.47 234.185,121.675 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,1252.35 253.083,1252.35 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,1003.28 253.083,1003.28 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,754.214 253.083,754.214 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,505.148 253.083,505.148 \n",
" \"/>\n",
"<polyline clip-path=\"url(#clip250)\" style=\"stroke:#000000; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 234.185,256.082 253.083,256.082 \n",
" \"/>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 124.589, 1269.85)\" x=\"124.589\" y=\"1269.85\">−0.050</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 124.589, 1020.78)\" x=\"124.589\" y=\"1020.78\">−0.025</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 137.97, 771.714)\" x=\"137.97\" y=\"771.714\">0.000</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 137.97, 522.648)\" x=\"137.97\" y=\"522.648\">0.025</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:48px; text-anchor:middle;\" transform=\"rotate(0, 137.97, 273.582)\" x=\"137.97\" y=\"273.582\">0.050</text>\n",
"</g>\n",
"<g clip-path=\"url(#clip250)\">\n",
"<text style=\"fill:#000000; fill-opacity:1; font-family:Arial,Helvetica Neue,Helvetica,sans-serif; font-size:84px; text-anchor:middle;\" transform=\"rotate(0, 1293.47, 73.2)\" x=\"1293.47\" y=\"73.2\">残差</text>\n",
"</g>\n",
"<polyline clip-path=\"url(#clip252)\" style=\"stroke:#009af9; stroke-linecap:butt; stroke-linejoin:round; stroke-width:4; stroke-opacity:1; fill:none\" points=\"\n",
" 294.145,1448.82 394.077,1104.47 494.01,874.122 593.942,578.51 693.875,516.951 793.807,665.329 893.74,422.058 993.673,822.516 1093.61,874.35 1193.54,744.686 \n",
" 1293.47,490.881 1393.4,235.142 1493.34,391.688 1593.27,160.33 1693.2,263.002 1793.13,1226.74 1893.07,393.215 1993,1271.5 2092.93,1071.34 2192.86,1237.15 \n",
" 2292.8,1045.7 \n",
" \"/>\n",
"</svg>\n"
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"plot(residuals(ols), title=\"残差\", legend=false)"
]
},
{
"cell_type": "markdown",
"id": "0e4bad6a",
"metadata": {},
"source": [
"## DW検定"
]
},
{
"cell_type": "markdown",
"id": "214a09ae",
"metadata": {},
"source": [
"回帰分析後の残差の自己相関を確認する。自己相関がある場合GLSを用いて推定を行わなければならない→自己相関なし"
]
},
{
"cell_type": "code",
"execution_count": 15,
"id": "9cd200d5",
"metadata": {
"scrolled": true
},
"outputs": [
{
"data": {
"text/plain": [
"RObject{ClosSxp}\n",
"function (formula, order.by = NULL, alternative = c(\"greater\", \n",
" \"two.sided\", \"less\"), iterations = 15, exact = NULL, \n",
" tol = 1e-10, data = list()) \n",
"{\n",
" dname <- paste(deparse(substitute(formula)))\n",
" alternative <- match.arg(alternative)\n",
" if (!inherits(formula, \"formula\")) {\n",
" if (!is.null(w <- weights(formula))) {\n",
" if (!isTRUE(all.equal(as.vector(w), rep(1L, length(w))))) \n",
" stop(\"weighted regressions are not supported\")\n",
" }\n",
" X <- if (is.matrix(formula$x)) \n",
" formula$x\n",
" else model.matrix(terms(formula), model.frame(formula))\n",
" y <- if (is.vector(formula$y)) \n",
" formula$y\n",
" else model.response(model.frame(formula))\n",
" }\n",
" else {\n",
" mf <- model.frame(formula, data = data)\n",
" y <- model.response(mf)\n",
" X <- model.matrix(formula, data = data)\n",
" }\n",
" if (!is.null(order.by)) {\n",
" if (inherits(order.by, \"formula\")) {\n",
" z <- model.matrix(order.by, data = data)\n",
" z <- as.vector(z[, ncol(z)])\n",
" }\n",
" else {\n",
" z <- order.by\n",
" }\n",
" X <- as.matrix(X[order(z), ])\n",
" y <- y[order(z)]\n",
" }\n",
" n <- nrow(X)\n",
" if (is.null(exact)) \n",
" exact <- (n < 100)\n",
" k <- ncol(X)\n",
" res <- lm.fit(X, y)$residuals\n",
" dw <- sum(diff(res)^2)/sum(res^2)\n",
" Q1 <- chol2inv(qr.R(qr(X)))\n",
" if (n < 3) {\n",
" warning(\"not enough observations for computing a p value, set to 1\")\n",
" pval <- 1\n",
" }\n",
" else {\n",
" if (exact) {\n",
" A <- diag(c(1, rep(2, n - 2), 1))\n",
" A[abs(row(A) - col(A)) == 1] <- -1\n",
" MA <- diag(rep(1, n)) - X %*% Q1 %*% t(X)\n",
" MA <- MA %*% A\n",
" ev <- eigen(MA)$values[1:(n - k)]\n",
" if (any(Im(ev) > tol)) \n",
" warning(\"imaginary parts of eigenvalues discarded\")\n",
" ev <- Re(ev)\n",
" ev <- ev[ev > tol]\n",
" pdw <- function(dw) .Fortran(\"pan\", as.double(c(dw, \n",
" ev)), as.integer(length(ev)), as.double(0), as.integer(iterations), \n",
" x = double(1), PACKAGE = \"lmtest\")$x\n",
" pval <- switch(alternative, two.sided = (2 * min(pdw(dw), \n",
" 1 - pdw(dw))), less = (1 - pdw(dw)), greater = pdw(dw))\n",
" if (is.na(pval) || ((pval > 1) | (pval < 0))) {\n",
" warning(\"exact p value cannot be computed (not in [0,1]), approximate p value will be used\")\n",
" exact <- FALSE\n",
" }\n",
" }\n",
" if (!exact) {\n",
" if (n < max(5, k)) {\n",
" warning(\"not enough observations for computing an approximate p value, set to 1\")\n",
" pval <- 1\n",
" }\n",
" else {\n",
" AX <- matrix(as.vector(filter(X, c(-1, 2, -1))), \n",
" ncol = k)\n",
" AX[1, ] <- X[1, ] - X[2, ]\n",
" AX[n, ] <- X[n, ] - X[(n - 1), ]\n",
" XAXQ <- t(X) %*% AX %*% Q1\n",
" P <- 2 * (n - 1) - sum(diag(XAXQ))\n",
" Q <- 2 * (3 * n - 4) - 2 * sum(diag(crossprod(AX) %*% \n",
" Q1)) + sum(diag(XAXQ %*% XAXQ))\n",
" dmean <- P/(n - k)\n",
" dvar <- 2/((n - k) * (n - k + 2)) * (Q - P * \n",
" dmean)\n",
" pval <- switch(alternative, two.sided = (2 * \n",
" pnorm(abs(dw - dmean), sd = sqrt(dvar), lower.tail = FALSE)), \n",
" less = pnorm(dw, mean = dmean, sd = sqrt(dvar), \n",
" lower.tail = FALSE), greater = pnorm(dw, \n",
" mean = dmean, sd = sqrt(dvar)))\n",
" }\n",
" }\n",
" }\n",
" alternative <- switch(alternative, two.sided = \"true autocorrelation is not 0\", \n",
" less = \"true autocorrelation is less than 0\", greater = \"true autocorrelation is greater than 0\")\n",
" names(dw) <- \"DW\"\n",
" RVAL <- list(statistic = dw, method = \"Durbin-Watson test\", \n",
" alternative = alternative, p.value = pval, data.name = dname)\n",
" class(RVAL) <- \"htest\"\n",
" return(RVAL)\n",
"}\n",
"<bytecode: 0x0000000097558ad8>\n",
"<environment: namespace:lmtest>\n"
]
},
"execution_count": 15,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# formulaじゃないとだめなのか、、、\n",
"lmtest.dwtest"
]
},
{
"cell_type": "code",
"execution_count": 16,
"id": "9615e124",
"metadata": {},
"outputs": [],
"source": [
"# 説明変数の行列\n",
"X = hcat(Matrix(jldf)[:,3] .* Matrix(jldf)[:,4], Matrix(jldf)[:,end]);"
]
},
{
"cell_type": "markdown",
"id": "d44fc676",
"metadata": {},
"source": [
"[【docs】HypothesisTests.jl > Time series tests > Durbin-Watson test](https://juliastats.org/HypothesisTests.jl/stable/time_series/#HypothesisTests.DurbinWatsonTest)"
]
},
{
"cell_type": "code",
"execution_count": 17,
"id": "044d1b3e",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Durbin-Watson autocorrelation test\n",
"----------------------------------\n",
"Population details:\n",
" parameter of interest: sample autocorrelation parameter\n",
" value under h_0: \"0\"\n",
" point estimate: 0.450282\n",
"\n",
"Test summary:\n",
" outcome with 95% confidence: reject h_0\n",
" two-sided p-value: 0.0127\n",
"\n",
"Details:\n",
" number of observations: 21\n",
" DW statistic: 1.09944\n"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"DurbinWatsonTest(X, residuals(ols), p_compute=:exact)"
]
},
{
"cell_type": "markdown",
"id": "a7c35707",
"metadata": {},
"source": [
"# 参考\n",
"- [基礎コース 計量経済学 森棟 広夫](amazon.co.jp/基礎コース-計量経済学-基礎コース経済学-森棟-公夫/dp/4883840816)\n",
"- [なぜ生産関数はCobb-Douglas型\n",
"になるのか?\n",
"ー実データによる生産関数の直接観測-](http://www2.kanazawa-gu.ac.jp/~ishikawa/20190914_,meiji.pdf)\n",
"- [「生産者行動の理論」のポイント](http://www2.toyo.ac.jp/~kawano/lec-semi/mat/mic3.pdf)\n",
"- [生産関数と潜在GDP](http://www2.toyo.ac.jp/~mihira/keizaitoukei2014/08_production/08_production_slides.pdf)\n",
"\n",
"\n",
"\n",
"- [terasakisatoshi/Pandas.jl_example.ipynb Gist](https://gist.github.com/terasakisatoshi/23b7b69af2893691a992fb7263e185c9)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "784d2db1",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Julia 1.7.0",
"language": "julia",
"name": "julia-1.7"
},
"language_info": {
"file_extension": ".jl",
"mimetype": "application/julia",
"name": "julia",
"version": "1.7.0"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": true
}
},
"nbformat": 4,
"nbformat_minor": 5
}
年次 製造業GDP(10億円) 就業者数(万人) 労働時間 資本ストック(10億円)
1994 119908 1403.4 1961.3 306302.677
1995 122431.9 1363.8 1975.6 315492.465
1996 125113.5 1356.3 1975.2 322602.08
1997 126920.5 1334.3 1961.3 332635.868
1998 122518 1279.3 1939.3 341929.404
1999 118297.5 1248 1938.8 344789.539
2000 120213.1 1229 1944.6 349805.344
2001 112283.8 1185.2 1946.7 354668.893
2002 108644.2 1140.4 1961.3 352087.06
2003 109599.2 1123.6 1982.4 350462.978
2004 111812.6 1109.1 1992 353902.75
2005 114082.8 1096.5 1995.8 359879.447
2006 114522.6 1112.1 2003.3 369886.017
2007 117970.6 1117.1 1996.5 383308.096
2008 112289.4 1100.5 1926.5 394291.39
2009 94274.3 1029.9 1877.5 396249.684
2010 104979.5 1020.6 1944 400983.145
2011 97179.4 1024.8 1955.2 407542.074
2012 98426.9 1018.6 1946.2 412367.725
2013 98326.9 1032.1 1955.6 412936.362
2014 101653.8 1047.4 1955.6 416822.02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment