Question

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.

Homework Answers

Answer #1

Here is the output of R

> x=c(0,2,4)
> x
[1] 0 2 4
> #px=probabilities of x
> px=c(0.5,0.3,0.2)
> px
[1] 0.5 0.3 0.2
> y=c(1,3,5)
> #py=probabilities of y
> py=c(0.2,0.2,0.6)
> py
[1] 0.2 0.2 0.6
> #Q.a
> #p1=p(x*y=4)
> #p1=p(x=4,y=1), Since x=4, y=1 only gives x*y=4
> p1=px[3]*py[1]
> p1
[1] 0.04
> #Q.b
> Ex=sum(x*px)
> Ex
[1] 1.4
> #Q.c
> Vx=(sum(x^2*px))-(Ex^2)
> Vx
[1] 2.44
> #Q.d
> Ey=sum(y*py)
> Ey
[1] 3.8
> #Q.c
> Vy=(sum(y^2*py))-(Ey^2)
> Vy
[1] 2.56

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...
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
Question 7) Suppose X is a Normal random variable with with expected value 31 and standard...
Question 7) 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) Find the probability P(X>32.1): b) Find the probability P(X >32.1) when n = 4: c) Find the probability P(X >32.1) when n = 25: d) What is the probability P(31.8 <X <32.5) when n = 25?...
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
Question 2) The density of random variable X is f(x) = 15(x2−36)(64−x2) / 3904 for 6...
Question 2) The density of random variable X is f(x) = 15(x2−36)(64−x2) / 3904 for 6 ≤ x ≤ 8 and 0 otherwise. Do computations using the R integrate function. a) Find the probability that X > 7: b) Find the probability that 6.5 < X < 7.5: e) Find the probability that x is within one standard deviation of its expected value: f) In the following paste your R script for this problem:
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 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 a random variable X takes on the value of -1 or 1, each with the...
Suppose a random variable X takes on the value of -1 or 1, each with the probability of 1/2. Let y=X1+X2+X3+X4, where X1,....X4 are independent. Find E(Y) and Find Var(Y)
1) Suppose a random variable, x, arises from a binomial experiment. Suppose n = 6, and...
1) Suppose a random variable, x, arises from a binomial experiment. Suppose n = 6, and p = 0.11. Write the probability distribution. Round to six decimal places, if necessary. x P(x) 0 1 2 3 4 5 6 Find the mean. μ = Find the variance. σ2 = Find the standard deviation. Round to four decimal places, if necessary. σ = 2) Suppose a random variable, x, arises from a binomial experiment. Suppose n = 10, and p =...
Suppose X,Y are discrete random variables, each taking only two distinct values. Prove that if E(XY)=E(X)E(Y)...
Suppose X,Y are discrete random variables, each taking only two distinct values. Prove that if E(XY)=E(X)E(Y) then X,Y are independent (Be aware that you have to prove E(XY) =E(X)E(Y) -> X,Y independent and NOT the converse)