qnorm(percent, mean, sd)
sample = rnorm(1000, mean=mu, sd=sigma)
sample[1:10]
is used to get the first 10 random samples then
1,000,000 samples
1000 samples
With mutually independent $X_i \sim Normal(\mu_i, \sigma_i^2)$
$Y= \sum X_i ~ Normal \space (\mu_Y = \sum \mu_i, \space \sigma_Y^2 = \sum \sigma_i^2)$
qqnorm()
yields this; if normal should look like a straight line with slope 1qqplot()
lets you compare two samples to see if they came from the same distr.qqline()
produce a similar output