{"id":1636,"date":"2023-07-25T13:57:43","date_gmt":"2023-07-25T13:57:43","guid":{"rendered":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/"},"modified":"2023-07-25T13:57:43","modified_gmt":"2023-07-25T13:57:43","slug":"errore-standard-di-bootstrap-in-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/","title":{"rendered":"Come calcolare un errore standard di bootstrap in r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\"><strong>Il bootstrap<\/strong> \u00e8 un metodo che pu\u00f2 essere utilizzato per stimare l&#8217;errore standard di una media.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Il processo di base per il calcolo di un errore standard bootstrap \u00e8 il seguente:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\">Prendi <em>k<\/em> campioni replicati <a href=\"https:\/\/statorials.org\/it\/campionamento-con-vs.-senza-sostituzione\/\" target=\"_blank\" rel=\"noopener\">con sostituzione<\/a> da un dato set di dati.<\/span><\/li>\n<li> <span style=\"color: #000000;\">Per ciascun campione, calcolare l&#8217;errore standard: s\/\u221a <span style=\"border-top: 1px solid black;\">n<\/span><\/span><\/li>\n<li> <span style=\"color: #000000;\">Ci\u00f2 si traduce in <em>k<\/em> stime diverse dell\u2019errore standard. Per trovare l&#8217;errore standard bootstrap, prendi la media dei <em>k<\/em> errori standard.<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Gli esempi seguenti spiegano due diversi metodi che possono essere utilizzati per calcolare un errore standard bootstrap in R.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Metodo 1: utilizzare il pacchetto iniziale<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Un modo per calcolare un errore standard di avvio in R \u00e8 utilizzare la funzione <strong>boot()<\/strong> dalla libreria <strong>di avvio<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Il codice seguente mostra come calcolare un errore standard di bootstrap per un determinato set di dati in R:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#make this example reproducible<\/span>\nset. <span style=\"color: #3366ff;\">seeds<\/span> (10)\n\n<span style=\"color: #008080;\">#load boot library\n<\/span><span style=\"color: #993300;\">library<\/span> (boot)\n\n<span style=\"color: #008080;\">#define dataset\n<\/span>x &lt;- c(12, 14, 14, 15, 18, 21, 25, 29, 32, 35)\n\n<span style=\"color: #008080;\">#define function to calculate mean\n<\/span>meanFunc &lt;- <span style=\"color: #008000;\">function<\/span> (x,i){mean(x[i])}\n\n<span style=\"color: #008080;\">#calculate standard error using 100 bootstrapped samples\n<\/span>boot(x, meanFunc, 100)\n\nBootstrap Statistics:\n    original bias std. error\nt1* 21.5 0.254 2.379263<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Il valore &#8220;originale&#8221; di <strong>21,5<\/strong> mostra la media del set di dati originale. Il \u201cst. Il valore di <strong>2.379263<\/strong> indica l&#8217;errore standard bootstrap della media.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Tieni presente che in questo esempio abbiamo utilizzato 100 campioni sottoposti a bootstrap per stimare l&#8217;errore standard della media, ma avremmo potuto utilizzare 1.000 o 10.000 o qualsiasi numero di campioni sottoposti a bootstrap volessimo.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Metodo 2: Scrivi la tua formula<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">Un altro modo per calcolare un errore standard bootstrap \u00e8 scrivere la nostra funzione.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Il codice seguente mostra come eseguire questa operazione:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#make this example reproducible<\/span>\nset. <span style=\"color: #3366ff;\">seeds<\/span> (10)\n\n<span style=\"color: #008080;\">#load boot library\n<\/span><span style=\"color: #993300;\">library<\/span> (boot)\n\n<span style=\"color: #008080;\">#define dataset\n<\/span>x &lt;- c(12, 14, 14, 15, 18, 21, 25, 29, 32, 35)\n\nmean(replicate(100, sd( <span style=\"color: #3366ff;\">sample<\/span> (x, replace= <span style=\"color: #008000;\">T<\/span> ))\/sqrt( <span style=\"color: #3366ff;\">length<\/span> (x))))\n\n[1] 2.497414\n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">L&#8217;errore standard avviato risulta essere <strong>2.497414<\/strong> .<\/span><\/p>\n<p> <span style=\"color: #000000;\">Si noti che questo errore standard \u00e8 abbastanza simile a quello calcolato nell&#8217;esempio precedente.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Il bootstrap \u00e8 un metodo che pu\u00f2 essere utilizzato per stimare l&#8217;errore standard di una media. Il processo di base per il calcolo di un errore standard bootstrap \u00e8 il seguente: Prendi k campioni replicati con sostituzione da un dato set di dati. Per ciascun campione, calcolare l&#8217;errore standard: s\/\u221a n Ci\u00f2 si traduce in [&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 calcolare un errore standard di bootstrap in R - Statorials<\/title>\n<meta name=\"description\" content=\"Questo tutorial spiega come utilizzare il bootstrap per calcolare un errore standard in R, con diversi esempi.\" \/>\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\/errore-standard-di-bootstrap-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"it_IT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Come calcolare un errore standard di bootstrap in R - Statorials\" \/>\n<meta property=\"og:description\" content=\"Questo tutorial spiega come utilizzare il bootstrap per calcolare un errore standard in R, con diversi esempi.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-25T13:57:43+00:00\" \/>\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=\"2 minuti\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/\",\"url\":\"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/\",\"name\":\"Come calcolare un errore standard di bootstrap in R - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/it\/#website\"},\"datePublished\":\"2023-07-25T13:57:43+00:00\",\"dateModified\":\"2023-07-25T13:57:43+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae\"},\"description\":\"Questo tutorial spiega come utilizzare il bootstrap per calcolare un errore standard in R, con diversi esempi.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/#breadcrumb\"},\"inLanguage\":\"it-IT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Casa\",\"item\":\"https:\/\/statorials.org\/it\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Come calcolare un errore standard di bootstrap in r\"}]},{\"@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 calcolare un errore standard di bootstrap in R - Statorials","description":"Questo tutorial spiega come utilizzare il bootstrap per calcolare un errore standard in R, con diversi esempi.","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\/errore-standard-di-bootstrap-in-r\/","og_locale":"it_IT","og_type":"article","og_title":"Come calcolare un errore standard di bootstrap in R - Statorials","og_description":"Questo tutorial spiega come utilizzare il bootstrap per calcolare un errore standard in R, con diversi esempi.","og_url":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/","og_site_name":"Statorials","article_published_time":"2023-07-25T13:57:43+00:00","author":"Benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Benjamin anderson","Est. reading time":"2 minuti"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/","url":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/","name":"Come calcolare un errore standard di bootstrap in R - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/it\/#website"},"datePublished":"2023-07-25T13:57:43+00:00","dateModified":"2023-07-25T13:57:43+00:00","author":{"@id":"https:\/\/statorials.org\/it\/#\/schema\/person\/0896f191fb9fb019f2cd8623112cb3ae"},"description":"Questo tutorial spiega come utilizzare il bootstrap per calcolare un errore standard in R, con diversi esempi.","breadcrumb":{"@id":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/#breadcrumb"},"inLanguage":"it-IT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/it\/errore-standard-di-bootstrap-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Casa","item":"https:\/\/statorials.org\/it\/"},{"@type":"ListItem","position":2,"name":"Come calcolare un errore standard di bootstrap in r"}]},{"@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\/1636"}],"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=1636"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/posts\/1636\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/media?parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/categories?post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/it\/wp-json\/wp\/v2\/tags?post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}