Question

R Programming Exercise Book Problem 57 (Difficulty: Easy) A normal distribution has a standard deviation of...

R Programming Exercise Book

Problem 57 (Difficulty: Easy)

A normal distribution has a standard deviation of 35 and mean of 15. From this generate 2 to 400 samples. After generating the samples utilize the plot command to plot the mean of the generated sample (x-axis) against the number of samples. Create a second plot of the density of the 400 samples that you generated.

This code can be solved in 4 to 8 lines.


For this problem use the following variables:

For the mean use: Mean_of_graph

For Standard Deviation use: Standard_deviation_of_data

0 0
Add a comment Improve this question Transcribed image text
Answer #1

> særnorm(400,15,35);s (1) 17.21392109-13.96711623 30.18211245 41.68563806 -35.25119099 (6) 46.07753 777 20.70320792 18.23545>x=seq(15-4*35,15+4*35,0.1) > pr=dnorm(x,15,35) > plot(x,pr,l) 0.010 0.008 0.006 pr 0.004 0.002 0.000 -100 -50 100 150

Add a comment
Know the answer?
Add Answer to:
R Programming Exercise Book Problem 57 (Difficulty: Easy) A normal distribution has a standard deviation of...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Now let's try a normal distribution. The first plot will be easy, but the second will...

    Now let's try a normal distribution. The first plot will be easy, but the second will be more difficult to do, so follow the instructions carefully. First we'll plot a standard normal, then we'll see what happens if you change the parameters. x <- seq (-3.291, 3.291, length.out=100) gives us 100 equally spaced values of x between -3.291 and 3.291. “seq” let's us generate a sequence of numbers, and “length.out” tells us how many numbers we want in the sequence....

  • Using R programming language, supply the code for: Generate a random sample of size 10, 000...

    Using R programming language, supply the code for: Generate a random sample of size 10, 000 from gamma distribution with scale parameter equal to 1 and shape parameter equal to 2, and form it into a 1000 x 10 matrix. Use the apply() function on this matrix to compute the means of the 1000 rows. Note that the resulting vector comprises the mean of 1000 random samples of size 10 from the above distribution. Examine the distribution of the sample...

  • PLEASE USE R CODE!! Continue to generate standard normal random variables until you have generate...

    PLEASE USE R CODE!! Continue to generate standard normal random variables until you have generated n of them, where n≥100 is such that S/sqrt(n) <0.1, where S is the sample standard deviation of the n data value. (a)How many normals do you think will be generated? (b)What is the sample mean of all the normals generated? (c)What is the sample variance?

  • Assume the grades has Normal distribution with the mean of 70, and the standard deviation of 15. Answer the following questions 1. Calculate 10t 25t* 50 75t and 90* percentiles once by converting to...

    Assume the grades has Normal distribution with the mean of 70, and the standard deviation of 15. Answer the following questions 1. Calculate 10t 25t* 50 75t and 90* percentiles once by converting to the standard Normal distribution, and again directly (using the non-standard Normal distribution) 2. What percentage of students score between 80 and 90 in the exam? 3. What percentage of students fail? 4. What percentage of students pass with A? 5. Generate a sample of size 16...

  • Problem 2. Assume that random variable X has normal distribution with mean 2 and standard deviation...

    Problem 2. Assume that random variable X has normal distribution with mean 2 and standard deviation of 5 (1) Find the density of random variable Y = X3. (2) Find the mean and variance of random variable Y defined above in (1)

  • 1. A normal distribution has a mean of μ = 60 and a standard deviation of...

    1. A normal distribution has a mean of μ = 60 and a standard deviation of σ = 12. For each of the following samples, compute the z-score for the sample mean and determine whether the sample mean is a typical, representative value or an extreme value for a sample of this size. a. M = 53 for n = 4 scores σ/ √n= 12/√4 =6 z=(53-60)/6 = -1.17 b. M = 53 for n = 9 scores σ/ √n=...

  • R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable...

    R studio #Exercise : Calculate the following probabilities : #1. Probability that a normal random variable with mean 22 and variance 25 #(i)lies between 16.2 and 27.5 #(ii) is greater than 29 #(iii) is less than 17 #(iv)is less than 15 or greater than 25 #2.Probability that in 60 tosses of a fair coin the head comes up #(i) 20,25 or 30 times #(ii) less than 20 times #(iii) between 20 and 30 times #3.A random variable X has Poisson...

  • Use Microsoft Excel to solve the problem, and either show a screenshot of how you solved...

    Use Microsoft Excel to solve the problem, and either show a screenshot of how you solved it, and or explain each command that you used. Use Excel function int (rand()/(1-p)) for generating random numbers of value 0 and 1 with probability P(-1) p. 2, Make in Excel three tables size 50 x 100, 250 × 100, 1000 × 100 with Bernoulli distributed random numbers for p(1) 3/13. Use the generated tables for calculating new column of random numbers equal to...

  • Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture...

    Nay programming languge is fine (MatLab, Octave, etc.) This is the whole document this last picture i sent is the first page 5. Write and save a function Sphere Area that accepts Radius as input argument, and returns SurfaceArea (4 tt r) as output argument. Paste the function code below. Paste code here 6. Validate your Sphere Area function from the command line, checking the results against hand calculations. Paste the command line code and results below. 7. Design an...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT