Question

Use R to create matrix 4x4 were elements are 16 values of standard normal distribution (use...

Use R to create matrix 4x4 were elements are 16 values of standard normal distribution (use set.seed(5)).

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

The R commands to achieve the creation of a matrix with values coming from a random normal distribution is:

> set.seed(5)
> matrix(rnorm(16,0,1),nrow=4,ncol=4)
Add a comment
Know the answer?
Add Answer to:
Use R to create matrix 4x4 were elements are 16 values of standard normal distribution (use...
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
  • Using RStudio, Create an R-Script: (1) You will generate a numeric matrix of size 21 by...

    Using RStudio, Create an R-Script: (1) You will generate a numeric matrix of size 21 by 21 and will name it tmp. To do so, draw 21×21 = 441 random observations from the standard normal distribution. Before doing so, set the seed for the random number generator to 37. See help for set.seed(). (2) Change the diagonal elements of tmp to 1s. (3) Calculate condition number of tmp. See help for cond(). (4) Calculate the inverse of tmp. See help...

  • Using RStudio, Create an R-Script: (1) You will generate a numeric matrix of size 21 by...

    Using RStudio, Create an R-Script: (1) You will generate a numeric matrix of size 21 by 21 and will name it tmp. To do so, draw 21×21 = 441 random observations from the standard normal distribution. Before doing so, set the seed for the random number generator to 37. See help for set.seed(). (2) Change the diagonal elements of tmp to 1s. (3) Calculate condition number of tmp. See help for cond(). (4) Calculate the inverse of tmp. See help...

  • R programming Language Problem 1. Create three vectors, each containing 20 values randomly sampled from a...

    R programming Language Problem 1. Create three vectors, each containing 20 values randomly sampled from a normal distribution. The first should be from a normal distribution with mean = 0 and standard deviation = 1 (a.k.a. the standard normal distribution). The second should be from a normal distribution with mean = 10 and standard deviation = 1. The third should be from a normal distribution with mean = 10 and standard deviation = 10. Use the mean() and sd() functions...

  • If one were to use a standard normal distribution instead of Student's t distribution to calculate...

    If one were to use a standard normal distribution instead of Student's t distribution to calculate a confidence interval, what would be the "critical normal value" used as the coefficient for the s.e.m for a 90% CI?

  • Use Excel to standard normal observations with assumed population parameters with mean 16 and standard deviation...

    Use Excel to standard normal observations with assumed population parameters with mean 16 and standard deviation 5. Go to Data Analysis (you need to have chosen "Analysis Toolpack" first) -> Random Number Generation -> Normal. Generate one random variable with numbers generated for samples of size 5, 16, and 25 from the default standard normal distribution. This will simulate the importance of the "assume normal" assumption. Use the =) provided from the parent population as your "assumed" population standard deviation....

  • Use Excel to generate 70 values from Normal distribution with mean 18 and standard deviation 5....

    Use Excel to generate 70 values from Normal distribution with mean 18 and standard deviation 5. Construct a histogram for them [Note: first generate 100 uniformly distributed random values from [0,1]; then use them as the first input for NORMINV( ) function, two other inputs are mean and standard deviation of given Normal distribution. can you show me step by step how to do this in excel

  • 1. Use (where is the 4x4 identity matrix) to show that a) with C a constant....

    1. Use (where is the 4x4 identity matrix) to show that a) with C a constant. Calculate C b) with D a constant. Calculate D c) {74,7"} = 294V14 We were unable to transcribe this imageWilly d y = Cy! with many = Dga We were unable to transcribe this image

  • Find the following probabilities for the standard normal distribution in R or using the standard normal...

    Find the following probabilities for the standard normal distribution in R or using the standard normal table. Note I always recommend drawing the distribution. (Round your answers to four decimal places) ### Example R code mu-o: sigma = 1: x = x; # Note you will have to change the value of x. pnorm(x,mu.sigma) (a) PIX s 0.41) (b) P(X 2041) () PIXs-4.25) Find the following percentiles for the standard normal distribution in Ror using the standard normal table. (Round...

  • Problem 5 Create the following matrix by typing elements explicitly one command. Do not type individual...

    Problem 5 Create the following matrix by typing elements explicitly one command. Do not type individual 0 00 0 0 o o 0 0 0 0 0 1 2 3 F=0 01 10 20 0 0 2 8 26 0 0 3 6 32 E 0 045 6 0 0 7 8 9 Problem 6 Create two row vectors: a -4 10 0.5 1.8 -2.3 7, b [0.7 9 -53-0.6 12 (a) Use the two vectors in a MATLAB command...

  • The mean of a normal probability distribution is 380; the standard deviation is 16. About 68%...

    The mean of a normal probability distribution is 380; the standard deviation is 16. About 68% of the observations lie between what two values? About 95% of the observations lie between what two values? Practically all of the observations lie between what two values?

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