Question

In: Statistics and Probability

Plot using RStudio Consider a binomial random variable, X. i. Plot the pmf of X ∼Bin(n...

Plot using RStudio

Consider a binomial random variable, X.

i. Plot the pmf of X ∼Bin(n = 10, p = 0.3).

ii. Plot the pmf of X ∼Bin(n = 10, p = 0.7).

iii. Plot the pmf of X ∼Bin(n = 100, p = 0.3).

iv. What happens to the shape of the pmf of X ∼Bin(n, p) when p gets larger?

v. What happens when n gets larger

Solutions

Expert Solution

Solution:

We are given that: X follows a Binomial distribution.

We have to plot the pmf of X for given parameters using R code.

i) Plot the pmf of X ∼Bin(n = 10, p = 0.3).

we use following R code:

x<- seq(0,10,by =1)

y<-dbinom(x,10,0.3)

plot(x,y)

Thus we get following plot:

ii. Plot the pmf of X ∼Bin(n = 10, p = 0.7).

x<- seq(0,10,by =1)

y<-dbinom(x,10,0.7)

plot(x,y)

iii. Plot the pmf of X ∼Bin(n = 100, p = 0.3).

x<- seq(0,100,by =1)

y<-dbinom(x,100,0.3)

plot(x,y)

iv. What happens to the shape of the pmf of X ∼Bin(n, p) when p gets larger?

From part i and ii, we can see as p gets larger , shape of pmf shifts from left skewed distribution to right skewed distribution.

v. What happens when n gets larger

From part iii) we can see as value of n gets larger, the shape of pmf becomes approximately Normal.


Related Solutions

Using excel with formulars for binomial random variable X with n=10, p=0.3, plot its pdf and...
Using excel with formulars for binomial random variable X with n=10, p=0.3, plot its pdf and cdf; then simulate from it a sample of size N=2000, plot its histogram (relative frequency), and cumulative frequency.
Let x be a random variable that possesses a binomial distribution with p=0.5 and n=9. Using...
Let x be a random variable that possesses a binomial distribution with p=0.5 and n=9. Using the binomial formula or tables, calculate the following probabilities. Also calculate the mean and standard deviation of the distribution. Round solutions to four decimal places, if necessary. P(x≥3)= P(x≤8)= P(x=5)= μ= σ=
Suppose that x is a binomial random variable with n = 5, p = .66, and...
Suppose that x is a binomial random variable with n = 5, p = .66, and q = .34. (b) For each value of x, calculate p(x). (Round final answers to 4 decimal places.) p(0) = p(1)= p(2)= p(3)= p(4)= p(5) (c) Find P(x = 3). (Round final answer to 4 decimal places.) (d) Find P(x ≤ 3). (Do not round intermediate calculations. Round final answer to 4 decimal places.) (e) Find P(x < 3). (Do not round intermediate calculations....
Suppose that X is a binomial random variable with n = 20 and π =0.18. a)...
Suppose that X is a binomial random variable with n = 20 and π =0.18. a) By hand, calculate P(X = 2). b) By hand, calculate P(X > 1) c) Use Excel (give explicit formula, including the arguments of the function) to find P(X ≥ 5).
Determine whether or not the random variable X is a binomial random variable. (a) X is...
Determine whether or not the random variable X is a binomial random variable. (a) X is the number of dots on the top face of a fair die (b) X is the number of hearts in a five card hand drawn (without replacement) from a well shuffled ordinary deck. (c) X is the number of defective parts in a sample of ten randomly selected parts coming from a manufacturing process in which 0.02% of all parts are defective. (d) X...
The p.d.f of the binomial distribution random variable X with parameters n and p is f(x)...
The p.d.f of the binomial distribution random variable X with parameters n and p is f(x) = n x p x (1 − p) n−x x = 0, 1, 2, ..., n 0 Otherwise Show that a) Pn x=0 f(x) = 1 [10 Marks] b) the MGF of X is given by [(1 − p) + pet ] n . Hence or otherwise show that E[X]=np and var(X)=np(1-p).
Let X be a Bin(n, p) random variable. Show that Var(X) = np(1 − p). Hint:...
Let X be a Bin(n, p) random variable. Show that Var(X) = np(1 − p). Hint: First compute E[X(X − 1)] and then use (c) and (d). (c) Var(X) = E(X^2 ) − (E X)^ 2 (d) E(X + Y ) = E X + E Y
Suppose x is a binomial random variable with p = .4 and n = 25. c....
Suppose x is a binomial random variable with p = .4 and n = 25. c. Use the binomial probabilities table or statistical software to find the exact value of P(x>=9). Answ:.726 back of book d. Use the normal approximation to find P(x>=9). answ:.7291 the back of book For one I have no idea how to use the binomial probabilities table . The mean is 10, variance is 6 and std is 2.45 If possible could someone explain how to...
Let X be a binomial random variable with parameters n = 5 and p = 0.6....
Let X be a binomial random variable with parameters n = 5 and p = 0.6. a) What is P(X ≥ 1)? b) What is the mean of X? c) What is the standard deviation of X? (Show work)
(a) Let X be a binomial random variable with parameters (n, p). Let Y be a...
(a) Let X be a binomial random variable with parameters (n, p). Let Y be a binomial random variable with parameters (m, p). What is the pdf of the random variable Z=X+Y? (b) Let X and Y be indpenednet random variables. Let Z=X+Y. What is the moment generating function for Z in terms of those for X and Y? Confirm your answer to the previous problem (a) via moment generating functions.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT