Question

In: Statistics and Probability

Generate 1, 000 random 0/1 variables that model mutations occurring along a 1, 000 long gene...

Generate 1, 000 random 0/1 variables that model mutations occurring along a 1, 000 long gene sequence (use 1 to represent the mutation). Assume these mutations occur independently at a rate of 10^−4 each; that is, each variable is equal to 1 with probability 10^−4 .

Solutions

Expert Solution

We need to generate 1000 random 0/1 variables each with 1000 long gene sequence

So we need to take random sample from bernoulli distribution,

Here we assume that the mutations occur independently at a rate of 10^−4 each

Let X = 1 if the mutation is occur

Therefore p = P(X = 1 ) = 10^-4 = 0.0001

Let's do it in excel:

Click on Data >>>Data Analysis>>> Random number generation>>>OK

Put the required information, Look the following image for this

Then click on OK so we get the 1000 columns of 1000 0/1 values each.

Look the following output ( Not able to upload complete output)


Related Solutions

Say I want to generate random variables from the probability distribution p={ 2-2x 0<x<1 0 ....
Say I want to generate random variables from the probability distribution p={ 2-2x 0<x<1 0 . elsewhere My scheme is to generate U's from [0,1],double them and plug them into the probability distribution. So U = 0.3 gives me p(0.6)=0.8 as random variable. Prove my idea is right or wrong.
Beta-thalessemia is caused by mutations in the hemoglobin B gene we discussed along with sickle cell...
Beta-thalessemia is caused by mutations in the hemoglobin B gene we discussed along with sickle cell anemia. There are some anemia-causing mutations that are dominant while other mutations act in a recessive manner. The anemia caused by either type can be debilitating in affected genotypes and would be selected against in areas which do not have malaria. a) Assuming both forms of beta-thalessemia in the affected genotypes show similar fitness relative to unaffected genotypes, which type of allele (recessive or...
Let X and Y be random variables. Suppose P(X = 0, Y = 0) = .1,...
Let X and Y be random variables. Suppose P(X = 0, Y = 0) = .1, P(X = 1, Y = 0) = .3, P(X = 2, Y = 0) = .2 P(X = 0, Y = 1) = .2, P(X = 1, Y = 1) = .2, P(X = 2, Y = 1) = 0. a. Determine E(X) and E(Y ). b. Find Cov(X, Y ) c. Find Cov(2X + 3Y, Y ).
Let X and Y be uniform random variables on [0, 1]. If X and Y are...
Let X and Y be uniform random variables on [0, 1]. If X and Y are independent, find the probability distribution function of X + Y
Let ?1 and ?2 be two independent random variables with uniform distribution on [0, 1]. 1....
Let ?1 and ?2 be two independent random variables with uniform distribution on [0, 1]. 1. Write down the joint cumulative distribution function and joint probability density function of ?1 + ?2 and ?1?2
Let ?1 and ?2 be two independent random variables with uniform distribution on [0, 1]. 1....
Let ?1 and ?2 be two independent random variables with uniform distribution on [0, 1]. 1. Write down the joint cumulative distribution function and joint probability density function of ?1 + ?2 and ?1?2. 2. Write down the covariance between ?1 + ?2 and ?1?2. 3. Let ? be the largest magnitude (absolute value) of a root of the equation ?^2 − ?1? + ?2 = 0. Let ? be the random event that says that the equation ?^2 −?1?...
Let ?1 and ?2 be two independent random variables with uniform distribution on [0, 1]. 1....
Let ?1 and ?2 be two independent random variables with uniform distribution on [0, 1]. 1. Write down the joint cumulative distribution function and joint probability density function of ?1 + ?2 and ?1?2. 2. Write down the covariance between ?1 + ?2 and ?1?2. 3. Let ? be the largest magnitude (absolute value) of a root of the equation ? 2 − ?1? + ?2 = 0. Let ? be the random event which says that the equation ?...
Use the R script to finish the following operations: (1) Generate 60 normally distributed random variables...
Use the R script to finish the following operations: (1) Generate 60 normally distributed random variables with the mean 30 and the variance 16, and store them in the vector ‘rand.vec’. (2) Turn the vector ‘rand.vec’ into a 6X10 matrix, and assign the name ‘rand.mat’ to the matrix. (3) Given a normal distribution with the mean 30 and the variance 16, find the two values of x that contain the middle 50% of the normal curve area.
Collect the Data: Use a random number generator to generate 50 values between 0 and 1...
Collect the Data: Use a random number generator to generate 50 values between 0 and 1 (inclusive). Theoretical Distribution In words, X = The theoretical distribution of X is X ~ U(0, 1). In theory, based upon the distribution X ~ U(0, 1), find μ = __________ σ = __________ 1st quartile = __________ 3rd quartile = __________ median = __________ Construct a box plot of the data. Be sure to use a ruler to scale accurately and draw straight...
Let X and Y be independent and uniformly distributed random variables on [0, 1]. Find the...
Let X and Y be independent and uniformly distributed random variables on [0, 1]. Find the cumulative distribution and probability density function of Z = X + Y.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT