{"id":13001,"date":"2017-09-28T10:00:51","date_gmt":"2017-09-28T01:00:51","guid":{"rendered":"http:\/\/sitest.jp\/blog\/?p=13001"},"modified":"2017-09-26T15:12:15","modified_gmt":"2017-09-26T06:12:15","slug":"python%e3%81%a7%e7%b5%b1%e8%a8%88%e5%ad%a6%e5%85%a5%e9%96%80%e2%80%95python%e3%81%a7%e7%9b%b8%e9%96%a2%e4%bf%82%e6%95%b0%e3%82%92%e6%b1%82%e3%82%81%e3%81%a6%e3%81%bf%e3%82%8b%e2%80%95","status":"publish","type":"post","link":"https:\/\/sitest.jp\/blog\/?p=13001","title":{"rendered":"Python\u3067\u7d71\u8a08\u5b66\u5165\u9580\u2015Python\u3067\u76f8\u95a2\u4fc2\u6570\u3092\u6c42\u3081\u3066\u307f\u308b\u2015"},"content":{"rendered":"<p><a href=\"https:\/\/sitest.jp\/blog\/?p=11600\">\u4ee5\u524d\u306e\u8a18\u4e8b<\/a>\u3067\u3001\u3068\u3042\u308b\u5b66\u5e74\u306e\u56fd\u8a9e\u306e\u70b9\u6570\u306e\u504f\u5dee\u5024\u3092\u6c42\u3081\u307e\u3057\u305f\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u300c\u56fd\u8a9e\u306e\u70b9\u6570\u304c\u9ad8\u3044\u751f\u5f92\u306f\u6570\u5b66\u306e\u70b9\u6570\u3082\u9ad8\u3044\u300d\u3053\u3068\u304c\u7d71\u8a08\u7684\u306b\u8a00\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3001Python \u3067\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\n\u76f8\u95a2\u4fc2\u6570\u3092 Python \u3067\u8a08\u7b97\u3059\u308b<br \/>\n<\/h3>\n<\/div>\n<p>\u4e8c\u3064\u306e\u5024\u306e\u9593\u306b\u95a2\u4fc2\u6027\u3001\u3064\u307e\u308a\u300c\u3042\u308b\u5024\u304c\u9ad8\u304f(\u4f4e\u304f)\u306a\u308c\u3070\u3001\u3082\u3046\u4e00\u3064\u306e\u5024\u3082\u9ad8\u304f(\u4f4e\u304f)\u306a\u308b\u300d\u3068\u8a00\u3046\u95a2\u4fc2\u3092\u7d71\u8a08\u5b66\u3067\u306f\u3001\u76f8\u95a2\u95a2\u4fc2\u3068\u3044\u3044\u3001\u3069\u306e\u304f\u3089\u3044\u95a2\u4fc2\u3057\u3066\u3044\u308b\u304b\u3092\u300c\u76f8\u95a2\u4fc2\u6570\u300d\u3068\u3044\u3046\u5024\u3067\u8868\u73fe\u3057\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u4ee5\u524d\u306e\u5b66\u5e74\u5168\u54e1\u3088\u308a\u4eba\u6570\u3092\u5c11\u306a\u3081\u306b\u3057\u3066\u3001\u3042\u308b\u30af\u30e9\u30b9\u306e\u70b9\u6570\u306b\u3057\u3066\u307f\u307e\u3057\u3087\u3046<br \/>\n\u3042\u308b\u30af\u30e9\u30b9\u306e\u56fd\u8a9e\u306e\u70b9\u6570\u3001\u304a\u3088\u3073\u6570\u5b66\u306e\u70b9\u6570\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3069\u306e\u307f\u3061 Python \u3067\u8a08\u7b97\u3059\u308b\u306e\u3067\u3001Python \u306e\u914d\u5217\u3067\u8868\u73fe\u3057\u3066\u3057\u307e\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code>japanese = [5, 73, 29, 63, 68, 28, 45, 78, 70, 93]\nmath = [11, 82, 25, 61, 66, 27, 42, 88, 71, 84]\n<\/code><\/pre>\n<p>\u3055\u3066\u3001\u65e9\u901fPython\u3067\u8a08\u7b97\u3057\u307e\u3059\u3002\u30e2\u30b8\u30e5\u30fc\u30eb\u3067\u3042\u308b Numpy \u306b\u306f\u3001\u7c21\u5358\u306b\u3001\u76f8\u95a2\u4fc2\u6570\u3092\u8a08\u7b97\u3067\u304d\u308b numpy.corrcoef \u95a2\u6570\u304c\u3042\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u5229\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre><code>import numpy\n\njapanese = [5, 73, 29, 63, 68, 28, 45, 78, 70, 93]\nmath = [11, 82, 25, 61, 66, 27, 42, 88, 71, 84]\n\ncorrelation = numpy.corrcoef(japanese, math)\n\nprint(correlation[0,1])\n\n<\/code><\/pre>\n<p>\u3055\u3066\u3001\u3059\u3050\u306b\u7d50\u679c\u304c\u51fa\u307e\u3057\u305f\u3002<\/p>\n<pre><code>0.975751057911\n<\/code><\/pre>\n<p>\u76f8\u95a2\u4fc2\u6570\u306f-1\u301c+1\u306e\u9593\u306e\u5024\u3092\u3068\u308a\u00b11\u306b\u8fd1\u304f\u307b\u3069\u3001\u4e8c\u3064\u306e\u5024\u306e\u9593\u306b\u95a2\u9023\u304c\u898b\u3089\u308c\u308b\u3002\u3068\u3044\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306e\u5024\u306f0.975751057911\u3068\u306a\u308a\u307e\u3057\u305f\u306e\u3067\u3001\u3053\u306e\u4e8c\u3064\u306e\u70b9\u6570\u306e\u9593\u306b\u306f\u304b\u306a\u308a\u5f37\u3044\u6b63\u306e\u76f8\u95a2\u3001\u3059\u306a\u308f\u3061\u56fd\u8a9e\u306e\u70b9\u6570\u304c\u9ad8\u3044\u751f\u5f92\u306f\u3001\u6570\u5b66\u306e\u70b9\u6570\u3082\u9ad8\u3044\u50be\u5411\u306b\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u8a00\u3048\u307e\u3059\u3002<\/p>\n<div class=\"frame_headding\">\n<h3 style=\"text-align: left;\">\n\u76f8\u95a2\u95a2\u4fc2\u306f\u56e0\u679c\u95a2\u4fc2\u3092\u8a3c\u660e\u3059\u308b\u3082\u306e\u3067\u306f\u306a\u3044<br \/>\n<\/h3>\n<\/div>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u4e8c\u3064\u306e\u5024\u306e\u50be\u5411\u3092\u63a2\u308b\u306e\u306b\u4fbf\u5229\u306a\u76f8\u95a2\u4fc2\u6570\u3067\u3059\u304c\u3001\u305c\u3072\u6ce8\u610f\u3057\u305f\u3044\u70b9\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u305d\u308c\u306f\u300c\u76f8\u95a2\u95a2\u4fc2\u304c\u3042\u308b\u304b\u3089\u3068\u3044\u3063\u3066\u3001\u56e0\u679c\u95a2\u4fc2\u304c\u3042\u308b\u3053\u3068\u3092\u8a3c\u660e\u3067\u304d\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u300d\u3068\u3044\u3046\u70b9\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u56fd\u8a9e\u306e\u70b9\u6570\u304c\u9ad8\u3044\u300c\u304b\u3089\u300d\u6570\u5b66\u306e\u70b9\u6570\u304c\u9ad8\u3044\u3068\u3044\u3046\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u56e0\u679c\u95a2\u4fc2\u304c\u6210\u308a\u7acb\u3063\u3066\u3044\u308b\u306e\u306a\u3089\u3001\u56fd\u8a9e\u306e\u52c9\u5f37\u300c\u3060\u3051\u300d\u3092\u3057\u3066\u56fd\u8a9e\u306e\u70b9\u6570\u304c\u9ad8\u3051\u308c\u3070\u3001\u6570\u5b66\u306e\u52c9\u5f37\u3092\u3057\u306a\u304f\u3066\u3082\u3001\u52dd\u624b\u306b\u6570\u5b66\u306e\u70b9\u6570\u3082\u4e0a\u304c\u3063\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u3046\u3067\u306a\u3044\u3053\u3068\u306f\u3001\u79c1\u305f\u3061\u306e\u7d4c\u9a13\u304b\u3089\u898b\u3066\u3082\u660e\u3089\u304b\u3067\u3059\u3002<\/p>\n<p>\u793e\u4f1a\u8abf\u67fb\u306a\u3069\u3067\u306f\u76f8\u95a2\u95a2\u4fc2\u3092\u7528\u3044\u3066\u3001\u3044\u308d\u3044\u308d\u306a\u4e3b\u5f35\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u305d\u308c\u3089\u304c\u4f55\u3092\u4e3b\u5f35\u3057\u3066\u3044\u308b\u306e\u304b\u3001\u6ce8\u610f\u3057\u3066\u307f\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u76f8\u95a2\u95a2\u4fc2\u304c\u3042\u308b\u306e\u306b\u904e\u304e\u306a\u3044\u306e\u306b\u3001\u307e\u308b\u3067\u300c\u00d7\u00d7\u304c\u4f4e\u3044(\u9ad8\u3044)\u304b\u3089\u300c\u25cb\u25cb\u304c\u4f4e\u3044(\u9ad8\u3044)\u300d\u3068\u3044\u3046\u56e0\u679c\u95a2\u4fc2\u304c\u5b58\u5728\u3057\u3066\u3044\u308b\u304b\u306e\u3088\u3046\u306a\u4e3b\u5f35\u3092\u3057\u3066\u3044\u308b\u4f8b\u306f\u3001\u601d\u3063\u305f\u3088\u308a\u3082\u305f\u304f\u3055\u3093\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u76f8\u95a2\u95a2\u4fc2\u306e\u9650\u754c\u3092\u3088\u304f\u77e5\u308a\u3001\u9762\u767d\u3044\u7d71\u8a08\u30e9\u30a4\u30d5\u3092\u9001\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u305d\u308c\u3067\u306f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u306e\u8a18\u4e8b\u3067\u3001\u3068\u3042\u308b\u5b66\u5e74\u306e\u56fd\u8a9e\u306e\u70b9\u6570\u306e\u504f\u5dee\u5024\u3092\u6c42\u3081\u307e\u3057\u305f\u3002 \u4eca\u56de\u306f\u3001\u300c\u56fd\u8a9e\u306e\u70b9\u6570\u304c\u9ad8\u3044\u751f\u5f92\u306f\u6570\u5b66\u306e\u70b9\u6570\u3082\u9ad8\u3044\u300d\u3053\u3068\u304c\u7d71\u8a08\u7684\u306b\u8a00\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u304b\u3069\u3046\u304b\u3001Python \u3067\u8a08\u7b97\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":13003,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[27],"tags":[],"acf":false,"_links":{"self":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/13001"}],"collection":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/comments?post=13001"}],"version-history":[{"count":3,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/13001\/revisions"}],"predecessor-version":[{"id":13005,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/posts\/13001\/revisions\/13005"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media\/13003"}],"wp:attachment":[{"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/media?parent=13001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/categories?post=13001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sitest.jp\/blog\/wp-json\/wp\/v2\/tags?post=13001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}