{"id":843,"date":"2023-07-28T14:01:36","date_gmt":"2023-07-28T14:01:36","guid":{"rendered":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/"},"modified":"2023-07-28T14:01:36","modified_gmt":"2023-07-28T14:01:36","slug":"balikcilarin-python-kesin-testi","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/","title":{"rendered":"Python&#39;da fisher&#39;in kesin testi nas\u0131l ger\u00e7ekle\u015ftirilir"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><a href=\"https:\/\/statorials.org\/tr\/balikcilarin-kesin-testi\/\" target=\"_blank\" rel=\"noopener\">Fisher&#8217;in kesin testi,<\/a> <span style=\"color: #000000;\">iki kategorik de\u011fi\u015fken aras\u0131nda anlaml\u0131 bir ili\u015fki olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in kullan\u0131l\u0131r.<\/span><\/p>\n<p> Genellikle <span style=\"color: #000000;\">2&#215;2&#8217;lik bir tabloda bir veya daha fazla h\u00fccre say\u0131s\u0131 5&#8217;ten az oldu\u011funda ki<\/span> <a href=\"https:\/\/statorials.org\/tr\/ki-kare-bagimsizlik-testi\/\" target=\"_blank\" rel=\"noopener\">-kare ba\u011f\u0131ms\u0131zl\u0131k testine<\/a> <span style=\"color: #000000;\">alternatif olarak kullan\u0131l\u0131r<\/span> .<\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde Python&#8217;da Fisher&#8217;in kesin testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.<\/span><\/p>\n<h3> <strong>\u00d6rnek: Python&#8217;da Fisher&#8217;in kesin testi<\/strong><\/h3>\n<p> <span style=\"color: #000000;\">Belirli bir \u00fcniversitede cinsiyetin siyasi parti tercihiyle ili\u015fkili olup olmad\u0131\u011f\u0131n\u0131 bilmek istedi\u011fimizi varsayal\u0131m.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bunu ara\u015ft\u0131rmak i\u00e7in kamp\u00fcsteki 25 \u00f6\u011frenciyle rastgele anket yap\u0131yoruz. Demokrat veya Cumhuriyet\u00e7i \u00f6\u011frencilerin cinsiyetlerine g\u00f6re say\u0131lar\u0131 a\u015fa\u011f\u0131daki tabloda g\u00f6sterilmektedir:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<th><\/th>\n<th> <span style=\"color: #000000;\"><strong>Demokrat<\/strong><\/span><\/th>\n<th> <span style=\"color: #000000;\"><strong>Cumhuriyet\u00e7i<\/strong><\/span><\/th>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\"><strong>Di\u015fi<\/strong><\/span><\/td>\n<td> <span style=\"color: #000000;\">8<\/span><\/td>\n<td> <span style=\"color: #000000;\">4<\/span><\/td>\n<\/tr>\n<tr>\n<td> <span style=\"color: #000000;\"><strong>Erkek<\/strong><\/span><\/td>\n<td> <span style=\"color: #000000;\">4<\/span><\/td>\n<td> <span style=\"color: #000000;\">9<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> <span style=\"color: #000000;\">Cinsiyet ile siyasi parti tercihi aras\u0131nda istatistiksel olarak anlaml\u0131 bir ili\u015fki olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in Python&#8217;da Fisher&#8217;in kesin testini ger\u00e7ekle\u015ftirmek \u00fczere a\u015fa\u011f\u0131daki ad\u0131mlar\u0131 kullanabiliriz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Ad\u0131m 1:<\/strong> <strong>Verileri olu\u015fturun.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0130lk olarak verilerimizi tutacak bir tablo olu\u015fturaca\u011f\u0131z:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>data = [[8, 4],\n         [4, 9]]<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Ad\u0131m 2: Fisher&#8217;in kesin testini ger\u00e7ekle\u015ftirin.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Daha sonra, a\u015fa\u011f\u0131daki s\u00f6zdizimini kullanan SciPy k\u00fct\u00fcphanesindekifisher_exact <a href=\"https:\/\/docs.scipy.org\/doc\/scipy\/reference\/generated\/scipy.stats.fisher_exact.html\" target=\"_blank\" rel=\"noopener\">fonksiyonunu<\/a> kullanarak Fisher&#8217;\u0131n kesin testini ger\u00e7ekle\u015ftirebiliriz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>bal\u0131k\u00e7\u0131_exact(tablo, alternatif=&#8217;iki y\u00fcz&#8217;)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Alt\u0131n:<\/span><\/p>\n<ul data-slot-rendered-dynamic=\"true\">\n<li> <span style=\"color: #000000;\"><strong>tablo:<\/strong> 2\u00d72 acil durum tablosu<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Alternatif:<\/strong> Alternatif hipotezi tan\u0131mlar. Varsay\u0131lan &#8220;iki tarafl\u0131&#8221;d\u0131r ancak tek tarafl\u0131 testler i\u00e7in &#8220;daha az&#8221; veya &#8220;daha b\u00fcy\u00fck&#8221; se\u00e7ene\u011fini de se\u00e7ebilirsiniz.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, bu i\u015flevin \u00f6zel \u00f6rne\u011fimizde nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">import<\/span> scipy.stats <span style=\"color: #107d3f;\">as<\/span> stats\n\nprint(stats.fisher_exact(data))\n\n(4.5, 0.1152)\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Test i\u00e7in p de\u011feri <strong>0,1152&#8217;dir<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Fisher kesin testi a\u015fa\u011f\u0131daki bo\u015f ve alternatif hipotezleri kullan\u0131r:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> : (s\u0131f\u0131r hipotezi)<\/strong> \u0130ki de\u011fi\u015fken ba\u011f\u0131ms\u0131zd\u0131r.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> : (alternatif hipotez)<\/strong> \u0130ki de\u011fi\u015fken ba\u011f\u0131ms\u0131z <em>de\u011fildir<\/em> .<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Bu p de\u011feri 0,05&#8217;ten k\u00fc\u00e7\u00fck olmad\u0131\u011f\u0131ndan s\u0131f\u0131r hipotezini reddetmiyoruz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu nedenle cinsiyet ile siyasi parti tercihleri aras\u0131nda anlaml\u0131 bir ili\u015fki oldu\u011funu s\u00f6yleyecek yeterli kan\u0131t\u0131m\u0131z yok.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Yani cinsiyet ve siyasi parti tercihleri ba\u011f\u0131ms\u0131zd\u0131r.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fisher&#8217;in kesin testi, iki kategorik de\u011fi\u015fken aras\u0131nda anlaml\u0131 bir ili\u015fki olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in kullan\u0131l\u0131r. Genellikle 2&#215;2&#8217;lik bir tabloda bir veya daha fazla h\u00fccre say\u0131s\u0131 5&#8217;ten az oldu\u011funda ki -kare ba\u011f\u0131ms\u0131zl\u0131k testine alternatif olarak kullan\u0131l\u0131r . Bu e\u011fitimde Python&#8217;da Fisher&#8217;in kesin testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r. \u00d6rnek: Python&#8217;da Fisher&#8217;in kesin testi Belirli bir \u00fcniversitede cinsiyetin siyasi [&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-843","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 Fisher&#039;in Kesin Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials<\/title>\n<meta name=\"description\" content=\"Fisher&#039;in kesin testinin Python&#039;da nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve yorumlanaca\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\/balikcilarin-python-kesin-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 Fisher&#039;in Kesin Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials\" \/>\n<meta property=\"og:description\" content=\"Fisher&#039;in kesin testinin Python&#039;da nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T14:01:36+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=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/\",\"url\":\"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/\",\"name\":\"Python&#39;da Fisher&#39;in Kesin Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-28T14:01:36+00:00\",\"dateModified\":\"2023-07-28T14:01:36+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Fisher&#39;in kesin testinin Python&#39;da nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python&#39;da fisher&#39;in kesin testi nas\u0131l ger\u00e7ekle\u015ftirilir\"}]},{\"@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 Fisher&#39;in Kesin Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials","description":"Fisher&#39;in kesin testinin Python&#39;da nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve yorumlanaca\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\/balikcilarin-python-kesin-testi\/","og_locale":"tr_TR","og_type":"article","og_title":"Python&#39;da Fisher&#39;in Kesin Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials","og_description":"Fisher&#39;in kesin testinin Python&#39;da nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/","og_site_name":"Statorials","article_published_time":"2023-07-28T14:01:36+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/","url":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/","name":"Python&#39;da Fisher&#39;in Kesin Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-28T14:01:36+00:00","dateModified":"2023-07-28T14:01:36+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Fisher&#39;in kesin testinin Python&#39;da nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/balikcilarin-python-kesin-testi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Python&#39;da fisher&#39;in kesin testi nas\u0131l ger\u00e7ekle\u015ftirilir"}]},{"@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\/843","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=843"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/843\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}