{"blog_url":"https://a1026302.hatenablog.com/","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","title":"\u3010c\u8a00\u8a9e\u3011\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u88c5\u3059\u308b","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/157314735/1599576939808917","author_url":"https://blog.hatena.ne.jp/a1026302/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fa1026302.hatenablog.com%2Fentry%2F2025%2F11%2F10%2F092114\" title=\"\u3010c\u8a00\u8a9e\u3011\u7dda\u5f62\u56de\u5e30\u3092\u5b9f\u88c5\u3059\u308b - \u3082\u306e\u3065\u304f\u308a\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","categories":["C","C-\u57fa\u790e"],"url":"https://a1026302.hatenablog.com/entry/2025/11/10/092114","author_name":"a1026302","height":"190","blog_title":"\u3082\u306e\u3065\u304f\u308a\u306e\u30d6\u30ed\u30b0","version":"1.0","type":"rich","description":"\u306a\u3093\u3068\u306a\u304fC\u8a00\u8a9e\u306e\u52c9\u5f37\u3092\u884c\u3044\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u7dda\u5f62\u56de\u5e30\u306e\u5b9f\u88c5\u4f8b\u3067\u3059\u3002 \uff08linear_regression.c \u3068\u3044\u3046\u540d\u524d\u3067\u4fdd\u5b58\u3057\u307e\u3059\uff09 \u30b3\u30fc\u30c9 #include <stdio.h> int main(void) { double x[] = {1, 2, 3, 4, 5}; double y[] = {2, 4, 5, 4, 5}; int n = 5; double sum_x=0, sum_y=0, sum_xy=0, sum_x2=0; for (int i = 0; i < n; i++) { sum_x += x[i]; sum_y += y[i]; sum_xy += x[i] * y\u2026","published":"2025-11-10 09:21:14"}