Question

Write a R script where you answer the following questions: 1. Consider Y ∼ Binom(n =...

Write a R script where you answer the following questions:

1. Consider Y ∼ Binom(n = 10, p = 0.05).

Find the following probabilities: (a) P(2 < Y < 5) (b) P(2 ≤ Y ≤ 5) (c) P(Y < 9)

2. Consider Y ∼ P oisson(λ = 0.5).

Find the following probabilities: (a) P(Y = 5) (b) P(2 ≤ Y ≤ 5) (c) P(Y < 9)

3. Consider Y ∼ N(µ = 3, σ2 = 1).

Find the following probabilities: (a) P(Y = 5) (b) P(Y ≤ 5 (c) P(Y > 9) (d) P(0 < Y < 6)

4. Consider Y ∼ Gamma(α = 3, β = 1.5).

Find the following probabilities: (a) P(Y ≤ 10) (b) P(Y > 10) (c) P(Y = 9) (d) P(0 < Y < 6)

5. What does dnorm function compute in R?

Homework Answers

Answer #1

1:

Here we need use pbinom function of r. Following is the screen shot of r script:

Following is the output of r script:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Consider the model Yi = 2 + βxi +E i , i = 1, 2, ....
Consider the model Yi = 2 + βxi +E i , i = 1, 2, . . . , n where E1, . . . , E n be a sequence of i.i.d. observations from N(0, σ2 ). and x1, . . . , xn are given constants. (i) Find MLE for β and call it β. ˆ . (ii) For a sample of size n = 7 let (x1, . . . , x7) = (0, 0, 1, 2,...
6) You may answer the following questions using the appropriate C(n,r)’s and or P(n,r)’s. It is...
6) You may answer the following questions using the appropriate C(n,r)’s and or P(n,r)’s. It is NOT necessary to give a numerical answer. a) 10 points - A computer password consists of 6 different capital letters followed by 4 different digits. How many computer passwords are possible? b) 10 points - An electronics store receives a shipment of 50 graphing calculators, 7 of which are defective. 9 of these calculators are sold to a local high school. In how many...
Consider the following set of ordered pairs. x 6 1 4 3 4 0 y 5...
Consider the following set of ordered pairs. x 6 1 4 3 4 0 y 5 2 5 3 4 5 Assuming that the regression equation is y=3.375 + 0.208x and that the SSE=6.9583​, test to determine if the slope is not equal to zero using α=0.10. State the hypotheses. Choose the correct answer below. A. H0​: β ≠0 H1​: β=0 B. H0​: β=0 H1​: β>0 C. H0​: β=0 H1​: β≠0 D. H0​: β=0 H1​: β<0 Calculate the test statistic....
1. Write the following sets in list form. (For example, {x | x ∈N,1 ≤ x...
1. Write the following sets in list form. (For example, {x | x ∈N,1 ≤ x < 6} would be {1,2,3,4,5}.) (a) {a | a ∈Z,a2 ≤ 1}. (b) {b2 | b ∈Z,−2 ≤ b ≤ 2} (c) {c | c2 −4c−5 = 0}. (d) {d | d ∈R,d2 < 0}. 2. Let S be the set {1,2,{1,3},{2}}. Answer true or false: (a) 1 ∈ S. (b) {2}⊆ S. (c) 3 ∈ S. (d) {1,3}∈ S. (e) {1,2}∈ S (f)...
Let X have the normal distribution N(µ; σ2) and let Y = eX (a)Find the range...
Let X have the normal distribution N(µ; σ2) and let Y = eX (a)Find the range of Y and the pdf g(y) of Y (b)Find the third moment of Y E[Y3] (c) In the next four subquestions, we assume that µ = 0 and σ = 1. Sketch the graph of the pdf of Y for 0<y<=5 (use Maple to generate the graph and copy it the best you can in the answer box) (d)What is the mean of Y...
Write an R code that does the following: (a) Generate n samples x from a random...
Write an R code that does the following: (a) Generate n samples x from a random variable X that has a uniform density on [0,3]. Now generate samples of Y using the equation: y = α/(x + β). For starters, set α = 1, β = 1 The R code: x=runif(n=1000, min = 0, max = 3) x y=1/x+1 y Please answer the following: b) Use plot(x,y) to check if you got the right curve. c) How does the correlation...
Consider the following data: R = 32000 N, rise for R = 1, run for R...
Consider the following data: R = 32000 N, rise for R = 1, run for R = -3 S = 54000 N, rise for S = 9, run for S = -16 What angle does the resultant make with the positive X axis? a.) 154.703° b.) 214.703° c.) 139.703° d.) 164.703°
State whether or not the following statements are valid. (a)X∼Normal(μ,σ2)whereμandσ2 aresuchthatP[X<1.2×μ]>1/2. (b) X ∼ Geometric (p)...
State whether or not the following statements are valid. (a)X∼Normal(μ,σ2)whereμandσ2 aresuchthatP[X<1.2×μ]>1/2. (b) X ∼ Geometric (p) where 0 < p < 1 then Var(X) must be greater than 1. (c) X ∼ Poisson(λ) where λ is such that E[X] = π and Var(X) = π. (d) X ∼ Gamma(1, 5) and P [X > 11|X > 5] = P [X > 6]. (e) X ∼ Geometric(p) where p is such that P[X > 11|X > 12] = 0.
a)Assume that you are given a matrix A = [aij ] ∈ R n×n with (1...
a)Assume that you are given a matrix A = [aij ] ∈ R n×n with (1 ≤ i, j ≤ n) and having the following interesting property: ai1 + ai2 + ..... + ain = 0 for each i = 1, 2, ...., n Based on this information, prove that rank(A) < n. b) Let A ∈ R m×n be a matrix of rank r. Suppose there are right hand sides b for which Ax = b has no solution,...
Let V be a finite dimensional vector space over R with an inner product 〈x, y〉...
Let V be a finite dimensional vector space over R with an inner product 〈x, y〉 ∈ R for x, y ∈ V . (a) (3points) Let λ∈R with λ>0. Show that 〈x,y〉′ = λ〈x,y〉, for x,y ∈ V, (b) (2 points) Let T : V → V be a linear operator, such that 〈T(x),T(y)〉 = 〈x,y〉, for all x,y ∈ V. Show that T is one-to-one. (c) (2 points) Recall that the norm of a vector x ∈ V...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT