Simulate 100 random numbers from a Normal distribution with mean 5 and variance 4. Use set.seed...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Simulate 100 random numbers from a Normal distribution with mean 5 and variance 4. Use set.seed so that the same samples are obtained each time you run the code. Store the samples with variable name X. Use quantile-quantile plot to see if the distrbution of the sample is close to a normal distribution. Interpret the plot. You can use the default qqnorm and qqplot function or the qqPlot function from the "qualitytool" package in R. (4 points) Make a transformation Y=exp(X). Now Y can be considered as a random sample of size 100 from a log Normal distribution with u = 5 and w = 2. Plot a histogram on Y. Comment on the shape of the distribution of Y (3) Use qqPlot function with the distrbution name "lognormal" to contruct a quantile quantile plot on Y. Interpret the plot. Don't forget to install and load the packages "qualityTools" and “MASS". (3 points) Simulate 100 random numbers from a Normal distribution with mean 5 and variance 4. Use set.seed so that the same samples are obtained each time you run the code. Store the samples with variable name X. Use quantile-quantile plot to see if the distrbution of the sample is close to a normal distribution. Interpret the plot. You can use the default qqnorm and qqplot function or the qqPlot function from the "qualitytool" package in R. (4 points) Make a transformation Y=exp(X). Now Y can be considered as a random sample of size 100 from a log Normal distribution with u = 5 and w = 2. Plot a histogram on Y. Comment on the shape of the distribution of Y (3) Use qqPlot function with the distrbution name "lognormal" to contruct a quantile quantile plot on Y. Interpret the plot. Don't forget to install and load the packages "qualityTools" and “MASS". (3 points)
Expert Answer:
Answer rating: 100% (QA)
Complete required solution is given below First of all we shall draw the random sample from the norm... View the full answer
Related Book For
Mathematical Statistics with Applications in R
ISBN: 978-0124171138
2nd edition
Authors: Chris P. Tsokos, K.M. Ramachandran
Posted Date:
Students also viewed these accounting questions
-
Use @RISK to draw a normal distribution with mean 500 and standard deviation 100. Then answer the following questions. a. What is the probability that a random number from this distribution is less...
-
The following is random data from a normal distribution with variance 9. (a) Test the hypothesis, H0: 0 versus Ha: > 0. Assume that the prior is N (0, 4), so that 0 and > 0 are equally...
-
Consider a normal distribution with mean 5 and standard deviation 2. a. Sketch the associated normal curve. b. Use the footnote on page 244 to write the equation of the associated normal curve. c....
-
Suppose that the government of Malud increases both its own spending and autonomous taxes by $300 and the economys multiplier equals 2.5. If consumers spend 95% of their disposable (after-tax)...
-
Modify the factory simulation in Problem 10 to include two mold/trim servers (each with the original time distribution). How do your results change?
-
A mixture containing 60 mol% benzene and 40 mol% toluene is subjected to batch, differential distillation at 1 atm, under three different conditions: 1. Until the distillate contains 70 mol% benzene...
-
Sumitomo Cable manufactures various types of aluminum and copper cables which it sells directly to retail outlets through its distribution channels. The manufacturing process for producing cables...
-
As audit partner for Grupo and Rijo, you are in charge of reviewing the classification of unusual items that have occurred during the current year. The following material items have come to your...
-
8) What does the following method do? Rewrite it so it produces the same results but does not use recursion. public static boolean whoKnows (int arr, int i, int j) { if (i >= j) { return true; } else...
-
Design a clamper to perform the function indicated in Fig. 2.180. Silicon diodes 10 V 2.7 V vV Design -10 V
-
If all tenants respected the terms of their lease, what is the total of expense recoveries for 2020? The owner of an office building totaling 52,000 sq. ft. has the following rent roll for 2020: Unit...
-
In an international contract, what does an arbitration clause provide?
-
Contrast international and national law.
-
Under the Foreign Sovereign Immunities Act, what comprises a foreign state?
-
Techno, Inc., sells its brand-name computer equipment directly to its franchised retailers. Depending on how existing franchisees do, Techno may limit the number of franchisees in a given area to...
-
International Sales, Inc. (ISI), is charged with a violation of antitrust law. ISIs conduct is a per se violation a. if the anticompetitive effects outweigh the competitive benefits. b. if the...
-
08 pful IELTS Ex... IELTS Reading Prac... LA TROBE UNIVERSITY of stion https://lms.latrobe.edu.au/m La Trobe Home Ti liu Ti liu kin ... () Montal health: facin... Ti liu Bi tp dy t... ( )) Ti liu...
-
Why should you not model a decision variable as a random variable with a probability distribution?
-
The time to failure T of a microwave oven has an exponential distribution with pdf If three such microwave ovens are chosen and t is the mean of their failure times, find the following: (a)...
-
Suppose that the number of cars arriving in 1 h at a busy intersection is a Poisson probability distribution with l = 100. Find using Chebyshevs inequality a lower bound for the probability that the...
-
Let X1, . . ., Xn be a random sample from the truncated exponential distribution with pdf Show that the MLE of y is min (Xi;). f(x) 0, otherwise
-
A blender does 5000 J of work on the food in its bowl. During the time the blender runs, 2000 J of heat is transferred from the warm food to the cooler environment. What is the change in the thermal...
-
Which system contains more atoms: 5 mol of helium (A = 4) or 1 mol of neon (A = 20)? A. Helium B. Neon C. They have the same number of atoms.
-
A sample of ideal gas is in a sealed container. The temperature of the gas and the volume of the container are both increased. What other properties of the gas necessarily change? (More than one...
Study smarter with the SolutionInn App