{"id":1068,"date":"2023-07-27T19:03:03","date_gmt":"2023-07-27T19:03:03","guid":{"rendered":"https:\/\/statorials.org\/tr\/python-testini-yurut\/"},"modified":"2023-07-27T19:03:03","modified_gmt":"2023-07-27T19:03:03","slug":"python-testini-yurut","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/python-testini-yurut\/","title":{"rendered":"Python&#39;da \u00e7al\u0131\u015fma zaman\u0131 testi nas\u0131l ger\u00e7ekle\u015ftirilir"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>\u00c7al\u0131\u015ft\u0131rma testi,<\/strong> bir veri k\u00fcmesinin rastgele bir s\u00fcre\u00e7ten gelip gelmedi\u011fini belirlemek i\u00e7in kullan\u0131lan istatistiksel bir testtir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Testin s\u0131f\u0131r ve alternatif hipotezleri a\u015fa\u011f\u0131daki<\/span> <span style=\"color: #000000;\">gibidir<\/span> <a href=\"https:\/\/statorials.org\/tr\/hipotez-testi-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">:<\/a><\/p>\n<p> <span style=\"color: #000000;\">H <sub>0<\/sub> (bo\u015f): veriler rastgele \u00fcretildi.<\/span><\/p>\n<p> <span style=\"color: #000000;\">H <sub>a<\/sub> (alternatif): Veriler rastgele <em>olu\u015fturulmam\u0131\u015ft\u0131r<\/em> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde Python&#8217;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131 ger\u00e7ekle\u015ftirmek i\u00e7in kullanabilece\u011finiz iki y\u00f6ntem a\u00e7\u0131klanmaktad\u0131r.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek: Python&#8217;da bir test \u00e7al\u0131\u015ft\u0131r\u0131n<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki s\u00f6zdizimini kullanan <strong>statsmodels<\/strong> k\u00fct\u00fcphanesindeki <a href=\"https:\/\/www.statsmodels.org\/stable\/generated\/statsmodels.sandbox.stats.runs.runstest_1samp.html?highlight=runstest#statsmodels.sandbox.stats.runs.runstest_1samp\" target=\"_blank\" rel=\"noopener noreferrer\">runtest_1samp()<\/a> i\u015flevini kullanarak Python&#8217;da belirli bir veri k\u00fcmesi \u00fczerinde Test \u00c7al\u0131\u015ft\u0131rmalar\u0131 ger\u00e7ekle\u015ftirebiliriz:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>runtest_1samp(x, kesme=&#8217;ortalama&#8217;, d\u00fczeltme=Do\u011fru)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Alt\u0131n:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>x:<\/strong> Veri de\u011ferleri dizisi<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>kesme:<\/strong> Veriyi b\u00fcy\u00fck ve k\u00fc\u00e7\u00fck de\u011ferlere b\u00f6lmek i\u00e7in kullan\u0131lacak e\u015fik. Varsay\u0131lan &#8220;ortalama&#8221;d\u0131r ancak alternatif olarak &#8220;medyan&#8221;\u0131 da belirleyebilirsiniz.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>D\u00fczeltme:<\/strong> \u00d6rnek boyutu 50&#8217;den k\u00fc\u00e7\u00fck oldu\u011funda bu fonksiyon d\u00fczeltme olarak 0,5&#8217;i \u00e7\u0131kar\u0131r. Bu d\u00fczeltmeyi devre d\u0131\u015f\u0131 b\u0131rakmak i\u00e7in Yanl\u0131\u015f&#8217;\u0131 belirtebilirsiniz.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Bu i\u015flev, \u00e7\u0131kt\u0131 olarak az test istatisti\u011fini ve kar\u015f\u0131l\u0131k gelen p de\u011ferini \u00fcretir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, Python&#8217;da bu i\u015flevi kullanarak Test \u00c7al\u0131\u015ft\u0131rmas\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fini g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008000;\">from<\/span> statsmodels. <span style=\"color: #3366ff;\">sandbox<\/span> . <span style=\"color: #3366ff;\">stats<\/span> . <span style=\"color: #3366ff;\">runs<\/span> <span style=\"color: #008000;\">import<\/span> runstest_1samp \n\n<span style=\"color: #008080;\">#create dataset<\/span>\ndata = [12, 16, 16, 15, 14, 18, 19, 21, 13, 13]\n\n<span style=\"color: #008080;\">#Perform Runs test\n<\/span>runstest_1samp(data, correction= <span style=\"color: #008000;\">False<\/span> )\n\n(-0.6708203932499369, 0.5023349543605021)\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Z testi istatisti\u011fi <strong>-0,67082<\/strong> ve kar\u015f\u0131l\u0131k gelen p de\u011feri <strong>0,50233<\/strong> olarak ortaya \u00e7\u0131k\u0131yor. Bu p de\u011feri \u03b1 = 0,05&#8217;ten k\u00fc\u00e7\u00fck olmad\u0131\u011f\u0131 i\u00e7in s\u0131f\u0131r hipotezini reddedemiyoruz. Verilerin rastgele olu\u015fturuldu\u011funu s\u00f6yleyecek yeterli kan\u0131t\u0131m\u0131z var.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Not<\/strong> : Bu \u00f6rnekte test istatisti\u011fini hesaplarken d\u00fczeltmeyi devre d\u0131\u015f\u0131 b\u0131rakt\u0131k. Bu, <a href=\"https:\/\/statorials.org\/tr\/testi-rde-yurut\/\" target=\"_blank\" rel=\"noopener noreferrer\">R&#8217;de Test \u00c7al\u0131\u015ft\u0131rmalar\u0131<\/a> ger\u00e7ekle\u015ftirmek i\u00e7in kullan\u0131lan ve testi \u00e7al\u0131\u015ft\u0131r\u0131rken d\u00fczeltme kullanmayan form\u00fclle e\u015fle\u015fir.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00c7al\u0131\u015ft\u0131rma testi, bir veri k\u00fcmesinin rastgele bir s\u00fcre\u00e7ten gelip gelmedi\u011fini belirlemek i\u00e7in kullan\u0131lan istatistiksel bir testtir. Testin s\u0131f\u0131r ve alternatif hipotezleri a\u015fa\u011f\u0131daki gibidir : H 0 (bo\u015f): veriler rastgele \u00fcretildi. H a (alternatif): Veriler rastgele olu\u015fturulmam\u0131\u015ft\u0131r . Bu e\u011fitimde Python&#8217;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131 ger\u00e7ekle\u015ftirmek i\u00e7in kullanabilece\u011finiz iki y\u00f6ntem a\u00e7\u0131klanmaktad\u0131r. \u00d6rnek: Python&#8217;da bir test \u00e7al\u0131\u015ft\u0131r\u0131n A\u015fa\u011f\u0131daki s\u00f6zdizimini [&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-1068","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 Testler Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials<\/title>\n<meta name=\"description\" content=\"Bir \u00f6rnek de dahil olmak \u00fczere Python&#039;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin 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\/python-testini-yurut\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python&#039;da Testler Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials\" \/>\n<meta property=\"og:description\" content=\"Bir \u00f6rnek de dahil olmak \u00fczere Python&#039;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/python-testini-yurut\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T19:03:03+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\/python-testini-yurut\/\",\"url\":\"https:\/\/statorials.org\/tr\/python-testini-yurut\/\",\"name\":\"Python&#39;da Testler Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-27T19:03:03+00:00\",\"dateModified\":\"2023-07-27T19:03:03+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bir \u00f6rnek de dahil olmak \u00fczere Python&#39;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/python-testini-yurut\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/python-testini-yurut\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/python-testini-yurut\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python&#39;da \u00e7al\u0131\u015fma zaman\u0131 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 Testler Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials","description":"Bir \u00f6rnek de dahil olmak \u00fczere Python&#39;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin 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\/python-testini-yurut\/","og_locale":"tr_TR","og_type":"article","og_title":"Python&#39;da Testler Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials","og_description":"Bir \u00f6rnek de dahil olmak \u00fczere Python&#39;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/python-testini-yurut\/","og_site_name":"Statorials","article_published_time":"2023-07-27T19:03:03+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\/python-testini-yurut\/","url":"https:\/\/statorials.org\/tr\/python-testini-yurut\/","name":"Python&#39;da Testler Nas\u0131l \u00c7al\u0131\u015ft\u0131r\u0131l\u0131r - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-27T19:03:03+00:00","dateModified":"2023-07-27T19:03:03+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bir \u00f6rnek de dahil olmak \u00fczere Python&#39;da Test \u00c7al\u0131\u015ft\u0131rmalar\u0131n\u0131n nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ili\u015fkin basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/python-testini-yurut\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/python-testini-yurut\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/python-testini-yurut\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Python&#39;da \u00e7al\u0131\u015fma zaman\u0131 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\/1068","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=1068"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/1068\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=1068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=1068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=1068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}