sudo yum install -y python34-setuptools
sudo easy_install-3.4 pip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require(ggplot2); require(gridExtra) | |
# Set the colours for the graphs | |
barfill <- "#4271AE" | |
barlines <- "#1F3552" | |
line1 <- "black" | |
line2 <- "#FF3721" | |
# Plotting histogram of sample of daily page views | |
g1 <- ggplot(data=as.data.frame(sample), aes(sample)) + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Defining lambda and n | |
lambda <- 220 | |
n <- 30 | |
# Calculating SEM | |
sem <- sqrt(lambda / n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set.seed(567) | |
# Sample of 30 (29 from the Poisson distribution and an outlier of 260) | |
sample1 <- c(rpois(29, lambda = 220), 260) | |
# Sample of 10 (9 from the Poisson distribution and an outlier of 260) | |
sample2 <- c(rpois(9, lambda = 220), 260) |
NewerOlder