Question

The age of four doctoral students are 28, 32, 28, and 39 Obtain 5 bootstrapped samples...

  1. The age of four doctoral students are 28, 32, 28, and 39

Obtain 5 bootstrapped samples and compute their corresponding medians, please don’t use the sample function.

Do in R or whatever is most comfortable.

Homework Answers

Answer #1

#R Codes

#Given Vector
x <- c(28, 32, 28, 39)

#Initiating empty boot vector and median vector
boot_vector <- c()
median_vec <- c()

#Bootstraping sample creation and median calculation for each sample
for (i in 1:5) {
boot <- sample(x, 5, replace = TRUE)
median_val <- median(boot)
  
boot_vector <- c(boot_vector, boot)
median_vec <- c(median_vec, median_val)
}

#Bootstarping matrix calculation
boot_mat <- matrix(boot_vector, nrow = 5, byrow = TRUE)

#dataframe creation
library(dplyr)
boot_df <- data.frame(bootstrap_sample_no = 1:5, boot_mat)
boot_df$median <- median_vec

**If the answer does not match or any kind of confusion you have please comment

Know the answer?
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
Similar Questions
Sales volume last weekend for four samples, each consisting of five car dealerships, were as follows:...
Sales volume last weekend for four samples, each consisting of five car dealerships, were as follows: Data Point 1 2 3 4 5 Sample 1 37 15 43 25 21 Sample 2 38 31 12 19 28 Sample 3 16 21 45 32 25 Sample 4 19 10 45 37 22 What is the mean of the distribution of sample means? Please round your answer to the nearest tenth. Note that the correct answer will be evaluated based on the...
Sales volume last weekend for four samples, each consisting of five car dealerships, were as follows:...
Sales volume last weekend for four samples, each consisting of five car dealerships, were as follows: Data Point 1 2 3 4 5 Sample 1 22 34 18 27 31 Sample 2 45 28 35 46 12 Sample 3 50 37 21 33 15 Sample 4 26 41 38 26 21 What is the standard deviation of the distribution of sample means? Please round your answer to the nearest tenth. Note that the correct answer will be evaluated based on...
Outlet Deluxe Standard 1 39 27 2 39 28 3 45 35 4 38 30 5...
Outlet Deluxe Standard 1 39 27 2 39 28 3 45 35 4 38 30 5 40 30 6 39 34 7 35 29 here is the data found in problem 3 to answer question 9 QUESTION 7 A manufacture produces both deluxe and standard models of an automatic sander designed for home use. Selling prices obtained from a sample of retail outlets can be found in the "Problem 3" tab. Formulate the hypothesis test to determine if the mean...
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...
SellingPrice Age Miles 13558 5 61476 13764 8 54397 22905 1 8281 15280 1 24871 16430...
SellingPrice Age Miles 13558 5 61476 13764 8 54397 22905 1 8281 15280 1 24871 16430 2 22139 16645 2 23741 16992 2 47426 18444 2 16865 18849 3 35394 19877 3 29634 11812 6 55785 14901 1 46212 15903 3 37007 16502 5 45473 9415 10 86861 12931 6 77208 15731 9 59603 10536 7 93212 8907 8 48263 11996 6 42434 A) Determine the sample regression equation that enables us to predict the price of a sedan on...
PART I The owner of a local golf course wanted to determine the average age (in...
PART I The owner of a local golf course wanted to determine the average age (in years) of the golfers that played on the course. In a random sample of 27 golfers that visited his course, the sample mean was 47 years old and the standard deviation was 5.11 years. Using this information, the owner calculated the confidence interval of (45.3, 48.7) with a confidence level of 90% for the average age. Which of the following is an appropriate interpretation...
Assume that the two samples are independent simple random samples selected from normally distributed populations. Do...
Assume that the two samples are independent simple random samples selected from normally distributed populations. Do not assume that the population standard deviations are equal. Refer to the accompanying data set. Use a 0.010.01 significance level to test the claim that the sample of home voltages and the sample of generator voltages are from populations with the same mean. If there is a statistically significant​ difference, does that difference have practical​ significance? Day HomeHome left parenthesis volts right parenthesis(volts) GeneratorGenerator...
From generation to generation, the mean age when smokers first start to smoke varies. However, the...
From generation to generation, the mean age when smokers first start to smoke varies. However, the standard deviation of that age remains constant at around 2.1 years. A survey of 39 smokers of this generation was done to see if the mean starting age is at least 19. The sample mean was 18.1 with a sample standard deviation of 1.3. Do the data support the claim at the 5% level? 1. State the distribution to use for the test. (Round...
Please provide a brief overview on: chapter 21 1. Can I obtain the net electric field...
Please provide a brief overview on: chapter 21 1. Can I obtain the net electric field due to two or more point charges? 2. Can I obtain the net Coulomb force on a point charge due to two or more point charges? 3. Can I draw physical quantities (for example, velocity, forces or electric fields) involved in a given problem in a diagram? 4. Do I have a good "qualitative" understanding of the motion of a charged particle in a...
MALE :Student # Gender Height Shoe Age Hand 1 M 67 10 19 R 2 M...
MALE :Student # Gender Height Shoe Age Hand 1 M 67 10 19 R 2 M 74 12 17 R 3 M 72 11.5 19 R 4 M 69 10 35 R 5 M 66 9 18 R 6 M 71 10.5 17 R 7 M 72 10.5 17 R 8 M 66 10 20 R 9 M 67 10 18 R 10 M 71 10.5 24 R 11 M 66 10 21 R 12 M 71 10.5 18 R...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT