{"id":2140,"date":"2019-11-04T20:41:23","date_gmt":"2019-11-04T11:41:23","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=2140"},"modified":"2020-01-19T18:15:59","modified_gmt":"2020-01-19T09:15:59","slug":"%e5%8c%ba%e9%96%93%e6%8e%a8%e5%ae%9a%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/2140","title":{"rendered":"\u533a\u9593\u63a8\u5b9a\u3068\u306f"},"content":{"rendered":"<p><script async src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/mathjax\/2.7.0\/MathJax.js?config=TeX-AMS_CHTML\"><\/script><\/p>\n<style>\n.c_box.yellow_box {\n\tfont-size:18px;\n\twhite-space: normal;<\/p>\n<p>}\n<\/style>\n<p><a href=\"http:\/\/www.python.ambitious-engineer.com\/archives\/2138\">\u524d\u3005\u56de<\/a>\u3001\u6a19\u672c\u304b\u3089\u6bcd\u96c6\u56e3\u306e\u5e73\u5747\u3084\u5206\u6563\u3068\u3044\u3063\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6c42\u3081\u308b\u305f\u3081\u306e\u70b9\u63a8\u5b9a\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u533a\u9593\u63a8\u5b9a\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u533a\u9593\u63a8\u5b9a<\/h2>\n<p>\u70b9\u63a8\u5b9a\u306f\u5f0f\u306b\u5f53\u3066\u306f\u3081\u308c\u3070\u6bcd\u96c6\u56e3\u306e\u63a8\u5b9a\u5024\u304c\uff11\u70b9\u3067\u6c42\u307e\u308b\u305f\u3081\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u4f7f\u3046\u4e0a\u3067\u554f\u984c\u3082\u3042\u308a\u307e\u3059\u3002\u901a\u5e38\u3001\u6a19\u672c\u304b\u3089\u8a08\u7b97\u3057\u305f\u63a8\u5b9a\u5024\u304c\u6bcd\u96c6\u56e3\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u5b8c\u5168\u306b\u4e00\u81f4\u3059\u308b\u3053\u3068\u306f\u306a\u304f\u3001\u6a19\u672c\u30b5\u30a4\u30ba\u3084\u6a19\u672c\u306e\u3070\u3089\u3064\u304d\u5177\u5408\u306b\u3088\u3063\u3066\u69d8\u3005\u306b\u8aa4\u5dee\u304c\u767a\u751f\u3057\u307e\u3059\u3002\u533a\u9593\u63a8\u5b9a\u3067\u306f\u63a8\u5b9a\u5024\u3092\u3042\u308b\u7bc4\u56f2\u5185\u3067\u305d\u306e\u6bcd\u96c6\u56e3\u306e\u63a8\u6e2c\u5024\u304c\u53ce\u307e\u308b\u304b\u3092\u78ba\u7387\u7684\u306b\u8a55\u4fa1\u3059\u308b\u3053\u3068\u3067\u3053\u306e\u554f\u984c\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u300c\u3042\u308b\u8fb2\u5712\u306e\u307f\u304b\u3093\u3092\u3044\u304f\u3064\u304b\u6a19\u672c\u3068\u3057\u3066\u91cd\u91cf\u3092\u8a08\u6e2c\u3057\u305f\u7d50\u679c\u3001\u8fb2\u5712\u5168\u4f53\u306e\u307f\u304b\u3093\u306e\u5e73\u5747\u91cd\u91cf\u306f95g\u304b\u3089105g\u306e\u9593\u306b95%\u306e\u78ba\u7387\u3067\u53ce\u307e\u308b\u3002\u300d\u3068\u3044\u3063\u305f\u5177\u5408\u306b\u6bcd\u96c6\u56e3\u306e\u7d71\u8a08\u5024\u3092\u533a\u9593\u3068\u78ba\u7387\u3067\u8868\u73fe\u3057\u307e\u3059\u3002\u3053\u306e\u4f8b\u306e95g\u304b\u3089105g\u3068\u3044\u3046\u533a\u9593\u3092\u4fe1\u983c\u533a\u9593\u30010.95(=95%)\u306e\u3053\u3068\u3092\u4fe1\u983c\u4fc2\u6570\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<h2>\u6bcd\u5206\u6563\u304c\u65e2\u77e5\u306e\u6b63\u898f\u5206\u5e03 \u6bcd\u5e73\u5747\u306e\u533a\u9593\u63a8\u5b9a<\/h2>\n<p>\u533a\u9593\u63a8\u5b9a\u3092\u3059\u308b\u306b\u306f\u72b6\u6cc1\u306b\u5fdc\u3058\u3066\u5b9a\u307e\u3063\u305f\u6761\u4ef6\u304c\u6e80\u305f\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u4ee5\u4e0b\uff12\u6761\u4ef6\u3092\u6e80\u305f\u3059\u5834\u5408\u306e\u6bcd\u5e73\u5747\u306e\u533a\u9593\u63a8\u5b9a\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<ul>\n<li>\u6b63\u898f\u5206\u5e03\u3067\u3042\u308b<\/li>\n<li>\u6bcd\u5206\u6563\u304c\u65e2\u77e5\u3067\u3042\u308b<\/li>\n<\/ul>\n<p>\u6bcd\u96c6\u56e3X\u304c\u6b63\u898f\u5206\u5e03\u3067\u6bcd\u5206\u6563\u304c\u5224\u660e\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u95a2\u4fc2\u304c\u6210\u7acb\u3057\u307e\u3059\u3002<\/p>\n<div class=\"c_box intitle yellow_box\"><div class=\"box_title\"><span>\u6b63\u898f\u5206\u5e03\u3067\u6bcd\u5206\u6563\u304c\u65e2\u77e5<\/span><\/div>\n\u5e73\u5747\\(\\mu\\)\u3001\u6a19\u6e96\u504f\u5dee\\(\u03c3\\)\u306e\u6bcd\u96c6\u56e3\\(X\\)\u304c\u6b63\u898f\u5206\u5e03\u3067\u3042\u308b\u5834\u5408\u3001\u6a19\u672c\u5e73\u5747\\(\\overline{X}\\)\u306e\u5206\u5e03\u306f\u5e73\u5747\\(\\mu\\)\u3001\u6a19\u6e96\u504f\u5dee\\(\u03c3\/\\sqrt{N}\\)\u306e\u6b63\u898f\u5206\u5e03\u306b\u8fd1\u4f3c\u3067\u304d\u308b\u3002<br \/>\n<\/div>\n<p>\u3069\u3053\u304b\u3067\u898b\u305f\u516c\u5f0f\u3067\u3059\u306d\u3002\u524d\u56de\u306e\u4e2d\u5fc3\u6975\u9650\u5b9a\u7406\u304c\u4f7f\u308f\u308c\u3066\u304a\u308a\u3001\u307b\u307c\u305d\u306e\u307e\u307e\u3068\u306a\u308a\u307e\u3059\u3002\u9014\u4e2d\u5f0f\u306f\u5272\u611b\u3057\u307e\u3059\u304c\u3001\u4e0a\u306e\u516c\u5f0f\u304b\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6bcd\u5e73\u5747\\(\\mu\\)\u306b\u3064\u3044\u3066\u4fe1\u983c\u4fc2\u6570\\(\\alpha\\)\u306e\u4fe1\u983c\u533a\u9593\u306e\u516c\u5f0f\u3092\u5c0e\u51fa\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\\[<br \/>\n\\overline{X} - Z_{\\alpha\/2} \\sqrt{\\sigma^2\/N} < \\mu < \\overline{X} + Z_{\\alpha\/2} \\sqrt{\\sigma^2\/N}\n\\]\n\u306a\u304a\u3001\\(Z_{\\alpha\/2}\\)\u306f\u6a19\u6e96\u6b63\u898f\u5206\u5e03\u306e\\({\\alpha\/2} \\times 100\\)\uff05\u70b9\u3092\u8868\u3057\u307e\u3059\u3002\u6bcd\u5e73\u5747\\(\\mu\\)\u304c\\(\\alpha\\times 100\\)\uff05\u306e\u78ba\u7387\u3067\u4e0a\u306e\u4e0d\u7b49\u5f0f\u306e\u7bc4\u56f2\u306b\u53ce\u307e\u308b\u3001\u3068\u3044\u3046\u308f\u3051\u3067\u3059\u3002\n\n\n\n<h2>\u5177\u4f53\u7684\u306a\u8a08\u7b97\u4f8b<\/h2>\n<p>\u305d\u308c\u3067\u306f\u5177\u4f53\u7684\u306a\u8a08\u7b97\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p><b>\u4f8b<\/b><br \/>\n\u3042\u308b\u8fb2\u5712\u3067\u307f\u304b\u309320\u500b\u306e\u91cd\u91cf\u3092\u8a08\u6e2c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30ea\u30b9\u30c8\u306e\u901a\u308a\u3068\u306a\u3063\u305f\u3002\u3053\u306e\u8fb2\u5712\u306e\u307f\u304b\u3093\u306e\u91cd\u91cf\u306f\u6b63\u898f\u5206\u5e03\u3057\u3001\u5206\u6563\u304c\u4f8b\u5e74400\u7a0b\u5ea6\u306a\u306e\u3067\u305d\u306e\u5024\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3068\u3057\u305f\u3002\u8fb2\u5712\u5168\u4f53\u306e\u307f\u304b\u3093\u306e\u5e73\u5747\u91cd\u91cf\u306b\u3064\u3044\u306695%\u306e\u4fe1\u983c\u533a\u9593\u3092\u6c42\u3081\u3066\u307f\u308b\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# \u6a19\u672c\u30c7\u30fc\u30bf\r\nsamples = [128.4, 135.9, 126.5, 182.4, 157.6, 100.6, 176.4, 126.6, 146.1, 138.0, 167.7, 128.1, 156.1, 183.5, 133.2, 162.4, 169.0, 161.6, 127.7, 154.3]\r\n<\/pre>\n<p>\u6a19\u672c\u30b5\u30a4\u30ba\u3068\u6a19\u6e96\u6b63\u898f\u5206\u5e03\u306e\u4e0a\u50742.5%\u70b9\u3092\u6c42\u3081\u3001\u516c\u5f0f\u306b\u5f53\u3066\u306f\u3081\u307e\u3059\u3002\u6a19\u6e96\u6b63\u898f\u5206\u5e03\u306e\uff05\u70b9\u3092\u6c42\u3081\u308b\u5834\u5408\u3001stats.norm.ppf\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport numpy as np\r\nfrom scipy import stats\r\n\r\n# \u6bcd\u5206\u6563\r\nsigma2 = 400\r\n# \u6a19\u672c\u30b5\u30a4\u30ba\r\nn = len(samples)\r\n# \u6a19\u672c\u5e73\u5747\r\nsample_mean = np.mean(samples)\r\n\r\n# \u6a19\u6e96\u6b63\u898f\u5206\u5e03\u306e\u4e0a\u50742.5%\u70b9\r\nz_a = stats.norm.ppf(scale=1, loc=0, q=0.975)\r\n\r\n# \u4fe1\u983c\u533a\u9593\r\nx_0 = sample_mean - (z_a * (np.sqrt(sigma2 \/ n)))\r\nx_1 = sample_mean + (z_a * (np.sqrt(sigma2 \/ n)))\r\nprint(x_0, x_1)\r\n\r\n<\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u3053\u306e\u8fb2\u5712\u306e\u307f\u304b\u3093\u306e\u5e73\u5747\u91cd\u91cf\u306f95%\u306e\u78ba\u7387\u3067139.3g\u304b\u3089156.9g\u306e\u9593\u306b\u53ce\u307e\u308b\u3068\u8a55\u4fa1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u3005\u56de\u3001\u6a19\u672c\u304b\u3089\u6bcd\u96c6\u56e3\u306e\u5e73\u5747\u3084\u5206\u6563\u3068\u3044\u3063\u305f\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6c42\u3081\u308b\u305f\u3081\u306e\u70b9\u63a8\u5b9a\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u305f\u3002\u4eca\u56de\u306f\u533a\u9593\u63a8\u5b9a\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3057\u3087\u3046\u3002 \u533a\u9593\u63a8\u5b9a \u70b9\u63a8\u5b9a\u306f\u5f0f\u306b\u5f53\u3066\u306f\u3081\u308c\u3070\u6bcd\u96c6\u56e3\u306e\u63a8\u5b9a\u5024\u304c\uff11\u70b9\u3067\u6c42\u307e\u308b\u305f\u3081\u308f\u304b\u308a\u3084\u3059\u3044\u306e\u3067\u3059\u304c...<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,153],"tags":[170,189],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2140"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=2140"}],"version-history":[{"count":28,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2140\/revisions"}],"predecessor-version":[{"id":2652,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/2140\/revisions\/2652"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=2140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=2140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=2140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}