INTERVALOS DE CONFIANZA EN R STUDIO
Enviado por Juan Vinueza • 10 de Julio de 2022 • Tarea • 389 Palabras (2 Páginas) • 115 Visitas
EDAD
Media con varianza conocida
Calcular los intervalos de confianza para las variables seleccionadas antes a un nivel de confianza del 95%
NDC 95%
mean(DATOS$Age) sd(DATOS$Age) x_barra = 44.74
sigma = 16.19
n = 583
alfa = 1 - 0.95
alfa_2 = alfa/2 z_alfa_2 = abs(qnorm(alfa_2))
E = z_alfa_2*sigma/sqrt(n)
LSC = x_barra + E
LIC = x_barra – E
LSC
LIC
Límite inferior: 43.43
Limite Superior: 46.05
Estimación de la proporción poblacional
Se entrevistó a 583 personas de las cuales 133 personas tienen 60 o más años
Encuentre un intervalo de confianza de 95% para la proporción todas las personas que tienen 60 o más años
hat_p = 133/583 n = 583
alfa = 1 - 0.95
alfa_2 = alfa/2 z_alfa_2 = abs(qnorm(alfa_2))
E = z_alfa_2*sqrt(hat_p*(1-hat_p) /n)
LSC = hat_p + E
LIC = hat_p – E
LSC
LIC
Límite superior: 0.2622
Límite inferior: 0.194
# Variable Cualitativa GÉNERO
# Media con varianza conocida Hombres: 441
var = c (62, 62,58, 72, 46, 17, 55, 57, 72, 64, 61,25, 38, 33, 51,51, 62, 40, 63, 34, 34, 34, 20, 57,
52, 57,30, 48, 47, 45, 62, 42, 50 35, 21, 40, 55, 38, 38, 42, 42, 33, 51, 64,58, 58,57, 57, 57, 54,
37,66, 60, 52, 68, 31,70, 29,49, 33,32, 14, 13, 58, 18, 60,60,60,60, 60, 60,75,39,39,18,18, 27,
27, 17,63, 36, 36,36, 36,36,48, 27,74, 50,50, 48,32, 32, 32,32,32,58, 28,60, 48,
64,45,45,53,18,66,18, 18, 15,60, 30, 30,65, 65,50, 60,56, 50, 52, 34, 34, 32, 72,72,50,
60,60,60,39, 39, 48,55, 60,60,72, 55, 31,31,31,55,75, 75,75,75,75, 65, 40, 64,38,60,60,60,
60,60,60, 49, 49,60, 60, 41, 49,49,21,21,45,40,40 28,42,22, 38,66,55,49, 6, 37, 37, 47,47, 50,70,
26, 26, 46,61, 61, 50,33,60, 22,40,48,51,54,54,55,55, 40,33,33,33,65,38,50,44,36,42
42,33,18,38,4,62, 40,26,37, 4,21,30,33,26, 35,60,45,58,50,50,18,18, 13,
43,57,60,45,23,22,22,58, 50, 48, 30,51,27,26,22,44,35,38,14,36, 12,60,42, 24,43,21,
26,26,26,75,75,75, 75,75,35,70,37, 60,46,38,70,37, 37,19,33,33, 37,24, 55,21,
40,16,60,33,48,47,33,72, 50, 39,34, 50,38, 51,46,72,72,75,41, 41, 45, 74, 78,38,27, 50,65,22,
45,12,48, 48,18,65, 48,65,70,70,11,50, 26,41,53, 58,45,65,73,29,23, 35,65,61,17,54, 65,35,
58,46, 28,32,61,26, 65,38,25,66,66,66,42, 42, 35,38,38, 55,33, 33, 7, 45,45,30,
62,32,60,65,27,65,25, 32, 24,67, 68,55,70,36, 42,53, 32, 32,56, 50,46,46,45,56,69,49, 49,
...