{"id":1149,"date":"2023-07-27T12:04:19","date_gmt":"2023-07-27T12:04:19","guid":{"rendered":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/"},"modified":"2023-07-27T12:04:19","modified_gmt":"2023-07-27T12:04:19","slug":"python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0","status":"publish","type":"post","link":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/","title":{"rendered":"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/ja\/\u7dda\u5f62\u56de\u5e30-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5358\u7d14\u7dda\u5f62\u56de\u5e30\u306f\u3001<\/a>\u5358\u4e00\u306e<a href=\"https:\/\/statorials.org\/ja\/\u5909\u6570\u306e\u8aac\u660e\u5fdc\u7b54\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u8aac\u660e\u5909\u6570<\/a>\u3068\u5358\u4e00\u306e<a href=\"https:\/\/statorials.org\/ja\/\u5909\u6570\u306e\u8aac\u660e\u5fdc\u7b54\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5fdc\u7b54\u5909\u6570<\/a>\u306e\u9593\u306e\u95a2\u4fc2\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u624b\u6cd5\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u624b\u6cd5\u306f\u3001\u30c7\u30fc\u30bf\u306b\u6700\u3082\u3088\u304f\u300c\u9069\u5408\u300d\u3059\u308b\u7dda\u3092\u898b\u3064\u3051\u3001\u6b21\u306e\u5f62\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\u0177 = b <sub>0<\/sub> + b <sub>1<\/sub> x<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u91d1\uff1a<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>\u0177<\/strong> : \u63a8\u5b9a\u5fdc\u7b54\u5024<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>b <sub>0<\/sub><\/strong> : \u56de\u5e30\u76f4\u7dda\u306e\u539f\u70b9<\/span><\/li>\n<li><span style=\"color: #000000;\"><strong>b <sub>1<\/sub><\/strong> : \u56de\u5e30\u76f4\u7dda\u306e\u50be\u304d<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u3053\u306e\u65b9\u7a0b\u5f0f\u306f\u3001\u8aac\u660e\u5909\u6570\u3068\u5fdc\u7b54\u5909\u6570\u306e\u95a2\u4fc2\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u3001(\u7d71\u8a08\u7684\u306b\u6709\u610f\u3067\u3042\u308b\u3068\u4eee\u5b9a\u3057\u3066) \u8aac\u660e\u5909\u6570\u306e\u5024\u306b\u57fa\u3065\u3044\u3066\u5fdc\u7b54\u5909\u6570\u306e\u5024\u3092\u4e88\u6e2c\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><b>\u30b9\u30c6\u30c3\u30d7 1: \u30c7\u30fc\u30bf\u3092\u30ed\u30fc\u30c9\u3059\u308b<\/b><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u3053\u306e\u4f8b\u3067\u306f\u300115 \u4eba\u306e\u751f\u5f92\u306b\u5bfe\u3057\u3066\u6b21\u306e 2 \u3064\u306e\u5909\u6570\u3092\u542b\u3080\u507d\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/span><\/p>\n<ul>\n<li><span style=\"color: #000000;\">\u7279\u5b9a\u306e\u8a66\u9a13\u306e\u5408\u8a08\u5b66\u7fd2\u6642\u9593\u6570<\/span><\/li>\n<li><span style=\"color: #000000;\">\u8a66\u9a13\u306e\u7d50\u679c<\/span><\/li>\n<\/ul>\n<p><span style=\"color: #000000;\">\u8aac\u660e\u5909\u6570\u3068\u3057\u3066<em>\u6642\u9593<\/em>\u3001\u5fdc\u7b54\u5909\u6570\u3068\u3057\u3066<em>\u691c\u67fb\u7d50\u679c<\/em>\u3092\u4f7f\u7528\u3057\u3066\u3001\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u5f53\u3066\u306f\u3081\u3092\u8a66\u307f\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306e\u30b3\u30fc\u30c9\u306f\u3001Python \u3067\u3053\u306e\u507d\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> pandas <span style=\"color: #008000;\">as<\/span> pd<\/span>\n\n#create dataset<\/span>\ndf = pd. <span style=\"color: #3366ff;\">DataFrame<\/span> ({' <span style=\"color: #993300;\">hours<\/span> ': [1, 2, 4, 5, 5, 6, 6, 7, 8, 10, 11, 11, 12, 12, 14],\n                   ' <span style=\"color: #993300;\">score<\/span> ': [64, 66, 76, 73, 74, 81, 83, 82, 80, 88, 84, 82, 91, 93, 89]})\n      \n\n<span style=\"color: #008080;\">#view first six rows of dataset\n<\/span>df[0:6]\n\n    hours score\n0 1 64\n1 2 66\n2 4 76\n3 5 73\n4 5 74\n5 6 81\n<\/strong><\/pre>\n<h3><span style=\"color: #000000;\"><b>\u30b9\u30c6\u30c3\u30d7 2: \u30c7\u30fc\u30bf\u3092\u8996\u899a\u5316\u3059\u308b<\/b><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u5f53\u3066\u306f\u3081\u308b\u524d\u306b\u3001\u307e\u305a\u30c7\u30fc\u30bf\u3092\u8996\u899a\u5316\u3057\u3066\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u307e\u305a\u3001<em>\u6642\u9593<\/em>\u3068<em>\u30b9\u30b3\u30a2<\/em>\u306e\u95a2\u4fc2\u304c\u307b\u307c\u7dda\u5f62\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u306e<a href=\"https:\/\/statorials.org\/ja\/\u7dda\u5f62\u56de\u5e30\u306e\u4eee\u5b9a\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u57fa\u790e\u3068\u306a\u308b\u4eee\u5b9a<\/a>\u3060\u304b\u3089\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u5358\u7d14\u306a\u6563\u5e03\u56f3\u3092\u4f5c\u6210\u3057\u3066\u30012 \u3064\u306e\u5909\u6570\u9593\u306e\u95a2\u4fc2\u3092\u8996\u899a\u5316\u3067\u304d\u307e\u3059\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> matplotlib.pyplot <span style=\"color: #008000;\">as<\/span> plt\n\nplt. <span style=\"color: #3366ff;\">scatter<\/span> (df.hours, df.score)\nplt. <span style=\"color: #3366ff;\">title<\/span> (' <span style=\"color: #008000;\">Hours studied vs. Exam Score<\/span> ')\nplt. <span style=\"color: #3366ff;\">xlabel<\/span> (' <span style=\"color: #008000;\">Hours<\/span> ')\nplt. <span style=\"color: #3366ff;\">ylabel<\/span> (' <span style=\"color: #008000;\">Score<\/span> ')\nplt. <span style=\"color: #3366ff;\">show<\/span> ()\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-11539\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/simpleregpython1.png\" alt=\"Python \u306e\u70b9\u7fa4\" width=\"421\" height=\"297\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u30b0\u30e9\u30d5\u304b\u3089\u3001\u95a2\u4fc2\u304c\u7dda\u5f62\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<em>\u6642\u9593\u6570\u304c<\/em>\u5897\u52a0\u3059\u308b\u306b\u3064\u308c\u3066\u3001<em>\u30b9\u30b3\u30a2<\/em>\u3082\u76f4\u7dda\u7684\u306b\u5897\u52a0\u3059\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b21\u306b\u3001\u7bb1\u3072\u3052\u56f3\u3092\u4f5c\u6210\u3057\u3066\u691c\u67fb\u7d50\u679c\u306e\u5206\u5e03\u3092\u8996\u899a\u5316\u3057\u3001 <a href=\"https:\/\/statorials.org\/ja\/\u7570\u5e38\u5024\u3092\u524a\u9664\u3059\u308bpython\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5916\u308c\u5024<\/a>\u3092\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001Python \u306f\u3001\u89b3\u6e2c\u5024\u304c\u7b2c 3 \u56db\u5206\u4f4d (Q3) \u3088\u308a\u4e0a\u306e\u56db\u5206\u4f4d\u7bc4\u56f2\u306e 1.5 \u500d\u3001\u307e\u305f\u306f\u7b2c 1 \u56db\u5206\u4f4d (Q1) \u3088\u308a\u4e0b\u306e\u56db\u5206\u4f4d\u7bc4\u56f2\u306e 1.5 \u500d\u3067\u3042\u308b\u5834\u5408\u3001\u305d\u306e\u89b3\u6e2c\u3092\u5916\u308c\u5024\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u89b3\u6e2c\u5024\u304c\u5916\u308c\u5024\u3067\u3042\u308b\u5834\u5408\u3001\u7bb1\u3072\u3052\u56f3\u306b\u5c0f\u3055\u306a\u5186\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>df. <span style=\"color: #3366ff;\">boxplot<\/span> (column=[' <span style=\"color: #008000;\">score<\/span> '])<\/strong> <\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-11540 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/simpleregpython2.png\" alt=\"Python \u306e\u7bb1\u3072\u3052\u56f3\" width=\"374\" height=\"247\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u7bb1\u3072\u3052\u56f3\u306b\u306f\u5c0f\u3055\u306a\u5186\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u308c\u306f\u3001\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u5916\u308c\u5024\u304c\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/span><\/p>\n<h3><span style=\"color: #000000;\"><b>\u30b9\u30c6\u30c3\u30d7 3: \u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b<\/b><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5909\u6570\u9593\u306e\u95a2\u4fc2\u304c\u7dda\u5f62\u3067\u3042\u308a\u3001\u5916\u308c\u5024\u304c\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u305f\u3089\u3001<em>\u6642\u9593\u3092<\/em>\u8aac\u660e\u5909\u6570\u3068\u3057\u3066\u3001<em>\u30b9\u30b3\u30a2<\/em>\u3092\u5fdc\u7b54\u5909\u6570\u3068\u3057\u3066\u4f7f\u7528\u3057\u3066\u3001\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u8fd1\u4f3c\u306b\u9032\u3080\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><em><span style=\"color: #000000;\"><strong>\u6ce8:<\/strong><\/span> <span style=\"color: #000000;\">statsmodels \u30e9\u30a4\u30d6\u30e9\u30ea\u306e<\/span><a href=\"https:\/\/www.statsmodels.org\/devel\/generated\/statsmodels.regression.linear_model.OLS.html\" target=\"_blank\" rel=\"noopener noreferrer\">OLS() \u95a2\u6570\u3092<\/a>\u4f7f\u7528\u3057\u3066\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u9069\u5408\u3055\u305b\u307e\u3059\u3002<\/em><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> statsmodels.api <span style=\"color: #008000;\">as<\/span> sm\n\n<span style=\"color: #008080;\">#define response variable\n<\/span>y = df[' <span style=\"color: #008000;\">score<\/span> ']\n\n<span style=\"color: #008080;\">#define explanatory variable\n<\/span>x = df[[' <span style=\"color: #008000;\">hours<\/span> ']]\n\n<span style=\"color: #008080;\">#add constant to predictor variables\n<\/span>x = sm. <span style=\"color: #3366ff;\">add_constant<\/span> (x)\n\n<span style=\"color: #008080;\">#fit linear regression model\n<\/span>model = sm. <span style=\"color: #3366ff;\">OLS<\/span> (y,x). <span style=\"color: #3366ff;\">fit<\/span> ()\n\n<span style=\"color: #008080;\">#view model summary\n<\/span><span style=\"color: #008000;\">print<\/span> ( <span style=\"color: #3366ff;\">model.summary<\/span> ())\n\n                            OLS Regression Results                            \n==================================================== ============================\nDept. Variable: R-squared score: 0.831\nModel: OLS Adj. R-squared: 0.818\nMethod: Least Squares F-statistic: 63.91\nDate: Mon, 26 Oct 2020 Prob (F-statistic): 2.25e-06\nTime: 15:51:45 Log-Likelihood: -39,594\nNo. Observations: 15 AIC: 83.19\nDf Residuals: 13 BIC: 84.60\nModel: 1                                         \nCovariance Type: non-robust                                         \n==================================================== ============================\n                 coef std err t P&gt;|t| [0.025 0.975]\n-------------------------------------------------- ----------------------------\nconst 65.3340 2.106 31.023 0.000 60.784 69.884\nhours 1.9824 0.248 7.995 0.000 1.447 2.518\n==================================================== ============================\nOmnibus: 4,351 Durbin-Watson: 1,677\nProb(Omnibus): 0.114 Jarque-Bera (JB): 1.329\nSkew: 0.092 Prob(JB): 0.515\nKurtosis: 1.554 Cond. No. 19.2\n==================================================== ============================<\/strong><\/pre>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u306e\u6982\u8981\u304b\u3089\u3001\u8fd1\u4f3c\u3055\u308c\u305f\u56de\u5e30\u5f0f\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3042\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u30b9\u30b3\u30a2 = 65.334 + 1.9824*(\u6642\u9593)<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u308c\u306f\u3001\u5b66\u7fd2\u6642\u9593\u304c\u8ffd\u52a0\u3055\u308c\u308b\u3054\u3068\u306b\u3001\u8a66\u9a13\u306e\u5e73\u5747\u30b9\u30b3\u30a2\u304c<strong>1.9824<\/strong>\u30dd\u30a4\u30f3\u30c8\u5897\u52a0\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u5143\u306e\u5024<strong>65,334<\/strong>\u306f\u30010 \u6642\u9593\u52c9\u5f37\u3057\u305f\u751f\u5f92\u306e\u4e88\u60f3\u3055\u308c\u308b\u8a66\u9a13\u306e\u5e73\u5747\u30b9\u30b3\u30a2\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u306e\u65b9\u7a0b\u5f0f\u3092\u4f7f\u7528\u3057\u3066\u3001\u5b66\u751f\u306e\u52c9\u5f37\u6642\u9593\u306b\u57fa\u3065\u3044\u3066\u4e88\u60f3\u3055\u308c\u308b\u8a66\u9a13\u306e\u5f97\u70b9\u3092\u6c42\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u300110 \u6642\u9593\u52c9\u5f37\u3057\u305f\u5b66\u751f\u306f\u3001\u8a66\u9a13\u30b9\u30b3\u30a2<strong>85.158<\/strong>\u3092\u9054\u6210\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u30b9\u30b3\u30a2 = 65.334 + 1.9824*(10) = 85.158<\/strong><\/span><\/p>\n<p><span style=\"color: #000000;\">\u30e2\u30c7\u30eb\u306e\u6982\u8981\u306e\u6b8b\u308a\u306e\u90e8\u5206\u3092\u89e3\u91c8\u3059\u308b\u65b9\u6cd5\u306f\u6b21\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>P&gt;|t| :<\/strong>\u3053\u308c\u306f\u3001\u30e2\u30c7\u30eb\u4fc2\u6570\u306b\u95a2\u9023\u4ed8\u3051\u3089\u308c\u305f p \u5024\u3067\u3059\u3002<em>\u6642\u9593<\/em>\u306e p \u5024 (0.000) \u306f 0.05 \u3088\u308a\u3082\u5927\u5e45\u306b\u5c0f\u3055\u3044\u305f\u3081\u3001<em>\u6642\u9593<\/em>\u3068<em>\u30b9\u30b3\u30a2<\/em>\u306e\u9593\u306b\u7d71\u8a08\u7684\u306b\u6709\u610f\u306a\u95a2\u9023\u304c\u3042\u308b\u3068\u8a00\u3048\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>R \u4e8c\u4e57:<\/strong>\u3053\u306e\u6570\u5024\u306f\u3001\u8a66\u9a13\u306e\u5f97\u70b9\u306e\u5909\u52d5\u306e\u30d1\u30fc\u30bb\u30f3\u30c6\u30fc\u30b8\u304c\u52c9\u5f37\u6642\u9593\u6570\u306b\u3088\u3063\u3066\u8aac\u660e\u3067\u304d\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u4e00\u822c\u306b\u3001\u56de\u5e30\u30e2\u30c7\u30eb\u306e R \u4e8c\u4e57\u5024\u304c\u5927\u304d\u3044\u307b\u3069\u3001\u8aac\u660e\u5909\u6570\u306f\u5fdc\u7b54\u5909\u6570\u306e\u5024\u3092\u3088\u308a\u9069\u5207\u306b\u4e88\u6e2c\u3067\u304d\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u30b9\u30b3\u30a2\u306e\u5909\u52d5\u306e<strong>83.1%<\/strong>\u306f\u52c9\u5f37\u6642\u9593\u306b\u3088\u3063\u3066\u8aac\u660e\u3055\u308c\u307e\u3059\u3002<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>F \u7d71\u8a08\u91cf\u3068 p \u5024:<\/strong> F \u7d71\u8a08\u91cf ( <strong>63.91<\/strong> ) \u3068\u5bfe\u5fdc\u3059\u308b p \u5024 ( <strong>2.25e-06<\/strong> ) \u306f\u3001\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u5168\u4f53\u7684\u306a\u91cd\u8981\u6027\u3001\u3064\u307e\u308a\u30e2\u30c7\u30eb\u5185\u306e\u8aac\u660e\u5909\u6570\u304c\u5909\u52d5\u306e\u8aac\u660e\u306b\u5f79\u7acb\u3064\u304b\u3069\u3046\u304b\u3092\u793a\u3057\u307e\u3059\u3002 \u3002\u5fdc\u7b54\u5909\u6570\u306b\u3002\u3053\u306e\u4f8b\u306e p \u5024\u306f 0.05 \u672a\u6e80\u3067\u3042\u308b\u305f\u3081\u3001\u30e2\u30c7\u30eb\u306f\u7d71\u8a08\u7684\u306b\u6709\u610f\u3067\u3042\u308a\u3001<em>\u6642\u9593\u306f<\/em><em>\u30b9\u30b3\u30a2\u306e<\/em>\u5909\u52d5\u3092\u8aac\u660e\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u3068\u8003\u3048\u3089\u308c\u307e\u3059\u3002<\/span><\/li>\n<\/ul>\n<h3><span style=\"color: #000000;\"><strong>\u30b9\u30c6\u30c3\u30d7 4: \u6b8b\u5dee\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b<\/strong><\/span><\/h3>\n<p><span style=\"color: #000000;\">\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u3092\u30c7\u30fc\u30bf\u306b\u5f53\u3066\u306f\u3081\u305f\u5f8c\u306e\u6700\u5f8c\u306e\u30b9\u30c6\u30c3\u30d7\u306f\u3001\u6b8b\u5dee\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u7dda\u5f62\u56de\u5e30\u306e\u91cd\u8981\u306a\u524d\u63d0\u306e 1 \u3064\u306f\u3001\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u6b8b\u5dee\u304c\u307b\u307c\u6b63\u898f\u5206\u5e03\u3057\u3001\u8aac\u660e\u5909\u6570\u306e\u5404\u30ec\u30d9\u30eb\u3067\u7b49<a href=\"https:\/\/statorials.org\/ja\/\u4e0d\u5747\u4e00\u5206\u6563\u6027\u56de\u5e30\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5206\u6563\u3067<\/a>\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u524d\u63d0\u304c\u6e80\u305f\u3055\u308c\u306a\u3044\u5834\u5408\u3001\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u7d50\u679c\u306f\u8aa4\u89e3\u3092\u62db\u304f\u304b\u3001\u4fe1\u983c\u6027\u304c\u4f4e\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u3053\u308c\u3089\u306e\u4eee\u5b9a\u304c\u6e80\u305f\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u306b\u3001\u6b21\u306e\u6b8b\u5dee\u30d7\u30ed\u30c3\u30c8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><strong>\u6b8b\u5dee\u3068\u8fd1\u4f3c\u5024\u306e\u30d7\u30ed\u30c3\u30c8:<\/strong>\u3053\u306e\u30d7\u30ed\u30c3\u30c8\u306f\u7b49\u5206\u6563\u6027\u3092\u78ba\u8a8d\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002 X \u8ef8\u306f\u8fd1\u4f3c\u5024\u3092\u8868\u793a\u3057\u3001Y \u8ef8\u306f\u6b8b\u5dee\u3092\u8868\u793a\u3057\u307e\u3059\u3002\u6b8b\u5dee\u304c\u30bc\u30ed\u5024\u306e\u5468\u56f2\u3067\u30b0\u30e9\u30d5\u5168\u4f53\u306b\u30e9\u30f3\u30c0\u30e0\u304b\u3064\u5747\u4e00\u306b\u5206\u5e03\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u9650\u308a\u3001\u7b49\u5206\u6563\u6027\u306b\u9055\u53cd\u3057\u3066\u3044\u306a\u3044\u3068\u4eee\u5b9a\u3067\u304d\u307e\u3059\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define figure size\n<\/span>fig = plt. <span style=\"color: #3366ff;\">figure<\/span> (figsize=(12.8))\n\n<span style=\"color: #008080;\">#produce residual plots\n<\/span>fig = sm.graphics. <span style=\"color: #3366ff;\">plot_regress_exog<\/span> (model, ' <span style=\"color: #008000;\">hours<\/span> ', fig=fig)\n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-11541 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/simpleregpython3.png\" alt=\"Python \u306e\u6b8b\u5dee\u30d7\u30ed\u30c3\u30c8\" width=\"665\" height=\"442\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">4 \u3064\u306e\u30d7\u30ed\u30c3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002\u53f3\u4e0a\u9685\u306b\u3042\u308b\u306e\u306f\u3001\u6b8b\u5dee\u30d7\u30ed\u30c3\u30c8\u3068\u8abf\u6574\u6e08\u307f\u30d7\u30ed\u30c3\u30c8\u3067\u3059\u3002\u3053\u306e\u30d7\u30ed\u30c3\u30c8\u306e X \u8ef8\u306f\u4e88\u6e2c\u5909\u6570<em>\u70b9<\/em>\u306e\u5b9f\u969b\u306e\u5024\u3092\u793a\u3057\u3001Y \u8ef8\u306f\u305d\u306e\u5024\u306e\u6b8b\u5dee\u3092\u793a\u3057\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b8b\u5dee\u306f\u30bc\u30ed\u306e\u5468\u308a\u306b\u30e9\u30f3\u30c0\u30e0\u306b\u5206\u6563\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u308b\u305f\u3081\u3001\u3053\u308c\u306f\u8aac\u660e\u5909\u6570\u306e\u4e0d\u5747\u4e00\u5206\u6563\u6027\u304c\u554f\u984c\u3067\u306f\u306a\u3044\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>QQ \u30d7\u30ed\u30c3\u30c8:<\/strong>\u3053\u306e\u30d7\u30ed\u30c3\u30c8\u306f\u3001\u6b8b\u5dee\u304c\u6b63\u898f\u5206\u5e03\u306b\u5f93\u3046\u304b\u3069\u3046\u304b\u3092\u5224\u65ad\u3059\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002\u30d7\u30ed\u30c3\u30c8\u5185\u306e\u30c7\u30fc\u30bf\u5024\u304c 45 \u5ea6\u306e\u89d2\u5ea6\u3067\u307b\u307c\u76f4\u7dda\u306b\u5f93\u3063\u3066\u3044\u308b\u5834\u5408\u3001\u30c7\u30fc\u30bf\u306f\u6b63\u898f\u5206\u5e03\u3057\u3066\u3044\u307e\u3059\u3002<\/span> <\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define residuals\n<\/span>res = model. <span style=\"color: #3366ff;\">reside<\/span>\n\n<span style=\"color: #008080;\">#create QQ plot\n<\/span>fig = sm. <span style=\"color: #3366ff;\">qqplot<\/span> (res, fit= <span style=\"color: #008000;\">True<\/span> , line=\" <span style=\"color: #008000;\">45<\/span> \")\nplt.show() \n<\/strong><\/pre>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-11542 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/simpleregpython4.png\" alt=\"Python \u3067\u306e QQ \u30d7\u30ed\u30c3\u30c8\" width=\"415\" height=\"277\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p><span style=\"color: #000000;\">\u6b8b\u5dee\u306f 45 \u5ea6\u306e\u7dda\u304b\u3089\u308f\u305a\u304b\u306b\u9038\u8131\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u91cd\u5927\u306a\u61f8\u5ff5\u3092\u5f15\u304d\u8d77\u3053\u3059\u307b\u3069\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u6b63\u898f\u6027\u306e\u4eee\u5b9a\u304c\u6e80\u305f\u3055\u308c\u3066\u3044\u308b\u3068\u4eee\u5b9a\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\">\u6b8b\u5dee\u306f\u6b63\u898f\u5206\u5e03\u3057\u3001\u7b49\u5206\u6563\u3067\u3042\u308b\u305f\u3081\u3001\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u4eee\u5b9a\u304c\u6e80\u305f\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002\u3057\u305f\u304c\u3063\u3066\u3001\u30e2\u30c7\u30eb\u306e\u51fa\u529b\u306f\u4fe1\u983c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><span style=\"color: #000000;\"><em>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u4f7f\u7528\u3055\u308c\u308b\u5b8c\u5168\u306a Python \u30b3\u30fc\u30c9\u306f\u3001 <a href=\"https:\/\/github.com\/Statorials\/Python-Guides\/blob\/main\/simple_linear_regression.py\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3053\u306b<\/a>\u3042\u308a\u307e\u3059\u3002<\/em><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5358\u7d14\u7dda\u5f62\u56de\u5e30\u306f\u3001\u5358\u4e00\u306e\u8aac\u660e\u5909\u6570\u3068\u5358\u4e00\u306e\u5fdc\u7b54\u5909\u6570\u306e\u9593\u306e\u95a2\u4fc2\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u4f7f\u7528\u3067\u304d\u308b\u624b\u6cd5\u3067\u3059\u3002 \u3053\u306e\u624b\u6cd5\u306f\u3001\u30c7\u30fc\u30bf\u306b\u6700\u3082\u3088\u304f\u300c\u9069\u5408\u300d\u3059\u308b\u7dda\u3092\u898b\u3064\u3051\u3001\u6b21\u306e\u5f62\u5f0f\u306b\u306a\u308a\u307e\u3059\u3002 \u0177 = b 0 + b 1 x \u91d1\uff1a \u0177 : \u63a8\u5b9a\u5fdc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-1149","post","type-post","status-publish","format-standard","hentry","category-16"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u4f8b\u3068\u3068\u3082\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u4f8b\u3068\u3068\u3082\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T12:04:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/simpleregpython1.png\" \/>\n<meta name=\"author\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/\",\"url\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/\",\"name\":\"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/ja\/#website\"},\"datePublished\":\"2023-07-27T12:04:19+00:00\",\"dateModified\":\"2023-07-27T12:04:19+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\"},\"description\":\"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u4f8b\u3068\u3068\u3082\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/ja\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/ja\/#website\",\"url\":\"https:\/\/statorials.org\/ja\/\",\"name\":\"Statorials\",\"description\":\"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/ja\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83\",\"name\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb\"},\"description\":\"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b\",\"sameAs\":[\"http:\/\/statorials.org\/ja\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u4f8b\u3068\u3068\u3082\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\/","og_locale":"ja_JP","og_type":"article","og_title":"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","og_description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u4f8b\u3068\u3068\u3082\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/statorials.org\/ja\/python\u3066\u3099\u306e\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\/","og_site_name":"Statorials","article_published_time":"2023-07-27T12:04:19+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/simpleregpython1.png"}],"author":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"1\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/","url":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/","name":"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)","isPartOf":{"@id":"https:\/\/statorials.org\/ja\/#website"},"datePublished":"2023-07-27T12:04:19+00:00","dateModified":"2023-07-27T12:04:19+00:00","author":{"@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83"},"description":"\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u30b9\u30c6\u30c3\u30d7\u3054\u3068\u306e\u4f8b\u3068\u3068\u3082\u306b\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/ja\/python%e3%81%a6%e3%82%99%e3%81%ae%e5%8d%98%e7%b4%94%e3%81%aa%e7%b7%9a%e5%bd%a2%e5%9b%9e%e5%b8%b0\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/ja\/"},{"@type":"ListItem","position":2,"name":"Python \u3067\u5358\u7d14\u306a\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5 (\u30b9\u30c6\u30c3\u30d7\u30d0\u30a4\u30b9\u30c6\u30c3\u30d7)"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/ja\/#website","url":"https:\/\/statorials.org\/ja\/","name":"Statorials","description":"\u7d71\u8a08\u80fd\u529b\u3078\u306e\u30ac\u30a4\u30c9","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/ja\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/86b92d2dd87368b26360d19d9c6a5d83","name":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/statorials.org\/ja\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/ja\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30a2\u30f3\u30c0\u30fc\u30bd\u30f3\u535a\u58eb"},"description":"\u79c1\u306f\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u3067\u3059\u3002\u9000\u8077\u3057\u305f\u7d71\u8a08\u6559\u6388\u304b\u3089\u3001\u5c02\u4efb\u306e Statorials \u6559\u80b2\u8005\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u7d71\u8a08\u5206\u91ce\u306b\u304a\u3051\u308b\u8c4a\u5bcc\u306a\u7d4c\u9a13\u3068\u5c02\u9580\u77e5\u8b58\u3092\u6d3b\u304b\u3057\u3066\u3001\u79c1\u306f Statorials \u3092\u901a\u3058\u3066\u5b66\u751f\u306b\u529b\u3092\u4e0e\u3048\u308b\u305f\u3081\u306b\u81ea\u5206\u306e\u77e5\u8b58\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u306b\u5c3d\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3063\u3068\u77e5\u308b","sameAs":["http:\/\/statorials.org\/ja"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/comments?post=1149"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/posts\/1149\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/media?parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/categories?post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/ja\/wp-json\/wp\/v2\/tags?post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}