library(ggplot2)
SID <- 3038189494
SID_digits <- as.character(SID) SID_digits <- strsplit(SID_digits, ““)[[1]]
SID_digits <- as.numeric(SID_digits)
population <- SID_digits
ggplot(data = data.frame(x = population), aes(x = x)) + geom_histogram(aes(y = after_stat(density)), binwidth = 1, fill = “skyblue”, color = “black”) + labs(title = “Histogram of Population (SID Number)”, x = “Digits”, y = “Density”) + theme_minimal()
mean_population <- mean(population)
sd_population <- sd(population)
cat(“Mean:”, mean_population, “”) cat(“Standard Deviation:”, sd_population, “”)