Question

Suppose we need to construct a random variable X = {x1, x2, x3, x4} where x1...

Suppose we need to construct a random variable X = {x1, x2, x3, x4} where x1 is sampled from N(0,1), x2 is sampled from U(0,1), x3 is sampled from Pois (0.5) and x4 from B (1000,0.5) where 1000 tosses of a fair coin are taken into an account (0 = tail, 1=head). What type of samples we would expect for X? Write 10 samples.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We can expect a multivariate sample with 4 variates.

1st coming from standard normal, 2nd from uniform (0,1), 3rd from poisson with mean 0.5 and 4th from binomial(1000,0.5).

R Code:

normal = rnorm(n = 10,mean = 0,sd = 1)
poisson = rpois(n = 10,lambda = 0.5)
uniform = runif(n = 10, min = 0,max = 1)
binomial = rbinom(n = 10, size = 1000, prob = 0.5)
sample = cbind(normal, poisson, uniform, binomial)

Sample would be like this.

uniform - binomial normal -0.8826293 poisson 0 0.2461824 495 2 -0.2976566 1 0.1111983 515 3 1.4016976 4 1.8644216 5 -0.921069

Add a comment
Know the answer?
Add Answer to:
Suppose we need to construct a random variable X = {x1, x2, x3, x4} where x1...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT