Beruflich Dokumente
Kultur Dokumente
summary(edad)
Min. 1st Qu. Median Mean 3rd Qu. Max.
22.00 53.00 59.00 60.31 67.00 104.00
sd(edad)
[1] 10.64586
ks.test(edad,"pnorm",60.31,10.64586)
One-sample Kolmogorov-Smirnov test
data: edad
D = 0.0793, p-value = 1.787e-14
alternative hypothesis: two-sided
Warning message:
In ks.test(edad, "pnorm", 60.31, 10.64586) :
cannot compute correct p-values with ties
#Prueba Shapiro Wilks
shapiro.test(edad)
Shapiro-Wilk normality test
data: edad
W = 0.9788, p-value < 2.2e-16
#Prueba kolmogorov smirnov distribucin exponencial
ks.test(edad,"pexp",1/mean(edad))
Warning in ks.test(edad, "pexp", 1/mean(edad)) :
cannot compute correct p-values with ties
One-sample Kolmogorov-Smirnov test
data: edad
D = 0.4882, p-value < 2.2e-16
alternative hypothesis: two-sided
mu=60.5)
0.6630393
#Test Wilcoxon
median(edad)
[1] 59
wilcox.test(edad, mu=59)
Wilcoxon signed rank test with continuity correction
data: edad
V = 1685726, p-value = 0.0001917
alternative hypothesis: true location is not equal to 59
#Prueba de aleatoriedad
library(lawstat)
runs.test(edad)
Runs Test - Two sided
data: edad
Standardized Runs Statistic = -12.2801, p-value < 2.2e-16
runs.test(urbano)
Runs Test - Two sided
data: urbano
Standardized Runs Statistic = -Inf, p-value < 2.2e-16