Question

In: Mechanical Engineering

Suppose that y = x2, where x is a normally distributed random variable with a mean

Suppose that y = x2, where x is a normally distributed random variable with a mean and variance of µx = 0 and σ2x = 4. Find the mean and variance of y by simulation. Does µy = µ2x? Does σy = σ2x? Do this for 100, 1000, and 5000 trials.

Solutions

Expert Solution

Program plan:

• To find the mean and variance of the given equation where the variable is normally distributed.

 

Program:

%**********************************************************

%A matlab code is written to find the mean and variance of

%the given equation where the variable is the normally

%distributed number with mean 0 and variance 4.

%**********************************************************

%Declaration of constant

m=100;

%Declaration of 'm' random numbers

x=2.*randn(1,m);

%Computes the value

y=x.^2;

%Computes the mean of array

mu_y=mean(y);

%Displays text

disp('The mean of y is ');

%Displays value

disp(mu_y);

%Computes the standard deviation of the array

variance_y=std(y)^2;

%Displays text

disp('The variance of y is');

%Displays value

disp(variance_y);

 

Output:

The output is found for three values of ‘m’.

m=100;

 

>> Untitled

The mean of y is

3.9944

The variance of y is

37.7325

 

m=1000;

>> Untitled

The mean of y is

3.9331

The variance of y is

29.0860

 

m=5000;

>> Untitled

The mean of y is

4.0030

The variance of y is

31.4172


The output is found for three values of ‘m’.

m=100;

 

>> Untitled

The mean of y is

3.9944

The variance of y is

37.7325

Related Solutions

A random variable X is Normally distributed with mean = 75 and = 8. Let Y...
A random variable X is Normally distributed with mean = 75 and = 8. Let Y be a second Normally distributed random variable with mean = 70 and = 12. It is also known that X and Y are independent of one another. Let W be a random variable that is the difference between X and Y (i.e., W = X – Y). What can be said about the distribution of W?
1. Suppose that the random variable X is normally distributed with mean μ = 30 and...
1. Suppose that the random variable X is normally distributed with mean μ = 30 and standard deviation σ = 4. Find a) P(x < 40) b) P(x > 21) c) P(30 < x < 35) 2. A radar unit is used to measure speeds of cars on a motorway. The speeds are normally distributed with a mean of 90 km/hr and a standard deviation of 10 km/hr. What is the probability that a car picked at random is travelling...
Suppose that z = xy, where x and y are independent and normally distributed random variables
Suppose that z = xy, where x and y are independent and normally distributed random variables. The mean and variance of x are µx = 10 and σ2x = 2. The mean and variance of y are µy = 15 and σ2y = 3. Find the mean and variance of z by simulation. Does µz = µxµy? Does σ2z = σ2x σ2y? Do this for 100, 1000, and 5000 trials.
Suppose that X and Y are two normally distributed random variables. X has mean 2 and...
Suppose that X and Y are two normally distributed random variables. X has mean 2 and standard deviation 3.Y has mean 3 and standard deviation 2. Their correlation is 0.6 . What is the mean and standard deviation of X + Y ?What is the distribution of X + Y ? What if X and Y are jointly normally distributed? What if they are not jointly normally distributed? Explain your answer.
Suppose that X and Y are two normally distributed random variables. X has mean 2 and...
Suppose that X and Y are two normally distributed random variables. X has mean 2 and standard deviation 3.Y has mean 3 and standard deviation 2. Their correlation is 0.6 . What is the mean and standard deviation of X + Y? What is the distribution of X + Y? What if X and Y are jointly normally distributed? What if they are not jointly normally distributed? Explain your answer. (Why we cannot conclude if they are not jointly normally...
X is a random variable which is normally distributed with a mean of 99.01 and a...
X is a random variable which is normally distributed with a mean of 99.01 and a standard deviation of 15.56. Use the Excel function NORMINV to determine the required value of Xo to two decimal places. Give your answer in the form xx.xx. P(X < Xo) = 0.0344 Answer:
Suppose a random variable X is normally distributed with mean 65.9 and standard deviation 9.5. Answer...
Suppose a random variable X is normally distributed with mean 65.9 and standard deviation 9.5. Answer the following questions: P(42.15 < X < 77.30) = [round to 4 decimal places] Tries 0/5 P(X ≤ 73.50) = [round to 4 decimal places] Tries 0/5 P(X = 77.30) = [round to 4 decimal places] Tries 0/5 Suppose a is such that: P(X ≤ a) = 0.49. Then a = [round to 2 decimal places] Tries 0/5 What is the IQR (inter-quartle range)...
Suppose a random variable X is normally distributed with mean 65.3 and standard deviation 9.4. Answer...
Suppose a random variable X is normally distributed with mean 65.3 and standard deviation 9.4. Answer the following questions: 1. P(47.44 < X < 76.58) = [round to 4 decimal places] 2. P(X ≤ 46.50) = [round to 4 decimal places] 3. P(X = 76.58) = [round to 4 decimal places] 4. Suppose a is such that: P(X ≤ a) = 0.39. Then a = [round to 2 decimal places] 5. What is the IQR (inter-quartle range) of X? [round...
Suppose a random variable X is normally distributed with mean 69.8 and standard deviation 8. Answer...
Suppose a random variable X is normally distributed with mean 69.8 and standard deviation 8. Answer the following questions: P(55.40 <  X < 74.60) = [round to 4 decimal places] Tries 0/5 P(X ≤ 62.60) = [round to 4 decimal places] Tries 0/5 P(X = 74.60) = [round to 4 decimal places] Tries 0/5 Suppose a is such that: P(X ≤ a) = 0.51. Then a = [round to 2 decimal places] Tries 0/5 What is the IQR (inter-quartle range) of...
Suppose a random variable X is normally distributed with mean 65 and standard deviation 7. Answer...
Suppose a random variable X is normally distributed with mean 65 and standard deviation 7. Answer the following questions: 1. P(48.90 < X < 70.60) = ____ [round to 4 decimal places] 2. P(X ≤ 65.70) = _____ [round to 4 decimal places] 3. P(X = 70.60) = ____ [round to 4 decimal places] 4.Suppose a is such that: P(X ≤ a) = 0.46. Then a = ____ [round to 2 decimal places] 5. What is the IQR (inter-quartle range)...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT