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,...
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)...
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....
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...
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.
The special case of the gamma distribution in which α is a positive integer n is...
The special case of the gamma distribution in which α is a positive integer n is called an Erlang distribution. If we replace β by 1 λ in the expression below, f(x; α, β) = 1 βαΓ(α) xα − 1e−x/β x ≥ 0 0 otherwise the Erlang pdf is as follows. f(x; λ, n) = λ(λx)n − 1e−λx (n − 1)! x ≥ 0 0 x < 0 It can be shown that if the times between successive events are...
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...
Write and upload a MATLAB script to do the following. Compute the sequence S(n+1) = (2...
Write and upload a MATLAB script to do the following. Compute the sequence S(n+1) = (2 – K) S(n) – S(n-1) ;   Assume S(1) = 0, S(2) = 1; (a)    Case 1, Assume K = 1 (b)    Case 2, Assume K = 2 (c)     Case 3, Assume K = 4 Plot all of these on the same plot, for N = 1 to 20