
STAT 371 Discussion #4 February 18, 2008
1. Binomial Distribution
•The Five Key Characteristics
–1. Each trial has two possible outcomes. (It is also okay for there to be multiple outcomes
that are grouped to two classes of outcomes.)
–2. Trials are independent.
–3. The number of trials, n, is fixed in advance.
–4. Each trial has the same success probability, p.
–5. The random variable counts the number of successes in the n trials.
•The probability mass function (pmf)
P r{Y=j}=nCjpj(1 −p)n−j,where nCj=n!
j!(n−j)! Table 2
–j! = j(j−1)(j−2) ···(2)(1).
–0! = 1.
–nC0=nCn= 1.
–nCj=nCn−j.
•The mean of a Binomial distribution is µ=np.
•The variance of a Binomial distribution is σ2=np(1 −p) so that the standard deviation is
σ=pnp(1 −p)
•R commands: dbinom, pbinom, qbinom, rbinom use help() in R to learn more. We usually
use dbinom. For example, if X∼B inom(5,0.3) then P(3) = P(X= 3) is calculated by
dbinom(3,5,0.3).
2. Normal Distribution
•Basic problem Y∼N(0,1), P (X < a) = c,ais known, find c: look up table on the front
cover.
•Another basic problem Y∼N(0,1), P (X < a) = c,cis known, find a: look up table on the
front cover again, but from inside out.
•Look different, use change wizards:
P(X > a) = 1 −P(X < a), P(a < X < b) = P(X < b)−P(X < a), hint: use graph of normal
curve to figure out.
•Standardization formula: if Y∼N(µ, σ2) then Z=Y−µ
σ∼N(O, 1)
•Technique to remember the above formula:
Y∼N(µ, σ2) equiv. (Y−µ)∼N(0, σ2) equiv. Y−µ
σ∼N(0,1) .
Now you do the same for the probability:
P(Y < a) = P(Y−µ < a −µ) = P(Y−µ
σ<a−µ
σ) = P(Z < a−µ
σ)
•R commands: dnorm, pnorm, qnorm, rnorm use help() in R for more details. We use pnorm
and qnorm more often.
–Find P(X < 0.5) if X∼N(0,1) by pnorm(0.5)
–Find P(X < 0.5) if X∼N(2,32) by pnorm(0.5, mean = 2,sd = 3)
–Find P(X > 0.5) if X∼N(2,32) by pnorm(0.5, mean = 2,sd = 3, lower.tail =F)
–Find asuch that P(X < a) = 0.3 if X∼N(0,1) by qnorm(0.3)
–Find asuch that P(X > a) = 0.3 if X∼N(0,1) by qnorm(0.3, lower.tail =F)
Office hours: Mon,Fri 4:00-5:00pm at B248D MSC 1http://www.stat.wisc.edu/∼tran