Skip to content

Instantly share code, notes, and snippets.

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)) +
# Defining lambda and n
lambda <- 220
n <- 30
# Calculating SEM
sem <- sqrt(lambda / n)
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)
@chaityacshah
chaityacshah / pip3-centos-amazon-linux.md
Created March 11, 2017 15:18 — forked from diegopacheco/pip3-centos-amazon-linux.md
How to Install Pip3 on CentOS / Amazon Linux?
sudo yum install -y python34-setuptools
sudo easy_install-3.4 pip