{"id":857,"date":"2023-07-28T12:52:59","date_gmt":"2023-07-28T12:52:59","guid":{"rendered":"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/"},"modified":"2023-07-28T12:52:59","modified_gmt":"2023-07-28T12:52:59","slug":"kruskal-wallis-test-pitonu","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/","title":{"rendered":"Python&#39;da kruskal-wallis testi nas\u0131l yap\u0131l\u0131r?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">\u00dc\u00e7 veya daha fazla ba\u011f\u0131ms\u0131z grubun medyanlar\u0131 aras\u0131nda istatistiksel olarak anlaml\u0131 bir fark olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in <a href=\"https:\/\/statorials.org\/tr\/kruskal-wallis-testi\/\" target=\"_blank\" rel=\"noopener\">Kruskal-Wallis testi<\/a> kullan\u0131l\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/tr\/tek-yonlu-anova-pitonu\/\" target=\"_blank\" rel=\"noopener\">Tek y\u00f6nl\u00fc ANOVA&#8217;n\u0131n<\/a> parametrik olmayan e\u015fde\u011feri olarak kabul edilir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde Python&#8217;da Kruskal-Wallis testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek: Python&#8217;da Kruskal-Wallis testi<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Ara\u015ft\u0131rmac\u0131lar, \u00fc\u00e7 farkl\u0131 g\u00fcbrenin farkl\u0131 bitki b\u00fcy\u00fcmesi d\u00fczeylerine yol a\u00e7\u0131p a\u00e7mad\u0131\u011f\u0131n\u0131 bilmek istiyorlar. Rastgele 30 farkl\u0131 bitki se\u00e7iyorlar ve bunlar\u0131 10&#8217;arl\u0131 \u00fc\u00e7 gruba ay\u0131r\u0131yorlar ve her gruba farkl\u0131 bir g\u00fcbre uyguluyorlar. Bir ay sonra her bitkinin y\u00fcksekli\u011fini \u00f6l\u00e7\u00fcyorlar.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Medyan b\u00fcy\u00fcmenin \u00fc\u00e7 grupta da ayn\u0131 olup olmad\u0131\u011f\u0131n\u0131 belirlemek amac\u0131yla Kruskal-Wallis testi ger\u00e7ekle\u015ftirmek i\u00e7in a\u015fa\u011f\u0131daki ad\u0131mlar\u0131 izleyin.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Ad\u0131m 1: Verileri girin.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0130lk olarak, \u00fc\u00e7 grubun her biri i\u00e7in tesis \u00f6l\u00e7\u00fcmlerimizi tutacak \u00fc\u00e7 tablo olu\u015fturaca\u011f\u0131z:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>group1 = [7, 14, 14, 13, 12, 9, 6, 14, 12, 8]\ngroup2 = [15, 17, 13, 15, 15, 13, 9, 12, 10, 8]\ngroup3 = [6, 8, 8, 9, 5, 14, 13, 8, 10, 9]\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Ad\u0131m 2: Kruskal-Wallis testini yap\u0131n.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Daha sonra scipy.stats k\u00fct\u00fcphanesindeki <a href=\"https:\/\/docs.scipy.org\/doc\/scipy\/reference\/generated\/scipy.stats.kruskal.html\" target=\"_blank\" rel=\"noopener\">kruskal() fonksiyonunu<\/a> kullanarak bir Kruskal-Wallis testi ger\u00e7ekle\u015ftirece\u011fiz:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #107d3f;\">from<\/span> scipy <span style=\"color: #107d3f;\">import<\/span> stats\n\n<span style=\"color: #008080;\">#perform Kruskal-Wallis Test<\/span> \nstats.kruskal(group1, group2, group3)\n\n(statistic=6.2878, pvalue=0.0431)\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\"><strong>Ad\u0131m 3: Sonu\u00e7lar\u0131 yorumlay\u0131n.<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Kruskal-Wallis testi a\u015fa\u011f\u0131daki bo\u015f ve alternatif hipotezleri kullan\u0131r:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>S\u0131f\u0131r hipotezi (H <sub>0<\/sub> ):<\/strong> Medyan t\u00fcm gruplarda e\u015fittir.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Alternatif hipotez: (Ha):<\/strong> Medyan t\u00fcm gruplarda e\u015fit <em>de\u011fildir<\/em> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu durumda test istatisti\u011fi <strong>6,2878<\/strong> ve kar\u015f\u0131l\u0131k gelen p de\u011feri <strong>0,0431&#8217;dir<\/strong> . Bu p de\u011feri 0,05&#8217;ten k\u00fc\u00e7\u00fck oldu\u011fundan, ortalama bitki b\u00fcy\u00fcmesinin her \u00fc\u00e7 g\u00fcbre i\u00e7in de ayn\u0131 oldu\u011fu \u015feklindeki s\u0131f\u0131r hipotezini reddedebiliriz. Kullan\u0131lan g\u00fcbre t\u00fcr\u00fcn\u00fcn bitki b\u00fcy\u00fcmesinde istatistiksel olarak anlaml\u0131 farkl\u0131l\u0131klara neden oldu\u011fu sonucuna varmak i\u00e7in yeterli kan\u0131t\u0131m\u0131z var.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00dc\u00e7 veya daha fazla ba\u011f\u0131ms\u0131z grubun medyanlar\u0131 aras\u0131nda istatistiksel olarak anlaml\u0131 bir fark olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in Kruskal-Wallis testi kullan\u0131l\u0131r. Tek y\u00f6nl\u00fc ANOVA&#8217;n\u0131n parametrik olmayan e\u015fde\u011feri olarak kabul edilir. Bu e\u011fitimde Python&#8217;da Kruskal-Wallis testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r. \u00d6rnek: Python&#8217;da Kruskal-Wallis testi Ara\u015ft\u0131rmac\u0131lar, \u00fc\u00e7 farkl\u0131 g\u00fcbrenin farkl\u0131 bitki b\u00fcy\u00fcmesi d\u00fczeylerine yol a\u00e7\u0131p a\u00e7mad\u0131\u011f\u0131n\u0131 bilmek istiyorlar. Rastgele [&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-857","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 Kruskal-Wallis testi nas\u0131l yap\u0131l\u0131r - Statorials<\/title>\n<meta name=\"description\" content=\"Python&#039;da Kruskal-Wallis testi yorumunun nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine 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\/kruskal-wallis-test-pitonu\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python&#039;da Kruskal-Wallis testi nas\u0131l yap\u0131l\u0131r - Statorials\" \/>\n<meta property=\"og:description\" content=\"Python&#039;da Kruskal-Wallis testi yorumunun nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine dair basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-28T12:52:59+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\/kruskal-wallis-test-pitonu\/\",\"url\":\"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/\",\"name\":\"Python&#39;da Kruskal-Wallis testi nas\u0131l yap\u0131l\u0131r - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-28T12:52:59+00:00\",\"dateModified\":\"2023-07-28T12:52:59+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Python&#39;da Kruskal-Wallis testi yorumunun nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine dair basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python&#39;da kruskal-wallis 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 Kruskal-Wallis testi nas\u0131l yap\u0131l\u0131r - Statorials","description":"Python&#39;da Kruskal-Wallis testi yorumunun nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine 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\/kruskal-wallis-test-pitonu\/","og_locale":"tr_TR","og_type":"article","og_title":"Python&#39;da Kruskal-Wallis testi nas\u0131l yap\u0131l\u0131r - Statorials","og_description":"Python&#39;da Kruskal-Wallis testi yorumunun nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine dair basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/","og_site_name":"Statorials","article_published_time":"2023-07-28T12:52:59+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\/kruskal-wallis-test-pitonu\/","url":"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/","name":"Python&#39;da Kruskal-Wallis testi nas\u0131l yap\u0131l\u0131r - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-28T12:52:59+00:00","dateModified":"2023-07-28T12:52:59+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Python&#39;da Kruskal-Wallis testi yorumunun nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine dair basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/kruskal-wallis-test-pitonu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Python&#39;da kruskal-wallis 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\/857","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=857"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/857\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}