{"id":1637,"date":"2023-07-25T13:53:58","date_gmt":"2023-07-25T13:53:58","guid":{"rendered":"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/"},"modified":"2023-07-25T13:53:58","modified_gmt":"2023-07-25T13:53:58","slug":"rde-breusch-godfrey-testi","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/","title":{"rendered":"R&#39;de breusch-godfrey 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;\">Birinci dereceden otokorelasyonu test etmek i\u00e7in <a href=\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/\" target=\"_blank\" rel=\"noopener\">Durbin-Watson testi<\/a> yapabiliriz. Ancak otokorelasyonu daha y\u00fcksek derecelerde test etmek istiyorsak <strong>Breusch-Godfrey testi<\/strong> yapmam\u0131z gerekir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu test a\u015fa\u011f\u0131daki <a href=\"https:\/\/statorials.org\/tr\/hipotez-testi-1\/\" target=\"_blank\" rel=\"noopener\">varsay\u0131mlar\u0131<\/a> kullan\u0131r:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> (s\u0131f\u0131r hipotezi):<\/strong> p&#8217;den k\u00fc\u00e7\u00fck veya <em>p&#8217;ye<\/em> e\u015fit bir otokorelasyon yoktur.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong><sub>HA<\/sub> (alternatif hipotez):<\/strong> p&#8217;den k\u00fc\u00e7\u00fck veya <em>p&#8217;ye<\/em> e\u015fit belirli bir d\u00fczeyde otokorelasyon vard\u0131r.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Test istatisti\u011fi, <em>p<\/em> serbestlik derecesine sahip bir Ki-kare da\u011f\u0131l\u0131m\u0131n\u0131 takip eder.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu test istatisti\u011fine kar\u015f\u0131l\u0131k gelen <a href=\"https:\/\/statorials.org\/tr\/p-degerleri-istatistiksel-anlamlilik\/\" target=\"_blank\" rel=\"noopener\">p de\u011feri<\/a> belirli bir anlaml\u0131l\u0131k d\u00fczeyinin (\u00f6rne\u011fin 0,05) alt\u0131ndaysa, o zaman s\u0131f\u0131r hipotezini reddedebilir ve art\u0131klar aras\u0131nda belirli bir d\u00fc\u015f\u00fck d\u00fczeyde veya <em>p&#8217;ye<\/em> e\u015fit bir otokorelasyonun var oldu\u011fu sonucuna varabiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">R&#8217;de Breusch-Godfrey testi ger\u00e7ekle\u015ftirmek i\u00e7in <strong>lmtest<\/strong> k\u00fct\u00fcphanesindeki <strong>bgtest(y ~ x, order = p)<\/strong> fonksiyonunu kullanabiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu e\u011fitimde bu s\u00f6zdiziminin R&#8217;de kullan\u0131lmas\u0131na ili\u015fkin bir \u00f6rnek sunulmaktad\u0131r.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>\u00d6rnek: R&#8217;de Breusch-Godfrey testi<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">\u00d6ncelikle iki \u00f6ng\u00f6r\u00fcc\u00fc de\u011fi\u015fken (x1 ve x2) ve bir yan\u0131t de\u011fi\u015fkeni (y) i\u00e7eren sahte bir veri k\u00fcmesi olu\u015ftural\u0131m.<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create dataset\n<\/span>df &lt;- data. <span style=\"color: #3366ff;\">frame<\/span> (x1=c(3, 4, 4, 5, 8, 9, 11, 13, 14, 16, 17, 20),\n                 x2=c(7, 7, 8, 8, 12, 4, 5, 15, 9, 17, 19, 19),\n                  y=c(24, 25, 25, 27, 29, 31, 34, 34, 39, 30, 40, 49))\n\n<span style=\"color: #008080;\">#view first six rows of dataset\n<\/span>head(df)\n\n  x1 x2 y\n1 3 7 24\n2 4 7 25\n3 4 8 25\n4 5 8 27\n5 8 12 29\n6 9 4 31<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Daha sonra <strong>lmtest<\/strong> paketindeki <strong>bgtest()<\/strong> fonksiyonunu kullanarak Breusch-Godfrey testi ger\u00e7ekle\u015ftirebiliriz.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu \u00f6rnek i\u00e7in, art\u0131klar aras\u0131ndaki otokorelasyonu p = 3 d\u00fczeyinde test edece\u011fiz:<\/span><\/p>\n<pre style=\"background-color: #e5e5e5; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load lmtest package\n<\/span><span style=\"color: #993300;\">library<\/span> (lmtest)\n\n<span style=\"color: #008080;\">#perform Breusch-Godfrey test\n<\/span>bgtest(y ~ x1 + x2, order= <span style=\"color: #008000;\">3<\/span> , data=df)\n\n\tBreusch-Godfrey test for serial correlation of order up to 3\n\ndata: y ~ x1 + x2\nLM test = 8.7031, df = 3, p-value = 0.03351\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7tan test istatisti\u011finin 3 serbestlik derecesiyle <sup>X2<\/sup> = <strong>8,7031<\/strong> oldu\u011funu g\u00f6rebiliriz. Kar\u015f\u0131l\u0131k gelen p de\u011feri <strong>0,03351&#8217;dir<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu p de\u011feri 0,05&#8217;ten k\u00fc\u00e7\u00fck oldu\u011fundan s\u0131f\u0131r hipotezini reddedebilir ve 3&#8217;ten k\u00fc\u00e7\u00fck veya ona e\u015fit olan s\u0131radaki art\u0131klar aras\u0131nda bir otokorelasyon oldu\u011fu sonucuna varabiliriz.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Otokorelasyonla nas\u0131l ba\u015fa \u00e7\u0131k\u0131l\u0131r?<\/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<h3> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/tr\/rde-basit-dogrusal-regresyon\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de basit do\u011frusal regresyon nas\u0131l ger\u00e7ekle\u015ftirilir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/coklu-dogrusal-regresyon-r\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de \u00e7oklu do\u011frusal regresyon nas\u0131l ger\u00e7ekle\u015ftirilir<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/durbin-watson-testi-r\/\" target=\"_blank\" rel=\"noopener\">R&#8217;de Durbin-Watson testi nas\u0131l yap\u0131l\u0131r<\/a><\/p>\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. Birinci dereceden otokorelasyonu test etmek i\u00e7in Durbin-Watson testi yapabiliriz. Ancak otokorelasyonu daha y\u00fcksek derecelerde test etmek istiyorsak Breusch-Godfrey testi yapmam\u0131z gerekir. Bu test a\u015fa\u011f\u0131daki varsay\u0131mlar\u0131 kullan\u0131r: H 0 (s\u0131f\u0131r hipotezi): p&#8217;den k\u00fc\u00e7\u00fck veya p&#8217;ye e\u015fit bir otokorelasyon yoktur. HA (alternatif [&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-1637","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 Breusch-Godfrey testi nas\u0131l yap\u0131l\u0131r?<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde, ad\u0131m ad\u0131m bir \u00f6rnek de dahil olmak \u00fczere R&#039;de Breusch-Godfrey testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi 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\/rde-breusch-godfrey-testi\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"R - Statorialsde Breusch-Godfrey testi nas\u0131l yap\u0131l\u0131r?\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde, ad\u0131m ad\u0131m bir \u00f6rnek de dahil olmak \u00fczere R&#039;de Breusch-Godfrey testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T13:53:58+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\/rde-breusch-godfrey-testi\/\",\"url\":\"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/\",\"name\":\"R - Statorialsde Breusch-Godfrey testi nas\u0131l yap\u0131l\u0131r?\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-25T13:53:58+00:00\",\"dateModified\":\"2023-07-25T13:53:58+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde, ad\u0131m ad\u0131m bir \u00f6rnek de dahil olmak \u00fczere R&#39;de Breusch-Godfrey testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"R&#39;de breusch-godfrey 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 Breusch-Godfrey testi nas\u0131l yap\u0131l\u0131r?","description":"Bu e\u011fitimde, ad\u0131m ad\u0131m bir \u00f6rnek de dahil olmak \u00fczere R&#39;de Breusch-Godfrey testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi 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\/rde-breusch-godfrey-testi\/","og_locale":"tr_TR","og_type":"article","og_title":"R - Statorialsde Breusch-Godfrey testi nas\u0131l yap\u0131l\u0131r?","og_description":"Bu e\u011fitimde, ad\u0131m ad\u0131m bir \u00f6rnek de dahil olmak \u00fczere R&#39;de Breusch-Godfrey testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/","og_site_name":"Statorials","article_published_time":"2023-07-25T13:53:58+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\/rde-breusch-godfrey-testi\/","url":"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/","name":"R - Statorialsde Breusch-Godfrey testi nas\u0131l yap\u0131l\u0131r?","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-25T13:53:58+00:00","dateModified":"2023-07-25T13:53:58+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde, ad\u0131m ad\u0131m bir \u00f6rnek de dahil olmak \u00fczere R&#39;de Breusch-Godfrey testinin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/rde-breusch-godfrey-testi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"R&#39;de breusch-godfrey 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\/1637","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=1637"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/1637\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}