{"id":1036,"date":"2023-07-27T21:42:44","date_gmt":"2023-07-27T21:42:44","guid":{"rendered":"https:\/\/statorials.org\/nl\/persstatistieken\/"},"modified":"2023-07-27T21:42:44","modified_gmt":"2023-07-27T21:42:44","slug":"persstatistieken","status":"publish","type":"post","link":"https:\/\/statorials.org\/nl\/persstatistieken\/","title":{"rendered":"Wat is de press-statistiek?"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">In de statistieken passen we<a href=\"https:\/\/statorials.org\/nl\/lineaire-regressie-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">regressiemodellen<\/a> om twee redenen:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>(1)<\/strong> <em>Leg<\/em> de relatie uit tussen een of meer <a href=\"https:\/\/statorials.org\/nl\/variabelen-verklarende-reacties\/\" target=\"_blank\" rel=\"noopener noreferrer\">verklarende variabelen<\/a> en een <a href=\"https:\/\/statorials.org\/nl\/variabelen-verklarende-reacties\/\" target=\"_blank\" rel=\"noopener noreferrer\">responsvariabele<\/a> .<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>(2)<\/strong> <em>Voorspel<\/em> de waarden van een responsvariabele op basis van de waarden van een of meer verklarende variabelen.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Wanneer het ons doel is om <strong>(2)<\/strong> de waarden van een responsvariabele <em>te voorspellen<\/em> , willen we ervoor zorgen dat we daarvoor het best mogelijke regressiemodel gebruiken.<\/span><\/p>\n<p> <span style=\"color: #000000;\">E\u00e9n maatstaf die we kunnen gebruiken om het regressiemodel te vinden dat de beste voorspellingen op basis van nieuwe gegevens zal doen, is de <strong>PRESS-statistiek<\/strong> , die staat voor &#8218; <strong>voorspelde<\/strong> <strong>resterende<\/strong> <strong>som<\/strong> van <strong>kwadraten<\/strong> &#8218;.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Het wordt als volgt berekend:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>DRUK = \u03a3(e <sub>i<\/sub> \/ (1-h <sub>ii<\/sub> )) <sup>2<\/sup><\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Goud:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>e <sub>i<\/sub> :<\/strong> het i <sup>-de<\/sup> residu.<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>h <sub>ii<\/sub> :<\/strong> Een maatstaf voor de invloed (ook wel \u201cleverage\u201d genoemd) van de <sup>i-<\/sup> de observatie op de fit van het model.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Gegeven meerdere regressiemodellen moet het model met de laagste PRESS worden geselecteerd als het model dat het beste presteert op een nieuwe dataset.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Het volgende voorbeeld laat zien hoe u de PRESS-statistiek voor drie verschillende lineaire regressiemodellen in R kunt berekenen.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Voorbeeld: Berekening van de PRESS-statistiek<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Stel dat we een gegevensset hebben met drie verklarende variabelen, <sub>x1<\/sub> , <sub>x2<\/sub> en <sub>x3<\/sub> , en een responsvariabele y:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>data &lt;- <span style=\"color: #3366ff;\">data.frame<\/span> (x1 = c(2, 3, 3, 4, 4, 6, 8, 9, 9, 9),\n                   x2 = c(2, 2, 3, 3, 2, 3, 5, 6, 6, 7),\n                   x3 = c(12, 14, 14, 13, 8, 8, 9, 14, 11, 7),\n                    y = c(23, 24, 15, 9, 14, 17, 22, 26, 34, 35))\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u drie verschillende regressiemodellen aan deze gegevensset kunt aanpassen met behulp van de functie <strong>lm()<\/strong> :<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong>model1 &lt;- lm(y~x1, data=data)\n\nmodel2 &lt;- lm(y~x1+x2, data=data)\n\nmodel3 &lt;- lm(y~x2+x3, data=data)\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">De volgende code laat zien hoe u de PRESS-statistiek voor elk model kunt berekenen.<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#create custom function to calculate the PRESS statistic<\/span>\nPRESS &lt;- <span style=\"color: #008000;\">function<\/span> (model) {\n    i &lt;- <span style=\"color: #3366ff;\">residuals<\/span> (model)\/(1 - lm. <span style=\"color: #3366ff;\">influence<\/span> (model)$ <span style=\"color: #3366ff;\">hat<\/span> )\n    sum(i^2)\n}\n\n<span style=\"color: #008080;\">#calculate PRESS for model 1<\/span>\nPRESS(model1)\n\n[1] 590.2197\n\n<span style=\"color: #008080;\">#calculate PRESS for model 2<\/span>\nPRESS(model2)\n\n[1] 519.6435\n\n<span style=\"color: #008080;\">#calculate PRESS for model 3<\/span>\nPRESS(model3)\n\n[1] 537.7503\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Het blijkt dat het model met de laagste PRESS-statistiek Model 2 is met een PRESS-statistiek van <strong>519,6435<\/strong> . We zouden dit model dus kiezen als het meest geschikt voor het maken van voorspellingen op basis van een nieuwe dataset.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Aanvullende bronnen<\/strong><\/span><\/h3>\n<p><a href=\"https:\/\/statorials.org\/nl\/lineaire-regressie-1\/\" target=\"_blank\" rel=\"noopener noreferrer\">Inleiding tot eenvoudige lineaire regressie<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/spaarzaam-model\/\" target=\"_blank\" rel=\"noopener noreferrer\">Wat is een spaarzaam model?<\/a><br \/> <a href=\"https:\/\/statorials.org\/nl\/goede-r-kwadraatwaarde\/\" target=\"_blank\" rel=\"noopener noreferrer\">Wat is een goede R-kwadraatwaarde?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In de statistieken passen weregressiemodellen om twee redenen: (1) Leg de relatie uit tussen een of meer verklarende variabelen en een responsvariabele . (2) Voorspel de waarden van een responsvariabele op basis van de waarden van een of meer verklarende variabelen. Wanneer het ons doel is om (2) de waarden van een responsvariabele te voorspellen [&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-1036","post","type-post","status-publish","format-standard","hentry","category-gids"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Wat is de PRESS-statistiek? - Statorialen<\/title>\n<meta name=\"description\" content=\"Een eenvoudige uitleg van de PRESS-statistiek, inclusief een formele definitie en een voorbeeld.\" \/>\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\/nl\/persstatistieken\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wat is de PRESS-statistiek? - Statorialen\" \/>\n<meta property=\"og:description\" content=\"Een eenvoudige uitleg van de PRESS-statistiek, inclusief een formele definitie en een voorbeeld.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/nl\/persstatistieken\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T21:42:44+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=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"2\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/nl\/persstatistieken\/\",\"url\":\"https:\/\/statorials.org\/nl\/persstatistieken\/\",\"name\":\"Wat is de PRESS-statistiek? - Statorialen\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/nl\/#website\"},\"datePublished\":\"2023-07-27T21:42:44+00:00\",\"dateModified\":\"2023-07-27T21:42:44+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\"},\"description\":\"Een eenvoudige uitleg van de PRESS-statistiek, inclusief een formele definitie en een voorbeeld.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/nl\/persstatistieken\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/nl\/persstatistieken\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/nl\/persstatistieken\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Thuis\",\"item\":\"https:\/\/statorials.org\/nl\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wat is de press-statistiek?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/nl\/#website\",\"url\":\"https:\/\/statorials.org\/nl\/\",\"name\":\"Statorials\",\"description\":\"Uw gids voor statistische competentie\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/nl\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/statorials.org\/nl\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Ik ben Benjamin, een gepensioneerde hoogleraar statistiek die nu een toegewijde Statorials-lesgever is. Ik heb uitgebreide ervaring en expertise op het gebied van statistiek en ik ben vastbesloten om mijn kennis te delen met studenten via Statorials. Lees verder\",\"sameAs\":[\"http:\/\/statorials.org\/nl\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Wat is de PRESS-statistiek? - Statorialen","description":"Een eenvoudige uitleg van de PRESS-statistiek, inclusief een formele definitie en een voorbeeld.","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\/nl\/persstatistieken\/","og_locale":"de_DE","og_type":"article","og_title":"Wat is de PRESS-statistiek? - Statorialen","og_description":"Een eenvoudige uitleg van de PRESS-statistiek, inclusief een formele definitie en een voorbeeld.","og_url":"https:\/\/statorials.org\/nl\/persstatistieken\/","og_site_name":"Statorials","article_published_time":"2023-07-27T21:42:44+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Verfasst von":"Dr.benjamin anderson","Gesch\u00e4tzte Lesezeit":"2\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/nl\/persstatistieken\/","url":"https:\/\/statorials.org\/nl\/persstatistieken\/","name":"Wat is de PRESS-statistiek? - Statorialen","isPartOf":{"@id":"https:\/\/statorials.org\/nl\/#website"},"datePublished":"2023-07-27T21:42:44+00:00","dateModified":"2023-07-27T21:42:44+00:00","author":{"@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219"},"description":"Een eenvoudige uitleg van de PRESS-statistiek, inclusief een formele definitie en een voorbeeld.","breadcrumb":{"@id":"https:\/\/statorials.org\/nl\/persstatistieken\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/nl\/persstatistieken\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/nl\/persstatistieken\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Thuis","item":"https:\/\/statorials.org\/nl\/"},{"@type":"ListItem","position":2,"name":"Wat is de press-statistiek?"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/nl\/#website","url":"https:\/\/statorials.org\/nl\/","name":"Statorials","description":"Uw gids voor statistische competentie","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/nl\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de"},{"@type":"Person","@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/d4b8842173cca1bb62cdec41860e4219","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/statorials.org\/nl\/#\/schema\/person\/image\/","url":"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"http:\/\/statorials.org\/nl\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Ik ben Benjamin, een gepensioneerde hoogleraar statistiek die nu een toegewijde Statorials-lesgever is. Ik heb uitgebreide ervaring en expertise op het gebied van statistiek en ik ben vastbesloten om mijn kennis te delen met studenten via Statorials. Lees verder","sameAs":["http:\/\/statorials.org\/nl"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/1036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/comments?post=1036"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/posts\/1036\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/media?parent=1036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/categories?post=1036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/nl\/wp-json\/wp\/v2\/tags?post=1036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}