{"height":"190","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","width":"100%","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/18/141616","blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","categories":["python","\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0"],"author_name":"rare_Remrin","type":"rich","provider_name":"Hatena Blog","version":"1.0","title":"\u6700\u5c0f\u4e8c\u4e57\u6cd5","published":"2017-05-18 14:16:16","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/r/rare_Remrin/20170518/20170518140226.png","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F18%2F141616\" title=\"\u6700\u5c0f\u4e8c\u4e57\u6cd5 - Remrin\u306epython\u653b\u7565\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"\u6700\u5c0f\u4e8c\u4e57\u6cd5\u306b\u3064\u3044\u3066\u3002 (2, 3), (4, 7), (9, 11)\u306e3\u70b9\u3092\u30c7\u30fc\u30bf\u3068\u3057\u3066\u3001\u6700\u5c0f\u4e8c\u4e57\u6cd5\u30921\u6b21\u5f0f\u3067\u884c\u3046\u5834\u5408\u3002 \u3068\u3059\u308b\u3068\u3001 \u3053\u308c\u306e\u6700\u5c0f\u5024\u3092\u6c42\u3081\u308b\u3053\u3068\u306b\u306a\u308a\u3001\u504f\u5fae\u5206\u3092\u3057\u3066 \u3068\u306a\u308b\u30d9\u30af\u30c8\u30eb\u304c\u4fc2\u6570\u30d9\u30af\u30c8\u30eb\u3068\u306a\u308b\u3002 # coding: utf-8 import numpy as np import matplotlib.pyplot as plt data = [(2, 3), (4, 7), (9, 11)] a = np.matrix(data) b = a[:, 1].copy() a[:, 1] = 1 # \u4fc2\u6570\u30d9\u30af\u30c8\u30eb\u3092\u6c42\u3081\u308b x = ((a.T * a)**-1) * a.T *\u2026","blog_url":"https://python-remrin.hatenadiary.jp/"}