Question

Generate two values for Normal distribution with mean as 20 and variance as 9, and 2...

Generate two values for Normal distribution with mean as 20 and variance as 9, and 2 values for Binomial distribution with P as 0.2.

Homework Answers

Answer #1

Here we use R

R-code is

mean=60;var=9

U=runif(2);U

#[1] 0.03752404 0.52682849

X1=mean+sqrt(var)*(sqrt(-2*log(U[1]))*cos(2*pi*U[2]))

X2=mean+sqrt(var)*(sqrt(-2*log(U[1]))*sin(2*pi*U[2]))

print(c(X1,X2))

#[1] 52.42196 58.71034

#Two values for normal distribution with mean=60 & var=9 is X1=52.42196,X2=58.71034

X={}

P=0.2

for(i in 1:2) if(U[i]<=P) X[i]=1 else X[i]=0

print(X)

#[1] 1 0

#Two values for binomial distribution with n=1 & P=0.2 is X1=1,X2=0

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
Suppose that y has a Normal distribution with mean 2 and variance 9. What is the...
Suppose that y has a Normal distribution with mean 2 and variance 9. What is the probability that y is in the interval [0, 4] ?
find the mean,variance,and standard deviation of the binomial distribution with the given values of the n...
find the mean,variance,and standard deviation of the binomial distribution with the given values of the n and p. n =127, p= 0.61
Y~ Normal Distribution with mean 4 and variance 4. a. We have P(Y< y)=.9 find the...
Y~ Normal Distribution with mean 4 and variance 4. a. We have P(Y< y)=.9 find the y b. Find P(1<Y<2) c. Find P(Y< -2) d. Find P(Y>-2)
Find the? mean, variance, and standard deviation of the binomial distribution with the given values of...
Find the? mean, variance, and standard deviation of the binomial distribution with the given values of n and p. n equals 122n=122?, p equals 0.62p=0.62 The? mean, mu??, is 75.675.6. ?(Round to the nearest tenth as? needed.) The? variance, sigma?squared2?, is nothing. ?(Round to the nearest tenth as? needed.) The standard? deviation, sigma??, is nothing. ?(Round to the nearest tenth as? needed.
The inner-diameter of piston rings follows a normal distribution with mean 75mm and variance = 9....
The inner-diameter of piston rings follows a normal distribution with mean 75mm and variance = 9. The sample size is 5. (1) If L=2, what is Type I error rate when the process is under in-control? (2) If we set the control limits to UCL=78.354 and LCL=71.646, what is Type I error rate?
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression...
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression values respectively. Also assume that X has mean 9 and variance 3; Y has mean 10 and variance 5; and the covariance between X and Y is 2. In a trial, 50 independent measurements of the expression values of the two genes are collected, and denoted as 11 ( , ) XY, …, 50 50 ( , ) XY. We wish to find the...
Please fill in the blanks. 1)If normal distribution A has a mean of 40 and a...
Please fill in the blanks. 1)If normal distribution A has a mean of 40 and a standard deviation of 20 and normal distribution B has a mean of 40 and a standard deviation of 10, then curve is ________ and _________ than curve B. If normal distribution C had mean of 30 and a standard deviation of 20, then curve C has the same shape as curve ________ but has a different shape. 2) When np ≥ _____ and n(1-p)...
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression...
Two genes’ expression values follow a bivariate normal distribution. Let X and Y denote their expression values respectively. Also assume that X has mean 9 and variance 3; Y has mean 10 and variance 5; and the covariance between X and Y is 2. In a trial, 50 independent measurements of the expression values of the two genes are collected, and denoted as 1 1 ( , ) X Y , …, 50 50 ( , ) X Y ....
1). A random variable X has a normal distribution with mean 132 and variance 36. If...
1). A random variable X has a normal distribution with mean 132 and variance 36. If x = 120, its corresponding value of Z is? 2).Fill the blank. In the standard normal distribution, z0.05 = 1.645 means that 95% of all values of z are below ____ and ____% are above it.
) Find the mean, variance, and standard deviation for each of the values of n and...
) Find the mean, variance, and standard deviation for each of the values of n and p when the conditions for the binomial distribution are met. a. n =80 , p = 0.55 b. n = 200, p =0.15 c. n = 15, p =0.7 d. n = 25, p =0.6 e. n = 700, p =0.3 f. n = 100, p= 34
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT