Using R and install.packages("MASS"), library(MASS)
1. Generate the following vector using at least two methods.
0,...
Using R and install.packages("MASS"), library(MASS)
1. Generate the following vector using at least two methods.
0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4
2. Generate the following vector.
Apple1, Banana2, Orange3, Cranberry4,
Watermelon5
3. Generate the following vector using the “rep” function.
a, a, b, b, c, c, a, a, b, b, c, c
4. In vector y = (8, 3, 5, 7, 6, 6, 8, 9, 2, 3, 9, 4, 10, 4,
11), which elements of y contains...
1. Consider the following data that represents a random sample
out of a very large population:...
1. Consider the following data that represents a random sample
out of a very large population: 0.43, 4.89, 5.29, 5.16, 0.59, 7.50,
4.48, 6.22 (a) Create a QQ plot of the data. Do you think it is
reasonable to assume that the population distribution is normal?
Explain your answer. (b) Denote µ to be the population mean.
Regardless of your answer to (a), use R to perform the bootstrap
with 2000 resamplings to create a 90% CI for µ. Since...
1. A pumpkin farmer weighed a simple random sample of size n =
20 pumpkins, with...
1. A pumpkin farmer weighed a simple random sample of size n =
20 pumpkins, with these results: 9.6, 8.8, 5.1, 9.7, 9.1, 8.9, 8,
9.2, 2.7, 9.1, 8.5, 7.3, 9.3, 9.6, 4.1, 9.9, 7.6, 9, 7.2, 8.5
(a) Create a QQ plot of the weights. Do you think it is
reasonable to assume that the population distribution is normal?
Explain your answer.
(b) Regardless of your answer to (a), use R to perform the
bootstrap with 2000 resamplings to...
i.Bias of Sample Mean Draw 20 samples from the normal
distribution N(5, 4). Compute the mean...
i.Bias of Sample Mean Draw 20 samples from the normal
distribution N(5, 4). Compute the mean of your 20 samples. Report
the bias of the sample mean
ii. Variance of Sample Mean (Continue of problem i) To estimate
the variance of the sample mean, we need to draw many different
samples of size 20. Now, we draw 1000 times a sample of size 20.
Store all the 1000 sample means. Report the variance of the
estimated sample mean. Hint: To...
A pumpkin farmer weighed a simple random sample of size n = 20
pumpkins, with these...
A pumpkin farmer weighed a simple random sample of size n = 20
pumpkins, with these results: 9.6, 8.8, 5.1, 9.7, 9.1, 8.9, 8, 9.2,
2.7, 9.1, 8.5, 7.3, 9.3, 9.6, 4.1, 9.9, 7.6, 9, 7.2, 8.5
(a) Create a QQ plot of the weights. Do you think it is
reasonable to assume that the population distribution is normal?
Explain your answer.
(b) Regardless of your answer to (a), use R to perform
the bootstrap with 2000 resamplings to create...
Could you please solve these using r code.
1. A pumpkin farmer weighed a simple random...
Could you please solve these using r code.
1. A pumpkin farmer weighed a simple random sample of size n =
20 pumpkins, with these results: 9.6, 8.8, 5.1, 9.7, 9.1, 8.9, 8,
9.2, 2.7, 9.1, 8.5, 7.3, 9.3, 9.6, 4.1, 9.9, 7.6, 9, 7.2, 8.5 (a)
Create a QQ plot of the weights. Do you think it is reasonable to
assume that the population distribution is normal? Explain your
answer. (b) Regardless of your answer to (a), use R...