{"id":1362,"date":"2023-07-26T17:05:19","date_gmt":"2023-07-26T17:05:19","guid":{"rendered":"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/"},"modified":"2023-07-26T17:05:19","modified_gmt":"2023-07-26T17:05:19","slug":"mann-kendall-pythonu-test-ediyor","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/","title":{"rendered":"Python&#39;da mann-kendall trend testi nas\u0131l yap\u0131l\u0131r?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Zaman serisi verilerinde trend olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in <strong>Mann-Kendall trend testi<\/strong> kullan\u0131lmaktad\u0131r. Bu parametrik olmayan bir testtir, yani verilerin normalli\u011fi hakk\u0131nda hi\u00e7bir temel varsay\u0131m yap\u0131lmaz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Test hipotezleri a\u015fa\u011f\u0131daki gibidir:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> (s\u0131f\u0131r hipotezi):<\/strong> verilerde herhangi bir e\u011filim mevcut de\u011fildir.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>A<\/sub> (alternatif hipotez):<\/strong> Verilerde bir e\u011filim mevcuttur. (Bu olumlu ya da olumsuz bir e\u011filim olabilir)<\/span><\/p>\n<p> <span style=\"color: #000000;\">Testin p de\u011feri belirli bir anlaml\u0131l\u0131k d\u00fczeyinin alt\u0131ndaysa (ortak se\u00e7enekler 0,10, 0,05 ve 0,01&#8217;dir), o zaman zaman serisinden elde edilen verilerde bir e\u011filimin mevcut oldu\u011funa dair istatistiksel olarak anlaml\u0131 bir kan\u0131t vard\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde Python&#8217;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek: Python&#8217;da Mann-Kendall trend testi<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Python&#8217;da Mann-Kendall trend testi ger\u00e7ekle\u015ftirmek i\u00e7in \u00f6ncelikle <a href=\"https:\/\/pypi.org\/project\/pymannkendall\/\" target=\"_blank\" rel=\"noopener\">pymannkendall<\/a> paketini kuraca\u011f\u0131z:<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong>pip <span style=\"color: #008000;\">install<\/span> pymannkendall<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Bu paketi kurduktan sonra Mann-Kendall trend testini zaman serisi veri seti \u00fczerinde ger\u00e7ekle\u015ftirebiliriz:<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create dataset\n<\/span>data = [31, 29, 28, 28, 27, 26, 26, 27, 27, 27, 28, 29, 30, 29, 30, 29, 28]\n\n<span style=\"color: #008080;\">#perform Mann-Kendall Trend Test\n<\/span><span style=\"color: #008000;\">import<\/span> pymannkendall <span style=\"color: #008000;\">as<\/span> mk\n\nmk. <span style=\"color: #3366ff;\">original_test<\/span> (data)\n\nMann_Kendall_Test(trend='no trend', h=False, p=0.422586268671707,\n                  z=0.80194241623, Tau=0.147058823529, s=20.0,\n                  var_s=561.33333333, slope=0.0384615384615, intercept=27.692307692)<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Test sonucunu nas\u0131l yorumlayaca\u011f\u0131n\u0131z a\u015fa\u011f\u0131da a\u00e7\u0131klanm\u0131\u015ft\u0131r:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>trend<\/strong> : Bu trendi g\u00f6sterir. Olas\u0131 sonu\u00e7, artan, azalan veya trendin olmamas\u0131n\u0131 i\u00e7erir.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>h:<\/strong> trend mevcutsa do\u011frudur. Herhangi bir trend yoksa yanl\u0131\u015f.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>p:<\/strong> Testin p de\u011feri.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>z:<\/strong> normalizasyon testi istatisti\u011fi.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>Tau:<\/strong> Kendall Tau.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>s:<\/strong> Mann-Kendal skoru<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>var_s:<\/strong> sapma S<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>e\u011fim:<\/strong> Theil-Sen\/e\u011fim tahmincisi<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>m\u00fcdahale:<\/strong> Sa\u011flam Kendall-Theil hatt\u0131n\u0131n durdurulmas\u0131<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">\u0130lgilendi\u011fimiz as\u0131l de\u011fer, verilerde istatistiksel olarak anlaml\u0131 bir e\u011filimin olup olmad\u0131\u011f\u0131n\u0131 bize s\u00f6yleyen p de\u011feridir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu \u00f6rnekte p de\u011feri <strong>0,4226&#8217;d\u0131r<\/strong> ve 0,05&#8217;ten az de\u011fildir. Bu nedenle zaman serisi verilerinde anlaml\u0131 bir trend g\u00f6r\u00fclmemektedir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Mann-Kendall trend testini ger\u00e7ekle\u015ftirmenin yan\u0131 s\u0131ra, ger\u00e7ek zaman serisi verilerini g\u00f6rselle\u015ftirmek i\u00e7in Matplotlib&#8217;i kullanarak h\u0131zl\u0131 bir \u00e7izgi grafi\u011fi olu\u015fturabiliriz:<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008000;\">import<\/span> matplotlib. <span style=\"color: #3366ff;\">pyplot<\/span> <span style=\"color: #008000;\">as<\/span> plt\n\nplt. <span style=\"color: #3366ff;\">plot<\/span> (data)\n<\/strong><\/pre>\n<p> zamanlar <img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-13523 \" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/mannkendallpython1.png\" alt=\"\" width=\"384\" height=\"260\" srcset=\"\" sizes=\"auto, \"><\/p>\n<p> <span style=\"color: #000000;\">Grafikten verilerin biraz da\u011f\u0131n\u0131k oldu\u011funu g\u00f6rebiliyoruz, bu da verilerde net bir trend olmad\u0131\u011f\u0131n\u0131 do\u011fruluyor.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/tr\/matplotlib-zaman-serisi\/\" target=\"_blank\" rel=\"noopener\">Matplotlib&#8217;de bir zaman serisi nas\u0131l \u00e7izilir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/dickey-dolgun-test-pitonu\/\" target=\"_blank\" rel=\"noopener\">Python&#8217;da art\u0131r\u0131lm\u0131\u015f Dickey-Fuller testi nas\u0131l yap\u0131l\u0131r?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/pandalar-coklu-arsa-serisi\/\" target=\"_blank\" rel=\"noopener\">Pandas DataFrame&#8217;den birden fazla seri nas\u0131l \u00e7izilir<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Zaman serisi verilerinde trend olup olmad\u0131\u011f\u0131n\u0131 belirlemek i\u00e7in Mann-Kendall trend testi kullan\u0131lmaktad\u0131r. Bu parametrik olmayan bir testtir, yani verilerin normalli\u011fi hakk\u0131nda hi\u00e7bir temel varsay\u0131m yap\u0131lmaz. Test hipotezleri a\u015fa\u011f\u0131daki gibidir: H 0 (s\u0131f\u0131r hipotezi): verilerde herhangi bir e\u011filim mevcut de\u011fildir. H A (alternatif hipotez): Verilerde bir e\u011filim mevcuttur. (Bu olumlu ya da olumsuz bir e\u011filim olabilir) [&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-1362","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 Mann-Kendall Trend Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde Python&#039;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\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\/mann-kendall-pythonu-test-ediyor\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python&#039;da Mann-Kendall Trend Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde Python&#039;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-26T17:05:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/mannkendallpython1.png\" \/>\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\/mann-kendall-pythonu-test-ediyor\/\",\"url\":\"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/\",\"name\":\"Python&#39;da Mann-Kendall Trend Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-26T17:05:19+00:00\",\"dateModified\":\"2023-07-26T17:05:19+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde Python&#39;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python&#39;da mann-kendall trend 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 Mann-Kendall Trend Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials","description":"Bu e\u011fitimde Python&#39;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","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\/mann-kendall-pythonu-test-ediyor\/","og_locale":"tr_TR","og_type":"article","og_title":"Python&#39;da Mann-Kendall Trend Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials","og_description":"Bu e\u011fitimde Python&#39;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/","og_site_name":"Statorials","article_published_time":"2023-07-26T17:05:19+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/mannkendallpython1.png"}],"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\/mann-kendall-pythonu-test-ediyor\/","url":"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/","name":"Python&#39;da Mann-Kendall Trend Testi Nas\u0131l Ger\u00e7ekle\u015ftirilir - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-26T17:05:19+00:00","dateModified":"2023-07-26T17:05:19+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde Python&#39;da Mann-Kendall trend testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/mann-kendall-pythonu-test-ediyor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Python&#39;da mann-kendall trend 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\/1362","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=1362"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/1362\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=1362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=1362"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=1362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}