Question

In: Statistics and Probability

Use the R script to finish the following operations: (1) Generate 60 normally distributed random variables...

Use the R script to finish the following operations:
(1) Generate 60 normally distributed random variables with the mean 30 and the variance 16, and

store them in the vector ‘rand.vec’.

(2) Turn the vector ‘rand.vec’ into a 6X10 matrix, and assign the name ‘rand.mat’ to the matrix.

(3) Given a normal distribution with the mean 30 and the variance 16, find the two values of x that contain the middle 50% of the normal curve area.

Solutions

Expert Solution


Related Solutions

Use R to generate n = 400 samples (idependent identically distributed random numbers) of X ∼...
Use R to generate n = 400 samples (idependent identically distributed random numbers) of X ∼ N(0, 4). For each Xi , simulate Yi according to Yi = 3 + 2.5Xi + εi , where εi ∼ N(0, 16), i = 1, ..., n. Use R to solve the following questions. (a) Compute the least square estimators of βˆ 0 and βˆ 1. (b) Draw a regression line according to the numbers computed in (a). Plot Y and X with...
We will use shorthand notation and probability notation for random variables when working with normally distributed...
We will use shorthand notation and probability notation for random variables when working with normally distributed random variables. Suppose the vitamin C content of a particular variety of orange is distributed normally with mean 720 IU and standard deviation 46 IU. If we designate X = the vitamin C content of a randomly selected orange, then our shorthand notation is X~N(720 IU, 46 IU). Use this distribution of vitamin C content to answer the following questions: 1) What is 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.
If X1,...Xn are normally distributed random variables. is the sample mean an unbiased estimator for the...
If X1,...Xn are normally distributed random variables. is the sample mean an unbiased estimator for the median? can you explain why or why not?
Suppose R1,R2,...,Rn are mutually independent and uniformly distributed random variables on [0,1]. Assume R(1) ≤ R(2)...
Suppose R1,R2,...,Rn are mutually independent and uniformly distributed random variables on [0,1]. Assume R(1) ≤ R(2) ≤···≤ R(n) are the order statistics of the R1,R2,...,Rn. It is given that 1 ≤ a < b ≤ n. What is the distribution of R(b)−R(a)?
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.
A simple random sample of 60 adults is obtained from a normally distributed? population, and each?...
A simple random sample of 60 adults is obtained from a normally distributed? population, and each? person's red blood cell count? (in cells per? microliter) is measured. The sample mean is 5.24 and the sample standard deviation is 0.51 Use a 0.01 significance level and the given calculator display to test the claim that the sample is from a population with a mean less than 5.4 which is a value often used for the upper limit of the range of...
The time it takes workers to finish cleaning is normally distributed with a mean of 73.27...
The time it takes workers to finish cleaning is normally distributed with a mean of 73.27 minutes and a standard deviation of 7.04 minutes. If 13 workers are randomly selected, what is the probability the average time it takes them to finish cleaning is more than 73 minutes?
Use the R script to answer the following questions: (write down your answers in the R...
Use the R script to answer the following questions: (write down your answers in the R script with ##) (1). Import FarmSize.csv to Rstudio. Use the correct function to build a linear regression model predicting the average size of a farm by the number of farms; Give the model a name (e.g. FarmSize_Model). Call the model name to inspect the intercept and slope of the regression model. Verify the answers in your manual calculation. (2). Use the correct function to...
Use the R script to answer the following questions: (write down your answers in the R...
Use the R script to answer the following questions: (write down your answers in the R script with ##) (1). Import FarmSize.csv to Rstudio. Use the correct function to build a linear regression model predicting the average size of a farm by the number of farms; Give the model a name (e.g. FarmSize_Model). Call the model name to inspect the intercept and slope of the regression model. Verify the answers in your manual calculation. (2). Use the correct function to...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT