Question

In: Statistics and Probability

Please do these questions in Excel! Generate a set of 1000 pairs of standard uniform random...

Please do these questions in Excel!

Generate a set of 1000 pairs of standard uniform random values ??and ??. Then perform the following algorithm for each of these 1000 pairs: Let the output of this algorithm be denoted by Y.

Step 1: Generate random values ?? = −?N(??) and ?? = −?N(??)

Step 2: Calculate ? = (??−?)^?/? . If ?? ≥ ?, then generate a random number ?. If ? > ?.? accept ??as ?(that is, let ? = ??); otherwise if ? ≤ ?.?, else accept −?? as ? (that is, let ? = −??). If ?? < ?, no result is obtained, and the algorithm returns to step 1. This means that the algorithm skips the pair ?? and ?? for which ?? < ? without generating any result and moves to the next pair ?? and??. After repeating the above algorithm 1000 times, a number N of the Y values will be generated. Obviously ? ≤ ?0,??? since there will be instances when a pair ?? and ?? would not generate any result, and consequently that pair would be wasted. Investigate the probability distribution of ? by doing the following:

1. Create a relative frequency histogram of ?.

2. Select a probability distribution that, in your judgement, is the best fit for ?.

3. Support your assertion above by creating a probability plot for ?.

4. Support your assertion above by performing a Chi-squared test of best fit with a 0.05 level of significance.

Solutions

Expert Solution

Steps:

1. Open an excel workbook to generate the observations.

The following image shows the required column with the respective formulas used to create them.

Note that the "=rand" function will generate new values each time the sheet is calculated so it is advisable to copy and paste the values after generating it for the first time.

The "I" values in the formula below correspond to the respective row number of the 1000 test cases.

2. Now we need to separate the shortlisted values of the random variable Y in another sheet. This can be done by copy pasting the Y values in another sheet and excluding the rows which say "No Result"

3. In order to determine the relative frequency we need to determine the subgroups for "Y" variable values. This is based on judgement or a quick line plot will show the data range. The next step would be to calculate the frequency of values that fall within each range. This can be done using excel functions.

4. The histogram can be edited using the "Insert" tab at the top.

The formulas used are as follows:

2. From the above it is apparent that the distribution of Y very closely resembles the distribution of a standard normal distribution.

3. The probability plot of "Y" is as follows:

(Here "i" and "j" denote the starting and ending rows of data.


Related Solutions

Generate 1000 random numbers from ??3? starting with standard normal random numbers in R.
Generate 1000 random numbers from ??3? starting with standard normal random numbers in R.
Let U be a Standard Uniform random variable. Show all the steps required to generate: a...
Let U be a Standard Uniform random variable. Show all the steps required to generate: a Binomial random variable with parameters n = 12 and p = 0.6 a discrete random variable with the distribution P(x), where P(0) = 0.4, P(3) = 0.1, P(7) = 0.2, P(14) = 0.3; a continuous random variable with the density f(x) = 4x 3 , 0 < x < 1; a continuous random variable with the density f(x) = (1/18)x 2 , -3 <...
Generate 1000 random numbers from ??2, 5? starting with standard normal random numbers in R.
Generate 1000 random numbers from ??2, 5? starting with standard normal random numbers in R.
Use SPSS, Excel or Minitab software to answer the following questions. Generate normal random data with...
Use SPSS, Excel or Minitab software to answer the following questions. Generate normal random data with sample size, n = 40, mean = 20 and standard deviation = 11. Write the generated data in the following table. Answer: 1 11 21 31 2 12 22 32 3 13 23 33 4 14 24 34 5 15 25 35 6 16 26 36 7 17 27 37 8 18 28 38 9 19 29 39 10 20 30 40 Conduct the...
Write the R code to generate five independent uniform random numbers and use that to generate...
Write the R code to generate five independent uniform random numbers and use that to generate 5 independent Bernoulli random variables with probability of success p = 0.4. please use RStudio. please do not use lab nor rbern for calculations.
Draw 1000 Uniform random variable. You know the true mean. You can use the standard deviation...
Draw 1000 Uniform random variable. You know the true mean. You can use the standard deviation of your data or you can calculate the true standard deviation and use that. How often does your data fall within 2 standard deviations of the true mean? How about 1 standard deviation? Repeat the above with 1000 Normal Random variables Draw 9 Normal Random variables and calculate the average. We will work with the averages.Repeat 1000 times so we have 1000 averages of...
Use Excel to generate the probability distribution for a binomial random variable for which there are...
Use Excel to generate the probability distribution for a binomial random variable for which there are 20 trials (n = 20) and the probability of success is 0.5 (p = 0.5), and show the graph.
Please answer the following questions based on the analysis in excel. 1. Calculate the mean, standard...
Please answer the following questions based on the analysis in excel. 1. Calculate the mean, standard deviation, and variance of the two samples. Embed the answers in the data sheet. 2. Calculate the degrees of freedom for a t test assuming the population standard deviation is unknown with unequal variance between samples. 3. Perform a two-tailed two-sample mean test assuming the population standard deviation is unknown with unequal variance. (.01 significance level) 4. State your conclusion from the two-tailed test....
X is an independent standard uniform random variable X ∼ Uniform(0, 1) Y is an independent...
X is an independent standard uniform random variable X ∼ Uniform(0, 1) Y is an independent standard uniform random variable Y ∼ Uniform(0, 1) U = min(X, Y ) V = max(X, Y ) Find the correlation coefficient of V and U , ρ(U, V) = Correlation(U, V).
(a) Generate 200 replicas of uniform [-3.14, 3.14] and 200 normal with mean 0 and standard...
(a) Generate 200 replicas of uniform [-3.14, 3.14] and 200 normal with mean 0 and standard deviation 1/8. Set data x=uniform e=normal y=sin(x)+e Fit the data with various types of smoothing techniques. (b) The same as (a) except changing the standard deviation from 1/8 to 1/2.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT