{"id":1722,"date":"2023-07-25T06:08:27","date_gmt":"2023-07-25T06:08:27","guid":{"rendered":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/"},"modified":"2023-07-25T06:08:27","modified_gmt":"2023-07-25T06:08:27","slug":"come-interpretare-lerrore-standard-residuo","status":"publish","type":"post","link":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/","title":{"rendered":"Come interpretare l&#39;errore standard residuo"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">L&#8217; <strong>errore standard residuo<\/strong> viene utilizzato per misurare la precisione con cui un <a href=\"https:\/\/statorials.org\/it\/regressione-lineare-1\/\" target=\"_blank\" rel=\"noopener\">modello di regressione<\/a> si adatta a un set di dati.<\/span><\/p>\n<p> <span style=\"color: #000000;\">In termini semplici, misura la deviazione standard dei residui in un modello di regressione.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><span style=\"color: #000000;\">Viene calcolato come segue:<\/span><\/span><\/p>\n<p> <strong><span style=\"color: #000000;\">Errore standard residuo = \u221a <span style=\"border-top: 1px solid black;\">\u03a3(y \u2013 \u0177) <sup>2<\/sup> \/df<\/span><\/span><\/strong><\/p>\n<p> <span style=\"color: #000000;\">Oro:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>y:<\/strong> il valore osservato<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>\u0177:<\/strong> il valore previsto<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>df:<\/strong> i gradi di libert\u00e0, calcolati come numero totale di osservazioni \u2013 numero totale di parametri del modello.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Quanto pi\u00f9 piccolo \u00e8 l\u2019errore standard residuo, tanto meglio il modello di regressione si adatta a un set di dati. Al contrario, maggiore \u00e8 l\u2019errore standard residuo, peggiore \u00e8 l\u2019adattamento del modello di regressione a un set di dati.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Un modello di regressione che ha un errore standard residuo piccolo avr\u00e0 punti dati strettamente raggruppati attorno alla linea di regressione adattata:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-15730 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/standarderrorestimate1.png\" alt=\"\" width=\"431\" height=\"322\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">I <a href=\"https:\/\/statorials.org\/it\/residuo\/\" target=\"_blank\" rel=\"noopener\">residui<\/a> di questo modello (la differenza tra i valori osservati e i valori previsti) saranno piccoli, il che significa che anche l\u2019errore standard residuo sar\u00e0 piccolo.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Al contrario, un modello di regressione che ha un errore standard residuo ampio avr\u00e0 punti dati pi\u00f9 vagamente sparsi attorno alla linea di regressione adattata:<\/span> <\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\" wp-image-15731 aligncenter\" src=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/standarderrorestimate2.png\" alt=\"\" width=\"445\" height=\"325\" srcset=\"\" sizes=\"\"><\/p>\n<p> <span style=\"color: #000000;\">I <a href=\"https:\/\/statorials.org\/it\/residuo\/\" target=\"_blank\" rel=\"noopener\">residui<\/a> di questo modello saranno maggiori, il che significa che anche l\u2019errore standard residuo sar\u00e0 maggiore.<\/span><\/p>\n<p> <span style=\"color: #000000;\">L&#8217;esempio seguente mostra come calcolare e interpretare l&#8217;errore standard residuo di un modello di regressione in R.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Esempio: interpretazione dell&#8217;errore standard residuo<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Supponiamo di voler adattare il seguente modello di regressione lineare multipla:<\/span><\/p>\n<p> <span style=\"color: #000000;\">mpg = \u03b2 <sub>0<\/sub> + \u03b2 <sub>1<\/sub> (cilindrata) + \u03b2 <sub>2<\/sub> (potenza)<\/span><\/p>\n<p> <span style=\"color: #000000;\">Questo modello utilizza le variabili predittive \u201ccilindrata\u201d e \u201cpotenza\u201d per prevedere le miglia per gallone percorse da una determinata automobile.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Il codice seguente mostra come adattare questo modello di regressione in R:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#load built-in <em>mtcars<\/em> dataset<\/span>\ndata(mtcars)\n\n<span style=\"color: #008080;\">#fit regression model\n<\/span>model &lt;- lm(mpg~disp+hp, data=mtcars)\n\n<span style=\"color: #008080;\">#view model summary\n<\/span>summary(model)\n\nCall:\nlm(formula = mpg ~ disp + hp, data = mtcars)\n\nResiduals:\n    Min 1Q Median 3Q Max \n-4.7945 -2.3036 -0.8246 1.8582 6.9363 \n\nCoefficients:\n             Estimate Std. Error t value Pr(&gt;|t|)    \n(Intercept) 30.735904 1.331566 23.083 &lt; 2nd-16 ***\navailable -0.030346 0.007405 -4.098 0.000306 ***\nhp -0.024840 0.013385 -1.856 0.073679 .  \n---\nSignificant. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1\n\nResidual standard error: <span style=\"color: #008000;\">3.127<\/span> on 29 degrees of freedom\nMultiple R-squared: 0.7482, Adjusted R-squared: 0.7309 \nF-statistic: 43.09 on 2 and 29 DF, p-value: 2.062e-09<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Verso la fine del risultato, possiamo vedere che l&#8217;errore standard residuo di questo modello \u00e8 <strong>3,127<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Questo ci dice che il modello di regressione prevede il mpg dell\u2019auto con un errore medio di circa 3.127.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Utilizzo dell&#8217;errore standard residuo per confrontare i modelli<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">L&#8217;errore standard residuo \u00e8 particolarmente utile per confrontare l&#8217;adattamento di diversi modelli di regressione.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Ad esempio, supponiamo di adattare due diversi modelli di regressione per prevedere il consumo di carburante dell&#8217;auto. L\u2019errore standard residuo di ciascun modello \u00e8 il seguente:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">Errore standard residuo del modello 1: <strong>3,127<\/strong><\/span><\/li>\n<li> <span style=\"color: #000000;\">Errore standard residuo del modello 2: <strong>5,657<\/strong><\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Poich\u00e9 il Modello 1 ha un errore standard residuo inferiore, si adatta meglio ai dati rispetto al Modello 2. Pertanto, preferiremmo utilizzare il Modello 1 per prevedere il mpg dell\u2019auto, perch\u00e9 le previsioni che fa sono pi\u00f9 vicine ai valori mpg osservati delle auto.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Risorse addizionali<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/it\/regressione-lineare-semplice-in-r\/\" target=\"_blank\" rel=\"noopener\">Come eseguire una regressione lineare semplice in R<\/a><br \/> <a href=\"https:\/\/statorials.org\/it\/regressione-lineare-multipla-r\/\" target=\"_blank\" rel=\"noopener\">Come eseguire la regressione lineare multipla in R<\/a><br \/> <a href=\"https:\/\/statorials.org\/it\/traccia-residua-r\/\" target=\"_blank\" rel=\"noopener\">Come creare una trama residua in R<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>L&#8217; errore standard residuo viene utilizzato per misurare la precisione con cui un modello di regressione si adatta a un set di dati. In termini semplici, misura la deviazione standard dei residui in un modello di regressione. Viene calcolato come segue: Errore standard residuo = \u221a \u03a3(y \u2013 \u0177) 2 \/df Oro: y: il valore [&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":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Come interpretare l&#039;errore standard residuo - Statorials<\/title>\n<meta name=\"description\" content=\"Questo tutorial spiega come interpretare l&#039;errore standard residuo in un modello di regressione, con un esempio.\" \/>\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\/it\/come-interpretare-lerrore-standard-residuo\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Come interpretare l&#039;errore standard residuo - Statorials\" \/>\n<meta property=\"og:description\" content=\"Questo tutorial spiega come interpretare l&#039;errore standard residuo in un modello di regressione, con un esempio.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T06:08:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/standarderrorestimate1.png\" \/>\n<meta name=\"author\" content=\"Benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/\",\"url\":\"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/\",\"name\":\"Come interpretare l&#39;errore standard residuo - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/it\/#website\"},\"datePublished\":\"2023-07-25T06:08:27+00:00\",\"dateModified\":\"2023-07-25T06:08:27+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\"},\"description\":\"Questo tutorial spiega come interpretare l&#39;errore standard residuo in un modello di regressione, con un esempio.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Casa\",\"item\":\"https:\/\/statorials.org\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come interpretare l&#39;errore standard residuo\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/it\/#website\",\"url\":\"https:\/\/statorials.org\/it\/\",\"name\":\"Statorials\",\"description\":\"La tua guida all&#039;alfabetizzazione statistica!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/it\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"it-IT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\",\"name\":\"Benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"it-IT\",\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Benjamin anderson\"},\"description\":\"Ciao, sono Benjamin, un professore di statistica in pensione diventato insegnante dedicato di Statorials. Con una vasta esperienza e competenza nel campo della statistica, sono ansioso di condividere le mie conoscenze per potenziare gli studenti attraverso Statorials. Scopri di pi\u00f9\",\"sameAs\":[\"https:\/\/statorials.org\/it\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Come interpretare l&#39;errore standard residuo - Statorials","description":"Questo tutorial spiega come interpretare l&#39;errore standard residuo in un modello di regressione, con un esempio.","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\/it\/come-interpretare-lerrore-standard-residuo\/","og_locale":"it_IT","og_type":"article","og_title":"Come interpretare l&#39;errore standard residuo - Statorials","og_description":"Questo tutorial spiega come interpretare l&#39;errore standard residuo in un modello di regressione, con un esempio.","og_url":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/","og_site_name":"Statorials","article_published_time":"2023-07-25T06:08:27+00:00","og_image":[{"url":"https:\/\/statorials.org\/wp-content\/uploads\/2023\/08\/standarderrorestimate1.png"}],"author":"Benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Benjamin anderson","Est. reading time":"3 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/","url":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/","name":"Come interpretare l&#39;errore standard residuo - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/it\/#website"},"datePublished":"2023-07-25T06:08:27+00:00","dateModified":"2023-07-25T06:08:27+00:00","author":{"@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae"},"description":"Questo tutorial spiega come interpretare l&#39;errore standard residuo in un modello di regressione, con un esempio.","breadcrumb":{"@id":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/it\/come-interpretare-lerrore-standard-residuo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Casa","item":"https:\/\/statorials.org\/it\/"},{"@type":"ListItem","position":2,"name":"Come interpretare l&#39;errore standard residuo"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/it\/#website","url":"https:\/\/statorials.org\/it\/","name":"Statorials","description":"La tua guida all&#039;alfabetizzazione statistica!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/it\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"it-IT"},{"@type":"Person","@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae","name":"Benjamin anderson","image":{"@type":"ImageObject","inLanguage":"it-IT","@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/it\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Benjamin anderson"},"description":"Ciao, sono Benjamin, un professore di statistica in pensione diventato insegnante dedicato di Statorials. Con una vasta esperienza e competenza nel campo della statistica, sono ansioso di condividere le mie conoscenze per potenziare gli studenti attraverso Statorials. Scopri di pi\u00f9","sameAs":["https:\/\/statorials.org\/it"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/1722"}],"collection":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/comments?post=1722"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/1722\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/media?parent=1722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/categories?post=1722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/tags?post=1722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}