{"id":1093,"date":"2023-07-27T16:45:42","date_gmt":"2023-07-27T16:45:42","guid":{"rendered":"https:\/\/statorials.org\/pt\/teste-f-em-r\/"},"modified":"2023-07-27T16:45:42","modified_gmt":"2023-07-27T16:45:42","slug":"teste-f-em-r","status":"publish","type":"post","link":"https:\/\/statorials.org\/pt\/teste-f-em-r\/","title":{"rendered":"Como realizar um teste f em r"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Um <strong>teste F<\/strong> \u00e9 usado para testar se duas vari\u00e2ncias populacionais s\u00e3o iguais. As hip\u00f3teses nula e alternativa do teste s\u00e3o as seguintes:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>0<\/sub> :<\/strong> \u03c3 <sub>1<\/sub> <sup>2<\/sup> = \u03c3 <sub>2<\/sub> <sup>2<\/sup> (as varia\u00e7\u00f5es populacionais s\u00e3o iguais)<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>H <sub>1<\/sub> :<\/strong> \u03c3 <sub>1<\/sub> <sup>2<\/sup> \u2260 \u03c3 <sub>2<\/sub> <sup>2<\/sup> (as varia\u00e7\u00f5es populacionais <em>n\u00e3o<\/em> s\u00e3o iguais)<\/span><\/p>\n<p> <span style=\"color: #000000;\">Para realizar um teste F em R, voc\u00ea pode usar a fun\u00e7\u00e3o <strong>var.test()<\/strong> com uma das seguintes sintaxes:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>M\u00e9todo 1:<\/strong> var.test(x, y, alternativa = \u201cdois lados\u201d)<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>M\u00e9todo 2:<\/strong> var.test(valores ~ grupos, dados, alternativa = \u201cdois lados\u201d)<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">Observe que <em>alternativa<\/em> indica a hip\u00f3tese alternativa a ser usada. O padr\u00e3o \u00e9 &#8220;frente e verso&#8221;, mas voc\u00ea pode especific\u00e1-lo como &#8220;esquerdo&#8221; ou &#8220;direito&#8221;.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Este tutorial explica como realizar um teste F em R usando ambos os m\u00e9todos.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>M\u00e9todo 1: teste F em R<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">O c\u00f3digo a seguir mostra como realizar um teste F usando o primeiro m\u00e9todo:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define the two groups<\/span>\nx &lt;- c(18, 19, 22, 25, 27, 28, 41, 45, 51, 55)\ny &lt;- c(14, 15, 15, 17, 18, 22, 25, 25, 27, 34)\n\n<span style=\"color: #008080;\">#perform an F-test to determine in the variances are equal\n<\/span>var.test(x, y)\n\n\tF test to compare two variances\n\ndata: x and y\nF = 4.3871, num df = 9, denom df = 9, p-value = 0.03825\nalternative hypothesis: true ratio of variances is not equal to 1\n95 percent confidence interval:\n  1.089699 17.662528\nsample estimates:\nratio of variances \n          4.387122 \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">A estat\u00edstica do teste F \u00e9 <strong>4,3871<\/strong> e o valor p correspondente \u00e9 <strong>0,03825<\/strong> . Como esse valor p \u00e9 inferior a 0,05, rejeitar\u00edamos a hip\u00f3tese nula. Isto significa que temos evid\u00eancias suficientes para dizer que as duas vari\u00e2ncias populacionais <em>n\u00e3o<\/em> s\u00e3o iguais.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>M\u00e9todo 2: teste F em R<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">O c\u00f3digo a seguir mostra como realizar um teste F usando o primeiro m\u00e9todo:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\">#define the two groups<\/span>\ndata &lt;- data.frame(values=c(18, 19, 22, 25, 27, 28, 41, 45, 51, 55,\n                            14, 15, 15, 17, 18, 22, 25, 25, 27, 34),\n                   group= <span style=\"color: #3366ff;\">rep<\/span> (c('A', 'B'), <span style=\"color: #3366ff;\">each<\/span> = <span style=\"color: #008000;\">10<\/span> ))\n\n<span style=\"color: #008080;\">#perform an F-test to determine in the variances are equal\n<\/span>var.test(values~group, data=data)\n\n\tF test to compare two variances\n\ndata: x and y\nF = 4.3871, num df = 9, denom df = 9, p-value = 0.03825\nalternative hypothesis: true ratio of variances is not equal to 1\n95 percent confidence interval:\n  1.089699 17.662528\nsample estimates:\nratio of variances \n          4.387122 \n<\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Novamente, a estat\u00edstica do teste F \u00e9 <strong>4,3871<\/strong> e o valor p correspondente \u00e9 <strong>0,03825<\/strong> . Como esse <a href=\"https:\/\/statorials.org\/pt\/p-valores-significancia-estatistica\/\" target=\"_blank\" rel=\"noopener\">valor p<\/a> \u00e9 inferior a 0,05, rejeitar\u00edamos a hip\u00f3tese nula.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Isto significa que temos evid\u00eancias suficientes para dizer que as duas vari\u00e2ncias populacionais <em>n\u00e3o<\/em> s\u00e3o iguais.<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>Relacionado<\/strong> : Execute um teste F usando esta calculadora gratuita de teste F de vari\u00e2ncias iguais.<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Quando usar o teste F<\/strong><\/span><\/h3>\n<p> <span style=\"color: #000000;\">O teste F \u00e9 normalmente usado para responder a uma das seguintes perguntas:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>1.<\/strong> Duas amostras v\u00eam de popula\u00e7\u00f5es com vari\u00e2ncias iguais?<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>2.<\/strong> Um novo tratamento ou processo reduz a variabilidade de um tratamento ou processo atual?<\/span><\/p>\n<h3> <span style=\"color: #000000;\"><strong>Recursos adicionais<\/strong><\/span><\/h3>\n<p> <a href=\"https:\/\/statorials.org\/pt\/f-teste-python\/\" target=\"_blank\" rel=\"noopener noreferrer\">Como realizar um teste F em Python<\/a><br \/> <a href=\"https:\/\/statorials.org\/pt\/um-guia-simples-para-compreender-o-teste-f-para-significancia-geral-na-regressao\/\" target=\"_blank\" rel=\"noopener noreferrer\">Como interpretar o teste F para signific\u00e2ncia geral na regress\u00e3o<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Um teste F \u00e9 usado para testar se duas vari\u00e2ncias populacionais s\u00e3o iguais. As hip\u00f3teses nula e alternativa do teste s\u00e3o as seguintes: H 0 : \u03c3 1 2 = \u03c3 2 2 (as varia\u00e7\u00f5es populacionais s\u00e3o iguais) H 1 : \u03c3 1 2 \u2260 \u03c3 2 2 (as varia\u00e7\u00f5es populacionais n\u00e3o s\u00e3o iguais) Para [&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-1093","post","type-post","status-publish","format-standard","hentry","category-guia"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Como realizar um teste F em R - Estatoriais<\/title>\n<meta name=\"description\" content=\"Este tutorial explica como realizar um teste F em R, incluindo um exemplo passo a passo.\" \/>\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\/pt\/teste-f-em-r\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Como realizar um teste F em R - Estatoriais\" \/>\n<meta property=\"og:description\" content=\"Este tutorial explica como realizar um teste F em R, incluindo um exemplo passo a passo.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/pt\/teste-f-em-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-27T16:45:42+00:00\" \/>\n<meta name=\"author\" content=\"Dr. benjamim anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr. benjamim anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/pt\/teste-f-em-r\/\",\"url\":\"https:\/\/statorials.org\/pt\/teste-f-em-r\/\",\"name\":\"Como realizar um teste F em R - Estatoriais\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/pt\/#website\"},\"datePublished\":\"2023-07-27T16:45:42+00:00\",\"dateModified\":\"2023-07-27T16:45:42+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666\"},\"description\":\"Este tutorial explica como realizar um teste F em R, incluindo um exemplo passo a passo.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/pt\/teste-f-em-r\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/pt\/teste-f-em-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/pt\/teste-f-em-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lar\",\"item\":\"https:\/\/statorials.org\/pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Como realizar um teste f em r\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/pt\/#website\",\"url\":\"https:\/\/statorials.org\/pt\/\",\"name\":\"Statorials\",\"description\":\"O seu guia para a literacia estat\u00edstica!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/pt\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666\",\"name\":\"Dr. benjamim anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/statorials.org\/pt\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr. benjamim anderson\"},\"description\":\"Ol\u00e1, sou Benjamin, um professor aposentado de estat\u00edstica que se tornou professor dedicado na Statorials. Com vasta experi\u00eancia e conhecimento na \u00e1rea de estat\u00edstica, estou empenhado em compartilhar meu conhecimento para capacitar os alunos por meio de Statorials. Saber mais\",\"sameAs\":[\"https:\/\/statorials.org\/pt\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Como realizar um teste F em R - Estatoriais","description":"Este tutorial explica como realizar um teste F em R, incluindo um exemplo passo a passo.","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\/pt\/teste-f-em-r\/","og_locale":"pt_PT","og_type":"article","og_title":"Como realizar um teste F em R - Estatoriais","og_description":"Este tutorial explica como realizar um teste F em R, incluindo um exemplo passo a passo.","og_url":"https:\/\/statorials.org\/pt\/teste-f-em-r\/","og_site_name":"Statorials","article_published_time":"2023-07-27T16:45:42+00:00","author":"Dr. benjamim anderson","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Dr. benjamim anderson","Tempo estimado de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/pt\/teste-f-em-r\/","url":"https:\/\/statorials.org\/pt\/teste-f-em-r\/","name":"Como realizar um teste F em R - Estatoriais","isPartOf":{"@id":"https:\/\/statorials.org\/pt\/#website"},"datePublished":"2023-07-27T16:45:42+00:00","dateModified":"2023-07-27T16:45:42+00:00","author":{"@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666"},"description":"Este tutorial explica como realizar um teste F em R, incluindo um exemplo passo a passo.","breadcrumb":{"@id":"https:\/\/statorials.org\/pt\/teste-f-em-r\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/pt\/teste-f-em-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/pt\/teste-f-em-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Lar","item":"https:\/\/statorials.org\/pt\/"},{"@type":"ListItem","position":2,"name":"Como realizar um teste f em r"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/pt\/#website","url":"https:\/\/statorials.org\/pt\/","name":"Statorials","description":"O seu guia para a literacia estat\u00edstica!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/pt\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"pt-PT"},{"@type":"Person","@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/e08f98e8db95e0aa9c310e1b27c9c666","name":"Dr. benjamim anderson","image":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/statorials.org\/pt\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/pt\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr. benjamim anderson"},"description":"Ol\u00e1, sou Benjamin, um professor aposentado de estat\u00edstica que se tornou professor dedicado na Statorials. Com vasta experi\u00eancia e conhecimento na \u00e1rea de estat\u00edstica, estou empenhado em compartilhar meu conhecimento para capacitar os alunos por meio de Statorials. Saber mais","sameAs":["https:\/\/statorials.org\/pt"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts\/1093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/comments?post=1093"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/posts\/1093\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/media?parent=1093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/categories?post=1093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/pt\/wp-json\/wp\/v2\/tags?post=1093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}