{"id":18201,"date":"2022-12-28T07:13:10","date_gmt":"2022-12-28T07:13:10","guid":{"rendered":"https:\/\/club.informatix.co.jp\/?p=18201"},"modified":"2024-11-01T09:27:06","modified_gmt":"2024-11-01T09:27:06","slug":"numpy%e3%81%a7%e8%a1%8c%e5%88%97%e3%80%80%e5%9b%9e%e5%b8%b0%e5%88%86%e6%9e%90-%e3%81%9d%e3%81%ae7-%e6%9c%80%e5%b0%8f2%e4%b9%97%e6%b3%95%ef%bd%9cpython%e3%81%a7%e6%95%b0%e5%ad%a6%e3%82%92%e5%ad%a6","status":"publish","type":"post","link":"https:\/\/club.informatix.co.jp\/?p=18201","title":{"rendered":"NumPy\u3067\u884c\u5217\u3000\u56de\u5e30\u5206\u6790 \u305d\u306e7 \u6700\u5c0f2\u4e57\u6cd5\uff5cPython\u3067\u6570\u5b66\u3092\u5b66\u307c\u3046\uff01 \u7b2c28\u56de"},"content":{"rendered":"\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u76ee\u6b21<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69fe16a62b2fd\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69fe16a62b2fd\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/club.informatix.co.jp\/?p=18201\/#%E6%9C%80%E5%B0%8F2%E4%B9%97%E6%B3%95%EF%BD%9C%E3%81%AA%E3%81%9C2%E4%B9%97%E3%81%AA%E3%81%AE%E3%81%8B\" >\u6700\u5c0f2\u4e57\u6cd5\uff5c\u306a\u305c2\u4e57\u306a\u306e\u304b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/club.informatix.co.jp\/?p=18201\/#%E9%87%8D%E5%9B%9E%E5%B8%B0%E5%88%86%E6%9E%90%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E6%9C%80%E5%B0%8F2%E4%B9%97%E6%B3%95\" >\u91cd\u56de\u5e30\u5206\u6790\u306b\u304a\u3051\u308b\u6700\u5c0f2\u4e57\u6cd5<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/club.informatix.co.jp\/?p=18201\/#%E6%AD%A3%E8%A6%8F%E6%96%B9%E7%A8%8B%E5%BC%8F\" >\u6b63\u898f\u65b9\u7a0b\u5f0f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/club.informatix.co.jp\/?p=18201\/#%E8%BB%A2%E7%BD%AE%E8%A1%8C%E5%88%97\" >\u8ee2\u7f6e\u884c\u5217<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/club.informatix.co.jp\/?p=18201\/#%E8%BB%A2%E7%BD%AE%E8%A1%8C%E5%88%97%E3%81%AE%E5%85%AC%E5%BC%8F\" >\u8ee2\u7f6e\u884c\u5217\u306e\u516c\u5f0f<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/club.informatix.co.jp\/?p=18201\/#%E5%81%8F%E5%BE%AE%E5%88%86\" >\u504f\u5fae\u5206<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E6%9C%80%E5%B0%8F2%E4%B9%97%E6%B3%95%EF%BD%9C%E3%81%AA%E3%81%9C2%E4%B9%97%E3%81%AA%E3%81%AE%E3%81%8B\"><\/span>\u6700\u5c0f2\u4e57\u6cd5\uff5c\u306a\u305c2\u4e57\u306a\u306e\u304b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u30c7\u30fc\u30bf\u306e\u70b9\u3068\u56de\u5e30\u76f4\u7dda\u4e0a\u306e\u70b9\u306e\u5dee\u30922\u4e57\u3057\u305f\u548c\u306e\u6700\u5c0f\u5316\u3092\u8003\u3048\u308b\u306e\u304c\u6700\u5c0f2\u4e57\u6cd5\u3067\u3059\u304c\u3001\u305d\u3082\u305d\u3082\u306a\u305c2\u4e57\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u7d76\u5bfe\u5024\u3084\u548c\u3084\u7a4d\u3067\u306f\u30c0\u30e1\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<p>\u3053\u308c\u307e\u3067\u898b\u3066\u304d\u305f\u3088\u3046\u306b\u30012\u4e57\u3057\u305f\u7d50\u679c\u304c\u30b7\u30f3\u30d7\u30eb\u306a\u56de\u5e30\u4fc2\u6570\u306e\u516c\u5f0f\u3067\u3059\u3002\u56de\u5e30\u76f4\u7dda\u3092\u56f3\u793a\u3057\u3066\u307f\u308c\u3070\u3001\u305d\u308c\u304c\u8fd1\u4f3c\u76f4\u7dda\u3067\u3042\u308b\u3053\u3068\u3082\u7591\u3044\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u3053\u307e\u3067\u306e\u8aac\u660e\u3067\u306f\u300c\u5dee\u300d\u3068\u8868\u73fe\u3057\u3066\u304d\u307e\u3057\u305f\u3002\u3053\u308c\u3092\u8aa4\u5dee\u3068\u306f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n<p><a href=\"https:\/\/club.informatix.co.jp\/?p=18075\" target=\"_blank\" rel=\"noopener\">\u8eab\u9577\u3068\u4f53\u91cd\u306e\u4f8b<\/a>\u3067\u306f\u3001\u5404\u30c7\u30fc\u30bf\u3068\u56de\u5e30\u76f4\u7dda\u3068\u306e\u5dee\u306f\u8aa4\u5dee\u3067\u306f\u306a\u3044\u304b\u3089\u3067\u3059\u3002\u3057\u304b\u3057\u771f\u306e\u5024\u304c\u3042\u308b\u73fe\u8c61\u306b\u5bfe\u3057\u3066\u884c\u308f\u308c\u308b\u6e2c\u5b9a\u306e\u5834\u5408\u306b\u306f\u3001\u5dee\u306f\u8aa4\u5dee\u3068\u306a\u308a\u307e\u3059\u3002\u300c\u6b63\u78ba\u306b\u6e2c\u5b9a\u3067\u304d\u308c\u3070100\u3067\u3042\u308b\u304c\u3001\u6e2c\u5b9a\u306b\u3088\u3063\u306698\u304c\u5f97\u3089\u308c\u308b\u300d\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u771f\u306e\u5024\u304c\u3042\u308b\u5834\u5408\u306b\u306f\u300c\u771f\u306e\u5024\u306f\u308f\u304b\u3089\u306a\u3044\u300d\u3051\u308c\u3069\u3001\u6e2c\u5b9a\u8aa4\u5dee\u3092\u542b\u3093\u3060\u30c7\u30fc\u30bf\u306f\u5f97\u3089\u308c\u307e\u3059\u3002<\/p>\n<p>18\u4e16\u7d00\u306e\u6570\u5b66\u8005<a href=\"https:\/\/club.informatix.co.jp\/?p=2508\" target=\"_blank\" rel=\"noopener\">\u30ac\u30a6\u30b9<\/a>\u306f\u3001\u30b2\u30c3\u30c6\u30a3\u30f3\u30b2\u30f3\u5927\u5b66\u306e\u5929\u6587\u53f0\u9577\u3092\u52d9\u3081\u308b\u307b\u3069\u5929\u6587\u5b66\u8005\u3068\u3057\u3066\u3082\u6d3b\u8e8d\u3057\u307e\u3057\u305f\u30021794\u5e74\u306b\u6700\u5c0f2\u4e57\u6cd5\u306f\u30ac\u30a6\u30b9\u306b\u3088\u3063\u3066\u767a\u898b\u3055\u308c\u307e\u3057\u305f\u3002\u60d1\u661f\u30b1\u30ec\u30b9\u306f1801\u5e741\u67081\u65e5\u306b\u30d4\u30a2\u30c3\u30c4\u30a3\u306b\u3088\u3063\u3066\u767a\u898b\u3055\u308c\u308b\u3082\u3001\u898b\u5931\u308f\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u30ac\u30a6\u30b9\u306f\u6700\u5c0f2\u4e57\u6cd5\u3092\u99c6\u4f7f\u3057\u3066\u60d1\u661f\u30b1\u30ec\u30b9\u306e\u8ecc\u9053\u8a08\u7b97\u3092\u884c\u3044\u3001\u305d\u308c\u3092\u3082\u3068\u306b\u540c\u5e7412\u670831\u65e5\u306b\u30aa\u30eb\u30d0\u30fc\u30b9\u304c\u518d\u767a\u898b\u3059\u308b\u3068\u3044\u3046\u51fa\u6765\u4e8b\u304c\u3042\u308a\u307e\u3057\u305f\u3002\u30ac\u30a6\u30b9\u306f\u5929\u6587\u5b66\u4ee5\u5916\u306b\u3082\u6e2c\u5730\u5b66\u306b\u3082\u901a\u3058\u3066\u304a\u308a\u3001\u6e2c\u5b9a\u306b\u3064\u304d\u3082\u306e\u306e\u6e2c\u5b9a\u8aa4\u5dee\u3092\u8003\u5bdf\u3057\u3066\u3044\u304f\u4e2d\u3067\u6570\u5b66\u7684\u306b\u771f\u306e\u5024\u3092\u63a8\u6e2c\u3059\u308b\u7814\u7a76\uff08\u8aa4\u5dee\u8ad6\uff09\u3092\u59cb\u3081\u307e\u3057\u305f\u3002<\/p>\n<p>\u30ac\u30a6\u30b9\u306f\u78ba\u7387\u8ad6\u3092\u5fdc\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u8aa4\u5dee\u304c<a href=\"https:\/\/club.informatix.co.jp\/?p=2508\" target=\"_blank\" rel=\"noopener\">\u6b63\u898f\u5206\u5e03<\/a>\uff08\u30ac\u30a6\u30b9\u5206\u5e03\u3068\u3082\u547c\u3070\u308c\u308b\uff09\u3057\u3066\u3044\u308b\u4e8b\u5b9f\u3092\u7a81\u304d\u6b62\u3081\u307e\u3057\u305f\u3002\u8aac\u660e\u5909\u6570x\u3068\u76ee\u7684\u5909\u6570y\u304cy=f(x)\u3068\u3044\u3046\u30e2\u30c7\u30eb\u304c\u60f3\u5b9a\u3057\u305f\u5834\u5408\u3001\u6700\u5c0f2\u4e57\u6cd5\u306b\u3088\u3063\u3066\u5f97\u3089\u308c\u308b\u30e2\u30c7\u30eb\u3068\u8aa4\u5dee\u304c\u6b63\u898f\u5206\u5e03\u3059\u308b\u3053\u3068\u304b\u3089\u5f97\u3089\u308c\u308b\u30e2\u30c7\u30eb\u304c\u4e00\u81f4\u3059\u308b\u3053\u3068\u304c\u8a3c\u660e\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u6700\u5c0f2\u4e57\u6cd5\u306f\u3001\u6b8b\u5dee\uff08\u8aa4\u5dee\uff09\u304c\u6b63\u898f\u5206\u5e03\u3067\u4e57\u3063\u3066\u3044\u308b\u3068\u3044\u3046\u4eee\u5b9a\u304b\u3089\u5c0e\u304b\u308c\u307e\u3059\u3002\u3053\u3053\u306b2\u4e57\u3059\u308b\u5408\u7406\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u8aa4\u5dee\u304c\u6b63\u898f\u5206\u5e03\u3059\u308b\u3053\u3068\u3092\u3082\u3068\u306b\u3057\u305f\u63a8\u5b9a\u6cd5\u3092\u6700\u5c24\u6cd5\uff08\u3055\u3044\u3086\u3046\u307b\u3046\uff1a\u6700\u3082\u5c24\u3082\u3089\u3057\u3044\u6cd5\uff09\u3068\u3044\u3044\u307e\u3059\u3002<\/p>\n<p>\u6700\u5c24\u6cd5\u3068\u306f\u3001\u30e2\u30c7\u30eb\u4e0a\u306b\u30c7\u30fc\u30bf\u304c\u306e\u308b\u78ba\u7387\u304c\u6700\u5927\u5316\u3092\u8003\u3048\u308b\u63a8\u5b9a\u6cd5\u3067\u3059\u3002\u73fe\u4ee3\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u306e\u304a\u304a\u3082\u3068\u306f\u3001\u5730\u7403\u3084\u5b87\u5b99\u306e\u89b3\u6e2c\u3092\u5b9f\u969b\u306b\u884c\u3063\u3066\u3044\u305f\u6570\u5b66\u8005\u30ac\u30a6\u30b9\u306b\u3088\u3063\u3066\u767a\u898b\u3055\u308c\u305f\u6570\u5b66\u306b\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n<p style=\"text-align: center;\">\u6700\u5c0f2\u4e57\u6cd5\uff1d\u6b8b\u5dee\uff08\u8aa4\u5dee\uff09\u304c\u6b63\u898f\u5206\u5e03\u3059\u308b\u3068\u304d\u306e\u6700\u5c24\u6cd5<\/p>\n<p>\u30ac\u30a6\u30b9\u751f\u8a95225\u5468\u5e74\u3092\u8a18\u5ff5\u3057\u30662002\u5e74\u306b\u30ac\u30a6\u30b9\u8cde\u304c\u8a2d\u7acb\u3055\u308c\u307e\u3057\u305f\u3002\u793e\u4f1a\u306e\u6280\u8853\u7684\u767a\u5c55\u3068\u65e5\u5e38\u751f\u6d3b\u306b\u5bfe\u3057\u3066\u512a\u308c\u305f\u6570\u5b66\u7684\u8ca2\u732e\u3092\u306a\u3057\u305f\u7814\u7a76\u8005\u306b\u8d08\u3089\u308c\u308b\u8cde\u3067\u3001\u6804\u3048\u3042\u308b\u7b2c1\u56de\u53d7\u8cde\u8005\u306f\u4f0a\u85e4\u6e05\uff08\u78ba\u7387\u5fae\u5206\u65b9\u7a0b\u5f0f\uff09\u3067\u3059\u3002<\/p>\n<p>\u30ac\u30a6\u30b9\u8cde\u306e\u53d7\u8cde\u30e1\u30c0\u30eb\u306e\u8868\u9762\u306b\u306f\u30ac\u30a6\u30b9\u306e\u8096\u50cf\u3001\u88cf\u9762\u306b\u306f\u60d1\u661f\u30bb\u30ec\u30b9\u306e\u8ecc\u9053\u3092\u8868\u3059\u66f2\u7dda\u3068\u5186\uff08\u60d1\u661f\u30bb\u30ec\u30b9\uff09\u305d\u3057\u3066\u6b63\u65b9\u5f62\u304c\u63cf\u304b\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u6b63\u65b9\u5f62\u3053\u305d\u6700\u5c0f2\u4e57\u6cd5\u3092\u8868\u3057\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%87%8D%E5%9B%9E%E5%B8%B0%E5%88%86%E6%9E%90%E3%81%AB%E3%81%8A%E3%81%91%E3%82%8B%E6%9C%80%E5%B0%8F2%E4%B9%97%E6%B3%95\"><\/span>\u91cd\u56de\u5e30\u5206\u6790\u306b\u304a\u3051\u308b\u6700\u5c0f2\u4e57\u6cd5<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u7dda\u5f62\u56de\u5e30\u30e2\u30c7\u30eb\u306e\u8a2d\u5b9a\u306e\u3068\u3053\u308d\u3067\u3001n\u500b\u306e\u30c7\u30fc\u30bf\u304a\u3088\u3073m\u500b\u306e\u8aac\u660e\u5909\u6570\u306e\u95a2\u4fc2\u5f0f\u3092\u7acb\u3066\u307e\u3057\u305f\u3002\u3053\u306e\u5f0f\u306f\u30d9\u30af\u30c8\u30eb\u3068\u884c\u5217\u3092\u7528\u3044\u3066\u6b21\u306e\u3088\u3046\u306b\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>y=X\u03b8+e\u3000\u2026 (1)<\/p>\n<p>\u3053\u3053\u3067\u3001y\u306f\u76ee\u7684\u5909\u6570\u30d9\u30af\u30c8\u30eb\u3001X\u306f\u8aac\u660e\u5909\u6570\u884c\u5217\u3001\u03b8\u306f\u56de\u5e30\u4fc2\u6570\u30d9\u30af\u30c8\u30eb\u3001\u305d\u3057\u3066e\u306f\u5dee\u30d9\u30af\u30c8\u30eb\u3067\u3059\u3002X\u306fn\u884cm+1\u5217\u884c\u5217\u3001\u5217\u30d9\u30af\u30c8\u30eb\u03b8\u306fm+1\u884c1\u5217\u884c\u5217\u306a\u306e\u3067\u7a4dX\u03b8\u306fn\u884c1\u5217\u884c\u5217\u3059\u306a\u308f\u3061n\u6b21\u5143\u5217\u30d9\u30af\u30c8\u30eb\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-18205\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-1.jpg\" alt=\"\" width=\"800\" height=\"753\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-1.jpg 800w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-1-300x282.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-1-768x723.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\u5dee\u306e2\u4e57\u548cQ\u3092\u30d9\u30af\u30c8\u30eb\u3068\u884c\u5217\u3067\u8868\u3059\u3068\u3053\u308d\u304b\u3089\u306f\u3058\u3081\u307e\u3059\u3002\u5dee\u30d9\u30af\u30c8\u30ebe\uff08\u5217\u30d9\u30af\u30c8\u30eb\uff09\u306b\u5bfe\u3057\u3066\u305d\u306e\u8ee2\u7f6e\u884c\u5217e&#8217;\uff08&#8217;\u3067\u8ee2\u7f6e\u884c\u5217\u3092\u8868\u3057\u307e\u3059\uff09\u306f\u884c\u30d9\u30af\u30c8\u30eb\u306b\u306a\u308a\u307e\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001<br \/>\nQ = e&#8217;e<br \/>\n\u3068\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-18206\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-2.jpg\" alt=\"\" width=\"800\" height=\"183\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-2.jpg 800w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-2-300x69.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-2-768x176.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\u6b21\u306b(1)\u5f0f\u3088\u308a\u3001e=y-X\u03b8\u3068\u306a\u308b\u306e\u3067\u3001\u5dee\u306e2\u4e57\u548cQ\u306f\u6b21\u306e\u3088\u3046\u306b\u5909\u5f62\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>Q = e&#8217;e<br \/>\n= (y-X\u03b8)'(y-X\u03b8)<br \/>\n= y&#8217;y -2y&#8217;X\u03b8\uff0b\u03b8&#8217;X&#8217;X\u03b8<\/p>\n<p>Q\u3092\u03b8\u306e\u95a2\u6570\u3068\u307f\u3066\u3001\u03b8\u3067\u5fae\u5206\uff08\u504f\u5fae\u5206\uff09\u3057\u305f\u5f0f\u30920\u3068\u3059\u308c\u3070Q\u304c\u6700\u5c0f\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n\u2202Q\/\u2202\u03b8\uff1d-2X&#8217;y + 2X&#8217;X\u03b8= 0 \u2026 (2)<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E6%AD%A3%E8%A6%8F%E6%96%B9%E7%A8%8B%E5%BC%8F\"><\/span>\u6b63\u898f\u65b9\u7a0b\u5f0f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>(2)\u5f0f\u304b\u3089\u6b21\u306e\u5f0f\u304c\u5f97\u3089\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u6b63\u898f\u65b9\u7a0b\u5f0f\u3068\u547c\u3070\u308c\u307e\u3059\u3002<br \/>\nX&#8217;X\u03b8 = X&#8217;y\u3000\u2026 (3)<\/p>\n<p>\u6b63\u898f\u65b9\u7a0b\u5f0f(3)\u306b\u304a\u3044\u3066\u3001\u884c\u5217X&#8217;X\u306b\u9006\u884c\u5217\u304c\u5b58\u5728\u3059\u308c\u3070\u3001\u5dee\u306e2\u4e57\u548cQ\u3092\u6700\u5c0f\u306b\u3059\u308b\u56de\u5e30\u4fc2\u6570\u30d9\u30af\u30c8\u30eb\u03b8\u306f\u6b21\u306e\u3088\u3046\u306b\u6c42\u3081\u3089\u308c\u307e\u3059\u3002<br \/>\n\u03b8 = (X&#8217;X)<sup>-1<\/sup>X&#8217;y\u3000\u2026 (4)<\/p>\n<h3><img decoding=\"async\" class=\"aligncenter size-full wp-image-18207\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-3.jpg\" alt=\"\" width=\"800\" height=\"500\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-3.jpg 800w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-3-300x188.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-3-768x480.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/>\u8ee2\u7f6e\u884c\u5217<\/h3>\n<p>\u91cd\u56de\u5e30\u5206\u6790\u3067\u306f\u56de\u5e30\u4fc2\u6570\u30d9\u30af\u30c8\u30eb\u3092\u6c42\u3081\u308b\u969b\u306b\u8ee2\u7f6e\u884c\u5217\u306e\u8a08\u7b97\u304c\u4f55\u5ea6\u3082\u73fe\u308c\u307e\u3059\u3002Python\u3067\u78ba\u304b\u3081\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-18204\" src=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-4.jpg\" alt=\"\" width=\"800\" height=\"628\" srcset=\"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-4.jpg 800w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-4-300x236.jpg 300w, https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-4-768x603.jpg 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E8%BB%A2%E7%BD%AE%E8%A1%8C%E5%88%97%E3%81%AE%E5%85%AC%E5%BC%8F\"><\/span>\u8ee2\u7f6e\u884c\u5217\u306e\u516c\u5f0f<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u8ee2\u7f6e\u884c\u5217\u306e\u516c\u5f0f\u306e\u6b63\u898f\u65b9\u7a0b\u5f0f\u306e\u5c0e\u51fa\u306b\u3082\u4f7f\u308f\u308c\u307e\u3059\u3002<\/p>\n<p>(1) (A&#8217;)=A<br \/>\n(2) (AB)&#8217; = B&#8217;A&#8217;<br \/>\n(3) \u03b1\u3068\u03b2\u304c\u30b9\u30ab\u30e9\u30fc\u306a\u3089\u3070<br \/>\n\u03b1&#8217; = \u03b1\u3000(4) (\u03b1A+\u03b2B)&#8217; = \u03b1A&#8217; + \u03b2B&#8217;<\/p>\n<p>3\u00d72\u884c\u5217A\u30682\u00d73\u884c\u5217B\u3092\u7528\u3044\u3066\u3001\u516c\u5f0f(1)\u3068(2)\u3092\u78ba\u304b\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<p>&gt;&gt;&gt;\u3000 A = np.array([[1, 2, 3],<br \/>\n&gt;&gt;&gt;\u3000 [4, 5, 6]])<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u3000 B = np.array([[-1, 0],<br \/>\n&gt;&gt;&gt;\u3000 [2, 3],<br \/>\n&gt;&gt;&gt;\u3000 [4, 6]])<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u3000 print((A.T).T)<br \/>\n&gt;&gt;&gt;\u3000 [[1 2 3]<br \/>\n&gt;&gt;&gt;\u3000 [4 5 6]]<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u3000 print((A@B).T)<br \/>\n&gt;&gt;&gt;\u3000 [[15 30]<br \/>\n&gt;&gt;&gt;\u3000 [24 51]]<br \/>\n&gt;&gt;&gt;<br \/>\n&gt;&gt;&gt;\u3000 print(B.T @ A.T)<br \/>\n&gt;&gt;&gt;\u3000 [[15 30]<br \/>\n&gt;&gt;&gt;\u3000 [24 51]]<\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E5%81%8F%E5%BE%AE%E5%88%86\"><\/span>\u504f\u5fae\u5206<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>\u8ee2\u7f6e\u884c\u5217\u3068\u3068\u3082\u306b\u6b63\u898f\u65b9\u7a0b\u5f0f\u5c0e\u51fa\u306b\u4f7f\u308f\u308c\u308b\u306e\u304c\u504f\u5fae\u5206\u3067\u3059\u3002\u95a2\u6570\u306e\u6975\u5024\u3092\u6c42\u3081\u308b\u5834\u5408\u306b\u7528\u3044\u308b\u306e\u304c\u5fae\u5206\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001f(x)=x<sup>2<\/sup>\u306e\u3068\u304df(x)\u3092x\u3067\u5fae\u5206\u3059\u308b\u3068f'(x)=2x\u3068\u306a\u308a\u307e\u3059\u3002\u3053\u306e\u5fae\u5206\u306fdf\/dx\u3068\u3082\u66f8\u304b\u308c\u307e\u3059\u3002<\/p>\n<p>2\u3064\u4ee5\u4e0a\u306e\u5909\u6570\u3092\u6301\u3064\u591a\u5909\u6570\u95a2\u6570\u306b\u5bfe\u3059\u308b\u5fae\u5206\u304c\u504f\u5fae\u5206\u3068\u547c\u3070\u308c\u307e\u3059\u3002\u4f8b\u3048\u3070\u30012\u5909\u6570\u95a2\u6570f(x, y) = x<sup>2<\/sup>+y<sup>3<\/sup>\u306b\u5bfe\u3057\u3066\u3001f(x, y)\u3092x\u3067\u5fae\u5206\u3059\u308b\u3053\u3068\u3092x\u3067\u504f\u5fae\u5206\u3059\u308b\u3068\u3044\u3044\u307e\u3059\u3002\u3053\u308c\u3092\u2202f\/\u2202x = 2x\u3068\u8868\u3057\u307e\u3059\u3002<\/p>\n<p>x\u3067\u504f\u5fae\u5206\u3059\u308b\u5834\u5408\u3001\u5909\u6570x\u4ee5\u5916\u306e\u5909\u6570\u306f\u5b9a\u6570\u3068\u307f\u306a\u3057\u3066\u5fae\u5206\u3057\u307e\u3059\u3002f(x, y)\u3092y\u3067\u504f\u5fae\u5206\u3059\u308b\u3068\u3001\u2202f\/\u2202y = 3y<sup>2<\/sup>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6700\u5c0f2\u4e57\u6cd5\u3067\u6271\u3046\u300c\u5dee\u306e2\u4e57\u548cQ\u300d\u306f2\u3064\u4ee5\u4e0a\u306e\u56de\u5e30\u4fc2\u6570\u306e\u591a\u5909\u6570\u95a2\u6570\u3067\u3059\u3002\u3057\u305f\u304c\u3063\u3066\u3001Q\u306e\u6975\u5024\u3092\u6c42\u3081\u308b\u5834\u5408\u306b\u306f\u3001Q\u3092\u8aac\u660e\u5909\u6570\u3054\u3068\u306b\u504f\u5fae\u5206\u3057\u30660\u3068\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>\u306f\u305f\u3057\u3066\u3001\u9023\u7acb\u65b9\u7a0b\u5f0f\u3092\u89e3\u3051\u3070Q\u3092\u6700\u5c0f\u5316\u3059\u308b\u56de\u5e30\u4fc2\u6570\u304c\u6c42\u307e\u308a\u307e\u3059\u3002\u504f\u5fae\u5206\u3068\u805e\u304f\u3068\u96e3\u3057\u305d\u3046\u306b\u601d\u308f\u308c\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u7d50\u5c401\u3064\u3060\u3051\u306e\u5909\u6570\u306b\u7740\u76ee\u3057\u3001\u305d\u308c\u4ee5\u5916\u306e\u5909\u6570\u3092\u5b9a\u6570\u3068\u307f\u3066\u5fae\u5206\u3059\u308c\u3070\u3044\u3044\u308f\u3051\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/club.informatix.co.jp\/?p=18419\" target=\"_blank\" rel=\"noopener\">\u6b21\u56de<\/a>\u306f\u91cd\u56de\u5e30\u5206\u6790\u306e\u56de\u5e30\u4fc2\u6570\u306e\u5c0e\u51fa\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u7d50\u679c\u306e\u53ef\u8996\u5316\u3092\u307f\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6700\u5c0f2\u4e57\u6cd5\uff5c\u306a\u305c2\u4e57\u306a\u306e\u304b \u30c7\u30fc\u30bf\u306e\u70b9\u3068\u56de\u5e30\u76f4\u7dda\u4e0a\u306e\u70b9\u306e\u5dee\u30922\u4e57\u3057\u305f\u548c\u306e\u6700\u5c0f\u5316\u3092\u8003\u3048\u308b\u306e\u304c\u6700\u5c0f2\u4e57\u6cd5\u3067\u3059\u304c\u3001\u305d\u3082\u305d\u3082\u306a\u305c2\u4e57\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f\u7d76\u5bfe\u5024\u3084\u548c\u3084\u7a4d\u3067\u306f\u30c0\u30e1\u306a\u306e\u3067\u3057\u3087\u3046\u304b\uff1f \u3053\u308c\u307e\u3067\u898b\u3066\u304d\u305f\u3088\u3046 &#8230; <\/p>\n","protected":false},"author":4,"featured_media":18205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,464,526],"tags":[65,750],"class_list":["post-18201","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-4","category-hito-star-mathmatics","category-526","tag-python","tag-750"],"jetpack_featured_media_url":"https:\/\/club.informatix.co.jp\/wp-content\/uploads\/2022\/12\/20221228-1.jpg","_links":{"self":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/18201","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18201"}],"version-history":[{"count":7,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/18201\/revisions"}],"predecessor-version":[{"id":20764,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/18201\/revisions\/20764"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=\/wp\/v2\/media\/18205"}],"wp:attachment":[{"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/club.informatix.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}