Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(a) The normal distribution may be used to approximate the binomial distribution

ID: 3250562 • Letter: #

Question

(a) The normal distribution may be used to approximate the binomial distribution if np > 5 and np(1-p) > 5. Find the following binomial probabilities using dbinom() and pbinom() with a probability, p = 0.5, and n = 100. Then, estimate the same probabilities using the normal approximation with continuity correction and pnorm(). (b) The probability of exactly 50 successes. calculate binomial probability Calculate normal approximation (ii) The probability of fewer than 42 successes. calculate binomial probability Calculate normal approximation (iii) The probability of 58 or more successes. calculate binomial probability Calculate normal approximation (c) With n = 100 and p = 0.01, use the binomial probabilities from dbinom() to calculate the expected value and variance for this binomial distribution using the general formulae for mean and variance of a discrete distribution (To do this, you will need to use integer values from 0 to 100 as binomial outcomes along with the corresponding binomial probability). Calculate the same using the formulae np and np(1-p). Calculate expected value and variance using the binomial probabilities associated with discrete outcomes Calculate expected value and variance using n*p and n*p*(1-p)

Explanation / Answer

Solution:
#------------Solution (a)---------------
p=0.5; n=100
n*p # since np>5 continuity corrections can be applied
n*p*(1-p)
#------------Solution (b)---------------

dbinom(50,n,p)
pnorm(50.5,n*p,sqrt(n*p*(1-p)))-pnorm(49.5,n*p,sqrt(n*p*(1-p)))

#------------Solution (ii)--------------
sum(dbinom(1:41,n,p))
pnorm(41.5,n*p,sqrt(n*p*(1-p)))

#------------Solution (iii)-------------
sum(dbinom(58:n,n,p))
1-pnorm(57.5,n*p,sqrt(n*p*(1-p)))

#------------Solution (c)---------------
n=100; p=0.01
x=0:100
Ex=sum(x*dbinom(x,n,p))
Vx=sum(x^2*dbinom(x,n,p))-Ex^2
n*p
n*p*(1-p)