{"id":668,"date":"2023-07-29T03:58:36","date_gmt":"2023-07-29T03:58:36","guid":{"rendered":"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/"},"modified":"2023-07-29T03:58:36","modified_gmt":"2023-07-29T03:58:36","slug":"durbin-watson-testi-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/","title":{"rendered":"R&#39;de durbin-watson testi nas\u0131l yap\u0131l\u0131r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><a href=\"https:\/\/statorials.org\/tr\/dogrusal-regresyon-varsayimlari\/\" target=\"_blank\" rel=\"noopener\">Do\u011frusal regresyonun temel varsay\u0131mlar\u0131ndan<\/a> biri, art\u0131klar aras\u0131nda herhangi bir korelasyonun olmamas\u0131, yani art\u0131klar\u0131n ba\u011f\u0131ms\u0131z olmas\u0131d\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu varsay\u0131m\u0131n kar\u015f\u0131lan\u0131p kar\u015f\u0131lanmad\u0131\u011f\u0131n\u0131 belirlemenin bir yolu, bir regresyonun art\u0131klar\u0131nda otokorelasyonun varl\u0131\u011f\u0131n\u0131 tespit etmek i\u00e7in kullan\u0131lan <a href=\"https:\/\/statorials.org\/tr\/durbin-watson-testi\/\" target=\"_blank\" rel=\"noopener\">Durbin-Watson testinin<\/a> yap\u0131lmas\u0131d\u0131r. Bu test a\u015fa\u011f\u0131daki varsay\u0131mlar\u0131 kullan\u0131r:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> (s\u0131f\u0131r hipotezi):<\/strong> Art\u0131klar aras\u0131nda korelasyon yoktur.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>A<\/sub> (alternatif hipotez):<\/strong> Art\u0131klar otokorelasyonludur.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde R&#8217;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek: R&#8217;de Durbin-Watson testi<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Durbin-Watson testini ger\u00e7ekle\u015ftirmek i\u00e7in \u00f6ncelikle do\u011frusal bir regresyon modelini oturtmam\u0131z gerekir. <strong>Mtcars<\/strong> entegre R veri k\u00fcmesini kullanaca\u011f\u0131z ve tahmin de\u011fi\u015fkeni olarak <strong>mpg&#8217;yi<\/strong> ve a\u00e7\u0131klay\u0131c\u0131 de\u011fi\u015fkenler olarak <strong>disp<\/strong> ve <strong>wt&#8217;yi<\/strong> kullanarak bir regresyon modeli uygulayaca\u011f\u0131z.<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load mtcars dataset\n<\/span>data(mtcars)\n\n<span style=\"color: #008080;\">#view first six rows of dataset\n<\/span>head(mtcars)\n\n                   mpg cyl disp hp drat wt qsec vs am gear carb\nMazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4\nMazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4\nDatsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1\nHornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1\nHornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2\nValiant 18.1 6 225 105 2.76 3,460 20.22 1 0 3 1\n\n<span style=\"color: #008080;\">#fit regression model\n<\/span>model &lt;- lm(mpg ~ disp+wt, data=mtcars)\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Daha sonra paketteki <strong>durbinWatsonTest()<\/strong> fonksiyonunu kullanarak bir Durbin-Watson testi ger\u00e7ekle\u015ftirebiliriz <strong>\u00e7\u00fcnk\u00fc<\/strong> :<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load car package\n<\/span>library(car)\n\n<span style=\"color: #008080;\">#perform Durbin-Watson test\n<\/span>durbinWatsonTest(model)\n\nLoading required package: carData\n lag Autocorrelation DW Statistic p-value\n   1 0.341622 1.276569 0.034\n Alternative hypothesis: rho != 0<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7tan test istatisti\u011finin <strong>1,276569<\/strong> ve kar\u015f\u0131l\u0131k gelen p de\u011ferinin <strong>0,034<\/strong> oldu\u011funu g\u00f6rebiliriz. Bu p de\u011feri 0,05&#8217;ten k\u00fc\u00e7\u00fck oldu\u011fundan s\u0131f\u0131r hipotezini reddedebilir ve bu regresyon modelinin art\u0131klar\u0131n\u0131n otokorelasyonlu oldu\u011fu sonucuna varabiliriz.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Otokorelasyon tespit edilirse ne yap\u0131lmal\u0131<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">S\u0131f\u0131r hipotezini reddederseniz ve art\u0131klarda otokorelasyonun mevcut oldu\u011fu sonucuna var\u0131rsan\u0131z, yeterince ciddi oldu\u011funu d\u00fc\u015f\u00fcn\u00fcyorsan\u0131z bu sorunu d\u00fczeltmek i\u00e7in birka\u00e7 se\u00e7ene\u011finiz vard\u0131r:<\/span><\/p>\n<ul data-slot-rendered-dynamic=\"true\">\n<li> <span style=\"color: #000000;\">Pozitif seri korelasyon i\u00e7in ba\u011f\u0131ml\u0131 ve\/veya ba\u011f\u0131ms\u0131z de\u011fi\u015fkenin gecikmelerini modele eklemeyi d\u00fc\u015f\u00fcn\u00fcn.<\/span><\/li>\n<li> <span style=\"color: #000000;\">Negatif seri korelasyon i\u00e7in de\u011fi\u015fkenlerinizden hi\u00e7birinin <em>a\u015f\u0131r\u0131 gecikmedi\u011finden<\/em> emin olun.<\/span><\/li>\n<li> <span style=\"color: #000000;\">Mevsimsel korelasyon i\u00e7in modele mevsimsel kuklalar eklemeyi d\u00fc\u015f\u00fcn\u00fcn.<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Do\u011frusal regresyonun temel varsay\u0131mlar\u0131ndan biri, art\u0131klar aras\u0131nda herhangi bir korelasyonun olmamas\u0131, yani art\u0131klar\u0131n ba\u011f\u0131ms\u0131z olmas\u0131d\u0131r. Bu varsay\u0131m\u0131n kar\u015f\u0131lan\u0131p kar\u015f\u0131lanmad\u0131\u011f\u0131n\u0131 belirlemenin bir yolu, bir regresyonun art\u0131klar\u0131nda otokorelasyonun varl\u0131\u011f\u0131n\u0131 tespit etmek i\u00e7in kullan\u0131lan Durbin-Watson testinin yap\u0131lmas\u0131d\u0131r. Bu test a\u015fa\u011f\u0131daki varsay\u0131mlar\u0131 kullan\u0131r: H 0 (s\u0131f\u0131r hipotezi): Art\u0131klar aras\u0131nda korelasyon yoktur. H A (alternatif hipotez): Art\u0131klar otokorelasyonludur. Bu e\u011fitimde [&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-668","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>R - Statorialsde Durbin-Watson testi nas\u0131l yap\u0131l\u0131r?<\/title>\n<meta name=\"description\" content=\"R&#039;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve sonu\u00e7lar\u0131n nas\u0131l 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\/durbin-watson-testi-r\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R - Statorialsde Durbin-Watson testi nas\u0131l yap\u0131l\u0131r?\" \/>\n<meta property=\"og:description\" content=\"R&#039;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve sonu\u00e7lar\u0131n nas\u0131l yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T03:58: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\/durbin-watson-testi-r\/\",\"url\":\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/\",\"name\":\"R - Statorialsde Durbin-Watson testi nas\u0131l yap\u0131l\u0131r?\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-29T03:58:36+00:00\",\"dateModified\":\"2023-07-29T03:58:36+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"R&#39;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve sonu\u00e7lar\u0131n nas\u0131l yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de durbin-watson 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":"R - Statorialsde Durbin-Watson testi nas\u0131l yap\u0131l\u0131r?","description":"R&#39;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve sonu\u00e7lar\u0131n nas\u0131l 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\/durbin-watson-testi-r\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorialsde Durbin-Watson testi nas\u0131l yap\u0131l\u0131r?","og_description":"R&#39;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve sonu\u00e7lar\u0131n nas\u0131l yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","og_url":"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/","og_site_name":"Statorials","article_published_time":"2023-07-29T03:58: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\/durbin-watson-testi-r\/","url":"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/","name":"R - Statorialsde Durbin-Watson testi nas\u0131l yap\u0131l\u0131r?","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-29T03:58:36+00:00","dateModified":"2023-07-29T03:58:36+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"R&#39;de Durbin-Watson testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fine ve sonu\u00e7lar\u0131n nas\u0131l yorumlanaca\u011f\u0131na dair basit bir a\u00e7\u0131klama.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de durbin-watson 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\/668","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=668"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/668\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}