File:Coeficiente de variación.svg
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this PNG preview of this SVG file: 657 × 600 pixels. Other resolutions: 263 × 240 pixels | 526 × 480 pixels | 841 × 768 pixels | 1,122 × 1,024 pixels | 2,244 × 2,048 pixels | 677 × 618 pixels.
Original file (SVG file, nominally 677 × 618 pixels, file size: 140 KB)
File information
Structured data
Captions
Summary[edit]
DescriptionCoeficiente de variación.svg |
Español: En la gráfica superior, se muestran dos distribuciones de frecuencias en las que ambas tienen el mismo coeficiente de variación pero diferentes medias y desviaciones estándar. Las mismas distribuciones aparecen abajo con diferentes escalas pero se muestra la misma dispersión de datos debido al cambio de escala en la abscisa. El código R para las dos gráficas es como sigue:
#Gráfica 1: svg("CV2.svg",width = 8, height = 4) set.seed(3) cv = 25 media = 40 sd = media*cv/100 c1 <- rgb(173,216,230,max = 255, alpha = 80, names = "lt.blue") c2 <- rgb(255,192,203, max = 255, alpha = 80, names = "lt.pink") normals = rnorm(1000, mean=media, sd=sd) h1a <- hist(normals, breaks=15, prob=FALSE, ylim=c(0,250), xlim=c(0,media3*sd), main="Dos distribuciones con el mismo coeficiente de variación", ylab="Frecuencia", xlab="longitud", plot=FALSE) cv2 = 25 media2 = 80 sd2 = media2*cv2/100 normals2 = rnorm(1000, mean=media2, sd=sd2) h2a <- hist(normals2, breaks=10, prob=FALSE, ylim=c(0,250), xlim=c(0,140), main="Dos distribuciones con el mismo coeficiente de variación", ylab="Frecuencia", xlab="Longitud",plot=FALSE) plot(h1a,xlim=c(0,140),main="Dos distribuciones con el mismo coeficiente de variación", ylab="Frecuencia", xlab="Longitud", col=c1) plot(h2a, add=TRUE, col=c2) curve(dnorm(x,media,sd)*diff(h1a$mids[1:2])*length(normals), from=media-3*sd, to = media+3*sd, col="darkblue", lwd=2, add=TRUE, yaxt="n") curve(dnorm(x,media2,sd2)*diff(h2a$mids[1:2])*length(normals2), from=media2-3*sd2, to = media2+3*sd2, col="darkblue", lwd=2, add=TRUE, yaxt="n") text(10,175,"CV=25%\nMedia=40\nDS=10",cex=1) text(120,175,"CV=25%\nMedia=80\nDS=20",cex=1) dev.off()
#Gráfica 2: svg("CV.svg",width = 8, height = 4) set.seed = 1 c1 <- rgb(173,216,230,max = 255, alpha = 80, names = "lt.blue") c2 <- rgb(255,192,203, max = 255, alpha = 80, names = "lt.pink") cv = 25 media = 40 sd = media*cv/100 par(mfrow=c(1,2)) normals = rnorm(1000, mean=media, sd=sd) h <- hist(normals, breaks=15, prob=FALSE, ylim=c(0,250), xlim=c(0,media+3*sd), main="", ylab="Frecuencia", xlab="Longitud",col=c1) curve(dnorm(x,media,sd)*diff(h$mids[1:2])*length(normals), from=media-3*sd, to = media+3*sd, col="darkblue", lwd=2, add=TRUE, yaxt="n") print("desviación estándar") sd(normals) print("coeficiente de variación") sd(normals)/mean(normals) text(10,200,"CV=25%\nMedia=40\nDS=10",cex=1) cv = 25 media = 80 sd = media*cv/100 normals = rnorm(1000, mean=media, sd=sd) h <- hist(normals, breaks=10, prob=FALSE, ylim=c(0,250), xlim=c(0,media+3*sd), main="", ylab="Frecuencia", xlab="Longitud",col=c2) curve(dnorm(x,media,sd)*diff(h$mids[1:2])*length(normals), from=media-3*sd, to = media+3*sd, col="darkblue", lwd=2, add=TRUE, yaxt="n") print("desviación estándar") sd(normals) print("coeficiente de variación") sd(normals)/mean(normals) text(20,200,"CV=25%\nMedia=80\nDS=20",cex=1)dev.off() |
Date | |
Source | Own work |
Author | Smelgar |
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 01:24, 8 August 2021 | 677 × 618 (140 KB) | Smelgar (talk | contribs) | Se agregó el 100 en la gráfica inferior derecha y se movió el texto de la segunda gráfica | |
16:42, 7 August 2021 | 677 × 618 (139 KB) | Smelgar (talk | contribs) | Se cambió los colores y se volvió transparente el fondo | ||
14:38, 6 August 2021 | 720 × 719 (150 KB) | Smelgar (talk | contribs) | Se agregó otro título | ||
14:30, 6 August 2021 | 720 × 719 (150 KB) | Smelgar (talk | contribs) | Se corrigió el título | ||
14:26, 6 August 2021 | 720 × 719 (150 KB) | Smelgar (talk | contribs) | Se corrigieron números y títulos | ||
04:22, 6 August 2021 | 720 × 719 (120 KB) | Smelgar (talk | contribs) | Se corrigió la leyenda de las gráficas. | ||
04:14, 6 August 2021 | 720 × 719 (126 KB) | Smelgar (talk | contribs) | Uploaded own work with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
Metadata
This file contains additional information such as Exif metadata which may have been added by the digital camera, scanner, or software program used to create or digitize it. If the file has been modified from its original state, some details such as the timestamp may not fully reflect those of the original file. The timestamp is only as accurate as the clock in the camera, and it may be completely wrong.
Width | 541.79883pt |
---|---|
Height | 494.40753pt |
Structured data
Items portrayed in this file
depicts
5 August 2021
image/svg+xml
5832a9e30ba0d5e160d28653445f4889852ca884
143,042 byte
618 pixel
677 pixel
Hidden categories: