{"id":2241,"date":"2022-02-20T13:24:58","date_gmt":"2022-02-20T04:24:58","guid":{"rendered":"https:\/\/aiacademy.jp\/media\/?p=2241"},"modified":"2024-08-06T13:36:41","modified_gmt":"2024-08-06T04:36:41","slug":"%e3%80%90%e7%b5%b1%e8%a8%88%e3%80%91%e5%9b%9b%e5%88%86%e4%bd%8d%e5%81%8f%e5%b7%ae%e3%81%a8%e3%81%af","status":"publish","type":"post","link":"https:\/\/aiacademy.jp\/media\/?p=2241","title":{"rendered":"\u3010\u7d71\u8a08\u3011\u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f"},"content":{"rendered":"<div id=\"sgb-css-id-1\">\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button has-custom-font-size is-style-fill has-medium-font-size\"><a class=\"wp-block-button__link has-vivid-green-cyan-background-color has-background wp-element-button\" href=\"https:\/\/lin.ee\/3E4GzWk\" rel=\"nofollow noopener\" target=\"_blank\">LINE\u53cb\u3060\u3061\u767b\u9332 \u25b6\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30b9\u30b3\u30fc\u30b9\u25b6\u53d7\u8b1b\u5272\u5f15\u30af\u30fc\u30dd\u30f3 \u7121\u6599\u52d5\u753b<\/a><\/div>\n<\/div>\n<\/div>\n\n\n<div class=\"toc\">    <div id=\"toc_container\" class=\"sgb-toc--no-bullets js-smooth-scroll\" data-dialog-title=\"Table of Contents\">\n      <p class=\"toc_title\">\u76ee\u6b21 <\/p>\n      <ul class=\"toc_list\">  <li class=\"first\">    <span><\/span>    <ul class=\"menu_level_1\">      <li class=\"first\">        <a href=\"#i-0\">\u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f<\/a>      <\/li>      <li class=\"last\">        <a href=\"#i-1\">Python\u3067\u56db\u5206\u4f4d\u504f\u5dee\u3092\u6c42\u3081\u308b<\/a>      <\/li>    <\/ul>  <\/li>  <li class=\"last\">    <a href=\"#i-2\">Python\u3084\u7d71\u8a08\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f<\/a>  <\/li><\/ul>\n      \n    <\/div><\/div><div class=\"toc\"><p><\/p>\n<\/div><h2 class=\"wp-block-heading\" id=\"i-0\">\u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f<\/h2>\n\n\n\n<p><strong>\u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f\u3001<a href=\"https:\/\/aiacademy.jp\/media\/?p=2232\">\u56db\u5206\u4f4d\u7bc4\u56f2<\/a>\uff08Q3 \u2013 Q1\uff09\u3092\u4e8c\u7b49\u5206\u3057\u305f\u5024\u3067\u3059\u3002<\/strong>\u30c7\u30fc\u30bf\u306e\u3070\u3089\u3064\u304d\u5177\u5408\u3092\u793a\u3059\u6307\u6a19\u306e\u4e00\u3064\u3067\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"511\" height=\"148\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-20-13.23.20.png\" alt=\"\" class=\"wp-image-2244\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-20-13.23.20.png 511w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2022\/02\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2022-02-20-13.23.20-300x87.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\"><\/figure>\n\n\n\n<p>\u56db\u5206\u4f4d\u7bc4\u56f2\u3067\u306f\u3001\u4e2d\u592e\u5024\uff08Q2\uff09\u304b\u3089Q1\u3001Q3\u304c\u3069\u306e\u304f\u3089\u3044\u96e2\u308c\u3066\u3044\u308b\u304b\u628a\u63e1\u3067\u304d\u307e\u305b\u3093\u304c\u3001\u56db\u5206\u4f4d\u7bc4\u56f2\u306e\u5024\u3092\u4e8c\u7b49\u5206\u3059\u308b\u3053\u3068\u3067\u3001<strong>Q1\u3001Q3\u304c\u4e2d\u592e\u5024\u304b\u3089\u5e73\u5747\u3067\u3069\u306e\u304f\u3089\u3044\u96e2\u308c\u3066\u3044\u308b\u304b\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"i-1\">Python\u3067<meta charset=\"utf-8\"><strong>\u56db\u5206\u4f4d\u504f\u5dee<\/strong>\u3092\u6c42\u3081\u308b<\/h2>\n\n\n\n<p>numpy\u306e<code>np.percentile<\/code>\u3092\u7528\u3044\u308b\u3053\u3068\u3067\u3001<meta charset=\"utf-8\"><strong>\u56db\u5206\u4f4d\u504f\u5dee<\/strong>\u3092\u6c42\u3081\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import numpy as np\n\nsample_data = [1, 3, 5, 6, 300]\n\n# \u56db\u5206\u4f4d\u7bc4\u56f2\u3092\u6c42\u3081\u308b\nq1 = np.percentile(sample_data, 25)   # \u7b2c1\u56db\u5206\u4f4d\u6570\nq2 = np.percentile(sample_data, 50)   # \u7b2c2\u56db\u5206\u4f4d\u6570\uff08\u4e2d\u592e\u5024\uff09\nq3 = np.percentile(sample_data, 75)   # \u7b2c3\u56db\u5206\u4f4d\u6570\niqr = q3 - q1\n\n# \u7d50\u679c\u3092\u51fa\u529b\nprint(f\"\u7b2c1\u56db\u5206\u4f4d\u6570: {q1}\")\nprint(f\"\u7b2c2\u56db\u5206\u4f4d\u6570\uff08\u4e2d\u592e\u5024\uff09: {q2}\")\nprint(f\"\u7b2c3\u56db\u5206\u4f4d\u6570: {q3}\")\nprint(f\"\u56db\u5206\u4f4d\u7bc4\u56f2: {iqr}\")\nprint(f\"\u56db\u5206\u4f4d\u504f\u5dee: {iqr \/ 2}\")<\/code><\/pre>\n\n\n\n<p><strong>\u51fa\u529b\u7d50\u679c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u7b2c1\u56db\u5206\u4f4d\u6570: 3.0\n\u7b2c2\u56db\u5206\u4f4d\u6570\uff08\u4e2d\u592e\u5024\uff09: 5.0\n\u7b2c3\u56db\u5206\u4f4d\u6570: 6.0\n\u56db\u5206\u4f4d\u7bc4\u56f2: 3.0\n\u56db\u5206\u4f4d\u504f\u5dee: 1.5<\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"i-2\">Python\u3084\u7d71\u8a08\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f<\/h1>\n\n\n\n<p>Python\u3084\u7d71\u8a08\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\u3001\u666e\u6bb5\u304b\u3089Python\u3084\u7d71\u8a08\u5b66\u3092\u7528\u3044\u3066\u696d\u52d9\u3092\u3057\u3066\u3044\u308b\u73fe\u5f79\u306e\u30c7\u30fc\u30bf\u30b5\u30a4\u30a8\u30f3\u30c6\u30a3\u30b9\u30c8\u306b\u8cea\u554f\u3067\u304d\u308b\u74b0\u5883\u3067\u5b66\u3076\u3053\u3068\u3067\u3059\u3002<br>\u8cea\u554f\u3057\u653e\u984c\u304b\u3064\u3001\u4f53\u7cfb\u7684\u306b\u5b66\u3079\u308b\u52d5\u753b\u30b3\u30f3\u30c6\u30f3\u30c4\u3067\u30c7\u30fc\u30bf\u5206\u6790\u6280\u8853\u3092\u5b66\u3073\u305f\u3044\u65b9\u306f\u3001\u30aa\u30f3\u30e9\u30a4\u30f3\u3067\u597d\u304d\u306a\u6642\u9593\u306b\u52c9\u5f37\u3067\u304d\u308b<a href=\"https:\/\/aiacademy.jp\/bootcamp\">AI Academy Bootcamp<\/a>\u304c\u30aa\u30b9\u30b9\u30e1\u3067\u3059\u3002\u53d7\u8b1b\u6599\u3082\u696d\u754c\u6700\u5b89\u5024\u306e35,000\u5186\uff08\uff16\u30f6\u6708\u9593\u8cea\u554f\u3057\u653e\u984c\uff0b\u30aa\u30ea\u30b8\u30ca\u30eb\u306e\u52d5\u753b\u30b3\u30f3\u30c6\u30f3\u30c4\u3001\u30c6\u30ad\u30b9\u30c8\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u5229\u7528\u53ef\u80fd\uff09\u306a\u306e\u3067\u3001\u662f\u975e\u3054\u6d3b\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/aiacademy.jp\/bootcamp\/\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"341\" src=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png\" alt=\"\" class=\"wp-image-691\" srcset=\"https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-1024x341.png 1024w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-300x100.png 300w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-768x256.png 768w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi-940x313.png 940w, https:\/\/aiacademy.jp\/media\/wp-content\/uploads\/2021\/12\/bootcamp_ad_72ppi.png 1200w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u76ee\u6b21 \u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f Python\u3067\u56db\u5206\u4f4d\u504f\u5dee\u3092\u6c42\u3081\u308b Python\u3084\u7d71\u8a08\u3092\u52b9\u7387\u3088\u304f\u5b66\u3076\u306b\u306f\uff1f \u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f \u56db\u5206\u4f4d\u504f\u5dee\u3068\u306f\u3001\u56db\u5206\u4f4d\u7bc4\u56f2\uff08Q3 \u2013 Q1\uff09\u3092\u4e8c\u7b49\u5206\u3057\u305f\u5024\u3067\u3059\u3002\u30c7\u30fc\u30bf\u306e\u3070\u3089\u3064\u304d\u5177\u5408\u3092\u793a\u3059\u6307\u6a19\u306e\u4e00\u3064\u3067\u3059\u3002  &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2247,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[154,131],"tags":[],"class_list":{"0":"post-2241","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-154","8":"category-131"},"_links":{"self":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/2241","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2241"}],"version-history":[{"count":8,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/2241\/revisions"}],"predecessor-version":[{"id":4664,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/posts\/2241\/revisions\/4664"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=\/wp\/v2\/media\/2247"}],"wp:attachment":[{"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aiacademy.jp\/media\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}