Anda di halaman 1dari 2

#seleccinamos

N=208#numero de colegios en el municipio


n=20#tama??ode muestra
#s=sample(N,n,FALSE)#muestra seleccionada
#edit(sort(s))
s=c(2L, 11L, 12L, 32L, 36L, 40L, 48L, 50L, 56L, 92L, 98L, 103L,
106L, 124L, 125L, 133L, 166L, 185L, 201L, 206L)
x=c(1269,1398,656,2286,2794,474,3288,514,1598,803,4,83,37,1792,40,76,
14,20,28,33)
length(x)
## [1] 20
summary(x)
##
##

Min. 1st Qu. Median Mean 3rd Qu. Max.


4.0 36.0 494.0 860.4 1448.0 3288.0

media=mean(x)#promediode los colegios del....


ee=sd(x)/sqrt(n)#error de estimacion de la media o promedio
Li=media-1.96*ee#limite inferior al 95%de confianza
#ESTIMACION DE PROMEDIO POBLACIONAL CON EL ERROR
c(media,ee)
## [1] 860.350 229.134
Ls=media+1.96*ee#limite superior al 95%de confianza
#INTERVALO DE CONFIANZA AL 95% PARA LA MEDIA POBLACIONAL
c(Li,Ls)
## [1] 411.2474 1309.4526
##ESTIMACION DEL NUMERO DE ESTUDIANTES EN EL MUNICIPIO DE
VALLEDUPAR
#ESTIMACION DEL TOTAL CON ERROR DE ESTIMACION
N*c(media,ee)
## [1] 178952.80 47659.87
#INTERVALO DE CONFIANZA PARA EL NUMERO TOTAL DE ESTUDIANTES EN
EL MUNICIPIO DE VALLEDUPAR
N*c(Li,Ls)
## [1] 85539.46 272366.14
##GRAFICOS PARA VER PERFILES POBLACIONALES
#GRAFICO DE TALLO Y HOJAS (ver normaildad y asimetria)
stem(x)
##
## The decimal point is 3 digit(s) to the right of the |
##
## 0 | 0000000115578

## 1 | 3468
## 2 | 38
## 3 | 3
#HISTOGRAMAS DE FRECUENCIA (ver normalidad y asimetria)
hist(x,col='red',xlab='numero de estudiantes')

NA
NA

Anda mungkin juga menyukai