{"id":657,"date":"2025-07-28T21:29:06","date_gmt":"2025-07-28T21:29:06","guid":{"rendered":"https:\/\/agustincastro.es\/?p=657"},"modified":"2026-01-24T13:19:58","modified_gmt":"2026-01-24T13:19:58","slug":"anova-y-dimorfismo-sexual-en-morfologia","status":"publish","type":"post","link":"https:\/\/agustincastro.es\/index.php\/2025\/07\/28\/anova-y-dimorfismo-sexual-en-morfologia\/","title":{"rendered":"ANOVA y dimorfismo sexual en morfolog\u00eda"},"content":{"rendered":"\n<p>Os comparto un caso pr\u00e1ctico sobre uso de la t\u00e9cnica estad\u00edstica ANOVA unifactorial para el estudio del dimorfismo sexual en morfolog\u00eda. <\/p>\n\n\n\n<p><img decoding=\"async\" height=\"16\" width=\"16\" alt=\"\ud83d\udd0d\" data-src=\"https:\/\/static.xx.fbcdn.net\/images\/emoji.php\/v9\/tc1\/1\/16\/1f50d.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 16px; --smush-placeholder-aspect-ratio: 16\/16;\">&nbsp;La pregunta\u2026&nbsp;<strong>\u00bfPresentan diferencias de tama\u00f1o corporal los machos y las hembras de una especie?<\/strong>&nbsp;Una pregunta que puede ser com\u00fan en diversos estudios (morfol\u00f3gicos, ecol\u00f3gicos, evolutivos) \u00bfLos individuos de distinto sexo tienen diferencias reales en alguna caracter\u00edstica biol\u00f3gica?<\/p>\n\n\n\n<p>En este ejemplo, estamos interesados en:<\/p>\n\n\n\n<p>(1) Comparar la longitud corporal entre machos y hembras de una especie de escarabajo a la que llamaremos X. La variable \u201c<strong>longitud en cm<\/strong>\u201d es cuantitativa y continua, mientras que \u201c<strong>sexo<\/strong>\u201c, es un factor con dos niveles: \u201cmacho\u201d y \u201chembra\u201d.<\/p>\n\n\n\n<p>(2) Evidenciar y demostrar estad\u00edsticamente si hay diferencias entre la longitud en ambos sexos (dimorfismo sexual).<\/p>\n\n\n\n<p>(3) Crear el c\u00f3digo en lenguaje de programaci\u00f3n R para realizar el ejercicio pr\u00e1ctico.<\/p>\n\n\n\n<p><img decoding=\"async\" height=\"16\" width=\"16\" alt=\"\ud83c\udfaf\" data-src=\"https:\/\/static.xx.fbcdn.net\/images\/emoji.php\/v9\/tb0\/1\/16\/1f3af.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 16px; --smush-placeholder-aspect-ratio: 16\/16;\">&nbsp;<strong>Objetivo<\/strong>: Evaluar si la diferencia observada en las medias de longitud entre machos y hembras es estad\u00edsticamente significativa, o si puede deberse simplemente al azar o a la variabilidad natural dentro de cada grupo.<\/p>\n\n\n\n<p><img decoding=\"async\" height=\"16\" width=\"16\" alt=\"\ud83d\udcca\" data-src=\"https:\/\/static.xx.fbcdn.net\/images\/emoji.php\/v9\/taa\/1\/16\/1f4ca.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 16px; --smush-placeholder-aspect-ratio: 16\/16;\">&nbsp;<strong>Dise\u00f1o del estudio<\/strong>: Como nos estamos inventando el ejemplo de la especie X, los datos de longitud para cada sexo los he obtenido utilizando la funci\u00f3n&nbsp;<strong><em>rnorm&nbsp;<\/em><\/strong>de R, simulando un muestreo en el que observamos una media de longitud de&nbsp;<strong>11,2 cm<\/strong>&nbsp;para los&nbsp;<strong>machos&nbsp;<\/strong>y de&nbsp;<strong>10,5 cm&nbsp;<\/strong>a las&nbsp;<strong>hembras&nbsp;<\/strong>(ver la imagen con el c\u00f3digo de programaci\u00f3n en R).<\/p>\n\n\n\n<p>(1) Se tom\u00f3 una muestra de 30 individuos: 15 machos y 15 hembras. Las muestras se generaron al azar simulando un muestro en ambos sexos.<\/p>\n\n\n\n<p>(2) Se midi\u00f3 la longitud corporal en cent\u00edmetros.<\/p>\n\n\n\n<p>Las hembras presentaron en promedio valores ligeramente inferiores (10,5 frente a 11,2 cm en los machos), pero con bastante superposici\u00f3n entre los grupos.<\/p>\n\n\n\n<p>Este tipo de diferencia es ideal para aplicar un ANOVA unifactorial, ya que queremos comparar la media de una variable cuantitativa (longitud) entre dos grupos definidos por una sola variable categ\u00f3rica (sexo).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"732\" data-src=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-4-1024x732.png\" alt=\"\" class=\"wp-image-662 lazyload\" data-srcset=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-4-1024x732.png 1024w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-4-300x214.png 300w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-4-768x549.png 768w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-4-1536x1097.png 1536w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-4.png 2048w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/732;\" \/><\/figure>\n\n\n\n<p><img decoding=\"async\" height=\"16\" width=\"16\" alt=\"\ud83e\udde0\" data-src=\"https:\/\/static.xx.fbcdn.net\/images\/emoji.php\/v9\/t7c\/1\/16\/1f9e0.png\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" style=\"--smush-placeholder-width: 16px; --smush-placeholder-aspect-ratio: 16\/16;\">&nbsp;<strong>Resumen del an\u00e1lisis<\/strong>: Se observa una diferencia estad\u00edsticamente significativa en la media de longitud corporal entre machos y hembras.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"442\" data-src=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image.png\" alt=\"\" class=\"wp-image-658 lazyload\" data-srcset=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image.png 1024w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-300x129.png 300w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-768x332.png 768w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/442;\" \/><\/figure>\n\n\n\n<p>El ANOVA indica que esta diferencia es altamente significativa (p &lt; 0.001).<\/p>\n\n\n\n<p>Los supuestos de normalidad y homogeneidad de varianzas se cumplen, por lo que los resultados son v\u00e1lidos en este sentido (la t\u00e9cnica estad\u00edstica de ANOVA puede aplicarse en este caso).<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"432\" data-src=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-1.png\" alt=\"\" class=\"wp-image-659 lazyload\" data-srcset=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-1.png 1024w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-1-300x127.png 300w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-1-768x324.png 768w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/432;\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1024\" height=\"370\" data-src=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-2.png\" alt=\"\" class=\"wp-image-660 lazyload\" data-srcset=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-2.png 1024w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-2-300x108.png 300w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-2-768x278.png 768w\" data-sizes=\"(max-width: 1024px) 100vw, 1024px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 1024px; --smush-placeholder-aspect-ratio: 1024\/370;\" \/><\/figure>\n\n\n\n<p>C\u00f3digo en R.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"825\" height=\"1024\" data-src=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-3.png\" alt=\"\" class=\"wp-image-661 lazyload\" data-srcset=\"https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-3.png 825w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-3-242x300.png 242w, https:\/\/agustincastro.es\/wp-content\/uploads\/2025\/07\/image-3-768x953.png 768w\" data-sizes=\"(max-width: 825px) 100vw, 825px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 825px; --smush-placeholder-aspect-ratio: 825\/1024;\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Os comparto un caso pr\u00e1ctico sobre uso de la t\u00e9cnica estad\u00edstica ANOVA unifactorial para el estudio del dimorfismo sexual en morfolog\u00eda. &nbsp;La pregunta\u2026&nbsp;\u00bfPresentan diferencias de tama\u00f1o corporal los machos y las hembras de una especie?&nbsp;Una pregunta que puede ser com\u00fan en diversos estudios (morfol\u00f3gicos, ecol\u00f3gicos, evolutivos) \u00bfLos individuos de distinto sexo tienen diferencias reales en [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":662,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,5],"tags":[],"class_list":["post-657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-r","category-tecnica-y-practica"],"_links":{"self":[{"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/posts\/657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/comments?post=657"}],"version-history":[{"count":1,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/posts\/657\/revisions"}],"predecessor-version":[{"id":663,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/posts\/657\/revisions\/663"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/media\/662"}],"wp:attachment":[{"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/media?parent=657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/categories?post=657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agustincastro.es\/index.php\/wp-json\/wp\/v2\/tags?post=657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}