Exercise 2:
a) Sketch the probability mass function of X ∼ binom(size = 35, prob = 0.461).
b) Sketch the cumulative distribution function
c) Find the probability that X is equal to 21.
d) Find the probability that X is at most 18.
e) Find the probability that X is more than 30
f) Find the probability that X is between 12 and 24, inclusive. Solve the following using 3 methods as indicated and compare g) Find the mean of X: E(X), using the formula ππ = ∑ π₯π₯π₯π₯(π₯π₯) h) Install and use the package “distrEx” to verify your answer in question
g), with the command E(X) and then by simply computing n.p
i) Find the variance and standard deviation of X: ππ2 ππππππ ππ, using the formula ππ2 = πΈπΈ(ππ2) − οΏ½πΈπΈ(ππ)οΏ½ 2 = πΈπΈ(ππ2) − ππ2 (or equivalent)
j) Use the package to verify your answer, using the commands var(X) and sd(X) and then by simply computing npq =np(1-p).
Exercise 3: experiments with the binomial distribution Let X~binom(n = 100,000, p = 0.01), p = 0.01 probability of side effect resulting from a treatment and n = 100,000 treated individuals
a) Use your calculator to find 100000C110
b) Use R to find 100000C65
c) Use R to find 100000C125, then 100000C1100
d) Use dbinom to find f( 1100)
e) Use R to compute F(980)
f) Use the sum operator and dbinom to find P( 900 <= X<= 1200)
g) Compute F(1200)-F(900) using pbinom
. h) Use data.frame() to construct a table of x, F(x) for x = 980 to x = 1020
i) Use data.frame() to construct a table of x, f(x) for x = 980 to x = 1020
j) Graphing pmf f(x) Use the following code to graph the indicated binomial distribution for p= 0.1, 0.3, 0.5, 0.7 and 0.9. n <- 200 k
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme