{"id":874,"date":"2023-07-28T11:33:30","date_gmt":"2023-07-28T11:33:30","guid":{"rendered":"https:\/\/statorials.org\/tr\/piton-binom-testi\/"},"modified":"2023-07-28T11:33:30","modified_gmt":"2023-07-28T11:33:30","slug":"piton-binom-testi","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/piton-binom-testi\/","title":{"rendered":"Python&#39;da binom testi nas\u0131l yap\u0131l\u0131r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>Binom testi,<\/strong> \u00f6rneklem oran\u0131n\u0131 varsay\u0131msal bir oranla kar\u015f\u0131la\u015ft\u0131r\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u00d6rne\u011fin 6 kenarl\u0131 bir zar\u0131m\u0131z oldu\u011funu varsayal\u0131m. E\u011fer 12 kere atarsak 1\/6 oran\u0131nda &#8220;3&#8221; say\u0131s\u0131n\u0131n \u00e7\u0131kmas\u0131n\u0131 bekleriz, bu da 12*(1\/6) = 2 kere olur.<\/span><\/p>\n<p> <span style=\"color: #000000;\">E\u011fer \u201c3\u201d say\u0131s\u0131 ger\u00e7ekte 4 kez g\u00f6r\u00fcn\u00fcyorsa bu, zar\u0131n \u201c3\u201d say\u0131s\u0131 lehine yanl\u0131 oldu\u011funun kan\u0131t\u0131 m\u0131d\u0131r? Bu soruyu cevaplamak i\u00e7in binom testi yapabiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Python&#8217;da, a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanan scipy.stats k\u00fct\u00fcphanesindeki <a href=\"https:\/\/docs.scipy.org\/doc\/scipy\/reference\/generated\/scipy.stats.binom_test.html\" target=\"_blank\" rel=\"noopener\">binom_test() i\u015flevini<\/a> kullanarak bir binom testi ger\u00e7ekle\u015ftirebilirsiniz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>binom_test(x, n=Yok, p=0,5, alternatif=&#8217;iki y\u00fcz&#8217;)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Alt\u0131n:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>x:<\/strong> \u201cba\u015far\u0131lar\u0131n\u201d say\u0131s\u0131<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>n:<\/strong> toplam deneme say\u0131s\u0131<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>p:<\/strong> her denemenin ba\u015far\u0131 olas\u0131l\u0131\u011f\u0131<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>alternatif:<\/strong> alternatif hipotez. Varsay\u0131lan &#8220;iki tarafl\u0131&#8221;d\u0131r ancak &#8220;daha y\u00fcksek&#8221; veya &#8220;daha az&#8221; se\u00e7ene\u011fini de belirleyebilirsiniz.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Bu fonksiyon testin p de\u011ferini d\u00f6nd\u00fcr\u00fcr. Bu i\u015flevi a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanarak y\u00fckleyebiliriz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #107d3f;\">from<\/span><\/span> <span style=\"color: #008080;\"><span style=\"color: #000000;\">scipy.stats<\/span> <span style=\"color: #107d3f;\">import<\/span> <span style=\"color: #000000;\">binom_test<\/span>\n<\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler Python&#8217;da binom testlerinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fini g\u00f6stermektedir.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: 6 y\u00fczl\u00fc bir zar 24 kez at\u0131l\u0131yor ve tam 6 kez \u201c3\u201d rakam\u0131n\u0131n \u00fczerine d\u00fc\u015f\u00fcyor. Zar\u0131n &#8220;3&#8221; say\u0131s\u0131na e\u011filimli olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in binom testi yap\u0131n.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Testimizin s\u0131f\u0131r ve alternatif hipotezleri a\u015fa\u011f\u0131daki gibidir:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03c0 \u2264 1\/6 (zar \u201c3\u201d say\u0131s\u0131na g\u00f6re ayarlanmam\u0131\u015ft\u0131r)<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong><sub>HA<\/sub> :<\/strong> \u03c0 &gt; 1\/6<\/span><\/p>\n<p> <span style=\"color: #000000;\"><em>*\u03c0 n\u00fcfus oran\u0131n\u0131n sembol\u00fcd\u00fcr.<\/em><\/span><\/p>\n<p> <span style=\"color: #000000;\">Python&#8217;da a\u015fa\u011f\u0131daki form\u00fcl\u00fc girece\u011fiz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>binom_test(x= <span style=\"color: #008000;\">6<\/span> , n= <span style=\"color: #008000;\">24<\/span> , p= <span style=\"color: #008000;\">1\/6<\/span> , alternative=' <span style=\"color: #008000;\">greater<\/span> ')\n\n0.1995295129479586\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu p de\u011feri (0,1995) 0,05&#8217;ten k\u00fc\u00e7\u00fck olmad\u0131\u011f\u0131ndan s\u0131f\u0131r hipotezini reddedemiyoruz. Zar\u0131n &#8220;3&#8221; say\u0131s\u0131na e\u011filimli oldu\u011funu s\u00f6yleyecek yeterli kan\u0131t\u0131m\u0131z yok.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: Bir paray\u0131 30 kez at\u0131yoruz ve tam olarak 19 kez tura geliyor. Madalyonun turalara do\u011fru e\u011filimli olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in bir binom testi yap\u0131n.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Testimizin s\u0131f\u0131r ve alternatif hipotezleri a\u015fa\u011f\u0131daki gibidir:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03c0 \u2264 1\/2 (para tura y\u00f6n\u00fcnde e\u011filimli de\u011fildir)<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong><sub>HA<\/sub> :<\/strong> \u03c0 &gt; 1\/2<\/span><\/p>\n<p> <span style=\"color: #000000;\">Python&#8217;da a\u015fa\u011f\u0131daki form\u00fcl\u00fc girece\u011fiz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>binom_test(x= <span style=\"color: #008000;\">19<\/span> , n= <span style=\"color: #008000;\">30<\/span> , p= <span style=\"color: #008000;\">1\/2<\/span> , alternative=' <span style=\"color: #008000;\">greater<\/span> ')\n\n0.10024421103298661\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu p de\u011feri (0,10024) 0,05&#8217;ten k\u00fc\u00e7\u00fck olmad\u0131\u011f\u0131ndan s\u0131f\u0131r hipotezini reddedemiyoruz. Madalyonun tura lehine tarafl\u0131 oldu\u011funu s\u00f6yleyecek yeterli kan\u0131t\u0131m\u0131z yok.<\/span><\/p>\n<p> <strong><span style=\"color: #000000;\">\u00d6rnek 3: Bir ma\u011faza %80 verimle widget \u00fcretiyor. Verimlilik oran\u0131n\u0131 art\u0131raca\u011f\u0131n\u0131 umduklar\u0131 yeni bir sistemi uyguluyorlar. Son \u00fcretimden rastgele 50 widget se\u00e7iyorlar ve bunlardan 47&#8217;sinin etkili oldu\u011funu belirtiyorlar. Yeni sistemin daha fazla verimlili\u011fe yol a\u00e7\u0131p a\u00e7mad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in binom testi yap\u0131n.<\/span><\/strong><\/p>\n<p> <span style=\"color: #000000;\">Testimizin s\u0131f\u0131r ve alternatif hipotezleri a\u015fa\u011f\u0131daki gibidir:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03c0 \u2264 0,80 (yeni sistem verimlilik art\u0131\u015f\u0131na yol a\u00e7maz)<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong><sub>HA<\/sub> :<\/strong> \u03c0 &gt; 0,80<\/span><\/p>\n<p> <span style=\"color: #000000;\">Python&#8217;da a\u015fa\u011f\u0131daki form\u00fcl\u00fc girece\u011fiz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>binom_test(x= <span style=\"color: #008000;\">47<\/span> , n= <span style=\"color: #008000;\">50<\/span> , p= <span style=\"color: #008000;\">0.8<\/span> , alternative=' <span style=\"color: #008000;\">greater<\/span> ')\n\n0.005656361012155314\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu p de\u011feri (0,00565) 0,05&#8217;ten k\u00fc\u00e7\u00fck oldu\u011fundan s\u0131f\u0131r hipotezini reddediyoruz. Yeni sistemin verimlilik art\u0131\u015f\u0131 sa\u011flad\u0131\u011f\u0131n\u0131 s\u00f6yleyecek yeterli kan\u0131t\u0131m\u0131z var.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Binom testi, \u00f6rneklem oran\u0131n\u0131 varsay\u0131msal bir oranla kar\u015f\u0131la\u015ft\u0131r\u0131r. \u00d6rne\u011fin 6 kenarl\u0131 bir zar\u0131m\u0131z oldu\u011funu varsayal\u0131m. E\u011fer 12 kere atarsak 1\/6 oran\u0131nda &#8220;3&#8221; say\u0131s\u0131n\u0131n \u00e7\u0131kmas\u0131n\u0131 bekleriz, bu da 12*(1\/6) = 2 kere olur. E\u011fer \u201c3\u201d say\u0131s\u0131 ger\u00e7ekte 4 kez g\u00f6r\u00fcn\u00fcyorsa bu, zar\u0131n \u201c3\u201d say\u0131s\u0131 lehine yanl\u0131 oldu\u011funun kan\u0131t\u0131 m\u0131d\u0131r? Bu soruyu cevaplamak i\u00e7in binom testi yapabiliriz. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-874","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python&#039;da Binom Testi Nas\u0131l Yap\u0131l\u0131r - Statorials<\/title>\n<meta name=\"description\" content=\"Python&#039;da binom testinin nas\u0131l yap\u0131laca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/tr\/piton-binom-testi\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python&#039;da Binom Testi Nas\u0131l Yap\u0131l\u0131r - Statorials\" \/>\n<meta property=\"og:description\" content=\"Python&#039;da binom testinin nas\u0131l yap\u0131laca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/piton-binom-testi\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T11:33:30+00:00\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/piton-binom-testi\/\",\"url\":\"https:\/\/statorials.org\/tr\/piton-binom-testi\/\",\"name\":\"Python&#39;da Binom Testi Nas\u0131l Yap\u0131l\u0131r - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-28T11:33:30+00:00\",\"dateModified\":\"2023-07-28T11:33:30+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Python&#39;da binom testinin nas\u0131l yap\u0131laca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/piton-binom-testi\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/piton-binom-testi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/piton-binom-testi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python&#39;da binom testi nas\u0131l yap\u0131l\u0131r\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python&#39;da Binom Testi Nas\u0131l Yap\u0131l\u0131r - Statorials","description":"Python&#39;da binom testinin nas\u0131l yap\u0131laca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/tr\/piton-binom-testi\/","og_locale":"tr_TR","og_type":"article","og_title":"Python&#39;da Binom Testi Nas\u0131l Yap\u0131l\u0131r - Statorials","og_description":"Python&#39;da binom testinin nas\u0131l yap\u0131laca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/piton-binom-testi\/","og_site_name":"Statorials","article_published_time":"2023-07-28T11:33:30+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"3 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/piton-binom-testi\/","url":"https:\/\/statorials.org\/tr\/piton-binom-testi\/","name":"Python&#39;da Binom Testi Nas\u0131l Yap\u0131l\u0131r - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-28T11:33:30+00:00","dateModified":"2023-07-28T11:33:30+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Python&#39;da binom testinin nas\u0131l yap\u0131laca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/piton-binom-testi\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/piton-binom-testi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/piton-binom-testi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Python&#39;da binom testi nas\u0131l yap\u0131l\u0131r"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=874"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/874\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}