Question

Suppose X is a random variable taking on possible values 0,2,4 with respective probabilities .5, .3,...

Suppose X is a random variable taking on possible values 0,2,4 with respective probabilities .5, .3, and .2. Y is a random variable independent from X taking on possible values 1,3,5 with respective probabilities .2, .2, and .6. Use R to determine the following.

a) Find the expected value of Y.

b) Find the variance of Y.

c) Find the expected value of Y4 .

PLEASE SHOW ANSWER IN R SCRIPT

Homework Answers

Answer #1

The R script is
X=c(0,2,4)
P1=c(0.5,0.3,0.2)
Y=c(1,3,5)
P2=c(0.2,0.2,0.6)
#Expected Value of Y
Ey=sum(Y*P2)
Ey
# Expected Value of Y is 3.8
#Variance of Y
Vy=sum((Y-Ey)^2*P2)
Vy
#Variance of Y is 2.56
# Expected value of Y^4
Ey4=sum(Y^4*P2)
Ey4
# Expected value of Y^4 is 391.4

The R Code is

X=c(0,2,4)

P1=c(0.5,0.3,0.2)

Y=c(1,3,5)

P2=c(0.2,0.2,0.6)

#Expected Value of Y

Ey=sum(Y*P2)

Ey

The Output of code is

>X=c(0,2,4)

>P1=c(0.5,0.3,0.2)

>Y=c(1,3,5)

>P2=c(0.2,0.2,0.6)

>#Expected Value of Y

>Ey=sum(Y*P2)

>Ey

[1] 3.8

>#Variance of Y

>Vy=sum((Y-Ey)^2*P2)

>Vy

[1] 2.56

># Expected value of Y^4

>Ey4=sum(Y^4*P2)

>Ey4

[1] 391.4

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
Question 6) Suppose X is a random variable taking on possible values 0,2,4 with respective probabilities...
Question 6) Suppose X is a random variable taking on possible values 0,2,4 with respective probabilities .5, .3, and .2. Y is a random variable independent from X taking on possible values 1,3,5 with respective probabilities .2, .2, and .6. Use R to determine the following. f) Find the expected value of X*Y. (i.e. X times Y) g) Find the expected value of 3X - 5Y. h) Find the variance of 3X - 5Y i) Find the expected value of...
Question 6) Suppose X is a random variable taking on possible values 0,2,4 with respective probabilities...
Question 6) Suppose X is a random variable taking on possible values 0,2,4 with respective probabilities .5, .3, and .2. Y is a random variable independent from X taking on possible values 1,3,5 with respective probabilities .2, .2, and .6. Use R to determine the following. a) Find the probability P(X*Y = 4) b) Find the expected value of X. c) Find the variance of X. d) Find the expected value of Y. e) Find the variance of Y.
Suppose X is a Normal random variable with with expected value 31 and standard deviation 3.11....
Suppose X is a Normal random variable with with expected value 31 and standard deviation 3.11. We take a random sample of size n from the distribution of X. Let X be the sample mean. Use R to determine the following: a)  What is the standard deviation of X when n = 19? b) What is the probability that X1 + X2 + ... +X20 > 630? PLEASE ANSWER IN R SCRIPT
Suppose X is a discrete random variable that takes on integer values between 1 and 10,...
Suppose X is a discrete random variable that takes on integer values between 1 and 10, with variance Var(X) = 6. Suppose that you define a new random variable Y by observing the output of X and adding 3 to that number. What is the variance of Y? Suppose then you define a new random variable Z by observing the output of X and multiplying that by -4. What is the variance of Z?
Suppose X is a random variable with with expected value -0.01 and standard deviation σ =...
Suppose X is a random variable with with expected value -0.01 and standard deviation σ = 0.04. Let X1, X2, ... ,X81 be a random sample of 81 observations from the distribution of X. Let X be the sample mean. Use R to determine the following: Copy your R script b) What is the approximate probability that X1 + X2 + ... +X81 >−0.02?
Let X and Y be independent and normally distributed random variables with waiting values E (X)...
Let X and Y be independent and normally distributed random variables with waiting values E (X) = 3, E (Y) = 4 and variances V (X) = 2 and V (Y) = 3. a) Determine the expected value and variance for 2X-Y Waiting value µ = Variance σ2 = σ 2 = b) Determine the expected value and variance for ln (1 + X 2) c) Determine the expected value and variance for X / Y
Suppose X and Y are independent Poisson random variables with respective parameters λ = 1 and...
Suppose X and Y are independent Poisson random variables with respective parameters λ = 1 and λ = 2. Find the conditional distribution of X, given that X + Y = 5. What distribution is this?
The random variable X can take on the values 1, 2 and 3 and the random...
The random variable X can take on the values 1, 2 and 3 and the random variable Y can take on the values 1, 3, and 4. The joint probability distribution of X and Y is given in the following table: Y 1 3 4 X 1 0.1 0.15 0.1 2 0.1 0.1 0.1 3 0.1 0.2                         a. What value should go in the blank cell? b. Describe in words and notation the event that has probability 0.2 in...
The values that a discrete random variable, X, can take are 1,2,3,4 with the probabilities 0.19,...
The values that a discrete random variable, X, can take are 1,2,3,4 with the probabilities 0.19, 0.22, 0.21, 0.38 respectively. Find the mean and variance of the probability distribution. Group of answer choices 2.58, 1.10 2.78, 1.34 2.61, 1.04 2.61, 1.10
Suppose the possible values of a random variable are -3, 5, 10 and that P(10)=0.2. If...
Suppose the possible values of a random variable are -3, 5, 10 and that P(10)=0.2. If the mean of the random variable is 4, what are P(-3) and P(5)?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT